jpaDSL分页,排序


//排序
        JPAQuery<Customer> orderBy = customer.orderBy(QCustomer.qcustomer.createTime.desc());
        //分页
        JPAQuery<Customer> limit = orderBy.offset(customerInputListPCInputParam.getPage().longValue() * customerInputListPCInputParam.getSize().longValue())
                .limit(customerInputListPCInputParam.getSize().longValue()).fetchAll();
posted @ 2022-08-27 23:42  Arborblog  阅读(147)  评论(0编辑  收藏  举报