Pārlūkot izejas kodu

[智价云] 增加商品品牌名称搜索

tangyuanwang 1 dienu atpakaļ
vecāks
revīzija
e6bf38e3be

+ 2 - 0
app/Http/Controllers/Manager/Collect/Product.php

@@ -37,6 +37,7 @@ class Product extends Controller
         $end_time = request('end_time', '');
         $product_name = request('product_name', '');
         $platform = request('platform', '');
+        $product_brand = request('product_brand', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -44,6 +45,7 @@ class Product extends Controller
         if (is_numeric($status)) $map[] = ['status', '=', $status];
         if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
         if (is_numeric($platform) || $platform) $map[] = ['platform', 'like', "%$platform%"];
+        if ($product_brand) $map[] = ['product_brand', 'like', "%$product_brand%"];
         // 权限判断
         if ($is_admin != 1 && $company_id != 0) {
             $map[] = ['company_id', '=', $company_id];

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

@@ -48,6 +48,7 @@ class LowPriceGoods extends Controller
         $store_scope = request('store_scope', '');
         $company_scope = request('company_scope', '');
         $category_id = request('category_id', '');
+        $product_brand = request('product_brand', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -57,6 +58,7 @@ class LowPriceGoods extends Controller
         if ($store_scope) $map[] = ['store_scope', '=', $store_scope];
         if ($company_scope) $map[] = ['company_scope', '=', $company_scope];
         if ($category_id) $map[] = ['category_id', '=', $category_id];
+        if ($product_brand) $map[] = ['product_brand', 'like', "%$product_brand%"];
         // 查询数据
         if ($is_admin != 1 && $company_id != 0) {
             $map[] = ['company_id', '=', $company_id];

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

@@ -48,6 +48,7 @@ class ViolationProduct extends Controller
         $store_scope = request('store_scope', '');
         $company_scope = request('company_scope', '');
         $category_id = request('category_id', '');
+        $product_brand = request('product_brand', '');
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
@@ -57,6 +58,7 @@ class ViolationProduct extends Controller
         if ($store_scope) $map[] = ['store_scope', '=', $store_scope];
         if ($company_scope) $map[] = ['company_scope', '=', $company_scope];
         if ($category_id) $map[] = ['category_id', '=', $category_id];
+        if ($product_brand) $map[] = ['product_brand', 'like', "%$product_brand%"];
         // 查询数据
         if ($is_admin != 1 && $company_id != 0) {
             $map[] = ['company_id', '=', $company_id];