Explorar el Código

后台管理系统

lyh hace 2 años
padre
commit
df28259366
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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']}%");
         }