screen-manage
修改后台自己删除自己的bug
| | |
| | | accountDTO.setMsg(ResponseCodeEnum.ACCOUNT_NOT_EXIST.getMsg()); |
| | | return accountDTO; |
| | | } |
| | | //禁止删除自己的账号 |
| | | AccountInfoDTO accountInfo = (AccountInfoDTO) TokenUtils.getUserInfo(); |
| | | if(accountInfo.getAccount().getId().equals(accountId)){ |
| | | accountDTO.setCode(ResponseCodeEnum.CANNOT_DELETE_ONESELF.getCode()); |
| | | accountDTO.setMsg(ResponseCodeEnum.CANNOT_DELETE_ONESELF.getMsg()); |
| | | return accountDTO; |
| | | } |
| | | //逻辑删除账号 |
| | | UpdateWrapper<ManageAccount> deleteAccountWrapper = new UpdateWrapper<>(); |
| | | deleteAccountWrapper.eq("id", accountId); |