Commit 8a11b9c790df9a79e13f06df8e1baef586f86d73
1 parent
a3b6770638
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 2 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TrackDownServiceImpl.java
View file @
8a11b9c
| ... | ... | @@ -1007,13 +1007,10 @@ |
| 1007 | 1007 | .convertToNativeUpdate(ReflectionUtils.getUpdateField(record)); |
| 1008 | 1008 | mongoTemplate.updateFirst(query, update, TrackCountRecord.class); |
| 1009 | 1009 | } |
| 1010 | - | |
| 1011 | - | |
| 1012 | 1010 | if (trackDown.getTrackDownDateType() == TrackDownDateEnums.C.getId()) |
| 1013 | 1011 | { |
| 1014 | - System.out.println("pid="+trackDown.getPid()); | |
| 1015 | 1012 | String fid = ""; |
| 1016 | - List<AntenatalExaminationModel> examinationModel = mongoTemplate.find(Query.query(Criteria.where("pid").is(trackDown.getPid()).and("yn").is(YnEnums.YES.getId()).and("lastMenses").gte(patients.getLastMenses())), AntenatalExaminationModel.class); | |
| 1013 | + List<AntenatalExaminationModel> examinationModel = mongoTemplate.find(Query.query(Criteria.where("pid").is(patients.getPid()).and("yn").is(YnEnums.YES.getId()).and("lastMenses").gte(patients.getLastMenses())), AntenatalExaminationModel.class); | |
| 1017 | 1014 | if (CollectionUtils.isNotEmpty(examinationModel)) { |
| 1018 | 1015 | AntenatalExaminationModel model = examinationModel.get(0); |
| 1019 | 1016 | fid = model.getId(); |
| ... | ... | @@ -1022,7 +1019,7 @@ |
| 1022 | 1019 | } |
| 1023 | 1020 | else |
| 1024 | 1021 | { |
| 1025 | - List<AntExChuModel> antExChuModels = mongoTemplate.find(Query.query(Criteria.where("pid").is(trackDown.getPid()).and("yn"). | |
| 1022 | + List<AntExChuModel> antExChuModels = mongoTemplate.find(Query.query(Criteria.where("pid").is(patients.getPid()).and("yn"). | |
| 1026 | 1023 | is(YnEnums.YES.getId()).and("lastMenses").gte(patients.getLastMenses())), AntExChuModel.class); |
| 1027 | 1024 | if (CollectionUtils.isNotEmpty(antExChuModels)) { |
| 1028 | 1025 | AntExChuModel model = antExChuModels.get(0); |