当前位置:网站首页>activiti工作流的分页查询避坑
activiti工作流的分页查询避坑
2022-08-01 10:35:00 【what's your name.】
activiti工作流的分页查询
listPage(pageNow,pageSize)
List<Model> subList1 = processEngine.getRepositoryService()
.createModelQuery()
.modelNameLike(modelName)
.listPage(pageNow, pageSize);
并不是像其他分页插件一样pageNow是页数,pageSize是该页显示多少条数据
activiti的listPage的pageNow参数的意思是从哪条数据开始,pageSize显示多少条
例如:
List<Model> subList1 = processEngine.getRepositoryService()
.createModelQuery()
.modelNameLike(modelName)
.listPage(1, 5);
//这里的意思是查询从第一条数据开共五条
//要是第二页的话不能pageNow不能传递2需要处理一下,否则就是从第二天数据开始查询
边栏推荐
猜你喜欢

Mini Program Graduation Works WeChat Food Recipes Mini Program Graduation Design Finished Products (4) Opening Report

Batch大小不一定是2的n次幂!ML资深学者最新结论

Visualization - Superset installation and deployment

Qt 支持HEIC/HEIF格式图片

Solve vscode input! Unable to quickly generate skeletons (three methods for the new version of vscode to quickly generate skeletons)

7. SAP ABAP OData 服务如何支持 $orderby (排序)操作

还在纠结报表工具的选型么?来看看这个

Mini Program Graduation Works WeChat Food Recipes Mini Program Graduation Design Finished Products (3) Background Functions

xss-labs靶场挑战

图解MySQL内连接、外连接、左连接、右连接、全连接......太多了
随机推荐
How to find out hidden computer software (how to clean up the computer software hidden)
gc的意义和触发条件
编码解码(btoa、encodeURIComponent、encodeURI、escape)
Promise学习(三)Promise的几个关键性问题 -- 状态改变、执行顺序与机制、多任务串联、异常穿透、中断promise链
分类预测 | MATLAB实现1-DCNN一维卷积神经网络分类预测
记一次 .NET 某智慧物流WCS系统CPU爆高分析
Drawing arrows of WPF screenshot control (5) "Imitation WeChat"
2022年中盘点 | 产品打底,科技背书,广汽集团阔步向前
C#/VB.NET 将PPT或PPTX转换为图像
Go-Excelize API source code reading (8) - GroupSheets(sheets []string), UngroupSheets()
Android Security and Protection Policy
上周热点回顾(7.25-7.31)
使用ESP32驱动QMA7981读取三轴加速度(带例程)
Batch大小不一定是2的n次幂!ML资深学者最新结论
How to Steal $100 Million from the Perfect Smart Contract
jmeter
C语言实现!20000用4秒计算
Android 安全与防护策略
解决vscode输入! 无法快捷生成骨架(新版vscode快速生成骨架的三种方法)
PowerPC技术与市场杂谈