瀏覽代碼

【智价云】 状态查询更新

tangyuanwang 1 周之前
父節點
當前提交
10af824dbe

+ 1 - 1
app/Http/Controllers/Manager/WashConfig/LowPriceGoods.php

@@ -36,7 +36,7 @@ class LowPriceGoods extends Controller
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
         // 其他条件
-        if ($status) $map[] = ['status', '=', $status];
+        if (is_numeric($status)) $map[] = ['status', '=', $status];
         if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         // 查询数据
         $result = $LowPriceGoodsModel->query()

+ 1 - 1
app/Http/Controllers/Manager/WashConfig/ViolationProduct.php

@@ -36,7 +36,7 @@ class ViolationProduct extends Controller
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
         // 其他条件
-        if ($status) $map[] = ['status', '=', $status];
+        if (is_numeric($status)) $map[] = ['status', '=', $status];
         if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         // 查询数据
         $result = $ViolationProductModel->query()

+ 1 - 1
app/Http/Controllers/Manager/WashConfig/ViolationStore.php

@@ -38,7 +38,7 @@ class ViolationStore extends Controller
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
         // 其他条件
-        if ($status) $map[] = ['status', '=', $status];
+        if (is_numeric($status)) $map[] = ['status', '=', $status];
         if ($social_credit_code) $map[] = ['social_credit_code', 'like', "%$social_credit_code%"];
         if ($company_name) $map[] = ['company_name', 'like', "%$company_name%"];
         if ($store_name) $map[] = ['store_name', 'like', "%$store_name%"];