Răsfoiți Sursa

fix:修复事后查看规则时,详情部分字段无法展示的问题

bywinkey 1 an în urmă
părinte
comite
9ef34f3cb5

+ 6 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/service/impl/ViolationAnalysisServiceImpl.java

@@ -300,6 +300,7 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
         result.setMedicalInsRuleInfoCode(detailInfo.getMedicalInsRuleInfoCode());
         result.setProjectName(detailInfo.getProejctName());
         result.setProjectCode(detailInfo.getProejctCode());
+        result.setCreateTime(detailInfo.getCreateTime());
         // 构建违规项目/药品明细
         ViolationsProjectMedicinesDetail v = new ViolationsProjectMedicinesDetail();
         v.setMedicalProjectCode(detailInfo.getMedicalInsRuleInfoCode());
@@ -323,6 +324,11 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
         violationsProjectMedicinesDetails.add(v);
         result.setLists(violationsProjectMedicinesDetails);
         PatientInformationResponse patientInformationResponse = afterwardsAuditDetailService.loadPatientInfoById(detailInfo.getAfterwardsAuditId(), afterwardsAuditService);
+        if (patientInformationResponse != null) {
+            if (!StringUtils.hasText(patientInformationResponse.getPatientName())) {
+                patientInformationResponse.setPatientName(detailInfo.getPatientName());
+            }
+        }
         // 构建患者信息
 //        PatientInformationResponse patientInformationResponse =
 //                midIncidentAuditDetailService.loadPatientInfoById(detailInfo.getMidIncidentAuditId().toString(), midIncidentAuditService);