切换mysql为达梦数据库-代码审查
1.systemboot模块
This commit is contained in:
@@ -147,7 +147,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
||||
//判断是否满足锁定时间
|
||||
if (nowTime.isBefore(lockTime)) {
|
||||
CommonResponseEnum testEnum = CommonResponseEnum.DYNAMIC_RESPONSE_ENUM;
|
||||
testEnum.setMessage("账号已被锁定:锁定剩余时长"+ ChronoUnit.MINUTES.between(nowTime, lockTime)+"分钟");
|
||||
testEnum.setMessage("账号已被锁定:锁定剩余时长" + ChronoUnit.MINUTES.between(nowTime, lockTime) + "分钟");
|
||||
throw new BusinessException(testEnum);
|
||||
}
|
||||
break;
|
||||
@@ -237,7 +237,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
||||
public boolean deleteUser(String id) {
|
||||
return this.lambdaUpdate()
|
||||
.set(User::getState, UserState.DELETE)
|
||||
.set(User::getPhone,null)
|
||||
.set(User::getPhone, null)
|
||||
.in(User::getId, id)
|
||||
.update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user