Commit 452fb4353aad0b15e1d04ee7ec2ccfe409e9315d
1 parent
e42308e814
Exists in
master
and in
6 other branches
分娩报告卡导出
Showing 1 changed file with 6 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java
View file @
452fb43
... | ... | @@ -458,9 +458,11 @@ |
458 | 458 | map.put("thloseBloodL",queryModel.getThloseBloodL() == null ? "" : queryModel.getThloseBloodL()); |
459 | 459 | map.put("sex",queryModel.getSex()); |
460 | 460 | map.put("height",queryModel.getBabyHeight()); |
461 | + int nu = 0; | |
461 | 462 | String weight = ""; |
462 | 463 | if (StringUtils.isNotEmpty(queryModel.getBabyWeight()) && queryModel.getBabyWeight().contains(",")) |
463 | 464 | { |
465 | + nu = 1; | |
464 | 466 | String arrs[] = queryModel.getBabyWeight().split(","); |
465 | 467 | for (int i = 0 ; i < arrs.length ; i++) |
466 | 468 | { |
... | ... | @@ -478,8 +480,10 @@ |
478 | 480 | |
479 | 481 | } |
480 | 482 | } |
481 | - | |
482 | - map.put("weight",queryModel.getBabyWeight()); | |
483 | + if(0 == nu && !"-".equals(queryModel.getBabyWeight())){ | |
484 | + weight = (Double.parseDouble(queryModel.getBabyWeight()) * 1000)+""; | |
485 | + } | |
486 | + map.put("weight",weight); | |
483 | 487 | //评分 |
484 | 488 | map.put("apgarScorePf1",queryModel.getApgarScorePf1()); |
485 | 489 | map.put("apgarScorePf5",queryModel.getApgarScorePf5()); |