style: 代码格式化

This commit is contained in:
郝先瑞
2023-04-23 07:44:41 +08:00
parent 7dfb621913
commit 71835c9217

View File

@@ -57,12 +57,12 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
.filter(roleId -> !roleIds.contains(roleId))
.collect(Collectors.toList());
if(CollectionUtil.isNotEmpty(removeRoleIds)){
this.remove(new LambdaQueryWrapper<SysUserRole>()
.eq(SysUserRole::getUserId, userId)
.in(SysUserRole::getRoleId, removeRoleIds)
);
}
if (CollectionUtil.isNotEmpty(removeRoleIds)) {
this.remove(new LambdaQueryWrapper<SysUserRole>()
.eq(SysUserRole::getUserId, userId)
.in(SysUserRole::getRoleId, removeRoleIds)
);
}
}
return true;