Commit cd928a5b1a41f3fe929bfcf3d0b3996ca960d52f
1 parent
124ca8bd61
Exists in
dev
#fix:优化
Showing 1 changed file with 3 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyMsgFacade.java
View file @
cd928a5
| ... | ... | @@ -155,13 +155,13 @@ |
| 155 | 155 | BabyMsgModel msgModel= msgModels.get(0); |
| 156 | 156 | if (msgModelRecord.getState()==0){ |
| 157 | 157 | msgModelRecord.setState(1); |
| 158 | - Update update= MongoConvertHelper | |
| 158 | + /* Update update= MongoConvertHelper | |
| 159 | 159 | .convertToNativeUpdate(ReflectionUtils.getUpdateField(msgModelRecord)); |
| 160 | 160 | mongoTemplate.updateMulti(msgQuery.convertToQuery().convertToMongoQuery(),update, MsgModelRecord.class); |
| 161 | - msgModel.setReadNum(msgModel.getReadNum()!=null?msgModel.getReadNum()+1:1); | |
| 161 | + */ msgModel.setReadNum(msgModel.getReadNum()!=null?msgModel.getReadNum()+1:1); | |
| 162 | 162 | // msgModelRecord.setReadNum(msgModel.getReadNum()); |
| 163 | 163 | babyMsgService.updateMsg(msgModel); |
| 164 | - // babyMsgService.updateRecordMsg(msgModelRecord); | |
| 164 | + babyMsgService.updateRecordMsg(msgModelRecord); | |
| 165 | 165 | }else { |
| 166 | 166 | msgModelRecord.setReadNum(msgModel.getReadNum()); |
| 167 | 167 | } |