fix(ops): 修复编译错误2refactor-order-operations

This commit is contained in:
lzh
2026-01-19 13:59:37 +08:00
parent c448daed03
commit 4f2036d145
4 changed files with 20 additions and 6 deletions

View File

@@ -57,8 +57,8 @@ public class OrderCenterController {
@RequestParam(value = "title", required = false) String title) {
OrderQueryService.OrderQuery query = OrderQueryService.OrderQuery.builder()
.withPage(page)
.withSize(size)
.withPageNo(page)
.withPageSize(size)
.withOrderType(orderType)
.withStatus(status)
.withPriority(priority)

View File

@@ -195,7 +195,7 @@ class OrderCenterControllerTest {
// Then: 应该使用默认值
verify(orderQueryService, times(1)).queryPage(argThat(query ->
query.getPage() == 1 && query.getSize() == 20
query.getPageNo() == 1 && query.getPageSize() == 20
));
}
}