Commit 50b4c683 authored by 孙磊's avatar 孙磊

code

Signed-off-by: 孙磊's avatarsunlei <sunlei@romens.cn>
parent e02a486d
...@@ -291,8 +291,7 @@ class ShopBranch extends BaseModel ...@@ -291,8 +291,7 @@ class ShopBranch extends BaseModel
} }
//门店名称或编码 //门店名称或编码
if (isset($params['CODE'])) { if (isset($params['CODE'])) {
$query->orfilterWhere(['like', 'sb.CODE', $params['CODE']]); $query->andfilterWhere(['or', ['like','sb.CODE', $params['CODE']],['like', 'sb.NAME', $params['CODE']]]);
$query->orfilterWhere(['like', 'sb.NAME', $params['CODE']]);
} }
//省份 //省份
if (isset($params['RECIVER_PROVINCE'])) { if (isset($params['RECIVER_PROVINCE'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment