|
@@ -318,9 +318,14 @@ class Goods extends Backend
|
|
|
$this->request->filter(['strip_tags', 'trim']);
|
|
|
if ($this->request->isAjax()) {
|
|
|
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
|
|
-
|
|
|
+ $filter=json_decode(input('filter'),true);
|
|
|
+ $map=[];
|
|
|
+ if(!empty($filter['date'])){
|
|
|
+ $map['create_time']=['between',explode(' - ',$filter['date'])];
|
|
|
+ }
|
|
|
$list=\app\admin\model\Orders::payed()
|
|
|
->hasGoods($row['id'])
|
|
|
+ ->where($map)
|
|
|
->group('user_id')
|
|
|
->field('user_id,count(user_id) as num')
|
|
|
->order('num','desc')
|