Commit cc8b1308 authored by wujipeng's avatar wujipeng
Browse files

删除用户优化

parent e88f7128
...@@ -205,11 +205,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme ...@@ -205,11 +205,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
@Override @Override
@Transactional @Transactional
public Boolean delete(String userName) { public Boolean delete(String userName) {
excelDataService.remove(new LambdaQueryWrapper<ExcelDataEntity>().eq(ExcelDataEntity::getPayUserName, userName)); excelDataService.remove(new LambdaQueryWrapper<ExcelDataEntity>().eq(ExcelDataEntity::getPayUserName, userName));
//删除关系 //删除关系
userRelationService.remove(new LambdaQueryWrapper<UserRelationEntity>().eq(UserRelationEntity::getUserName, userName)); userRelationService.remove(new LambdaQueryWrapper<UserRelationEntity>().eq(UserRelationEntity::getUserName, userName));
userRelationService.remove(new LambdaQueryWrapper<UserRelationEntity>().eq(UserRelationEntity::getOtherName, userName)); userRelationService.remove(new LambdaQueryWrapper<UserRelationEntity>().eq(UserRelationEntity::getOtherName, userName));
//删除账户
userAccountService.deleteByUserName(userName);
return remove(new LambdaQueryWrapper<UserEntity>().eq(UserEntity::getUserName, userName)); return remove(new LambdaQueryWrapper<UserEntity>().eq(UserEntity::getUserName, userName));
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment