Commit 2c58c331 by 穆龙飞

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

parent d6368a11
Pipeline #43549 passed with stages
in 1 minute 30 seconds
......@@ -747,7 +747,7 @@ public class ChangeFlowBiz {
return changeFlowVO;
}).collect(Collectors.toList());
}
PageVO pageVO = buildPageVo(list.size(), pageSize, page);
PageVO pageVO = buildPageVo(changeRecordPageInfo.getTotal(), pageSize, page);
ChangeFlowListVO changeFlowListVO = new ChangeFlowListVO();
changeFlowListVO.setPageVo(pageVO);
changeFlowListVO.setChangeFlowList(list);
......@@ -757,12 +757,13 @@ public class ChangeFlowBiz {
/**
* 构建分页信息
*
* @param totalCount
* @param total
* @param pageSize
* @param page
* @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 i = totalCount % pageSize;
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