WIN-2308041133\Administrator 5 months ago
parent
commit
2265e95d72
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/common/dao/store/product/SpuDao.php

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

@@ -85,12 +85,12 @@ class SpuDao extends  BaseDao
             })
             ->when(isset($where['type']), function($query) use($where) {
                 if ($where['type'] === '') {
-                    $query->whereIn('P.type', [0,1,2,3,4]);
+//                    $query->whereIn('P.type', [0,1,2,3,4]);
                 } else {
                     $query->where('P.type', (int)$where['type']);
                 }
             }, function($query) {
-                $query->whereIn('P.type', [0,1,2,3,4]);
+//                $query->whereIn('P.type', [0,1,2,3,4]);
             })
             ->when(isset($where['keyword']) && $where['keyword'] !== '',function($query)use($where){
                 if (is_numeric($where['keyword'])) {