Commit 75a41ec5855f0d869f667034ca24c353b17b243a
1 parent
f86c200cdc
Exists in
master
and in
6 other branches
儿童营养报告
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java
View file @
75a41ec
| ... | ... | @@ -655,7 +655,7 @@ |
| 655 | 655 | Double protein = (elements.get(food.getNutritionName()) == null ? 0 : elements.get(food.getNutritionName())); |
| 656 | 656 | if (food.getProtein() != null) |
| 657 | 657 | { |
| 658 | - elements.put(food.getNutritionName(),protein == null ? food.getProtein() : protein+food.getProtein()*Double.parseDouble(val)); | |
| 658 | + elements.put(food.getNutritionName(),protein == null ? food.getProtein() : protein+(food.getProtein()*Double.parseDouble(val)/100)); | |
| 659 | 659 | } |
| 660 | 660 | |
| 661 | 661 | } |