2 次代码提交 b86b0885c8 ... aa9ff5be9b

作者 SHA1 备注 提交日期
  zjy aa9ff5be9b Merge remote-tracking branch 'origin/master' 1 天之前
  zjy e2e669f097 bug修改 1 天之前

+ 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);
                     }
                 });