refactor(WorkbenchLogic): 调整支付订单查询限制,优化查询效率
This commit is contained in:
parent
3c305cfaf0
commit
729b05efbf
@ -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):'';
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user