Commit 90e8e2d5c028d6e8f22f54d70031ef1135d0889a

Authored by liquanyu
1 parent f21e93d3c4

大同三打印

Showing 1 changed file with 5 additions and 15 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java View file @ 90e8e2d
... ... @@ -7892,21 +7892,11 @@
7892 7892 List<MatDeliverAddRequest.Placenta> placentas = data.getPlacentas();
7893 7893 if (CollectionUtils.isNotEmpty(placentas)) {
7894 7894 for (Object obj : placentas) {
7895   - if ("com.lyms.platform.operate.web.request.MatDeliverAddRequest$Placenta".equals(obj.getClass().getName())) {
7896   - //转换类型
7897   - MatDeliverAddRequest.Placenta placenta = (MatDeliverAddRequest.Placenta) obj;
7898   - //胎方位
7899   - if (StringUtils.isNotEmpty(placenta.getFetalPosition())) {
7900   - for (FetalPositionEnums fetalPositionEnums : FetalPositionEnums.values()) {
7901   - if (fetalPositionEnums.getId().equals(placenta.getFetalPosition())) {
7902   - fetalPosition += fetalPositionEnums.getName() +" ";
7903   - break;
7904   - }
7905   - }
7906   - }
7907   - //胎心率
7908   - heartRate += placenta.getHeartRate() == null ? "" : placenta.getHeartRate().toString() +" ";
7909   - }
  7895 + LinkedHashMap placenta = (LinkedHashMap)obj;
  7896 + //胎方位
  7897 + fetalPosition += placenta.get("fetalPosition") == null ? "" : FetalPositionEnums.getTitle(String.valueOf(placenta.get("fetalPosition")))+" ";
  7898 + heartRate += placenta.get("heartRate") == null ? "" : String.valueOf(placenta.get("heartRate"))+" ";
  7899 + //胎心率
7910 7900 }
7911 7901 }
7912 7902 }