public class PageUtils extends Object
| 构造器和说明 |
|---|
PageUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static cn.foxtech.core.domain.AjaxResult |
ajaxResultEmpty() |
static cn.foxtech.core.domain.AjaxResult |
getPageList(List<BaseEntity> entityList,
Map<String,Object> body)
获得分页列表数据
|
static Map<String,Object> |
getPageList(List entityList,
int pageNum,
int pageSize) |
static cn.foxtech.core.domain.AjaxResult |
getPageMapList(List<Map<String,Object>> entityList,
Map<String,Object> body)
获得分页列表数据
|
static String |
makeSelectCountSQL(String tableName,
String filter)
生成查询数量语句
|
static String |
makeSelectSQLPage(String tableName,
List<String> vFields,
List<String> cFields,
String filter,
String order,
Integer total,
Long pageNmu,
Long pageSize)
生成分页查询语句
|
static String |
makeSelectSQLPage(String tableName,
String filter,
String order,
Integer total,
Long pageNmu,
Long pageSize)
生成分页查询语句
|
static cn.foxtech.core.domain.AjaxResult |
selectEntityListPage(BaseEntityMapper mapper,
String tableName,
String filter,
String order,
long pageNmu,
long pageSize) |
public static Map<String,Object> getPageList(List entityList, int pageNum, int pageSize)
public static cn.foxtech.core.domain.AjaxResult getPageList(List<BaseEntity> entityList, Map<String,Object> body)
entityList - 实体列表body - 包含pageNum和pageSize参数的用户参数public static cn.foxtech.core.domain.AjaxResult getPageMapList(List<Map<String,Object>> entityList, Map<String,Object> body)
entityList - 实体列表body - 包含pageNum和pageSize参数的用户参数public static String makeSelectSQLPage(String tableName, String filter, String order, Integer total, Long pageNmu, Long pageSize)
tableName - 表名称filter - 过滤条件order - ID按ASC/DESC排序pageNmu - 分页号pageSize - 分页大小public static String makeSelectSQLPage(String tableName, List<String> vFields, List<String> cFields, String filter, String order, Integer total, Long pageNmu, Long pageSize)
tableName - 表名称vFields - 字段列表filter - 过滤条件order - ID按ASC/DESC排序pageNmu - 分页号pageSize - 分页大小public static String makeSelectCountSQL(String tableName, String filter)
tableName - 表名称filter - 过滤条件public static cn.foxtech.core.domain.AjaxResult selectEntityListPage(BaseEntityMapper mapper, String tableName, String filter, String order, long pageNmu, long pageSize)
public static cn.foxtech.core.domain.AjaxResult ajaxResultEmpty()
Copyright © 2023. All rights reserved.