public class ExtEntityAction
extends com.fastchar.core.FastAction
| 构造器和说明 |
|---|
ExtEntityAction() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
清除某个属性为空的所有数据
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
where 用作sql的where判断语句 ,例如:where['t.userId'] = 1
|
void |
compute()
计算实体指定属性的值
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
type 计算类型,为sql的计算函数,例如:sum、avg
field 需要计算的字段名
|
void |
copy()
复制实体数据
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
data 以data为前缀的参数,提交实体数据,例如:data.topicError=无,data.topicState=1,data.topicTitle=我的话题
|
void |
delete()
删除实体数据
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
where 用作sql的where判断语句 ,例如:where['t.userId'] = 1
data 以data为前缀的参数,提交实体数据,例如:data.topicError=无,data.topicState=1,data.topicTitle=我的话题
|
void |
downData()
下载实体数据
|
void |
export()
导出实体数据excel
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
where 列表sql的where判断语句 ,例如:where['t.userId'] = 1
indexSort 指定排序列 json数组,例如:[{"property":"serviceNickName","direction":"DESC"}]
column 需要导出的列 json数组
|
private Object |
getCellValue(org.apache.poi.ss.usermodel.Workbook workbook,
org.apache.poi.ss.usermodel.Cell cell) |
protected String |
getRoute() |
void |
importData()
导入实体Excel数据
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
file excel文件
|
com.fastchar.database.FastPage<?> |
list()
获取实体的列表数据
参数:
page 页数 {int}
limit 每页大小 {int}
entityCode 实体编号 {String}
where 列表sql的where判断语句 ,例如:where['t.userId'] = 1
indexSort 指定排序列 json数组,例如:[{"property":"serviceNickName","direction":"DESC"}]
power 是否需要权限层级筛选,默认:true
|
void |
loadData()
上传数据
|
void |
module()
生成实体excel导入数据的模板
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
column 列集合 json数组
|
private void |
pluckArrayValue(com.fastchar.core.FastEntity<?> entity,
List<com.fastchar.core.FastEntity<?>> entities) |
void |
reback()
从回收站中还原实体数据
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
data 以data为前缀的参数,提交实体数据,例如:data.topicError=无,data.topicState=1,data.topicTitle=我的话题
|
void |
save()
添加实体数据
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
data 以data为前缀的参数,提交实体数据,例如:data.topicError=无,data.topicState=1,data.topicTitle=我的话题
method 执行实体的方法名,默认为:save方法
|
void |
update()
修改实体数据
参数:
entityCode 实体编号 {String}
menu 操作的菜单名称,用作记录日志 {String}
data 以data为前缀的参数,提交实体数据,例如:data.topicError=无,data.topicState=1,data.topicTitle=我的话题
|
void |
updateLayer()
更新权限编号
|
addParam, addParamFile, check, check, deleteAllParamFiles, forward, getContentType, getCookie, getCookie, getCookieObject, getCookieObjects, getCookieToBoolean, getCookieToBoolean, getCookieToDouble, getCookieToDouble, getCookieToInt, getCookieToInt, getCookieToLong, getCookieToLong, getFastOut, getFastRoute, getFileParameterNames, getForwarder, getLock, getParam, getParam, getParam, getParamDataToString, getParamDataToString, getParamDataToXml, getParamFile, getParamFile, getParamFile, getParamFileList, getParamFileList, getParamFiles, getParamFiles, getParamListFile, getParamNames, getParamToArray, getParamToArray, getParamToBoolean, getParamToBoolean, getParamToBoolean, getParamToBooleanArray, getParamToBooleanArray, getParamToClass, getParamToClass, getParamToDate, getParamToDate, getParamToDate, getParamToDate, getParamToDate, getParamToDate, getParamToDateArray, getParamToDateArray, getParamToDateArray, getParamToDateArray, getParamToDouble, getParamToDouble, getParamToDouble, getParamToDouble, getParamToDouble, getParamToDoubleArray, getParamToDoubleArray, getParamToDoubleList, getParamToDoubleList, getParamToEntity, getParamToEntity, getParamToEntityArray, getParamToEntityArray, getParamToEntityList, getParamToEntityList, getParamToEnum, getParamToEnum, getParamToEnum, getParamToEnumArray, getParamToEnumArray, getParamToEnumList, getParamToEnumList, getParamToFloat, getParamToFloat, getParamToFloat, getParamToFloat, getParamToFloat, getParamToFloatArray, getParamToFloatArray, getParamToFloatList, getParamToFloatList, getParamToInt, getParamToInt, getParamToInt, getParamToIntArray, getParamToIntArray, getParamToIntList, getParamToIntList, getParamToList, getParamToList, getParamToLong, getParamToLong, getParamToLong, getParamToLongArray, getParamToLongArray, getParamToLongList, getParamToLongList, getParamToMap, getParamToMap, getParamToMap, getParamToMapList, getParamToMapList, getParamToShort, getParamToShort, getParamToShort, getParamToShortArray, getParamToShortArray, getParamToShortList, getParamToShortList, getProjectHost, getRemoteIp, getRequesetAttr, getRequest, getRequestHeader, getRequestHeaderNames, getRequestHeaders, getRequestMethod, getResponse, getServletContext, getSession, getSession, getStatus, getUrlParam, getUrlParams, getUserAgent, invoke, isLog, isLogResponse, isMultipart, isParamBlank, isParamEmpty, isParamExists, isParamNotBlank, isParamNotEmpty, redirect, redirect301, removeCookie, removeCookie, removeCookie, removeLock, removeRequestAttr, removeSession, resetCaptcha, response, response404, response500, response502, responseCaptcha, responseFile, responseFile, responseFile, responseFile, responseFile, responseFile, responseFile, responseFreemarker, responseFreemarker, responseHtml, responseImage, responseImage, responseJson, responseJson, responseJson, responseJsp, responseParamError, responseParamError, responseStatus, responseText, responseText, responseText, responseText, responseThymeleaf, responseThymeleaf, responseVelocity, responseVelocity, responseXml, responseXml, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setLog, setLogResponse, setParam, setRequestAttr, setRequestAttr, setSession, setStatus, validateCaptchaprotected String getRoute()
getRoute 在类中 com.fastchar.core.FastActionpublic com.fastchar.database.FastPage<?> list()
public void save()
private void pluckArrayValue(com.fastchar.core.FastEntity<?> entity,
List<com.fastchar.core.FastEntity<?>> entities)
public void delete()
throws Exception
Exceptionpublic void update()
throws Exception
Exceptionpublic void copy()
public void clear()
throws Exception
Exceptionpublic void reback()
public void compute()
throws Exception
Exceptionpublic void export()
throws Exception
Exceptionpublic void module()
throws Exception
Exceptionpublic void importData()
throws Exception
Exceptionprivate Object getCellValue(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Cell cell)
public void updateLayer()
Copyright © 2021. All rights reserved.