Commit fdf28c3a authored by 李秀明's avatar 李秀明

fix(计划任务): 处理接口分页参数错误导致第一页数据查询不到问题

parent 9720f6ee
...@@ -109,7 +109,7 @@ public class PlanTaskController extends AbstractBaseController { ...@@ -109,7 +109,7 @@ public class PlanTaskController extends AbstractBaseController {
PlanTaskPageParamUtil.fillPlanTask(queryRequests, params); PlanTaskPageParamUtil.fillPlanTask(queryRequests, params);
params.put("orgCode", reginParams.getPersonIdentity().getCompanyBizOrgCode()); params.put("orgCode", reginParams.getPersonIdentity().getCompanyBizOrgCode());
params.put("pageSize", pageable.getPageSize()); params.put("pageSize", pageable.getPageSize());
params.put("offset", pageable.getPageNumber() * pageable.getPageSize()); params.put("offset", (pageable.getPageNumber() - 1) * pageable.getPageSize());
if (ObjectUtils.isEmpty(params.get("orderBy"))) { if (ObjectUtils.isEmpty(params.get("orderBy"))) {
params.put("orderBy", "beginTime desc"); params.put("orderBy", "beginTime desc");
} }
......
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