Commit f4700ebd80a556c7f107a81dec4e25a9fc19e8ff
1 parent
d41a11c746
Exists in
master
and in
6 other branches
解决bug
Showing 1 changed file with 4 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyAfterVisitServiceImpl.java
View file @
f4700eb
| ... | ... | @@ -727,6 +727,10 @@ |
| 727 | 727 | Date nextDate = babyModel.getNextDate(); |
| 728 | 728 | nextDate = nextDate == null ? new Date() : nextDate; |
| 729 | 729 | mongoTemplate.updateFirst(query, Update.update("appointmentTime", nextDate), BabyAfterVisitInfoModel.class); |
| 730 | + if (Objects.equals(TYPE_CHECK, type)) { | |
| 731 | + // 针对档案转正时,将其状态直接更新为作废 | |
| 732 | + mongoTemplate.updateFirst(query, Update.update("yn", 2), BabyAfterVisitInfoModel.class); | |
| 733 | + } | |
| 730 | 734 | } |
| 731 | 735 | } |
| 732 | 736 | } |