|
@@ -111,7 +111,7 @@ public class SecondRecommendServiceImpl extends ServiceImpl<SecondRecommendMappe
|
|
// 评论列表
|
|
// 评论列表
|
|
List<SecondCommentVo> cList = new ArrayList<>();
|
|
List<SecondCommentVo> cList = new ArrayList<>();
|
|
commentList.forEach(comment -> {
|
|
commentList.forEach(comment -> {
|
|
- if (item.getId() == comment.getBusinessId()) {
|
|
|
|
|
|
+ if (item.getId().equals(comment.getBusinessId())) {
|
|
cList.add(comment);
|
|
cList.add(comment);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -164,7 +164,7 @@ public class SecondRecommendServiceImpl extends ServiceImpl<SecondRecommendMappe
|
|
// 评论列表
|
|
// 评论列表
|
|
List<SecondCommentVo> cList = new ArrayList<>();
|
|
List<SecondCommentVo> cList = new ArrayList<>();
|
|
commentList.forEach(comment -> {
|
|
commentList.forEach(comment -> {
|
|
- if (item.getId() == comment.getBusinessId()) {
|
|
|
|
|
|
+ if (item.getId().equals(comment.getBusinessId())) {
|
|
cList.add(comment);
|
|
cList.add(comment);
|
|
}
|
|
}
|
|
});
|
|
});
|