Kaynağa Gözat

优化代码

fangqing 1 ay önce
ebeveyn
işleme
7432369f8f

+ 1 - 1
ruoyi-generator/src/main/java/com/ruoyi/generator/service/CommunityArticleServiceImpl.java

@@ -147,7 +147,7 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
         //找出板块下的分类
         List<Long> classIds = communityArticle.getClassIds();
         System.out.println("classIds: " + classIds);
-        if (classIds != null && classIds.contains(0L)) { // Check for null and then use contains()
+        if (classIds != null && classIds.contains(19L)) { // Check for null and then use contains()
             classIds = null;
             searchType = 3;
         }