public interface DbOperatorApi
| 限定符和类型 | 方法和说明 |
|---|---|
Set<Long> |
findSubListByParentId(String tableName,
String parentIdsFieldName,
String keyFieldName,
Long keyFieldValue)
获取某个表,某条数据的所有子列表
本方法用在带有层级关系的表,并且有 "pids" 类似的字段
通过 like 操作可以查询到该条数据的所有子数据
pids的组成规范必须是[0],[xxx],[xxx]
|
DbTypeEnum |
getCurrentDbType()
获取当前数据库连接的数据库类型
|
Long |
getMaxSortByTableName(String tableName,
String fieldName)
获取数据库,指定表,指定字段在库里的最大值
|
int |
selectCount(String sql,
Object... args)
返回SelectCount SQL执行的结果
|
DbTypeEnum getCurrentDbType()
int selectCount(String sql, Object... args)
sql - 带有select count()相关语句的sqlargs - sql中的参数Set<Long> findSubListByParentId(String tableName, String parentIdsFieldName, String keyFieldName, Long keyFieldValue)
本方法用在带有层级关系的表,并且有 "pids" 类似的字段
通过 like 操作可以查询到该条数据的所有子数据
pids的组成规范必须是[0],[xxx],[xxx]
tableName - 表名称,例如sys_userparentIdsFieldName - 父级ids的字段名keyFieldName - 主键id的字段名keyFieldValue - 主键id的值Copyright © 2024. All rights reserved.