Commit c2701f32 authored by 赵啸非's avatar 赵啸非

测试 事项查询

parent 26f34e98
......@@ -240,18 +240,18 @@ public class DemoWebApiController {
ArrayList<MatterEntity> allList = new ArrayList<>();
if (count > 0) {
//分页获取
int pages = count / 100+1;
int pages = count / 500+1;
for (int i = 1; i <= pages; i++) {
stopWatch.start("开始同步事项方法");
PageInfo pageInfo = new PageInfo();
pageInfo.setCurrPage(i);
pageInfo.setPrePageResult(100);
pageInfo.setPrePageResult(500);
Result<MatterEntity> rest = matterService.getDao().getMatterListByAreaCodePage(matterQuery, pageInfo);
allList.addAll(rest.getList());
stopWatch.stop();
log.info("本地事项总数:{},{}s", allList.size(), stopWatch.getLastTaskTimeMillis() / 1000);
}
stopWatch.stop();
// stopWatch.stop();
log.info("本地事项总数:{},{}s", allList.size(), stopWatch.getLastTaskTimeMillis() / 1000);
}
......
package com.mortals.xhx.module.matter.dao.ibatis;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.ParamDto;
import com.mortals.framework.model.Result;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.matter.dao.MatterDao;
import com.mortals.xhx.module.matter.model.MatterEntity;
import java.util.ArrayList;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import org.springframework.util.ObjectUtils;
import java.util.ArrayList;
import java.util.List;
/**
......
......@@ -84,7 +84,7 @@
<result property="updateTime" column="updateTime" />
<result property="evaluationUrl" column="evaluationUrl" />
<result property="netApplyUrl" column="netApplyUrl" />
<collection property="matterExtList" column="id" ofType="MatterExtEntity" javaType="ArrayList" select="getMatterExtByMatterId"></collection>
<!-- <collection property="matterExtList" column="id" ofType="MatterExtEntity" javaType="ArrayList" select="getMatterExtByMatterId"></collection>-->
</resultMap>
<resultMap type="MatterExtEntity" id="MatterExtEntity-Map">
<result property="id" column="id" />
......
......@@ -39,7 +39,6 @@ POST {{baseUrl}}/micro/matter/list
Content-Type: application/json
{
"matterName": "%对墓穴占地面积超过标准的处罚%",
"page": 1,
"size": 10
}
......
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