@Repository
public interface AolaiDao
| 限定符和类型 | 方法和说明 |
|---|---|
int |
addCol(Map<String,String> map)
根据元数据修改表结构
|
int |
addOne(Map<String,String> map,
Map<String,Object> info)
往表中插入一条数据
|
int |
batchAdd(Map<String,String> map,
Map<String,Object> info,
List<Map<String,Object>> items)
批量往表中插入数据
|
int |
countRows(Map<String,String> map,
Map<String,Object> cond)
判断表中是否有数据
|
void |
create(Map<String,String> map)
利用GMETA信息动态创建表(不推荐在 aolai之外的应用直接调用)
|
int |
decrSort(String table,
String feild,
Map<String,Object> cond)
减小排序序号
|
int |
delete(String table,
Map<String,Object> cond)
删除表中的数据
|
int |
dropCol(Map<String,String> map)
根据元数据修改表结构
|
List<Map<String,String>> |
findList(Map<String,String> map,
Map<String,Object> cond)
批量查出表中的数据
|
Map<String,String> |
findOne(Map<String,String> map,
Map<String,Object> cond)
查出表中的一条记录,限定了只返回一条记录,无数据返回null
|
List<Map<String,String>> |
getActionList(Map<String,Object> map)
根据用户的应用、公司、账套、岗位(dutyId)获取页面上的功能事件控制权限一览
|
List<Map<String,String>> |
getMenuRole(Map<String,Object> map)
根据用户的应用、公司、账套、岗位(dutyId)获取菜单控制权限一览
pageId;pageName;pageRoute;pageCmpt;pageType;pageGroup;pageAction;pageIcon
;roleId;(rolePage;)roleAction
|
List<Map<String,String>> |
getMetaBy(Map<String,String> map,
Set<String> items)
从 Meta表中获取元数据信息一览
|
List<String> |
getMetaTable(String table)
从元数据GMETA表中获取元数据的表名一览
|
int |
getMValue(Map<String,String> map,
Map<String,Object> cond)
获取当前某个表中某个字段最大值或最小值
|
List<Map<String,String>> |
groupCount(String table,
Map<String,String> map,
Map<String,Object> cond)
归集数据行数,用于统计和分组数据
|
int |
incrSort(String table,
String feild,
Map<String,Object> cond)
增加排序序号
|
List<Map<String,String>> |
query(String field)
已过时。
这个方法不安全已被弃用,且在未来版本中不再支持。
|
List<String> |
showTables(String table)
从数据库中获取实体表名
|
int |
update(String table,
Map<String,Object> info,
Map<String,Object> cond)
更新表中的数据
|
@Deprecated List<Map<String,String>> query(@Param(value="field") String field)
field - int addOne(@Param(value="map")
Map<String,String> map,
@Param(value="info")
Map<String,Object> info)
map - 表名table、更新标记dupl等info - 插入数据int batchAdd(@Param(value="map")
Map<String,String> map,
@Param(value="info")
Map<String,Object> info,
@Param(value="items")
List<Map<String,Object>> items)
map - 表名table、更新标记dupl等info - 字段映射信息items - 插入数据列表int delete(@Param(value="table")
String table,
@Param(value="cond")
Map<String,Object> cond)
table - 表名table等cond - 删除条件int update(@Param(value="table")
String table,
@Param(value="info")
Map<String,Object> info,
@Param(value="cond")
Map<String,Object> cond)
table - 表名table、别名alias等info - 更新数值cond - 更新条件List<Map<String,String>> findList(@Param(value="map") Map<String,String> map, @Param(value="cond") Map<String,Object> cond)
map - 表名table、别名alias等cond - 查询条件Map<String,String> findOne(@Param(value="map") Map<String,String> map, @Param(value="cond") Map<String,Object> cond)
map - 表名table、别名alias等cond - 查询条件int countRows(@Param(value="map")
Map<String,String> map,
@Param(value="cond")
Map<String,Object> cond)
map - 表名table等cond - 查询条件List<Map<String,String>> getMetaBy(@Param(value="map") Map<String,String> map, @Param(value="items") Set<String> items)
List<Map<String,String>> getMenuRole(Map<String,Object> map)
pageId;pageName;pageRoute;pageCmpt;pageType;pageGroup;pageAction;pageIcon ;roleId;(rolePage;)roleAction
map - 查询条件List<Map<String,String>> getActionList(Map<String,Object> map)
map - 查询条件int getMValue(@Param(value="map")
Map<String,String> map,
@Param(value="cond")
Map<String,Object> cond)
List<Map<String,String>> groupCount(@Param(value="table") String table, @Param(value="map") Map<String,String> map, @Param(value="cond") Map<String,Object> cond)
int decrSort(@Param(value="table")
String table,
@Param(value="field")
String feild,
@Param(value="cond")
Map<String,Object> cond)
Copyright © 2024. All rights reserved.