Browse Source

商户超时订单监控 增加订单耗时检索项

lowkeyman 3 tháng trước cách đây
mục cha
commit
5974bc9f2c

+ 26 - 2
admin/control/ordersendlist.php

@@ -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]];
                 }
             }

+ 18 - 0
admin/templates/default/refill.order.send.index.php

@@ -199,6 +199,24 @@
                         <option value="2"
                                 <?php if ($_GET['time'] == '2'){ ?>selected<?php } ?>>耗时一小时订单
                         </option>
+                        <option value="8"
+                                <?php if ($_GET['time'] == '8'){ ?>selected<?php } ?>>耗时一小时半订单
+                        </option>
+                        <option value="9"
+                                <?php if ($_GET['time'] == '9'){ ?>selected<?php } ?>>耗时2小时订单
+                        </option>
+                        <option value="10"
+                                <?php if ($_GET['time'] == '10'){ ?>selected<?php } ?>>耗时2小时半订单
+                        </option>
+                        <option value="11"
+                                <?php if ($_GET['time'] == '11'){ ?>selected<?php } ?>>耗时3小时订单
+                        </option>
+                        <option value="12"
+                                <?php if ($_GET['time'] == '12'){ ?>selected<?php } ?>>耗时3小时半订单
+                        </option>
+                        <option value="13"
+                                <?php if ($_GET['time'] == '13'){ ?>selected<?php } ?>>耗时4小时订单
+                        </option>
                         <option value="3"
                                 <?php if ($_GET['time'] == '3'){ ?>selected<?php } ?>>特定耗时3分钟订单
                         </option>