Commit 09b7d8d8ca1a58def5f79378f6a589e0a326573b

Authored by gengxiaokai
1 parent 2dc448d18d

威海分娩打印修改

Showing 1 changed file with 8 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java View file @ 09b7d8d
... ... @@ -489,12 +489,14 @@
489 489 }
490 490 }
491 491 if(0 == nu && !"-".equals(queryModel.getBabyWeight())){
492   - String w = String.valueOf(Double.parseDouble(queryModel.getBabyWeight()) * 1000);
493   - int dex = w.indexOf(".");
494   - if(-1 == dex){
495   - weight=w+"";
496   - }else{
497   - weight=w.substring(0,dex)+"";
  492 + if(StringUtils.isNotEmpty(queryModel.getBabyWeight())){
  493 + String w = String.valueOf(Double.parseDouble(queryModel.getBabyWeight()) * 1000);
  494 + int dex = w.indexOf(".");
  495 + if(-1 == dex){
  496 + weight=w+"";
  497 + }else{
  498 + weight=w.substring(0,dex)+"";
  499 + }
498 500 }
499 501 //weight = (Double.parseDouble(queryModel.getBabyWeight()) * 1000)+"";
500 502 }