Commit 3c590eb01a5aad16ba4cf23c97f693f1bd4b580d
1 parent
ace37d8cce
Exists in
master
and in
6 other branches
删除了的数据没有排除
Showing 1 changed file with 3 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java
View file @
3c590eb
1 | 1 | package com.lyms.platform.operate.web.service.impl; |
2 | 2 | |
3 | +import com.lyms.platform.common.enums.YnEnums; | |
3 | 4 | import com.lyms.platform.common.result.BaseObjectResponse; |
4 | 5 | import com.lyms.platform.common.result.PageResult; |
5 | 6 | import com.lyms.platform.common.result.RespBuilder; |
... | ... | @@ -85,8 +86,8 @@ |
85 | 86 | tempMap.put("name", p == null ? null : p.getUsername()); /** 姓名 */ |
86 | 87 | tempMap.put("age", p == null ? null : DateUtil.getAge(p.getBirth())); /** 年龄 */ |
87 | 88 | tempMap.put("day", p == null ? null : model.getDay()); /** 产后天数 */ |
88 | - tempMap.put("reviewCount", mongoTemplate.count(Query.query(Criteria.where("parentId").is(model.getParentId())), PostReviewModel.class)); /** 复查次数 */ | |
89 | - tempMap.put("reviewHospitalCount", mongoTemplate.count(Query.query(Criteria.where("parentId").is(model.getParentId()) | |
89 | + tempMap.put("reviewCount", mongoTemplate.count(Query.query(Criteria.where("parentId").is(model.getParentId()).and("yn").is(YnEnums.YES.getId())), PostReviewModel.class)); /** 复查次数 */ | |
90 | + tempMap.put("reviewHospitalCount", mongoTemplate.count(Query.query(Criteria.where("parentId").is(model.getParentId()).and("yn").is(YnEnums.YES.getId()) | |
90 | 91 | .and("hospitalId").is(model.getHospitalId())), PostReviewModel.class)); /** 本院复查次数 */ |
91 | 92 | String prodDoctor = model.getProdDoctor(); |
92 | 93 | if(StringUtils.isNotEmpty(prodDoctor)) { |