master
wangxinglong 2022-04-07 17:52:45 +08:00
parent 8368783138
commit c3a5440975
1 changed files with 4 additions and 3 deletions

View File

@ -190,12 +190,13 @@ class BillRepository extends Repository
->when(!empty($startTime), function ($q) use ($startTime) {
$q->whereTime("a.create_time", ">=", $startTime);
})
->when(!empty($keyword), function ($q) use ($keyword) {
$q->where("c.business_name|e.name", "like", "%" . $keyword . "%");
})
->when(!empty($endTime), function ($q) use ($endTime) {
$q->whereTime("a.create_time", "<=", $endTime);
})
->when(!empty($keyword), function ($q) use ($keyword) {
$q->where("c.business_name|e.name", "like", "%" . $keyword . "%");
})
->field(
[
"a.money",