Commit 5e724641bacd964e269a5c79807a52325f540d08
1 parent
bba02e2806
Exists in
master
and in
6 other branches
修复bug
Showing 2 changed files with 17 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyAfterVisitServiceImpl.java
View file @
5e72464
... | ... | @@ -865,7 +865,17 @@ |
865 | 865 | if (one != null) { |
866 | 866 | Integer yn = one.getYn(); |
867 | 867 | if (YnEnums.YES.getId() == yn) { |
868 | - mongoTemplate.updateFirst(query, Update.update("appointmentTime", babyEyeCheck.getNextCheckTime()), modelClass); | |
868 | + Update update = new Update(); | |
869 | + update.set("appointmentTime", babyEyeCheck.getNextCheckTime()); | |
870 | + Date checkTime = babyEyeCheck.getCheckTime(); | |
871 | + if (checkTime != null) { | |
872 | + update.set("checkTime", checkTime); | |
873 | + } | |
874 | + String doctor = babyEyeCheck.getDoctor(); | |
875 | + if (StringUtils.isNotEmpty(doctor)) { | |
876 | + update.set("checkDoctor", doctor); | |
877 | + } | |
878 | + mongoTemplate.updateFirst(query, update, modelClass); | |
869 | 879 | } |
870 | 880 | } |
871 | 881 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyEyeCheckServiceImpl.java
View file @
5e72464
... | ... | @@ -141,6 +141,12 @@ |
141 | 141 | operateLogFacade.addModifyOptLog(userId, Integer.valueOf(hospitalId), before.get(0),after.get(0), OptActionEnums.UPDATE.getId(), "修改儿童眼保检查"); |
142 | 142 | } |
143 | 143 | |
144 | + // 添加追访眼保检查 | |
145 | + Date nextCheckTime = babyEyeCheck.getNextCheckTime(); | |
146 | + if (null != nextCheckTime) { | |
147 | + babyAfterVisitService.addOrUpdateAfterVisitData(babyEyeCheck, TYPE_EYE_CHECK, STATUS_TYPE_NO); | |
148 | + } | |
149 | + | |
144 | 150 | } |
145 | 151 | return RespBuilder.buildSuccess(babyEyeCheck.getId()); |
146 | 152 | } |