Bladeren bron

bug修改

zjy 19 uur geleden
bovenliggende
commit
e2e669f097

+ 2 - 2
alien-second/src/main/java/shop/alien/second/service/impl/SecondRecommendServiceImpl.java

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