Commit 6d6733cecf6221a6919293da450dc951d441dec6
1 parent
d1a584f3d5
Exists in
master
and in
6 other branches
体重报告
Showing 1 changed file with 11 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
6d6733c
| ... | ... | @@ -312,14 +312,20 @@ |
| 312 | 312 | Map<String, Object> map = ReflectionUtils.beanToMap(patientWeight); |
| 313 | 313 | //http://jira.healthbaby.com.cn/browse/WEB-2744 |
| 314 | 314 | String bregmatic = ""; |
| 315 | - if (StringUtils.isEmpty(patientWeight.getBregmatic()) || "null".equals(patientWeight.getBregmatic())) | |
| 315 | + try { | |
| 316 | + if (StringUtils.isEmpty(patientWeight.getBregmatic()) || "null".equals(patientWeight.getBregmatic())) | |
| 317 | + { | |
| 318 | + bregmatic = "未知"; | |
| 319 | + } | |
| 320 | + else | |
| 321 | + { | |
| 322 | + bregmatic = BregmaticEnums2.getName(patientWeight.getBregmatic()); | |
| 323 | + } | |
| 324 | + }catch (Exception e) | |
| 316 | 325 | { |
| 317 | 326 | bregmatic = "未知"; |
| 318 | 327 | } |
| 319 | - else | |
| 320 | - { | |
| 321 | - bregmatic = BregmaticEnums2.getName(patientWeight.getBregmatic()); | |
| 322 | - } | |
| 328 | + | |
| 323 | 329 | map.put("bregmatic",bregmatic); |
| 324 | 330 | map.put("bim", patientWeight.getBmi()); // 体质指数(BMI)=体重(kg)÷身高^2(m) |
| 325 | 331 |