xiaoyu 3 rokov pred
rodič
commit
c0e2ae2f4d

+ 5 - 1
admin/control/order_search.php

@@ -49,9 +49,13 @@ class order_searchControl extends SystemControl
 
         if(!empty($condition)) {
             $condition['refill_order.inner_status'] = 0;
+            $cur_time = time();
 
             $start_unixtime = intval(strtotime($_GET['query_start_time']));
             $end_unixtime = intval(strtotime($_GET['query_end_time']));
+            if(!empty($_GET['time'])) {
+                $end_unixtime = $cur_time + $_GET['time'];
+            }
 
             if ($start_unixtime > 0 && $end_unixtime > $start_unixtime) {
                 $condition['refill_order.order_time'] = [['egt', $start_unixtime], ['lt', $end_unixtime], 'and'];
@@ -75,7 +79,7 @@ class order_searchControl extends SystemControl
                 if ($order_info['notify_time'] > 0) {
                     $diff_time = $order_info['notify_time'] - $order_info['order_time'];
                 } else {
-                    $diff_time = time() - $order_info['order_time'];
+                    $diff_time = $cur_time - $order_info['order_time'];
                 }
                 $order_list[$order_id]['diff_time_text'] = $this->elapse_time($diff_time);
                 $order_list[$order_id]['diff_time'] = $diff_time;

+ 14 - 1
admin/templates/default/refill.order.search.php

@@ -263,7 +263,20 @@
                                 <?php if ($_GET['card_type'] == '7'){ ?>selected<?php } ?>>增值业务</option>
                     </select>
                 </td>
-                <th><label></label></th>
+                <th><label>耗时</label></th>
+                <td>
+                    <select name="time" class="querySelect" style="width: 100px;">
+                        <option value=""><?php echo $lang['nc_please_choose']; ?></option>
+                        <option value="300"
+                                <?php if ($_GET['time'] == '300'){ ?>selected<?php } ?>>超过5分</option>
+                        <option value="600"
+                                <?php if ($_GET['time'] == '600'){ ?>selected<?php } ?>>超过10分</option>
+                        <option value="1800"
+                                <?php if ($_GET['time'] == '1800'){ ?>selected<?php } ?>>超过30分</option>
+                        <option value="3600"
+                                <?php if ($_GET['time'] == '3600'){ ?>selected<?php } ?>>超过60分</option>=
+                    </select>
+                </td>
                 <td>
                     <a href="javascript:void(0);" id="ncsubmit" class="btn-search "
                        title="<?php echo $lang['nc_query']; ?>">&nbsp;