Commit d79cb017fffcbaab4e95fa4200999122605f51a9

Authored by yangfei
1 parent fbbce7dd3a

聊城妇幼产检增加字段

Showing 1 changed file with 21 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java View file @ d79cb01
... ... @@ -1378,6 +1378,27 @@
1378 1378 List<AntExcAddOther> antExcAddOthers = data.getAntExcAddOthers();
1379 1379 if (CollectionUtils.isNotEmpty(antExcAddOthers)) {
1380 1380 for (Object obj : antExcAddOthers) {
  1381 + if ("com.lyms.platform.operate.web.request.AntExcAddOther".equals(obj.getClass().getName())) {
  1382 + //转换类型
  1383 + AntExcAddOther antExcAddOther = (AntExcAddOther) obj;
  1384 + Map<String, Object> mapData = new HashMap<>();
  1385 +
  1386 + if(antExcAddOther.getGestaMonth()!=null){
  1387 + mapData.put("gestaMonth", GestaMonthEnums.getTitle(antExcAddOther.getGestaMonth()));
  1388 + }
  1389 + mapData.put("gestaDate", antExcAddOther.getGestaDate());
  1390 + if(antExcAddOther.getFmType()!=null){
  1391 + mapData.put("fmType", CZFmTypeEnums.getTitle(antExcAddOther.getFmType()));
  1392 + }
  1393 + mapData.put("fmTypeRemark", antExcAddOther.getFmTypeRemark());
  1394 + if(antExcAddOther.getFitness()!=null){
  1395 + mapData.put("fitness", FitnessEnums.getTitle(antExcAddOther.getFitness()));
  1396 + }
  1397 + mapData.put("fitnessRemark", antExcAddOther.getFitnessRemark());
  1398 + mapData.put("newborWeight", antExcAddOther.getNewborWeight());
  1399 + antExcAddOthersList.add(mapData);
  1400 + }
  1401 +
1381 1402 if ("java.util.LinkedHashMap".equals(obj.getClass().getName())) {
1382 1403 Map<String, Object> otherMap = (Map<String, Object>) obj;
1383 1404 if (MapUtils.isNotEmpty(otherMap)) {