修改排序的 bug。
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package xyz.zhouxy.plusone;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import xyz.zhouxy.plusone.system.application.query.AccountQueries;
|
||||
import xyz.zhouxy.plusone.system.application.query.params.AccountQueryParams;
|
||||
import xyz.zhouxy.plusone.system.application.query.result.AccountOverview;
|
||||
|
||||
@Slf4j
|
||||
@SpringBootTest(classes = PlusoneApplication.class)
|
||||
class AccountQueriesTests {
|
||||
|
||||
@Resource
|
||||
AccountQueries accountQueries;
|
||||
|
||||
@Test
|
||||
void testQueryPage() {
|
||||
AccountQueryParams queryParams = new AccountQueryParams();
|
||||
// queryParams.setOrderBy(List.of("email", "mobile_phone", "id"));
|
||||
queryParams.setSize(20);
|
||||
queryParams.setPageNum(1L);
|
||||
queryParams.setOrderBy(Collections.emptyList());
|
||||
List<AccountOverview> l = accountQueries.queryAccountOverview(queryParams);
|
||||
log.info("l: {}", l);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user