|
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.fdkankan.common.constant.CommonStatus;
|
|
import com.fdkankan.common.constant.CommonStatus;
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
|
+import com.fdkankan.common.constant.TbStatus;
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
import com.fdkankan.common.util.Base64Converter;
|
|
import com.fdkankan.common.util.Base64Converter;
|
|
import com.fdkankan.common.util.PasswordUtils;
|
|
import com.fdkankan.common.util.PasswordUtils;
|
|
@@ -274,8 +275,15 @@ public class AccountServiceImpl extends ServiceImpl<IAccountMapper, Account> imp
|
|
if(Objects.isNull(account)){
|
|
if(Objects.isNull(account)){
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_3021);
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_3021);
|
|
}
|
|
}
|
|
- this.removeById(account.getId());
|
|
|
|
|
|
+ account.setUpdaterId(accountDTO.getUpdaterId());
|
|
|
|
+ account.setUpdateTime(new Date());
|
|
|
|
+ account.setTbStatus(TbStatus.DELETE.code());
|
|
|
|
+ this.updateById(account);
|
|
|
|
+
|
|
UserAuthInfo userAuthInfo = userAuthService.findByAccountId(account.getId());
|
|
UserAuthInfo userAuthInfo = userAuthService.findByAccountId(account.getId());
|
|
- userAuthService.removeById(userAuthInfo.getId());
|
|
|
|
|
|
+ userAuthInfo.setUpdaterId(account.getUpdaterId());
|
|
|
|
+ userAuthInfo.setUpdateTime(new Date());
|
|
|
|
+ userAuthInfo.setTbStatus(TbStatus.DELETE.code());
|
|
|
|
+ userAuthService.updateById(userAuthInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|