zjy преди 19 часа
родител
ревизия
e2e669f097
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      alien-second/src/main/java/shop/alien/second/service/impl/SecondRecommendServiceImpl.java

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