|
|
@ -171,6 +171,21 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
|
|
|
super.lambdaUpdate().set(SystemUser::getStatus, userStatusReqVo.getStatus())
|
|
|
|
super.lambdaUpdate().set(SystemUser::getStatus, userStatusReqVo.getStatus())
|
|
|
|
.eq(SystemUser::getId, userStatusReqVo.getId()).update();
|
|
|
|
.eq(SystemUser::getId, userStatusReqVo.getId()).update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public boolean changePassWord(String account, String password) {
|
|
|
|
|
|
|
|
Assert.notEmpty(account, "账号不能为空");
|
|
|
|
|
|
|
|
Assert.notEmpty(password, "密码不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Long count = super.lambdaQuery().eq(SystemUser::getAccount, account).count();
|
|
|
|
|
|
|
|
if (count == 0){
|
|
|
|
|
|
|
|
log.info("账号:{}不存在", account);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return super.lambdaUpdate().set(SystemUser::getUserPd, UserUtil.signPassword(password))
|
|
|
|
|
|
|
|
.eq(SystemUser::getAccount, account).update();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|