Browse Source

解析modeId映射修改

shiyue 4 years ago
parent
commit
a37c89da76
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/main/java/com/diagbot/facade/data/AMedicalRecordFacade.java

+ 6 - 3
src/main/java/com/diagbot/facade/data/AMedicalRecordFacade.java

@@ -280,9 +280,12 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
                 aMrContentVO.getRecords().stream().forEach(s -> {
                     queryVo.setHospitalId(s.getHospitalId().toString());
                     queryVo.setCid(basHospitalInfoFacade.getHosCode(s.getHospitalId()));
-
-//                    Long modeId = initModeId(s.getHospitalId(), s.getRecTypeId());
-                      Long modeId = s.getModeId();
+                    Long modeId ;
+                    if (null == s.getModeId()) {
+                        modeId = initModeId(s.getHospitalId(), s.getRecTypeId());
+                    }else {
+                        modeId = s.getModeId();
+                    }
                     s.getContents().stream().forEach(item -> {
                         //拼接入参用于结构化解析
                         AColumnContentVO aColumnContentVO = new AColumnContentVO();