|
|
@@ -41,6 +41,8 @@ public class MzChargeDetailController {
|
|
|
private MzReceiptSerialService mzReceiptSerialService;
|
|
|
@Autowired
|
|
|
private MzPatientMiService mzPatientMiService;
|
|
|
+ @Autowired
|
|
|
+ private ZyZdAuditItemService zyZdAuditItemService;
|
|
|
|
|
|
/**
|
|
|
* 查询费用列表
|
|
|
@@ -954,8 +956,6 @@ public class MzChargeDetailController {
|
|
|
thmzmxsrParamsVo.setHisData(YesNoEnum.YES);
|
|
|
//历史数据
|
|
|
List<Map<String, Object>> depetBusinessReportsHis = mzChargeDetailService.queryDepetBusinessReport(thmzmxsrParamsVo);
|
|
|
-
|
|
|
-
|
|
|
if (fomartThmzBussinessReport(resultMap, depetBusinessReports, depetBusinessReportsHis)) return resultMap;
|
|
|
resultMap.put("code", -1);
|
|
|
resultMap.put("message", "未查询到科室核算报表");
|
|
|
@@ -986,14 +986,19 @@ public class MzChargeDetailController {
|
|
|
Set<String> depetSet = new HashSet<>();
|
|
|
//父类码与核算码的关系
|
|
|
Map<String, List<String>> parentMap = new HashMap<>();
|
|
|
+ List<ZyZdAuditItem> zyZdAuditItems= zyZdAuditItemService.querytAll();
|
|
|
+ //实际项目与父类码对应关系,因为数据查询中的父类码不准
|
|
|
+ Map<String, String> auditMap = zyZdAuditItems.stream().collect(Collectors.toMap(ZyZdAuditItem::getName,ZyZdAuditItem::getParentCode));
|
|
|
for (Map<String, Object> map : depetBusinessReports) {
|
|
|
repeatSet.add((Date) map.get("charge_dcount_date"));
|
|
|
+ map.put("parent",auditMap.get(map.get("audit_code")));
|
|
|
fomartData(mzBillItemMap, parentList, depetList, depetSet, parentMap, map);
|
|
|
}
|
|
|
for (Map<String, Object> map : depetBusinessReportsHis) {
|
|
|
if (repeatSet.contains(map.get("charge_dcount_date"))) {
|
|
|
continue;
|
|
|
}
|
|
|
+ map.put("parent",auditMap.get(map.get("audit_code")));
|
|
|
depetBusinessReports.add(map);
|
|
|
fomartData(mzBillItemMap, parentList, depetList, depetSet, parentMap, map);
|
|
|
}
|