Commit 53294a04a7e854b3ffa21015e1f0a2fd0d390a37
1 parent
e09db63deb
Exists in
master
and in
6 other branches
专病门诊
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/RareBloodGroupServiceImpl.java
View file @
53294a0
... | ... | @@ -113,7 +113,7 @@ |
113 | 113 | List<RareBloodGroupModel> babyDietReportList = null; |
114 | 114 | try { |
115 | 115 | if (rareBloodGroupModel != null && StringUtils.isNotEmpty(rareBloodGroupModel.getPid())) { |
116 | - babyDietReportList = mongoTemplate.find(Query.query(Criteria.where("pid").is(rareBloodGroupModel.getPid()).and("yn").is(YnEnums.YES.getId()).and("source").is("1")), RareBloodGroupModel.class); | |
116 | + babyDietReportList = mongoTemplate.find(Query.query(Criteria.where("pid").is(rareBloodGroupModel.getPid()).and("yn").is(YnEnums.YES.getId()).and("source").is("2")), RareBloodGroupModel.class); | |
117 | 117 | if (babyDietReportList != null) { |
118 | 118 | for (int i = 0; i < babyDietReportList.size(); i++) { |
119 | 119 | RareBloodGroupModel rareBloodGroupModel1 = babyDietReportList.get(i); |
... | ... | @@ -145,7 +145,7 @@ |
145 | 145 | List<String> hospitalIds = groupsFacade.findGroupHospital(userId, false); |
146 | 146 | Criteria criteria = Criteria.where("yn").is(1); |
147 | 147 | criteria.and("hospitalId").in(hospitalIds); |
148 | - criteria.and("source").is("2"); | |
148 | + criteria.and("source").is("1"); | |
149 | 149 | if (flag) { |
150 | 150 | List<String> pids = mongoUtil.getPidsByCondition2(hospitalIds, key, vcCardNo, weekStart, weekEnd, age); |
151 | 151 | criteria.and("pid").in(pids); |