From d79cb017fffcbaab4e95fa4200999122605f51a9 Mon Sep 17 00:00:00 2001 From: yangfei Date: Sat, 22 Jul 2017 11:39:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=9F=8E=E5=A6=87=E5=B9=BC=E4=BA=A7?= =?UTF-8?q?=E6=A3=80=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/facade/ViewFacade.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 bf57a33..c1d6fcd 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 @@ -1378,6 +1378,27 @@ public class ViewFacade { List antExcAddOthers = data.getAntExcAddOthers(); if (CollectionUtils.isNotEmpty(antExcAddOthers)) { for (Object obj : antExcAddOthers) { + if ("com.lyms.platform.operate.web.request.AntExcAddOther".equals(obj.getClass().getName())) { + //转换类型 + AntExcAddOther antExcAddOther = (AntExcAddOther) obj; + Map mapData = new HashMap<>(); + + if(antExcAddOther.getGestaMonth()!=null){ + mapData.put("gestaMonth", GestaMonthEnums.getTitle(antExcAddOther.getGestaMonth())); + } + mapData.put("gestaDate", antExcAddOther.getGestaDate()); + if(antExcAddOther.getFmType()!=null){ + mapData.put("fmType", CZFmTypeEnums.getTitle(antExcAddOther.getFmType())); + } + mapData.put("fmTypeRemark", antExcAddOther.getFmTypeRemark()); + if(antExcAddOther.getFitness()!=null){ + mapData.put("fitness", FitnessEnums.getTitle(antExcAddOther.getFitness())); + } + mapData.put("fitnessRemark", antExcAddOther.getFitnessRemark()); + mapData.put("newborWeight", antExcAddOther.getNewborWeight()); + antExcAddOthersList.add(mapData); + } + if ("java.util.LinkedHashMap".equals(obj.getClass().getName())) { Map otherMap = (Map) obj; if (MapUtils.isNotEmpty(otherMap)) { -- 1.8.3.1