Commit ca8d820d6c4f0255d4428fdea060d9aba68aa6fd
1 parent
5a08b462e7
Exists in
master
and in
6 other branches
修改怀孕建档数据
Showing 2 changed files with 1 additions and 2 deletions
platform-dal/src/main/java/com/lyms/platform/query/TrackDownRecordQuery.java
View file @
ca8d820
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/TrackDownFacade.java
View file @
ca8d820
... | ... | @@ -889,7 +889,7 @@ |
889 | 889 | |
890 | 890 | //是否婚检 |
891 | 891 | if (null != downRecord.getTrackType() && downRecord.getTrackType() == 2) { |
892 | - Long checkNum = mongoTemplate.count(Query.query(Criteria.where("parentId").is(downRecord.getParentId()).and("hospitalId").is(downRecord.getHospitalId()).and("yn").is(1)), PremaritalCheckup.class); | |
892 | + Long checkNum = mongoTemplate.count(Query.query(Criteria.where("certificateNum").is(downRecord.getCardNo()).and("hospitalId").is(downRecord.getHospitalId()).and("yn").is(1)), PremaritalCheckup.class); | |
893 | 893 | temp.put("check", checkNum > 0 ? 1 : 2); // 婚检 1=勾勾 2=叉叉 |
894 | 894 | } |
895 | 895 | return temp; |