|
@@ -50,6 +50,10 @@ class ManyOrder extends BaseModel
|
|
|
if (trim($where['many_id']) != '')$model->where('b.id' , '=', $where['many_id']);
|
|
|
if (trim($where['name']) != '')$model->where('u.uid|u.account|u.nickname' , 'like', '%'.$where['name'].'%');
|
|
|
if (trim($where['data']) != '') $model = self::getModelTime($where, $model, 'a.create_time');
|
|
|
+ if ($where['type']){
|
|
|
+ $data['price'] = ManyOrder::where('status', '=', 0)->sum('price');
|
|
|
+ return $data;
|
|
|
+ }
|
|
|
$data['count'] = $model->count();
|
|
|
|
|
|
if (isset($where['excel']) && $where['excel'] == 1) {
|