Commit c192b93e by guojuxing

删除用户的时候同时删除角色和资源

parent ffebd881
......@@ -150,6 +150,10 @@ public class UserApiServiceImpl implements UserApiService {
if (tabUser == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "用户ID输入有误,无此数据");
}
//删除角色关联
userRoleService.deleteByUserId(userId);
//删除资源关联
userResourceService.deleteByUserId(userId);
userService.delete(userId);
return ServiceResponse.success();
}
......
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