浏览代码

Merge branch 'feature/0222-news' into saas

Eric 1 年之前
父节点
当前提交
9f5ecae8d3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      cms/src/main/java/com/ym/mec/cms/service/impl/SysNewsInformationServiceImpl.java

+ 2 - 1
cms/src/main/java/com/ym/mec/cms/service/impl/SysNewsInformationServiceImpl.java

@@ -21,7 +21,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 import org.springframework.util.CollectionUtils;
 
 
-import java.time.LocalDate;
 import java.util.*;
 import java.util.*;
 
 
 @Service
 @Service
@@ -90,6 +89,8 @@ public class SysNewsInformationServiceImpl extends BaseServiceImpl<Long, SysNews
 		if(count == 0){
 		if(count == 0){
 			queryInfo.setMemo(null);
 			queryInfo.setMemo(null);
 		}
 		}
+		// App按钮查询时重置默认查询条件rows=100
+		queryInfo.setRows(100);
 		PageInfo<SysNewsInformation> app = queryHomePage(queryInfo);
 		PageInfo<SysNewsInformation> app = queryHomePage(queryInfo);
 		if(!CollectionUtils.isEmpty(app.getRows()) && user != null && user.getId() != null){
 		if(!CollectionUtils.isEmpty(app.getRows()) && user != null && user.getId() != null){