Commit baff05d17a0d7827f5fc51dc2053ee77a96eccdd
1 parent
3711f93a24
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 15 additions and 10 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
baff05d
... | ... | @@ -2272,20 +2272,25 @@ |
2272 | 2272 | // 产后2小时血压 收缩压,舒张压 |
2273 | 2273 | String ssy2h = ""; |
2274 | 2274 | String szy2h = ""; |
2275 | - Map<String, String> ch2BpMap = JsonUtil.getMap(data.getCh2Bp()); | |
2276 | - if (MapUtils.isNotEmpty(ch2BpMap)) { | |
2277 | - ssy2h = ch2BpMap.get("ssy"); | |
2278 | - szy2h = ch2BpMap.get("szy"); | |
2275 | + Map<String, String> ch2BpMap = null; | |
2276 | + if (StringUtils.isNotEmpty(data.getCh2Bp())) | |
2277 | + { | |
2278 | + ch2BpMap = JsonUtil.getMap(data.getCh2Bp()); | |
2279 | + if (MapUtils.isNotEmpty(ch2BpMap)) { | |
2280 | + ssy2h = ch2BpMap.get("ssy"); | |
2281 | + szy2h = ch2BpMap.get("szy"); | |
2279 | 2282 | |
2280 | - if (StringUtils.isNotEmpty(ssy2h)) { | |
2281 | - map.put("ssy2h", UnitUtils.unitSplice(ssy2h, UnitConstants.MMHG)); | |
2282 | - } | |
2283 | + if (StringUtils.isNotEmpty(ssy2h)) { | |
2284 | + map.put("ssy2h", UnitUtils.unitSplice(ssy2h, UnitConstants.MMHG)); | |
2285 | + } | |
2283 | 2286 | |
2284 | - if (StringUtils.isNotEmpty(szy2h)) { | |
2285 | - map.put("szy2h", UnitUtils.unitSplice(szy2h, UnitConstants.MMHG)); | |
2286 | - } | |
2287 | + if (StringUtils.isNotEmpty(szy2h)) { | |
2288 | + map.put("szy2h", UnitUtils.unitSplice(szy2h, UnitConstants.MMHG)); | |
2289 | + } | |
2287 | 2290 | |
2291 | + } | |
2288 | 2292 | } |
2293 | + | |
2289 | 2294 | // map.put("ssy2h",UnitUtils.unitSplice(ssy2h,UnitConstants.MMHG)); |
2290 | 2295 | // map.put("szy2h", UnitUtils.unitSplice(szy2h,UnitConstants.MMHG)); |
2291 | 2296 |