Ver código fonte

[智价云] 客户端筛选补充

tangyuanwang 4 dias atrás
pai
commit
a936ed1d3d

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

@@ -42,6 +42,9 @@ class LowPriceGoods extends Api
         $store_name = request('store_name', '');
         $source_responsible_person = request('source_responsible_person', '');
         $processing_status = request('processing_status', '');
+        $product_name = request('product_name', '');
+        $product_specs = request('product_specs', '');
+        $online_posting_cunt = request('online_posting_cunt', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -56,6 +59,9 @@ class LowPriceGoods extends Api
         if ($store_name) $map[] = ['store_name', 'like', "%$store_name%"];
         if ($source_responsible_person) $map[] = ['source_responsible_person', 'like', "%$source_responsible_person%"];
         if ($processing_status) $map[] = ['processing_status', '=', $processing_status];
+        if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
+        if ($product_specs) $map[] = ['product_specs', 'like', "%$product_specs%"];
+        if ($online_posting_cunt) $map[] = ['online_posting_cunt', '=', $online_posting_cunt];
         // 查询数据
         $map1 = array_merge($map, [['first_responsible_person', 'like',"%,$user_id,%"]]);
         $map2 = array_merge($map, [['responsible_person', 'like',"%,$user_id,%"]]);

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

@@ -42,6 +42,9 @@ class ViolationProduct extends Api
         $store_name = request('store_name', '');
         $source_responsible_person = request('source_responsible_person', '');
         $processing_status = request('processing_status', '');
+        $product_name = request('product_name', '');
+        $product_specs = request('product_specs', '');
+        $online_posting_cunt = request('online_posting_cunt', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -56,6 +59,9 @@ class ViolationProduct extends Api
         if ($store_name) $map[] = ['store_name', 'like', "%$store_name%"];
         if ($source_responsible_person) $map[] = ['source_responsible_person', 'like', "%$source_responsible_person%"];
         if ($processing_status) $map[] = ['processing_status', '=', $processing_status];
+        if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
+        if ($product_specs) $map[] = ['product_specs', 'like', "%$product_specs%"];
+        if ($online_posting_cunt) $map[] = ['online_posting_cunt', '=', $online_posting_cunt];
         // 查询数据
         $map1 = array_merge($map, [['first_responsible_person', 'like',"%,$user_id,%"]]);
         $map2 = array_merge($map, [['responsible_person', 'like',"%,$user_id,%"]]);

+ 6 - 0
app/Http/Controllers/Manager/Process/ControlGoods.php

@@ -38,6 +38,9 @@ class ControlGoods extends Controller
         $store_name = request('store_name', '');
         $source_responsible_person = request('source_responsible_person', '');
         $processing_status = request('processing_status', '');
+        $product_name = request('product_name', '');
+        $product_specs = request('product_specs', '');
+        $online_posting_cunt = request('online_posting_cunt', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -52,6 +55,9 @@ class ControlGoods extends Controller
         if ($store_name) $map[] = ['store_name', 'like', "%$store_name%"];
         if ($source_responsible_person) $map[] = ['source_responsible_person', 'like', "%$source_responsible_person%"];
         if ($processing_status) $map[] = ['processing_status', '=', $processing_status];
+        if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
+        if ($product_specs) $map[] = ['product_specs', 'like', "%$product_specs%"];
+        if ($online_posting_cunt) $map[] = ['online_posting_cunt', '=', $online_posting_cunt];
         // 查询数据
         $result = $ControlGoodsModel->query()
             ->where($map)