Commit 26f34e98 authored by 赵啸非's avatar 赵啸非

测试 事项查询

parent 86717b65
...@@ -240,12 +240,12 @@ public class DemoWebApiController { ...@@ -240,12 +240,12 @@ public class DemoWebApiController {
ArrayList<MatterEntity> allList = new ArrayList<>(); ArrayList<MatterEntity> allList = new ArrayList<>();
if (count > 0) { if (count > 0) {
//分页获取 //分页获取
int pages = count / 500+1; int pages = count / 100+1;
for (int i = 1; i <= pages; i++) { for (int i = 1; i <= pages; i++) {
stopWatch.start("开始同步事项方法"); stopWatch.start("开始同步事项方法");
PageInfo pageInfo = new PageInfo(); PageInfo pageInfo = new PageInfo();
pageInfo.setCurrPage(i); pageInfo.setCurrPage(i);
pageInfo.setPrePageResult(500); pageInfo.setPrePageResult(100);
Result<MatterEntity> rest = matterService.getDao().getMatterListByAreaCodePage(matterQuery, pageInfo); Result<MatterEntity> rest = matterService.getDao().getMatterListByAreaCodePage(matterQuery, pageInfo);
allList.addAll(rest.getList()); allList.addAll(rest.getList());
stopWatch.stop(); stopWatch.stop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment