Commit a55f0144c55e257ba9712769ea69b71baf9b4cf6
1 parent
de684a1a5d
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyStatisticsFacade.java
View file @
a55f014
... | ... | @@ -366,7 +366,7 @@ |
366 | 366 | //ๅ็ |
367 | 367 | if(countZ !=null && countM !=null){ |
368 | 368 | Double fld = (double)countZ/countM * 100; |
369 | - if(fld <=0.01 || Double.isNaN(fld)){ | |
369 | + if(fld <=0.01 || Double.isNaN(fld) || Double.isInfinite(fld) ){ | |
370 | 370 | fld = 0.01; |
371 | 371 | } |
372 | 372 | map.put("fl", new DecimalFormat("0.00").format(fld)+"%"); |