Commit 2c58c331 by 穆龙飞

modify:修改自动提交本地节点

parent d6368a11
...@@ -747,7 +747,7 @@ public class ChangeFlowBiz { ...@@ -747,7 +747,7 @@ public class ChangeFlowBiz {
return changeFlowVO; return changeFlowVO;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
} }
PageVO pageVO = buildPageVo(list.size(), pageSize, page); PageVO pageVO = buildPageVo(changeRecordPageInfo.getTotal(), pageSize, page);
ChangeFlowListVO changeFlowListVO = new ChangeFlowListVO(); ChangeFlowListVO changeFlowListVO = new ChangeFlowListVO();
changeFlowListVO.setPageVo(pageVO); changeFlowListVO.setPageVo(pageVO);
changeFlowListVO.setChangeFlowList(list); changeFlowListVO.setChangeFlowList(list);
...@@ -757,12 +757,13 @@ public class ChangeFlowBiz { ...@@ -757,12 +757,13 @@ public class ChangeFlowBiz {
/** /**
* 构建分页信息 * 构建分页信息
* *
* @param totalCount * @param total
* @param pageSize * @param pageSize
* @param page * @param page
* @return * @return
*/ */
private PageVO buildPageVo(int totalCount, Integer pageSize, Integer page) { private PageVO buildPageVo(Long total, Integer pageSize, Integer page) {
Integer totalCount = Math.toIntExact(total);
int totalPage; int totalPage;
int i = totalCount % pageSize; int i = totalCount % pageSize;
if (i != 0) { if (i != 0) {
......
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