Well, i found the answer.
In FriendsOfCake/search plugin, they support several type of search: value, finder, like, custom, compare.
I choose use define my finder in TableClass like:
public function findCreated(Query $query, array $options) {
if (!empty($options['created'])) {
return $query->where(['Logs.created >=' => $options['created']]);
}
return $query->where(['Logs.created >= (CURDATE() - 10)']);
}
Then in i setup searchConfiguration to call findCreated:
public function searchConfiguration() {
$search->finder('created');
return $search;
}
then, it's work.
If someone have better solution, just post your answer here.
Thanks.