WIN-2308041133\Administrator 5 달 전
부모
커밋
2fdcfe09f3
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      app/common/dao/store/product/SpuDao.php

+ 2 - 4
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('P.type',$where['type']);
+                $query->where('S.type',$where['type']);
             })
             ->when(isset($where['keyword']) && $where['keyword'] !== '',function($query)use($where){
                 if (is_numeric($where['keyword'])) {
@@ -212,9 +212,7 @@ class SpuDao extends  BaseDao
                 $query->where('svip_price_type','>',0)->where('mer_svip_status',1);
             })
         ;
-        $list =$query->order($order);
-        var_dump($query->getLastSql());die();
-        return $list;
+        return $query->order($order);
     }
 
     /**