laravel 写function builder where 条件
if (isset($data['txnTimeStart']) && !empty($data['txnTimeStart'])) {
//['r.txnTime','>=',$data['txnTimeStart']];
$where[] = [function(Builder $builder)use($data){
$builder->whereRaw("DATE_FORMAT(r.txnTime,'%Y-%m-%d') >= {$data['txnTimeStart']}");
}];
}