WIN-2308041133\Administrator 5 kuukautta sitten
vanhempi
commit
1e230a8689
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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'])) {