Commit 6c11211fbae5c9a00bd5cfdb84dd4210e73220ab
1 parent
32158bff07
Exists in
master
推送文章查看
Showing 3 changed files with 8 additions and 2 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java
View file @
6c11211
... | ... | @@ -223,7 +223,7 @@ |
223 | 223 | BaseResponse baseResponse=new BaseResponse(); |
224 | 224 | try { |
225 | 225 | UpdateWrapper<LymsPushedart> updateWrapper = new UpdateWrapper<>(); |
226 | - pushedart.setCreatedtime(new Date()); | |
226 | + pushedart.setReadtime(new Date()); | |
227 | 227 | updateWrapper.eq("pid",pushedart.getPid()).eq("aid", pushedart.getAid()); |
228 | 228 | boolean f=lymsPushedartService.update(pushedart,updateWrapper); |
229 | 229 | baseResponse.setErrorcode(f==true?0:1); |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPushedart.java
View file @
6c11211
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsArticleMapper.java
View file @
6c11211
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 | @Select("SELECT COUNT(1) cnt FROM lyms_pushedart WHERE DATE(createdtime)=DATE(NOW())") |
24 | 24 | Map<String, Object> todayPush(); |
25 | 25 | // 今日已读 |
26 | - @Select("SELECT COUNT(1) cnt FROM lyms_pushedart WHERE DATE(createdtime)=DATE(NOW()) AND isread=1") | |
26 | + @Select("SELECT COUNT(1) cnt FROM lyms_pushedart WHERE DATE(readtime)=DATE(NOW()) AND isread=1") | |
27 | 27 | Map<String, Object> todayRead(); |
28 | 28 | |
29 | 29 | @Select("SELECT COUNT(1) cnt FROM lyms_pushedart") |