Commit 1673f14dd1afe40c00c2d2c49be2a3e5ab3e4ef8
1 parent
c9f34c9295
Exists in
master
and in
6 other branches
bug
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
1673f14
... | ... | @@ -134,7 +134,7 @@ |
134 | 134 | maxAxis = Arrays.asList(6.7, 6.7, 6.7, 6.7, 6.7, 6.7, 6.7); |
135 | 135 | } |
136 | 136 | |
137 | - List<BloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("parentId").is(parentId)), BloodSugar.class); | |
137 | + List<BloodSugar> bloodSugars = mongoTemplate.find(Query.query(Criteria.where("pid").is(mongoUtil.getPid(parentId))), BloodSugar.class); | |
138 | 138 | if(CollectionUtils.isNotEmpty(bloodSugars)) { |
139 | 139 | for (int i = 0; i < betweenDay.size(); i++) { |
140 | 140 | String day = betweenDay.get(i); |