diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java index c14ef52..5fb7941 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java @@ -137,6 +137,16 @@ public class ArticleController { }); if (idLst.size() > 0) { List aLst = lymsArticleService.listByIds(idLst); + +// 赋值已读未读 + pLst.forEach(p->{ + aLst.forEach(a->{ + if(p.getAid()==a.getAid()){ + a.setStat(p.getIsread()); + } + }); + }); + baseResponse.setObject(aLst); }