Commit 3c04995f09e9bfbf5c074dd39bd439db03ceeb4b
1 parent
e344984341
Exists in
master
and in
6 other branches
修复业务bug
Showing 1 changed file with 10 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatdeliverFollowFacade.java
View file @
3c04995
... | ... | @@ -205,6 +205,10 @@ |
205 | 205 | |
206 | 206 | // 若为问卷推送类型则更新推送状态 |
207 | 207 | if (PostpartumFollowMakeEnums.TypeEnum.WJTS.getId() == matDeliverFollowAddRequest.getMakeType()) { |
208 | + Update update = new Update(); | |
209 | + update.set("pushStatus", "3"); | |
210 | + update.set("confirmTime", new Date()); | |
211 | + update.set("confirmDoctor", matDeliverFollowAddRequest.getVisitDoctor()); | |
208 | 212 | mongoTemplate.updateFirst(Query.query(Criteria.where("matdeliverFollowId").is(matDeliverFollowAddRequest.getId())), Update.update("pushStatus", "3"), MatdeliverFollowPushModel.class); |
209 | 213 | } |
210 | 214 | //修改随访信息 |
211 | 215 | |
... | ... | @@ -808,11 +812,14 @@ |
808 | 812 | update.set(entry.getKey(), entryValue.toString()); |
809 | 813 | } |
810 | 814 | } |
811 | - update.set("visitStatus", 2); | |
812 | - update.set("visitDate", new Date()); | |
813 | - update.set("pushStatus", "2"); | |
814 | 815 | Query query = Query.query(Criteria.where("id").is(id)); |
815 | 816 | mongoTemplate.updateFirst(query, update, MatdeliverFollowModel.class); |
817 | + | |
818 | + Update updatePush = new Update(); | |
819 | + updatePush.set("writeTime", new Date()); | |
820 | + updatePush.set("pushStatus", "2"); | |
821 | + mongoTemplate.updateFirst(query, updatePush, MatdeliverFollowPushModel.class); | |
822 | + | |
816 | 823 | return baseResponse; |
817 | 824 | } |
818 | 825 | baseResponse.setErrorcode(ErrorCodeConstants.PARAMETER_ERROR); |