Browse Source

优化代码

fangqing 1 tháng trước cách đây
mục cha
commit
e23aa57984

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

@@ -148,6 +148,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()
+            classIds = null;
             searchType = 3;
         }