Commit 521b4b03 authored by huyuchen's avatar huyuchen

huych-户名判空处理

parent ed1f758e
......@@ -210,7 +210,10 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap
@Override
public R<Boolean> updateByIdAsso(SysHouseHoldInfo hold) {
//户名称去空格
hold.setName(hold.getName().replace(" ",""));
//1.9.3版本处理线上空指针问题修改,增加户名判空
if (Common.isNotNull(hold.getName())) {
hold.setName(hold.getName().replace(" ", ""));
}
if (Common.isEmpty(hold.getId())){
return R.failed(CommonConstants.PARAM_INFO_ERROR);
}
......
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