refactor(admin): 移除 StoreOrderCartInfoTwoLists 中的调试代码
- 删除了 StoreOrderCartInfoTwoLists 类中的 d($this->searchWhere) 调试代码 - 优化了查询逻辑,提高了代码的可读性和性能
This commit is contained in:
parent
e8dc53409a
commit
994050d437
@ -68,7 +68,6 @@ class StoreOrderCartInfoTwoLists extends BaseAdminDataLists implements ListsSear
|
||||
$export=$this->request->get('export');
|
||||
$this->searchWhere[] = ['is_pay', '=', 1];
|
||||
$this->searchWhere[] = ['status', '>=', 0];
|
||||
d($this->searchWhere);
|
||||
$query = StoreOrderCartInfo::where($this->searchWhere);
|
||||
if ($is_group == 1) {
|
||||
$query->field('store_id,product_id,price,SUM(total_price) as total_price,SUM(cart_num) as cart_num')->group(['store_id', 'product_id']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user