|
@@ -149,6 +149,21 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ List<CommunityUserLike> communityUserLikes = communityUserLikeMapper.selectList(new QueryWrapper<CommunityUserLike>()
|
|
|
+ .eq("user_id",userId)
|
|
|
+ .eq("like_user_id",articleVo.getUserId())
|
|
|
+ );
|
|
|
+
|
|
|
+ for (CommunityUserLike communityUserLike : communityUserLikes) {
|
|
|
+ if (communityUserLike.getUserId() != null){
|
|
|
+ articleVo.setCare(true);
|
|
|
+ }else {
|
|
|
+ articleVo.setCare(false);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /* communityArticleMapper.selectList();
|
|
|
+ articleVo.setCare();*/
|
|
|
+
|
|
|
List<Map<String, Object>> imageList = articleVo.getImageList();
|
|
|
articleVo.setClassIds(classIds);
|
|
|
List<CommunityArticleImages> videoList = new ArrayList<>();
|