|
@@ -105,7 +105,8 @@ class ViolationProductDataJobs implements ShouldQueue
|
|
|
$where[] = ['product_name', 'like', '%' . $product_name . '%'];
|
|
$where[] = ['product_name', 'like', '%' . $product_name . '%'];
|
|
|
if($enable_full_quantity == 1) $where[] = ['product_specs', 'like', '%' . $product_specs . '%']; //如果不是全量清洗,则查询规格
|
|
if($enable_full_quantity == 1) $where[] = ['product_specs', 'like', '%' . $product_specs . '%']; //如果不是全量清洗,则查询规格
|
|
|
|
|
|
|
|
- if ($product_brand) $where[] = ['product_name', 'like', '%' . $product_brand . '%'];
|
|
|
|
|
|
|
+ // if ($product_brand) $where[] = ['product_name', 'like', '%' . $product_brand . '%'];
|
|
|
|
|
+ if ($product_brand) $where[] = ['product_brand', 'like', '%' . $category_name . '%'];
|
|
|
if (!empty($product_keyword)) {
|
|
if (!empty($product_keyword)) {
|
|
|
foreach ($product_keywords as $key => $keywords) {
|
|
foreach ($product_keywords as $key => $keywords) {
|
|
|
if (trim($keywords) == '') continue;
|
|
if (trim($keywords) == '') continue;
|