mayi-auth/src/main/java/com/zf1976/mayi/auth/oauth2/repository/CustomizeJdbcRegisteredClientRepository.java
@Override
    public Page<RegisteredClient> findClientList(Page<?> page) {
        if (page.getPage() <= 0 || page.getSize() <= 0) {
            return Page.from(page);
        }
        final var totalRecord = this.jdbcOperations.queryForObject(COUNT_SQL, Integer.class);
        if (totalRecord == null || totalRecord == 0) {
            return Page.from(page);
        }
        var registeredClientList = this.findBy(" LIMIT ?,?", (page.getPage() - 1) * page.getSize(), page.getSize());
        final var totalPage = (totalRecord + page.getSize() - 1) / page.getSize();
        return Page.<RegisteredClient>from(page)
                   .setTotalPage(totalPage)
                   .setTotalRecord(totalRecord)
                   .setRecords(registeredClientList);
    }
/**
     * find client list
     *
     * @param page page
     * @return the {@link Page<RegisteredClient>}
     */
find client list
@param page page
@return the  Page
find client list @param page page @return the Page
@Override
    public Page<RegisteredClient> findClientList(Page<?> page) {
        if (page.getPage() <= 0 || page.getSize() <= 0) {
            return Page.from(page);
        }
        final var totalRecord = this.jdbcOperations.queryForObject(COUNT_SQL, Integer.class);
        if (totalRecord == null || totalRecord == 0) {
            return Page.from(page);
        }
        var registeredClientList = this.findBy(" LIMIT ?,?", (page.getPage() - 1) * page.getSize(), page.getSize());
        final var totalPage = (totalRecord + page.getSize() - 1) / page.getSize();
        return Page.<RegisteredClient>from(page)
                   .setTotalPage(totalPage)
                   .setTotalRecord(totalRecord)
                   .setRecords(registeredClientList);
    }
@ Override public Page < RegisteredClient > findClientList ( Page < ? > page ) { if ( page . getPage ( ) <= 0 || page . getSize ( ) <= 0 ) { return Page . from ( page ) ; } final var totalRecord = this . jdbcOperations . queryForObject ( COUNT_SQL , Integer . class ) ; if ( totalRecord == null || totalRecord == 0 ) { return Page . from ( page ) ; } var registeredClientList = this . findBy ( " LIMIT ?,?" , ( page . getPage ( ) - 1 ) * page . getSize ( ) , page . getSize ( ) ) ; final var totalPage = ( totalRecord + page . getSize ( ) - 1 ) / page . getSize ( ) ; return Page . < RegisteredClient > from ( page ) . setTotalPage ( totalPage ) . setTotalRecord ( totalRecord ) . setRecords ( registeredClientList ) ; }
find client list
 @param page page
 @return the {@link Page<RegisteredClient>}
find client list @param page page @return the { @link Page<RegisteredClient > }