- 移除不必要的 whereNull('spu_id') 条件以正确统计所有待审核产品
@@ -677,7 +677,7 @@ class ProductRepository extends BaseRepository
$result[] = [
'type' => 6,
'name' => '待审核' . $name,
- 'count' => $this->dao->search($merId, $this->switchType(6, $merId, $productType, $is_gift_bag))->whereNull('spu_id')->count()
+ 'count' => $this->dao->search($merId, $this->switchType(6, $merId, $productType, $is_gift_bag))->count()
];
'type' => 7,