WIN-2308041133\Administrator 5 maanden geleden
bovenliggende
commit
1e230a8689
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/common/dao/store/product/SpuDao.php

+ 1 - 1
app/common/dao/store/product/SpuDao.php

@@ -84,7 +84,7 @@ class SpuDao extends  BaseDao
                 $query->whereIn('P.product_id',$where['product_ids']);
             })
             ->when(isset($where['type']) && $where['type'] !== '',function($query)use($where){
-                $query->where('S.type',$where['type']);
+                $query->where('P.type',$where['type']);
             })
             ->when(isset($where['keyword']) && $where['keyword'] !== '',function($query)use($where){
                 if (is_numeric($where['keyword'])) {