Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 大业务下执行历史首页记录数量偶现只有一行 #3182 #3183

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

jsonwan
Copy link
Collaborator

@jsonwan jsonwan commented Sep 4, 2024

交换count与select的顺序,缓解问题。

if (baseSearchCondition.isCountPageTotal()) {
count = getPageTaskInstanceCount(taskQuery);
if (count == 0) {
return PageData.emptyPageData(start, length);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个数量=0,直接返回的逻辑需要补上。可以判断 result.size()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

result.size()==0并不代表数据为空,有可能是start超出了数据总量,count还是需要查一次的。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@jsonwan jsonwan closed this Sep 4, 2024
@jsonwan jsonwan reopened this Sep 4, 2024
@wangyu096 wangyu096 merged commit fc39a85 into TencentBlueKing:3.9.x Sep 4, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants