|
@ -73,22 +73,13 @@ public class ReportPartyServiceImpl extends BaseServiceImpl<ReportPartyDao, Repo |
|
|
} |
|
|
} |
|
|
ParentAndAllDeptDTO deptDTO; |
|
|
ParentAndAllDeptDTO deptDTO; |
|
|
if (entity.getShiBei() == 1) { |
|
|
if (entity.getShiBei() == 1) { |
|
|
if (StringUtils.isNotEmpty(entity.getAllDeptNames())) { |
|
|
String[] ids = entity.getAllDeptIds().split(","); |
|
|
String[] names = entity.getAllDeptNames().split("-"); |
|
|
String deptId = ids.length == 4 ? ids[ids.length - 1] : ids[ids.length - 1]; |
|
|
if (names.length == 4) { |
|
|
deptDTO = adminFeignClient.getParentAndAllDept(deptId).getData(); |
|
|
dto.setParentDeptNames(entity.getAllDeptNames().substring(0, entity.getAllDeptNames().lastIndexOf("-"))); |
|
|
if (ids.length == 4) { |
|
|
} else { |
|
|
dto.setParentDeptNames(deptDTO.getParentDeptNames()); |
|
|
dto.setParentDeptNames(entity.getAllDeptNames()); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
String[] ids = entity.getAllDeptIds().split(","); |
|
|
dto.setParentDeptNames(deptDTO.getAllDeptNames()); |
|
|
String deptId = ids.length == 4 ? ids[ids.length - 2] : ids[ids.length - 1]; |
|
|
|
|
|
deptDTO = adminFeignClient.getParentAndAllDept(deptId).getData(); |
|
|
|
|
|
if (ids.length == 4) { |
|
|
|
|
|
dto.setParentDeptNames(deptDTO.getParentDeptNames()); |
|
|
|
|
|
} else { |
|
|
|
|
|
dto.setParentDeptNames(deptDTO.getAllDeptNames()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
String[] villageNames = entity.getVillageName().split("-"); |
|
|
String[] villageNames = entity.getVillageName().split("-"); |
|
|