Commit 334e7921647aa3771dcc7ea9f4c5e3a82a0eb360
1 parent
1b2bb9d33d
Exists in
master
debug
Showing 1 changed file with 10 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java
View file @
334e792
... | ... | @@ -137,6 +137,16 @@ |
137 | 137 | }); |
138 | 138 | if (idLst.size() > 0) { |
139 | 139 | List<LymsArticle> aLst = lymsArticleService.listByIds(idLst); |
140 | + | |
141 | +// 赋值已读未读 | |
142 | + pLst.forEach(p->{ | |
143 | + aLst.forEach(a->{ | |
144 | + if(p.getAid()==a.getAid()){ | |
145 | + a.setStat(p.getIsread()); | |
146 | + } | |
147 | + }); | |
148 | + }); | |
149 | + | |
140 | 150 | baseResponse.setObject(aLst); |
141 | 151 | |
142 | 152 | } |