Эх сурвалжийг харах

[智价云] 违规处理ID查询

tangyuanwang 6 цаг өмнө
parent
commit
05c8a1267a

+ 2 - 0
app/Http/Controllers/Manager/Process/LowPriceGoods.php

@@ -59,6 +59,7 @@ class LowPriceGoods extends Controller
         $product_specs = request('product_specs', '');
         $online_posting_count = request('online_posting_count', '');
         $category_name = request('category_name', '');
+        $id    = request('id', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -67,6 +68,7 @@ class LowPriceGoods extends Controller
         if ($store_name) $map[]   = ['store_name', 'like', "%$store_name%"];
         if ($category_name) $map[] = ['category_name', 'like', "%$category_name%"];
         if ($company_name) $map[] = ['company_name', 'like', "%$company_name%"];
+        if ($id) $map[] = ['id', '=', $id];
 
         $low_price_goods_where = [];
         // 权限判断

+ 2 - 0
app/Http/Controllers/Manager/Process/ViolationProduct.php

@@ -58,6 +58,7 @@ class ViolationProduct extends Controller
         $product_specs = request('product_specs', '');
         $online_posting_count = request('online_posting_count', '');
         $category_name = request('category_name', '');
+        $id    = request('id', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -66,6 +67,7 @@ class ViolationProduct extends Controller
         if ($store_name) $map[]   = ['store_name', 'like', "%$store_name%"];
         if ($category_name) $map[] = ['category_name', 'like', "%$category_name%"];
         if ($company_name) $map[] = ['company_name', 'like', "%$company_name%"];
+        if ($id) $map[] = ['id', '=', $id];
 
         $violation_product_where = [];
         // 权限判断

+ 2 - 0
app/Http/Controllers/Manager/Process/ViolationStore.php

@@ -51,12 +51,14 @@ class ViolationStore extends Controller
         $processing_status = request('processing_status', '');
         $product_specs = request('product_specs', '');
         $online_posting_count = request('online_posting_count', '');
+        $id    = request('id', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
         //其它条件
         if ($store_name) $map[]   = ['store_name', 'like', "%$store_name%"];
         if ($company_name) $map[]   = ['company_name', 'like', "%$company_name%"];
+        if ($id) $map[]   = ['id', '=', $id];
 
         $violation_store_where = [];
         // 权限判断