|
|
@ -34,7 +34,7 @@ public class SysUserRoleServiceImpl implements SysUserRoleService { |
|
|
|
Date nowTime=new Date(); |
|
|
|
Date nowTime=new Date(); |
|
|
|
sysUserRoleDao.deleteByUserId(id); |
|
|
|
sysUserRoleDao.deleteByUserId(id); |
|
|
|
if (roleList!=null&&roleList.size()>0) { |
|
|
|
if (roleList!=null&&roleList.size()>0) { |
|
|
|
for (Long roleId : roleList) { |
|
|
|
roleList.forEach(roleId->{ |
|
|
|
SysUserRole sysUserRole = findByRoleIdAndUserId(id, roleId); |
|
|
|
SysUserRole sysUserRole = findByRoleIdAndUserId(id, roleId); |
|
|
|
if (sysUserRole != null) { |
|
|
|
if (sysUserRole != null) { |
|
|
|
sysUserRole.setStatus(StatusTypeEnum.STATUS_ACTIVITY_YES.getValue()); |
|
|
|
sysUserRole.setStatus(StatusTypeEnum.STATUS_ACTIVITY_YES.getValue()); |
|
|
@ -49,7 +49,7 @@ public class SysUserRoleServiceImpl implements SysUserRoleService { |
|
|
|
sysUserRole.setRoleId(roleId); |
|
|
|
sysUserRole.setRoleId(roleId); |
|
|
|
sysUserRoleDao.save(sysUserRole); |
|
|
|
sysUserRoleDao.save(sysUserRole); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|