소스 검색

优化代码

fangqing 5 달 전
부모
커밋
f700f793e0
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      ruoyi-generator/src/main/java/com/ruoyi/generator/service/CommunityCollectionServiceImpl.java

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

@@ -86,7 +86,9 @@ public class CommunityCollectionServiceImpl extends ServiceImpl<CommunityCollect
      */
     @Override
     public JSONArray selectArticleInfoInCollection(Long collectionId,Long  searchType) {
-
+        if (searchType == null){
+            searchType = 1L;
+        }
         JSONArray jsonArray = new JSONArray();
         //查询合集表
         CommunityCollection communityCollection = communityCollectionMapper.selectOne(new QueryWrapper<CommunityCollection>()