refactor(WorkbenchLogic): 调整支付订单查询限制,优化查询效率

This commit is contained in:
mkm 2024-09-02 21:10:48 +08:00
parent 3c305cfaf0
commit 729b05efbf

View File

@ -140,7 +140,7 @@ class WorkbenchLogic extends BaseLogic
$data['order_list'] = StoreOrder::with('user')->where($where)
// ->whereBetweenTime('pay_time', $startTime, $endTime)
->order('pay_time', 'desc')
// ->limit(6)
->limit(10)
->select()->each(function($item){
$item->pay_time=$item->pay_time>0?date('Y-m-d H:i:s',$item->pay_time):'';
})