|
|
@@ -24,8 +24,9 @@ class Order extends AdminControl
|
|
|
$order_identity = input('order_identity', '');
|
|
|
$user_id = intval(input('user_id', 0));
|
|
|
$product_id = intval(input('product_id', 0));
|
|
|
+ $timeRang = trim(input('timeRang', ''));
|
|
|
|
|
|
- $where = [];
|
|
|
+ $where = [];
|
|
|
if ($order_identity != '') {
|
|
|
$where['order_identity'] = $order_identity;
|
|
|
}
|
|
|
@@ -38,11 +39,17 @@ class Order extends AdminControl
|
|
|
$where['product_id'] = $product_id;
|
|
|
}
|
|
|
|
|
|
+ if ($timeRang){
|
|
|
+ $t1 = substr($timeRang,0,10);
|
|
|
+ $t2 = substr($timeRang,-10,10);
|
|
|
+ $where['order_buyTime']=[[">=",$t1],['<=',$t2]];
|
|
|
+ }
|
|
|
+
|
|
|
$order_list = $model_order->getOrdList($where, '*', 10);
|
|
|
$this->assign('order_list', $order_list);
|
|
|
$this->assign('show_page', $order_list->render());
|
|
|
$this->setAdminCurItem('index');
|
|
|
- $this->assign('oinput', ['order_identity' => input("order_identity",''), 'user_id' => input("user_id",''), 'product_id' => input("product_id","")]);
|
|
|
+ $this->assign('oinput', ['order_identity' => input("order_identity",''), 'user_id' => input("user_id",''), 'product_id' => input("product_id",""),'timeRang'=>$timeRang]);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|