Sfoglia il codice sorgente

后台管理系统

lyh 2 anni fa
parent
commit
df28259366
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      app/Services/Common/GoodsCategoryService.php

+ 3 - 0
app/Services/Common/GoodsCategoryService.php

@@ -50,6 +50,9 @@ class GoodsCategoryService extends BaseService
         if (isset($params['status']) && $params['status'] != '') {
             $query->where('a.status',$params['status']);
         }
+        if (isset($params['is_recommend']) && $params['is_recommend'] != '') {
+            $query->where('a.is_recommend',$params['is_recommend']);
+        }
         if (isset($params['name']) && $params['name'] != '') {
             $query->where('a.name','like',"%{$params['name']}%");
         }