Commit e006b558 authored by 廖旭伟's avatar 廖旭伟

消息阅读后没修改状态bug修改

parent 2b455177
......@@ -41,12 +41,14 @@ public class NewsController extends BaseCRUDJsonBodyMappingController<NewsServic
}
@Override
protected int viewAfter(Long id, Map<String, Object> model, NewsEntity entity, Context context) throws AppException {
protected int infoAfter(Long id, Map<String, Object> model, NewsEntity entity, Context context) throws AppException {
//查看以后标记为已读
NewsEntity update = new NewsEntity();
update.setId(id);
update.setReadStatus(ReadStatusEnum.READ.getValue());
this.service.update(update);
entity.setReadStatus(ReadStatusEnum.READ.getValue());
return 1;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment