|
|
@@ -3232,6 +3232,8 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
3232
|
3232
|
if (CollectionUtil.isNotEmpty(agentUser.getRoles())) {
|
|
3233
|
3233
|
longList = agentUser.getRoles().stream().map(SysRole::getRoleId).collect(Collectors.toList());
|
|
3234
|
3234
|
if (!longList.contains(roleId)) {
|
|
|
3235
|
+ // 删除之前关联的角色
|
|
|
3236
|
+ userRoleMapper.deleteUserRoleByUserId(agentUser.getUserId());
|
|
3235
|
3237
|
userRoleMapper.insertUserRole(agentUser.getUserId(), roleId);
|
|
3236
|
3238
|
}
|
|
3237
|
3239
|
} else {
|