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