|
|
@ -344,8 +344,8 @@ class Goods extends BaseModel |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// 商品名称 |
|
|
|
// 商品名称 |
|
|
|
if(count($params['keywords']) > 0 ) { |
|
|
|
foreach ($params['keywords'] as $val){ |
|
|
|
$filter[] = ['goods_name', 'like', "%{$params['keywords']}%"]; |
|
|
|
$filter[] = ['goods_name', 'like', "%{$val}%"]; |
|
|
|
} |
|
|
|
} |
|
|
|
// 商品名称 |
|
|
|
// 商品名称 |
|
|
|
!empty($params['goodsName']) && $filter[] = ['goods_name', 'like', "%{$params['goodsName']}%"]; |
|
|
|
!empty($params['goodsName']) && $filter[] = ['goods_name', 'like', "%{$params['goodsName']}%"]; |
|
|
|