控制器Flow的基类
成员函数:
ExecHash
执行传入的sql语句,并返回hash结构
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHash hash结构
ExecHashList
执行传入的sql语句,并返回HashList结构
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHashList HashList结构
ExecHsHash
执行传入的sql语句,并返回hash结构
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHash hash结构
ExecHashEntity
执行传入的sql语句,并返回hash结构,字段为实体名称的形式
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHash hash结构 字段为实体名称
ExecHsHashList
执行传入的sql语句,并返回HashList结构
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHashList HashList结构
ExecHashEntityList
执行传入的sql语句,并返回HashList结构,字段为实体名称的形式
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHashList HashList结构,字段为实体名称的形式
InsertIdentity
插入含有自增列主键的表,并范围该主键值
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
Int 主键值
ExecNonQuery
直接操作数据库
参数:
名称 | 类型 | 说明 |
---|---|---|
commandText | String | sql语句 |
返回值:
Int 影响记录条数
SearchList
根据相应的表数据,条件数据,分页数据,排序数据查询数据库,获得ZmHashList对象
参数:
名称 | 类型 | 说明 |
---|---|---|
mainTable | ZmQueryTable | 表数据 |
subTables | ZmQueryTableList | 关联表数据 |
queryCondition | ZmQueryConditionList | 查询条件 |
Pager | ZmPager | 分页数据 |
Sorter | ZmSorter | 排序数据 |
返回值:
ZmHashList 查询出的内容,ZmHashList对象
SearchEntityList
根据相应的表数据,条件数据,分页数据,排序数据查询数据库,获得ZmHashList对象,对象中的key转化为实体的形式
参数:
名称 | 类型 | 说明 |
---|---|---|
mainTable | ZmQueryTable | 表数据 |
subTables | ZmQueryTableList | 关联表数据 |
queryCondition | ZmQueryConditionList | 查询条件 |
Pager | ZmPager | 分页数据 |
Sorter | ZmSorter | 排序数据 |
返回值:
ZmHashList 查询出的内容,ZmHashList对象,对象中的key转化为实体的形式
searchHashPageList
根据相应的表数据,条件数据,分页数据,排序数据查询数据库,并把查询结果赋值到页面数据pageData里面
参数:
名称 | 类型 | 说明 |
---|---|---|
pageData | ZmPageData | 页面数据 |
mainTable | ZmQueryTable | 表数据 |
subTables | ZmQueryTableList | 关联表数据 |
queryCondition | ZmQueryConditionList | 查询条件 |
Pager | ZmPager | 分页数据 |
Sorter | ZmSorter | 排序数据 |
SetCache
设置数据缓存
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
val | Object | 缓存的值 |
GetCacheString
获取缓存的字符串数据
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
返回值:
String 缓存的字符串数据
GetCacheInt
获取缓存的整数数据
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
返回值:
Int 缓存的整数数据
GetCacheHashList
获取缓存的HashList数据
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
返回值:
ZmHashList 缓存的HashList数据
GetCacheHash
获取缓存的Hash数据
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
返回值:
ZmHash 缓存的Hash数据
RemoveCache
根据缓存的键key删除数据缓存
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
GetServerUrl
获取服务端url地址
返回值:
String 服务端url地址
CreateActionModelView
创建并返回ActionModelView对象
返回值:
ActionModelView ActionModelView对象
ResponseMainViewModel
控制器返回ActionModelView对象数据
参数:
名称 | 类型 | 说明 |
---|---|---|
mView | ActionModelView | ActionModelView对象 |
modelName | String | 名称key |
model | String | 返回的model |
返回值:
ActionModelView ActionModelView对象
okReturnMsg
设置并返回ZmReturnMsg对象为ok状态
返回值:
ZmReturnMsg ZmReturnMsg对象
ResponseReturnMsgOK
设置并返回ZmReturnMsg对象为ok状态,并传递ok状态下的消息内容
参数:
名称 | 类型 | 说明 |
---|---|---|
msg | String | ok状态下的消息内容 |
返回值:
ZmReturnMsg ZmReturnMsg对象
ResponseReturnMsgOKOther
设置并返回ZmReturnMsg对象为ok状态,并传递ok状态下的消息内容和other数据
参数:
名称 | 类型 | 说明 |
---|---|---|
msg | String | ok状态下的消息内容 |
otherdata | String | 其它other数据内容 |
返回值:
ZmReturnMsg ZmReturnMsg对象
ResponseReturnMsgError
设置并返回ZmReturnMsg对象为error状态,并传递error状态下的消息内容和other数据
参数:
名称 | 类型 | 说明 |
---|---|---|
msg | String | error状态下的消息内容 |
otherdata | String | 其它other数据内容 可选 |
返回值:
ZmReturnMsg ZmReturnMsg对象
SetFlowDefine
设置工作流定义对象
参数:
名称 | 类型 | 说明 |
---|---|---|
item | FlowDefine | 工作流定义对象 |
GetFlowDefine
获取工作流定义对象
返回值:
void FlowDefine对象
IsStepTagStart
判读步骤标签节点为开始节点
参数:
名称 | 类型 | 说明 |
---|---|---|
tag | String | 标签名称 |
返回值:
void 是否
IsStepTagEnd
判读步骤标签节点为结束节点
参数:
名称 | 类型 | 说明 |
---|---|---|
tag | String | 标签名称 |
返回值:
void 是否
findFlowDefineStepBySno
根据步骤编号查找工作流节点步骤
参数:
名称 | 类型 | 说明 |
---|---|---|
flowDefine | FlowDefine | 工作流定义对象 |
sno | String | 工作流定义步骤编号 |
返回值:
void 工作流节点步骤
findFlowDefineStepEnd
查找工作流定义的结束步骤
参数:
名称 | 类型 | 说明 |
---|---|---|
flowDefine | FlowDefine | 工作流定义对象 |
返回值:
void 工作流节点步骤
findFlowDefineStepStart
查找工作流定义的开始步骤
参数:
名称 | 类型 | 说明 |
---|---|---|
flowDefine | FlowDefine | 工作流定义对象 |
返回值:
void 工作流节点步骤
GetCurDb
获取当前数据库操作的Provider
返回值:
BaseProvider BaseProvider对象
log
写日志
参数:
名称 | 类型 | 说明 |
---|---|---|
str | String | 日志内容 |
其它说明:
无