@Service @CacheConfig(cacheNames="dataSourceDataCache") @Transactional(rollbackFor=java.lang.Exception.class) public class CoreDataSourceServiceImpl extends java.lang.Object implements CoreDataSourceService
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) java.lang.String |
ADVANCE_QUERY_KEY
高级查询
|
(专用程序包) static java.lang.String |
CACHE_NAME |
(专用程序包) CoreBiaodywrzMapper |
coreBiaodywrzMapper |
(专用程序包) CoreTablesColumnService |
coreTablesColumnService |
(专用程序包) CoreTablesService |
coreTablesService |
(专用程序包) static java.lang.String |
QUERY_KEY |
(专用程序包) java.lang.String |
QUICK_QUERY_KEY
快速查询
|
static java.lang.String |
QUICK_QUERY_PARAM_VALUE
快速查询的参数值名
|
static java.lang.String |
SHUJGL |
(专用程序包) static java.lang.String |
SORT |
(专用程序包) SqlExecutor |
sqlExecutor |
构造器和说明 |
---|
CoreDataSourceServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
void |
addDataLog(java.lang.String tbId,
java.lang.String tbBh,
java.lang.String rwid,
java.lang.String strContent)
添加数据痕迹记录
|
RetVo |
checkDao(java.util.Map<java.lang.String,java.lang.Object> params)
校验dao
|
RetVo |
execSqlScript(java.util.Map<java.lang.String,java.lang.Object> params)
执行sqlScript
|
void |
export(ExcelModel model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
导出数据
|
RetVo |
findSqlC(java.util.Map<java.lang.String,java.lang.Object> map)
查找sql的描述
|
RetPageVo |
getCacheQuery(CoreModelDesign model,
java.lang.String sql,
java.lang.String dsId,
java.util.Map<java.lang.String,java.lang.Object> params) |
java.util.List<CoreBiaodywrz> |
getDataLog(java.util.List<java.lang.String> tbIds,
PageParams page)
获取数据痕迹记录
|
java.util.List<CoreBiaodywrz> |
getDataLogByTableBh(java.util.List<java.lang.String> tbbhs,
PageParams page)
通过表编号获取数据痕迹记录
|
java.util.List<CoreBiaodywrz> |
getDataLogByYwId(java.util.List<java.lang.String> ywids,
PageParams page)
通过业务rwid获取数据痕迹记录
|
java.lang.String |
getsql(java.util.Map<java.lang.String,java.lang.Object> map)
得到数据源的sql
|
void |
initParams(java.util.Map<java.lang.String,java.lang.Object> params)
脚本执行前的把常用的参数都加入
|
(专用程序包) RetVo |
innerExecSqlScript(java.lang.String modelId,
java.lang.String cmpId,
java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
post(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> params)
提交
|
RetPageVo |
query(java.util.Map<java.lang.String,java.lang.Object> params)
查询
|
static final java.lang.String CACHE_NAME
@Autowired CoreTablesColumnService coreTablesColumnService
@Autowired CoreTablesService coreTablesService
@Autowired SqlExecutor sqlExecutor
@Autowired CoreBiaodywrzMapper coreBiaodywrzMapper
final java.lang.String QUICK_QUERY_KEY
public static final java.lang.String QUICK_QUERY_PARAM_VALUE
static final java.lang.String SORT
static final java.lang.String QUERY_KEY
final java.lang.String ADVANCE_QUERY_KEY
public static final java.lang.String SHUJGL
CoreDataSourceServiceImpl() throws kdayun.jsql.JSQLParserException
kdayun.jsql.JSQLParserException
@Transactional(propagation=REQUIRED) public RetPageVo query(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreDataSourceService
query
在接口中 CoreDataSourceService
params
- 参数java.lang.Exception
- 出错会抛出异常@Cacheable(key="#sql", condition="#model.isDataSourceCache(#sql,#dsId)") @Transactional(propagation=REQUIRED) public RetPageVo getCacheQuery(CoreModelDesign model, java.lang.String sql, java.lang.String dsId, java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
public void initParams(java.util.Map<java.lang.String,java.lang.Object> params)
initParams
在接口中 CoreDataSourceService
params
- 参数@Transactional(rollbackFor=java.lang.Exception.class) public RetVo post(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> params) throws java.lang.Exception
CoreDataSourceService
post
在接口中 CoreDataSourceService
params
- 参数java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public void export(ExcelModel model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
CoreDataSourceService
export
在接口中 CoreDataSourceService
model
- 数据request
- 请求对象response
- 请求的返回java.lang.Exception
- 出错会抛出异常@Transactional(rollbackFor=java.lang.Exception.class) public RetVo execSqlScript(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreDataSourceService
execSqlScript
在接口中 CoreDataSourceService
params
- 参数java.lang.Exception
- 出错会抛出异常RetVo innerExecSqlScript(java.lang.String modelId, java.lang.String cmpId, java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@Transactional(propagation=REQUIRED) public java.lang.String getsql(java.util.Map<java.lang.String,java.lang.Object> map) throws java.lang.Exception
CoreDataSourceService
getsql
在接口中 CoreDataSourceService
map
- 的语句java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public RetVo findSqlC(java.util.Map<java.lang.String,java.lang.Object> map) throws java.lang.Exception
CoreDataSourceService
findSqlC
在接口中 CoreDataSourceService
map
- 参数java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public RetVo checkDao(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreDataSourceService
checkDao
在接口中 CoreDataSourceService
params
- 参数mapjava.lang.Exception
- 出错会抛出异常@Transactional(rollbackFor=java.lang.Exception.class) public void addDataLog(java.lang.String tbId, java.lang.String tbBh, java.lang.String rwid, java.lang.String strContent) throws java.lang.Exception
CoreDataSourceService
addDataLog
在接口中 CoreDataSourceService
tbId
- 表模型rwidtbBh
- 表模型编号rwid
- 记录的rwidstrContent
- 内容java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<CoreBiaodywrz> getDataLog(java.util.List<java.lang.String> tbIds, PageParams page) throws java.lang.Exception
CoreDataSourceService
getDataLog
在接口中 CoreDataSourceService
tbIds
- 表模型rwidpage
- 分页java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<CoreBiaodywrz> getDataLogByTableBh(java.util.List<java.lang.String> tbbhs, PageParams page) throws java.lang.Exception
CoreDataSourceService
getDataLogByTableBh
在接口中 CoreDataSourceService
tbbhs
- 表模型编号列表page
- 分页java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<CoreBiaodywrz> getDataLogByYwId(java.util.List<java.lang.String> ywids, PageParams page) throws java.lang.Exception
CoreDataSourceService
getDataLogByYwId
在接口中 CoreDataSourceService
ywids
- 业务单IDpage
- 分页java.lang.Exception
- 出错会抛出异常