浏览代码

[智价云] 违规处理记录ID搜索

tangyuanwang 1 天之前
父节点
当前提交
81bce0936c

+ 2 - 1
app/Http/Controllers/Api/Process/LowPriceGoods.php

@@ -50,13 +50,14 @@ class LowPriceGoods extends Api
         $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 ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         if ($store_name) $map[]   = ['store_name', 'like', "%$store_name%"];
-
+        if ($id) $map[] = ['id', '=', $id];
 
         //多选平台查询
         if ($platform && is_string($platform)) {

+ 2 - 1
app/Http/Controllers/Api/Process/ViolationProduct.php

@@ -50,13 +50,14 @@ class ViolationProduct extends Api
         $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 ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         if ($store_name) $map[]   = ['store_name','like',"%$store_name%"];
-
+        if ($id) $map[] = ['id', '=', $id];
 
         //多选平台查询
         if($platform && is_string($platform)){

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

@@ -47,11 +47,13 @@ class ViolationStore extends Api
         $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 ($id) $map[] = ['id', '=', $id];
 
         //多选平台查询
         if($platform && is_string($platform)){