!20 fix: 修复规则引擎初始化错误bug

Merge pull request !20 from Sage/dev-V0.4.5
V0.5.x
xiwa 2023-07-18 18:00:25 +00:00 committed by Gitee
commit 104c193951
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class RuleManager {
int idx = 1; int idx = 1;
while (true) { while (true) {
PageRequest<RuleInfo> pageRequest = new PageRequest<>(); PageRequest<RuleInfo> pageRequest = new PageRequest<>();
pageRequest.setPageNum(idx += 1); pageRequest.setPageNum(idx);
pageRequest.setPageSize(100); pageRequest.setPageSize(100);
Paging<RuleInfo> all = ruleInfoData.findAll(pageRequest); Paging<RuleInfo> all = ruleInfoData.findAll(pageRequest);
List<RuleInfo> rules = all.getRows(); List<RuleInfo> rules = all.getRows();