소스 검색

fix(product): 修复待审核产品统计查询条件

- 移除不必要的 whereNull('spu_id') 条件以正确统计所有待审核产品
shichen 3 달 전
부모
커밋
0ee8b8cc83
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/common/repositories/store/product/ProductRepository.php

+ 1 - 1
app/common/repositories/store/product/ProductRepository.php

@@ -677,7 +677,7 @@ class ProductRepository extends BaseRepository
677 677
         $result[] = [
678 678
             'type'  => 6,
679 679
             'name'  => '待审核' . $name,
680
-            'count' => $this->dao->search($merId, $this->switchType(6, $merId, $productType, $is_gift_bag))->whereNull('spu_id')->count()
680
+            'count' => $this->dao->search($merId, $this->switchType(6, $merId, $productType, $is_gift_bag))->count()
681 681
         ];
682 682
         $result[] = [
683 683
             'type'  => 7,