Commit 6a0558f7c751a9a1d61c46539c4bac621416d8f4
1 parent
360e63b432
Exists in
master
and in
6 other branches
12333
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
6a0558f
... | ... | @@ -14,6 +14,7 @@ |
14 | 14 | import com.lyms.platform.operate.web.facade.AutoMatchFacade; |
15 | 15 | import com.lyms.platform.operate.web.service.IBloodSugarService; |
16 | 16 | import com.lyms.platform.operate.web.utils.CollectionUtils; |
17 | +import com.lyms.platform.operate.web.utils.MathUtil; | |
17 | 18 | import com.lyms.platform.operate.web.utils.MongoUtil; |
18 | 19 | import com.lyms.platform.pojo.BloodSugar; |
19 | 20 | import com.lyms.platform.pojo.Patients; |
... | ... | @@ -314,7 +315,7 @@ |
314 | 315 | Map<String, Object> map = entry.getValue(); |
315 | 316 | Integer dayCount = (Integer) map.get("dayCount"); |
316 | 317 | Double sugarCount = (Double) map.get("sugarCount"); |
317 | - monthMap.put("value", sugarCount / dayCount + ""); | |
318 | + monthMap.put("value", MathUtil.doubleFormat2(sugarCount / dayCount)); | |
318 | 319 | flag = false; |
319 | 320 | } |
320 | 321 | } |