Sfoglia il codice sorgente

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

- 移除不必要的 whereNull('spu_id') 条件以正确统计所有待审核产品
shichen 3 mesi fa
parent
commit
0ee8b8cc83

+ 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,