|
|
@@ -50,6 +50,7 @@ class ViolationProduct extends Controller
|
|
|
$category_id = request('category_id', '');
|
|
|
$product_brand = request('product_brand', '');
|
|
|
$company_name = request('company_name', '');
|
|
|
+ $product_specs = request('product_specs', '');
|
|
|
// 时间条件
|
|
|
if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
|
|
|
if ($end_time) $map[] = ['insert_time', '<=', strtotime($end_time)];
|
|
|
@@ -60,6 +61,7 @@ class ViolationProduct extends Controller
|
|
|
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 ($product_specs) $map[] = ['product_specs', 'like', "%$product_specs%"];
|
|
|
// 查询数据
|
|
|
if ($is_admin != 1 && $company_id != 0) {
|
|
|
$map[] = ['company_id', '=', $company_id];
|