|
@@ -98,12 +98,14 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
sysUserChannelMapper.deleteByUserId(user.getUserId());
|
|
sysUserChannelMapper.deleteByUserId(user.getUserId());
|
|
|
if (CollUtil.isEmpty(user.getRoleIdList())&& CollUtil.isEmpty(user.getChannelIdList())) {
|
|
if (CollUtil.isEmpty(user.getRoleIdList())&& CollUtil.isEmpty(user.getChannelIdList())) {
|
|
|
return;
|
|
return;
|
|
|
- }else if (!CollUtil.isEmpty(user.getRoleIdList())){
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!CollUtil.isEmpty(user.getRoleIdList())){
|
|
|
//保存用户与角色关系
|
|
//保存用户与角色关系
|
|
|
sysUserRoleMapper.insertUserAndUserRole(user.getUserId(), user.getRoleIdList());
|
|
sysUserRoleMapper.insertUserAndUserRole(user.getUserId(), user.getRoleIdList());
|
|
|
- }else if (!CollUtil.isEmpty(user.getChannelIdList())){
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!CollUtil.isEmpty(user.getChannelIdList())){
|
|
|
//保存用户与企业关系
|
|
//保存用户与企业关系
|
|
|
- sysUserChannelMapper.insertUserAndUserChannel(user.getUserId(), user.getRoleIdList());
|
|
|
|
|
|
|
+ sysUserChannelMapper.insertUserAndUserChannel(user.getUserId(), user.getChannelIdList());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 更新用户部门信息
|
|
// 更新用户部门信息
|