Commit ac488e2dbdbb8913fe3e58b8393d16320c5a8f91
1 parent
82e5ffe854
Exists in
master
and in
1 other branch
update
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyAutoDiagnoseRiskFacade.java
View file @
ac488e2
... | ... | @@ -847,7 +847,7 @@ |
847 | 847 | if (CollectionUtils.isNotEmpty(list)) { |
848 | 848 | stringList.addAll(list); |
849 | 849 | JSONArray jsonArray = JSONArray.fromObject(stringList); |
850 | - mongoTemplate.updateFirst(new Query(Criteria.where("id").is(babyCheckModel.getId())), Update.update("diagnose", jsonArray.toString()), BabyCheckModel.class); | |
850 | + mongoTemplate.updateFirst(new Query(Criteria.where("id").is(babyCheckModel.getId())), Update.update("diagnose", jsonArray.toString()).set("highRisk",1), BabyCheckModel.class); | |
851 | 851 | } |
852 | 852 | } else if (CollectionUtils.isEmpty(babyCheckModels)) { |
853 | 853 | Set <String> setbabyModel = new HashSet <>(); |
... | ... | @@ -863,7 +863,7 @@ |
863 | 863 | if (CollectionUtils.isNotEmpty(list)) { |
864 | 864 | setbabyModel.addAll(list); |
865 | 865 | JSONArray jsonArray = JSONArray.fromObject(setbabyModel); |
866 | - mongoTemplate.updateFirst(new Query(Criteria.where("id").is(babyModel.getId())), Update.update("diagnose", jsonArray.toString()), BabyModel.class); | |
866 | + mongoTemplate.updateFirst(new Query(Criteria.where("id").is(babyModel.getId())), Update.update("diagnose", jsonArray.toString()).set("highRisk",1), BabyModel.class); | |
867 | 867 | } |
868 | 868 | } |
869 | 869 | } |