From 90e8e2d5c028d6e8f22f54d70031ef1135d0889a Mon Sep 17 00:00:00 2001 From: liquanyu Date: Thu, 17 Sep 2020 12:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=90=8C=E4=B8=89=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyms/platform/operate/web/facade/ViewFacade.java | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java index 22d1a74..2cd4478 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java @@ -7892,21 +7892,11 @@ public class ViewFacade { List placentas = data.getPlacentas(); if (CollectionUtils.isNotEmpty(placentas)) { for (Object obj : placentas) { - if ("com.lyms.platform.operate.web.request.MatDeliverAddRequest$Placenta".equals(obj.getClass().getName())) { - //转换类型 - MatDeliverAddRequest.Placenta placenta = (MatDeliverAddRequest.Placenta) obj; - //胎方位 - if (StringUtils.isNotEmpty(placenta.getFetalPosition())) { - for (FetalPositionEnums fetalPositionEnums : FetalPositionEnums.values()) { - if (fetalPositionEnums.getId().equals(placenta.getFetalPosition())) { - fetalPosition += fetalPositionEnums.getName() +" "; - break; - } - } - } - //胎心率 - heartRate += placenta.getHeartRate() == null ? "" : placenta.getHeartRate().toString() +" "; - } + LinkedHashMap placenta = (LinkedHashMap)obj; + //胎方位 + fetalPosition += placenta.get("fetalPosition") == null ? "" : FetalPositionEnums.getTitle(String.valueOf(placenta.get("fetalPosition")))+" "; + heartRate += placenta.get("heartRate") == null ? "" : String.valueOf(placenta.get("heartRate"))+" "; + //胎心率 } } } -- 1.8.3.1