Commit 8d90579bb6cea85a39cb4373b6769fd6c67f3dad
1 parent
2e2ece9638
Exists in
master
and in
6 other branches
产检
Showing 1 changed file with 8 additions and 8 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntExRecordFacade.java
View file @
8d90579
... | ... | @@ -925,16 +925,12 @@ |
925 | 925 | model.setAbdominalCircumference(abdominalGirth); |
926 | 926 | List<String> list = JsonUtil.jkstr2Obj(fhr, List.class); |
927 | 927 | if (CollectionUtils.isNotEmpty(list)) { |
928 | -// List<MatDeliverAddRequest.Placenta> placentaList = new ArrayList<>(); | |
929 | -// for (String l : list) { | |
930 | -// MatDeliverAddRequest.Placenta placenta = new MatDeliverAddRequest.Placenta(); | |
931 | -// placenta.setHeartRate(Double.parseDouble(l)); | |
932 | -// placentaList.add(placenta); | |
933 | -// } | |
934 | -// model.setTireData(placentaList); | |
935 | - | |
936 | 928 | List<Map> placentaList = new ArrayList<>(); |
937 | 929 | for (String l : list) { |
930 | + if (StringUtils.isEmpty(l)) | |
931 | + { | |
932 | + continue; | |
933 | + } | |
938 | 934 | Map map = new HashMap(); |
939 | 935 | map.put("heartRate", Double.parseDouble(l)); |
940 | 936 | placentaList.add(map); |
... | ... | @@ -986,6 +982,10 @@ |
986 | 982 | if (CollectionUtils.isNotEmpty(list)) { |
987 | 983 | List<Map> placentaList = new ArrayList<>(); |
988 | 984 | for (String l : list) { |
985 | + if (StringUtils.isEmpty(l)) | |
986 | + { | |
987 | + continue; | |
988 | + } | |
989 | 989 | Map map = new HashMap(); |
990 | 990 | map.put("heartRate", Double.parseDouble(l)); |
991 | 991 | placentaList.add(map); |