|
@@ -42,14 +42,38 @@ class ordersendlistControl extends SystemControl
|
|
|
|
|
|
if ($timeout_type > 0)
|
|
|
{
|
|
|
- if (in_array($timeout_type, [1, 2]))
|
|
|
+ if (in_array($timeout_type, [1, 2, 8, 9, 10, 11, 12, 13]))
|
|
|
{
|
|
|
if ($timeout_type === 1) {
|
|
|
$time_cond['refill_order.order_time'] = ['between', [$cur_time - 3600, $cur_time - 1800]];
|
|
|
$time_cond['vr_order.add_time'] = ['between', [$cur_time - 3600, $cur_time]];
|
|
|
}
|
|
|
if ($timeout_type === 2) {
|
|
|
- $time_cond['refill_order.order_time'] = ['between', [$start_day, $cur_time - 3600]];
|
|
|
+ $time_cond['refill_order.order_time'] = ['between', [$cur_time - 5400, $cur_time - 3600]];
|
|
|
+ $time_cond['vr_order.add_time'] = ['between', [$cur_time - 5400, $cur_time]];
|
|
|
+ }
|
|
|
+ if ($timeout_type === 8) {
|
|
|
+ $time_cond['refill_order.order_time'] = ['between', [$cur_time - 7200, $cur_time - 5400]];
|
|
|
+ $time_cond['vr_order.add_time'] = ['between', [$cur_time - 7200, $cur_time]];
|
|
|
+ }
|
|
|
+ if ($timeout_type === 9) {
|
|
|
+ $time_cond['refill_order.order_time'] = ['between', [$cur_time - 9000, $cur_time - 7200]];
|
|
|
+ $time_cond['vr_order.add_time'] = ['between', [$cur_time - 9000, $cur_time]];
|
|
|
+ }
|
|
|
+ if ($timeout_type === 10) {
|
|
|
+ $time_cond['refill_order.order_time'] = ['between', [$cur_time - 10800, $cur_time - 9000]];
|
|
|
+ $time_cond['vr_order.add_time'] = ['between', [$cur_time - 10800, $cur_time]];
|
|
|
+ }
|
|
|
+ if ($timeout_type === 11) {
|
|
|
+ $time_cond['refill_order.order_time'] = ['between', [$cur_time - 12600, $cur_time - 10800]];
|
|
|
+ $time_cond['vr_order.add_time'] = ['between', [$cur_time - 12600, $cur_time]];
|
|
|
+ }
|
|
|
+ if ($timeout_type === 12) {
|
|
|
+ $time_cond['refill_order.order_time'] = ['between', [$cur_time - 14400, $cur_time - 12600]];
|
|
|
+ $time_cond['vr_order.add_time'] = ['between', [$cur_time - 14400, $cur_time]];
|
|
|
+ }
|
|
|
+ if ($timeout_type === 13) {
|
|
|
+ $time_cond['refill_order.order_time'] = ['between', [$start_day, $cur_time - 14400]];
|
|
|
$time_cond['vr_order.add_time'] = ['between', [$start_day, $cur_time]];
|
|
|
}
|
|
|
}
|