Commit 48a7dca9 by zhiwj

门店

parent f8bf496a
......@@ -481,14 +481,12 @@ public class StoreApiServiceImpl implements StoreApiService {
}
private String validBrandIsExist(String brandIds) {
if (StringUtils.isBlank(brandIds)) {
return "请填写店招品牌";
}
List<TabStoreBrand> storeBrandList = storeBrandService.listStoreBrandByIds(brandIds);
if (CollectionUtils.isEmpty(storeBrandList) || brandIds.split(GlobalInfo.FLAG_COMMA).length > storeBrandList.size()) {
return "品牌不存在";
if (StringUtils.isNotBlank(brandIds)) {
List<TabStoreBrand> storeBrandList = storeBrandService.listStoreBrandByIds(brandIds);
if (CollectionUtils.isEmpty(storeBrandList) || brandIds.split(GlobalInfo.FLAG_COMMA).length > storeBrandList.size()) {
return "品牌不存在";
}
}
return null;
}
......
......@@ -233,7 +233,7 @@
<if test="address != null and address != '' ">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="brandIds != null and brandIds ='' ">
<if test="brandIds != null and brandIds != '' ">
brand_ids = #{brandIds,jdbcType=VARCHAR},
</if>
<if test="provinceId != null and provinceId != '' ">
......
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