|
@ -29,6 +29,7 @@ import com.elink.esua.epdc.dao.SysDeptDao; |
|
|
import com.elink.esua.epdc.dao.SysRoleDao; |
|
|
import com.elink.esua.epdc.dao.SysRoleDao; |
|
|
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO; |
|
|
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO; |
|
|
import com.elink.esua.epdc.dto.RoleModuleRealationDTO; |
|
|
import com.elink.esua.epdc.dto.RoleModuleRealationDTO; |
|
|
|
|
|
import com.elink.esua.epdc.dto.RoleOverseeDeptRelationDTO; |
|
|
import com.elink.esua.epdc.dto.SysRoleDTO; |
|
|
import com.elink.esua.epdc.dto.SysRoleDTO; |
|
|
import com.elink.esua.epdc.dto.handleroledept.HandleRoleDeptDTO; |
|
|
import com.elink.esua.epdc.dto.handleroledept.HandleRoleDeptDTO; |
|
|
import com.elink.esua.epdc.dto.handleroledept.form.HandleRoleDeptFormDTO; |
|
|
import com.elink.esua.epdc.dto.handleroledept.form.HandleRoleDeptFormDTO; |
|
@ -159,6 +160,12 @@ public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleDao, SysRoleEntit |
|
|
moduleDto.setModuleMenuIdList(dto.getModuleMenuIdList()); |
|
|
moduleDto.setModuleMenuIdList(dto.getModuleMenuIdList()); |
|
|
newsFeignClient.saveRoleModuleRealation(moduleDto); |
|
|
newsFeignClient.saveRoleModuleRealation(moduleDto); |
|
|
|
|
|
|
|
|
|
|
|
//保存角色督办部门关系
|
|
|
|
|
|
RoleOverseeDeptRelationDTO overseeDto = new RoleOverseeDeptRelationDTO(); |
|
|
|
|
|
overseeDto.setId(entity.getId()); |
|
|
|
|
|
overseeDto.setOverseeMenuIdList(dto.getOverseeMenuIdList()); |
|
|
|
|
|
eventFeignClient.saveRoleOverseeRelation(overseeDto); |
|
|
|
|
|
|
|
|
handleEpdcUserRole(dto, entity, true); |
|
|
handleEpdcUserRole(dto, entity, true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -270,6 +277,14 @@ public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleDao, SysRoleEntit |
|
|
moduleDto.setModuleMenuIdList(dto.getModuleMenuIdList()); |
|
|
moduleDto.setModuleMenuIdList(dto.getModuleMenuIdList()); |
|
|
newsFeignClient.updateRoleModuleRealation(moduleDto); |
|
|
newsFeignClient.updateRoleModuleRealation(moduleDto); |
|
|
|
|
|
|
|
|
|
|
|
newsFeignClient.updateRoleModuleRealation(moduleDto); |
|
|
|
|
|
|
|
|
|
|
|
//更新角色督办部门关系
|
|
|
|
|
|
RoleOverseeDeptRelationDTO overseeDto = new RoleOverseeDeptRelationDTO(); |
|
|
|
|
|
overseeDto.setId(entity.getId()); |
|
|
|
|
|
overseeDto.setOverseeMenuIdList(dto.getOverseeMenuIdList()); |
|
|
|
|
|
eventFeignClient.updateRoleOverseeRelation(overseeDto); |
|
|
|
|
|
|
|
|
handleEpdcUserRole(dto, entity, true); |
|
|
handleEpdcUserRole(dto, entity, true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -322,6 +337,12 @@ public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleDao, SysRoleEntit |
|
|
return result.getData(); |
|
|
return result.getData(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public List<Long> getOverseeMenuIdList(Long id) { |
|
|
|
|
|
Result<List<Long>> result = eventFeignClient.getOverseeMenuIdList(id); |
|
|
|
|
|
return result.getData(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param roleId |
|
|
* @param roleId |
|
|
* @param whistleDeptIdList |
|
|
* @param whistleDeptIdList |
|
|