Skip to content

Commit

Permalink
!135 【工作流】:流程模型分页数量查询不正确
Browse files Browse the repository at this point in the history
Merge pull request !135 from 今晚打老虎/master-jdk17
  • Loading branch information
YunaiV authored and gitee-org committed Aug 31, 2024
2 parents 67245d9 + f1412c0 commit df5077f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public class BpmModelServiceImpl implements BpmModelService {
@Override
public PageResult<Model> getModelPage(BpmModelPageReqVO pageVO) {
ModelQuery modelQuery = repositoryService.createModelQuery();
modelQuery.modelTenantId(FlowableUtils.getTenantId());
if (StrUtil.isNotBlank(pageVO.getKey())) {
modelQuery.modelKey(pageVO.getKey());
}
Expand All @@ -78,7 +79,6 @@ public PageResult<Model> getModelPage(BpmModelPageReqVO pageVO) {
return PageResult.empty(count);
}
List<Model> models = modelQuery
.modelTenantId(FlowableUtils.getTenantId())
.orderByCreateTime().desc()
.listPage(PageUtils.getStart(pageVO), pageVO.getPageSize());
return new PageResult<>(models, count);
Expand Down

0 comments on commit df5077f

Please sign in to comment.