setter
parent
8368783138
commit
c3a5440975
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue