service_end_endtime
This commit is contained in:
parent
20e5af32b0
commit
fdaa7d5606
@ -100,7 +100,7 @@ trait OrderCardConcern
|
||||
$query->where('created_at', '<=', Carbon::parse($conditions['endtime']));
|
||||
}
|
||||
|
||||
if (isset($conditions['service_start_starttime'])) {
|
||||
if (isset($conditions['service_start_endtime'])) {
|
||||
$date = Carbon::parse($conditions['service_start_starttime']);
|
||||
$havingRaw = sprintf("sim in (SELECT sim FROM virtual_order_cards_partition GROUP BY sim HAVING MIN(service_start_at) >= '%s')", $date);
|
||||
$this->model = $this->model->whereRaw($havingRaw);
|
||||
@ -109,7 +109,7 @@ trait OrderCardConcern
|
||||
}
|
||||
|
||||
if (isset($conditions['service_start_endtime'])) {
|
||||
$date = Carbon::parse($conditions['service_start_starttime']);
|
||||
$date = Carbon::parse($conditions['service_start_endtime']);
|
||||
$havingRaw = sprintf("sim in (SELECT sim FROM virtual_order_cards_partition GROUP BY sim HAVING MIN(service_start_at) <= '%s')", $date);
|
||||
$this->model = $this->model->whereRaw($havingRaw);
|
||||
|
||||
@ -125,7 +125,7 @@ trait OrderCardConcern
|
||||
}
|
||||
|
||||
if (isset($conditions['service_end_endtime'])) {
|
||||
$date = Carbon::parse($conditions['service_end_starttime']);
|
||||
$date = Carbon::parse($conditions['service_end_endtime']);
|
||||
$havingRaw = sprintf("sim in (SELECT sim FROM virtual_order_cards_partition GROUP BY sim HAVING MAX(service_end_at) <= '%s')", $date);
|
||||
$this->model = $this->model->whereRaw($havingRaw);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user