|
@@ -123,6 +123,14 @@ class CustomService
|
|
|
$query->whereBetween('created_at', $createdDate);
|
|
|
}];
|
|
|
}
|
|
|
+ if (!empty($params['check_date'])) {
|
|
|
+ $checkDate = $params['check_date'];
|
|
|
+ $checkDate[0] = strtotime($checkDate[0].' 00:00:00');
|
|
|
+ $checkDate[1] = strtotime($checkDate[1].' 23:59:59');
|
|
|
+ $where[] = [function($query) use ($checkDate) {
|
|
|
+ $query->whereBetween('check_time', $checkDate)->where('current_status', '>', 1);
|
|
|
+ }];
|
|
|
+ }
|
|
|
|
|
|
if (!empty($params['current_status'])) {
|
|
|
$currentStatus = $params['current_status'];
|