|
|
@@ -67,7 +67,7 @@ public class DefaultDeclaredProjectManage { |
|
|
|
.build(); |
|
|
|
} |
|
|
|
|
|
|
|
public Map<String, OrgInfoDTO> getOrgModelInfo(Long userId, WflowModels model) { |
|
|
|
public Map<String, OrgInfoDTO> getOrgModelInfo(Long userId) { |
|
|
|
Map<String, OrgInfoDTO> orgMap = new HashMap<>(); |
|
|
|
|
|
|
|
// 查出所有的单位流程配置 |
|
|
@@ -78,8 +78,16 @@ public class DefaultDeclaredProjectManage { |
|
|
|
.eq(DingOrganization::getOrganizationCode, userFullInfo.getOrganizationCode())); |
|
|
|
String startOrgCode = startOrg.getOrganizationCode(); |
|
|
|
String startOrgName = startOrg.getOrganizationName(); |
|
|
|
String startOrgParentCode = startOrg.getParentCode(); |
|
|
|
String startOrgParentName = startOrg.getParentName(); |
|
|
|
String startOrgParentCode; |
|
|
|
String startOrgParentName; |
|
|
|
// 如果没有上级主管单位,由该单位自己审核 |
|
|
|
if (Objects.isNull(startOrg.getParentCode())){ |
|
|
|
startOrgParentCode = startOrgCode; |
|
|
|
startOrgParentName = startOrgName; |
|
|
|
}else { |
|
|
|
startOrgParentCode = startOrg.getParentCode(); |
|
|
|
startOrgParentName = startOrg.getParentName(); |
|
|
|
} |
|
|
|
//查询 当前发起人及主管单位所在区域的 单位流程配置 |
|
|
|
OrgInfoDTO startOrgInfoDto = new OrgInfoDTO(); |
|
|
|
startOrgInfoDto.setOrganizationCode(startOrgCode); |
|
|
@@ -105,6 +113,8 @@ public class DefaultDeclaredProjectManage { |
|
|
|
orgMap.put(OrgTypeEnum.TARGET_OWNER.name(),startOrgInfoDto); |
|
|
|
orgMap.put(OrgTypeEnum.TARGET_MANAGEMENT.name(),parentOrgInfoDto); |
|
|
|
|
|
|
|
// TODO 上级条线主管单位信息(可能是多个) |
|
|
|
|
|
|
|
// 如果是指定单位,直接根据流程定义ID放入map |
|
|
|
OrgInfoDTO orgInfoDTO = new OrgInfoDTO(); |
|
|
|
orgInfoDTO.setOrgModelMap(orgModelsList.stream() |
|
|
|