注释店铺数据限制页数

This commit is contained in:
liu 2024-07-02 14:09:32 +08:00
parent 7421de9d10
commit e4c80b9565

View File

@ -137,9 +137,9 @@ class WorkbenchLogic extends BaseLogic
$recharge_field = 'from_unixtime(pay_time,"%Y-%m") as pay_time,sum(price) as pay_price'; $recharge_field = 'from_unixtime(pay_time,"%Y-%m") as pay_time,sum(price) as pay_price';
} }
$data['order_list'] = StoreOrder::with('user')->where($where) $data['order_list'] = StoreOrder::with('user')->where($where)
->whereBetweenTime('pay_time', $startTime, $endTime) // ->whereBetweenTime('pay_time', $startTime, $endTime)
->order('pay_time', 'desc') ->order('pay_time', 'desc')
->limit(6) // ->limit(6)
->select()->each(function($item){ ->select()->each(function($item){
$item->pay_time=$item->pay_time>0?date('Y-m-d H:i:s',$item->pay_time):''; $item->pay_time=$item->pay_time>0?date('Y-m-d H:i:s',$item->pay_time):'';
}) })