@SuppressWarnings("rawtypes") public Page<Record> takeOverDbPaginate(Connection conn, int pageNumber, int pageSize, Boolean isGroupBySql, String totalRowSql, StringBuilder findSql, Object... paras) throws SQLException { List result = CPI.query(conn, totalRowSql, paras); int size = result.size(); if (isGroupBySql == null) {
@SuppressWarnings({"rawtypes", "unchecked"}) public Page<? extends Model> takeOverModelPaginate(Connection conn, Class<? extends Model> modelClass, int pageNumber, int pageSize, Boolean isGroupBySql, String totalRowSql, StringBuilder findSql, Object... paras) throws Exception { List result = CPI.query(conn, totalRowSql, paras); int size = result.size(); if (isGroupBySql == null) {
long totalRow = 0; int totalPage = 0; List result = CPI.query(conn, "select count(*) " + DbKit.replaceFormatSqlOrderBy(sqlExceptSelect), paras); int size = result.size(); if (size == 1)
long totalRow = 0; int totalPage = 0; List result = CPI.query(conn, "select count(*) " + DbKit.replaceFormatSqlOrderBy(sqlExceptSelect), paras); int size = result.size(); if (size == 1)
@SuppressWarnings("rawtypes") public Page<Record> takeOverDbPaginate(Connection conn, int pageNumber, int pageSize, Boolean isGroupBySql, String totalRowSql, StringBuilder findSql, Object... paras) throws SQLException { List result = CPI.query(conn, totalRowSql, paras); int size = result.size(); if (isGroupBySql == null) {
@SuppressWarnings({"rawtypes", "unchecked"}) public Page<? extends Model> takeOverModelPaginate(Connection conn, Class<? extends Model> modelClass, int pageNumber, int pageSize, Boolean isGroupBySql, String totalRowSql, StringBuilder findSql, Object... paras) throws Exception { List result = CPI.query(conn, totalRowSql, paras); int size = result.size(); if (isGroupBySql == null) {