wysf
bruce 9 months ago
parent 428962d2e7
commit f4b3997491
  1. 4
      app/common/model/Goods.php

@ -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']}%"];

Loading…
Cancel
Save