wesmiler hai 5 días
pai
achega
bc1bc655f0
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      app/Services/Common/GoodsCategoryService.php

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

@@ -53,6 +53,11 @@ class GoodsCategoryService extends BaseService
                 if (isset($params['status']) && $params['status'] !== null && $params['status'] !== '') {
                     $query->where('status', intval($params['status']));
                 }
+
+                // 类型
+                if (isset($params['type']) && $params['type'] !== null && $params['type'] !== '') {
+                    $query->where('type', intval($params['type']));
+                }
             })
             ->orderBy('id', 'asc')
             ->paginate($pageSize > 0 ? $pageSize : 9999999);