修复手机号更改被清空问题

v1.4.1
hiparker 5 years ago
parent d1ace77e08
commit cf94970bca

@ -203,7 +203,8 @@ public class UserServiceImpl extends CrudServiceImpl<UserMapper, SysUser, UserMo
if(!StringUtils.equals(userModel.getMobile(), update.getMobile())){
UpdateWrapper<SysUser> updateWrapper = new UpdateWrapper<>();
updateWrapper.set("mobile", null);
updateWrapper.eq("mobile", update.getMobile());
updateWrapper.eq("mobile", model.getMobile());
updateWrapper.notIn(MyBatisConstants.FIELD_ID, update.getId());
this.update(updateWrapper);
}

Loading…
Cancel
Save