|
|
@ -262,10 +262,10 @@ public class IcPartyOrgServiceImpl extends BaseServiceImpl<IcPartyOrgDao, IcPart |
|
|
|
} |
|
|
|
//如果类型为支部,则查询该行政组织下的所有党委(列表)
|
|
|
|
if(PartyOrgTypeEnum.BRANCH.getCode().equals(formDTO.getPartyOrgType())){ |
|
|
|
list.addAll(baseDao.selectParentOrgByAgencyPid(agencyPid,formDTO.getCustomerId(),PartyOrgTypeEnum.PARTY.getCode())); |
|
|
|
list.addAll(baseDao.selectParentOrgByAgencyPid(formDTO.getAgencyId(),null,formDTO.getCustomerId(),PartyOrgTypeEnum.PARTY.getCode())); |
|
|
|
}else{ |
|
|
|
//查询该行政组织对应上级所关联的党组织(单个实体类)
|
|
|
|
list.addAll(baseDao.selectParentOrgByAgencyPid(agencyPid,formDTO.getCustomerId(),null)); |
|
|
|
list.addAll(baseDao.selectParentOrgByAgencyPid(null,agencyPid,formDTO.getCustomerId(),null)); |
|
|
|
} |
|
|
|
return new Result<List<IcPartyOrgTreeDTO>>().ok(list); |
|
|
|
} |
|
|
|