Bladeren bron

[智价云] 增加小程序端违规数据处理搜索

tangyuanwang 1 dag geleden
bovenliggende
commit
0e2b0f5086

+ 8 - 0
app/Http/Controllers/Api/Process/LowPriceGoods.php

@@ -51,6 +51,10 @@ class LowPriceGoods extends Api
         $product_specs = request('product_specs', '');
         $product_specs = request('product_specs', '');
         $online_posting_count = request('online_posting_count', '');
         $online_posting_count = request('online_posting_count', '');
         $id    = request('id', '');
         $id    = request('id', '');
+        $product_brand = request('product_brand', '');
+        $anonymous_store_name = request('anonymous_store_name', '');
+        $shipment_province_id = request('shipment_province_id', '');
+        $shipment_city_id = request('shipment_city_id', '');
         // 时间条件
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -58,6 +62,10 @@ class LowPriceGoods extends Api
         if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         if ($store_name) $map[]   = ['store_name', 'like', "%$store_name%"];
         if ($store_name) $map[]   = ['store_name', 'like', "%$store_name%"];
         if ($id) $map[] = ['id', '=', $id];
         if ($id) $map[] = ['id', '=', $id];
+        if ($product_brand) $map[] = ['product_brand', 'like', "%$product_brand%"];
+        if ($anonymous_store_name) $map[] = ['anonymous_store_name', 'like', "%$anonymous_store_name%"];
+        if ($shipment_province_id) $map[] = ['shipment_province_id', '=', $shipment_province_id];
+        if ($shipment_city_id) $map[] = ['shipment_city_id', '=', $shipment_city_id];
 
 
         //多选平台查询
         //多选平台查询
         if ($platform && is_string($platform)) {
         if ($platform && is_string($platform)) {

+ 8 - 0
app/Http/Controllers/Api/Process/ViolationProduct.php

@@ -51,6 +51,10 @@ class ViolationProduct extends Api
         $product_specs = request('product_specs', '');
         $product_specs = request('product_specs', '');
         $online_posting_count = request('online_posting_count', '');
         $online_posting_count = request('online_posting_count', '');
         $id    = request('id', '');
         $id    = request('id', '');
+        $product_brand = request('product_brand', '');
+        $anonymous_store_name = request('anonymous_store_name', '');
+        $shipment_province_id = request('shipment_province_id', '');
+        $shipment_city_id = request('shipment_city_id', '');
         // 时间条件
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -58,6 +62,10 @@ class ViolationProduct extends Api
         if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         if ($store_name) $map[]   = ['store_name','like',"%$store_name%"];
         if ($store_name) $map[]   = ['store_name','like',"%$store_name%"];
         if ($id) $map[] = ['id', '=', $id];
         if ($id) $map[] = ['id', '=', $id];
+        if ($product_brand) $map[] = ['product_brand', 'like', "%$product_brand%"];
+        if ($anonymous_store_name) $map[] = ['anonymous_store_name', 'like', "%$anonymous_store_name%"];
+        if ($shipment_province_id) $map[] = ['shipment_province_id', '=', $shipment_province_id];
+        if ($shipment_city_id) $map[] = ['shipment_city_id', '=', $shipment_city_id];
 
 
         //多选平台查询
         //多选平台查询
         if($platform && is_string($platform)){
         if($platform && is_string($platform)){