diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyEarFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyEarFacade.java index c32e572..aa62a0d 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyEarFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyEarFacade.java @@ -684,17 +684,20 @@ public class BabyEarFacade { if (historyJson.containsKey("yesOrNo")) { int yesOrNo = historyJson.getIntValue("yesOrNo"); if (yesOrNo == 1) { - historyStr.append("有、"); + historyStr.append("有("); if (historyJson.containsKey("type")) { String type = historyJson.getString("type"); if ("yinJiu".equals(type)) { historyStr.append("饮酒、"); - } else if ("xiYan".equals(type)) { + } + if ("xiYan".equals(type)) { historyStr.append("吸烟、"); - } else if ("xiDu".equals(type)) { + } + if ("xiDu".equals(type)) { historyStr.append("吸毒"); } } + historyStr.append(")"); } else { historyStr.append("无"); } @@ -919,7 +922,7 @@ public class BabyEarFacade { if (historyJson.containsKey("yesOrNo")) { int yesOrNo = historyJson.getIntValue("yesOrNo"); if (1 == yesOrNo) { - historyStr.append("有、"); + historyStr.append("有("); } else { historyStr.append("无"); } @@ -928,11 +931,14 @@ public class BabyEarFacade { String type = historyJson.getString("type"); if ("yinJiu".equals(type)) { historyStr.append("饮酒、"); - } else if ("xiYan".equals(type)) { + } + if ("xiYan".equals(type)) { historyStr.append("吸烟、"); - } else if ("xiDu".equals(type)) { + } + if ("xiDu".equals(type)) { historyStr.append("吸毒"); } + historyStr.append(")"); } babyEarMotherView.setBadLifeHistoryType(historyStr.toString()); } @@ -1042,10 +1048,18 @@ public class BabyEarFacade { String parturitionType = CZFmTypeEnums.getTitle(babyPatientExtendEarBirth.getParturitionType()); babyEarBirthView.setParturitionType(parturitionType); } + if(babyPatientExtendEarBirth.getAmnioticFluidType()!=null){ + if(babyPatientExtendEarBirth.getAmnioticFluidType() == 1){ //1= I度 2=II度 3=III度 + babyEarBirthView.setAmnioticFluid("I度"); + }else if(babyPatientExtendEarBirth.getAmnioticFluidType() == 2){ //1= I度 2=II度 3=III度 + babyEarBirthView.setAmnioticFluid("II度"); + }else if(babyPatientExtendEarBirth.getAmnioticFluidType() == 2){ //1= I度 2=II度 3=III度 + babyEarBirthView.setAmnioticFluid("III度"); + } + } babyEarBirthView.setTireNumber(babyPatientExtendEarBirth.getTireNumber()); babyEarBirthView.setBirthDefectDesc(babyPatientExtendEarBirth.getBirthDefectDesc()); babyEarBirthView.setBirthInjuryPosition(babyPatientExtendEarBirth.getBirthInjuryPosition()); - babyEarBirthView.setAmnioticFluid(babyPatientExtendEarBirth.getAmnioticFluidType() == null ? "" : babyPatientExtendEarBirth.getAmnioticFluidType() + ""); String parturitType = "无"; if (babyPatientExtendEarBirth.getAbnormalParturitionType() != null) { if (babyPatientExtendEarBirth.getAbnormalParturitionType() == 1) {//有