Commit 07e4be4c5c3a084bf7cfe400b035c8e129106efa
1 parent
7b0edfe05c
Exists in
master
and in
6 other branches
访视相关bug修复
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/NewbornServiceImpl.java
View file @
07e4be4
| ... | ... | @@ -209,7 +209,8 @@ |
| 209 | 209 | temp.put("days", days); |
| 210 | 210 | } |
| 211 | 211 | } |
| 212 | - List<NewbornVisit> nvs = mongoTemplate.find(new Query(criteria), NewbornVisit.class); | |
| 212 | + | |
| 213 | + List<NewbornVisit> nvs = mongoTemplate.find(Query.query(Criteria.where("babyId").is(visit.getBabyId()).and("yn").ne("0")), NewbornVisit.class); | |
| 213 | 214 | temp.put("count", nvs.size()); |
| 214 | 215 | int benyuan = 0; |
| 215 | 216 | for (NewbornVisit nv : nvs) { |