Commit b1f1ada257b83d5a3614dc72c75f6f24cb54eff4

Authored by dongqin
1 parent 3c04995f09

update

Showing 1 changed file with 5 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatdeliverFollowFacade.java View file @ b1f1ada
... ... @@ -813,8 +813,12 @@
813 813 }
814 814 }
815 815 Query query = Query.query(Criteria.where("id").is(id));
816   - mongoTemplate.updateFirst(query, update, MatdeliverFollowModel.class);
  816 + MatdeliverFollowPushModel pushModel = mongoTemplate.findOne(query, MatdeliverFollowPushModel.class);
  817 + if (pushModel != null) {
  818 + String matdeliverFollowId = pushModel.getMatdeliverFollowId();
  819 + mongoTemplate.updateFirst(Query.query(Criteria.where("_id").is(matdeliverFollowId)), update, MatdeliverFollowModel.class);
817 820  
  821 + }
818 822 Update updatePush = new Update();
819 823 updatePush.set("writeTime", new Date());
820 824 updatePush.set("pushStatus", "2");