@Service @Transactional(rollbackFor=java.lang.Exception.class) public class CoreModelDesignServiceImpl extends BaseServiceImpl<CoreModelDesign> implements CoreModelDesignService
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) CoreDataSourceService |
coreDataSourceService |
(专用程序包) CoreModelDesignMapper |
coreModelDesignMapper |
(专用程序包) CoreModelVersionMapper |
coreModelVersionMapper |
(专用程序包) CoreResService |
coreResService |
(专用程序包) CoreUserService |
coreUserService |
构造器和说明 |
---|
CoreModelDesignServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
CoreModelDesign |
addEntity(CoreModelDesign entity)
新增实体并返回实体
|
void |
buildFunctionFromPageModel(java.lang.String modelId) |
java.lang.String |
changeJsonId(java.lang.String json)
改变表单设计json的id
|
RetVo |
checkFormula(java.lang.String formula,
java.util.Map<java.lang.String,java.lang.Object> variables)
校验公式的合法性
|
RetVo |
checkSqlFormula(java.lang.String sql,
java.util.Map<java.lang.String,java.lang.Object> params)
校验sql语句
|
void |
cleanAll(java.lang.String modelId)
清空表单关联的json,事件
|
void |
commit(CoreModelDesign coreModelDesign,
java.lang.String desc,
java.lang.Integer type)
提交模型到版本管理
|
void |
copy(CoreModelDesign coreModelDesign)
复制表单
|
java.lang.String |
findFormulaDesc()
查询公式描述说明
|
java.lang.String |
findFormulaDescEx()
获取查询公式描述说明
|
CoreModelDesign |
findModelByCode(java.lang.String code)
通过编号得到表单设计模型的值
|
java.lang.String |
findQueryFormulaSqlHit()
获取sql公式编辑的变量提示
|
CoreModelDesign |
getEntity(java.lang.String modelId)
根据Id获取实体
|
java.lang.String |
getJsonByModelCode(java.lang.String modelCode,
java.lang.Boolean designModel)
获取模型解析之后json
|
java.lang.String |
getJsonByModelId(java.lang.String modelId,
java.lang.Boolean designModel)
获取模型解析之后json
|
RetPageVo |
getLogs(java.util.Map<java.lang.String,java.lang.Object> params)
获取该模型的版本日志
|
com.alibaba.fastjson.JSONObject |
getModelJson(java.lang.String modelId)
获取表单模型的json对象
|
com.alibaba.fastjson.JSONObject |
getModelJsonByMenuId(java.lang.String menuId)
根据菜单id 表单模型的json对象
|
void |
lock(java.lang.String modelId)
锁表单
|
int |
modify(CoreModelDesign entity)
更新实体
|
java.lang.String |
processModel(CoreModelDesign model)
处理页面model的公式等....
|
java.lang.String |
processModel(java.lang.String strJsonModel)
处理页面model的公式等....
|
(专用程序包) void |
processModelJson(com.alibaba.fastjson.JSONObject jsonModelClone)
处理modelName,modelCode的值
|
void |
processRightsByResId(com.alibaba.fastjson.JSONObject jsonModel,
java.lang.String resId)
获取资源的权限
|
void |
refreshParents(java.lang.String tableName)
刷新表的parents的值
主要是由于一些历史数据导致表的parents不一致.
|
int |
removeById(java.lang.String modelId)
删除实体
|
int |
removeByIds(java.util.List<java.lang.String> ids)
删除多个实体
|
void |
rollBack(java.lang.String modelId,
java.lang.String revisionId)
回滚到某版本
|
void |
unLock(java.lang.String modelId)
解锁表单
|
add, confirm, findAll, findList, saveJdbc, startProcess, startProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, confirm, findAll, findList, startProcess, startProcess
@Autowired CoreModelDesignMapper coreModelDesignMapper
@Autowired CoreModelVersionMapper coreModelVersionMapper
@Autowired CoreDataSourceService coreDataSourceService
@Autowired CoreResService coreResService
@Autowired CoreUserService coreUserService
public CoreModelDesign addEntity(CoreModelDesign entity) throws java.lang.Exception
BaseService
addEntity
在接口中 BaseService<CoreModelDesign>
addEntity
在类中 BaseServiceImpl<CoreModelDesign>
entity
- 实体对象java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public CoreModelDesign findModelByCode(java.lang.String code) throws java.lang.Exception
CoreModelDesignService
findModelByCode
在接口中 CoreModelDesignService
code
- 表单编号java.lang.Exception
- 出错会抛出异常@Cacheable(cacheNames="ModelDesignCache", key="#modelId") @Transactional(propagation=REQUIRED) public CoreModelDesign getEntity(java.lang.String modelId) throws java.lang.Exception
BaseService
getEntity
在接口中 BaseService<CoreModelDesign>
getEntity
在类中 BaseServiceImpl<CoreModelDesign>
modelId
- 实体idjava.lang.Exception
- 出错会抛出异常@Cacheable(cacheNames="ModelDesignCache", key="\'jsonobject\'+#modelId") @Transactional(propagation=REQUIRED) public com.alibaba.fastjson.JSONObject getModelJson(java.lang.String modelId) throws java.lang.Exception
CoreModelDesignService
getModelJson
在接口中 CoreModelDesignService
modelId
- 表单模型idjava.lang.Exception
- 出错会抛出异常@CacheEvict(cacheNames="ModelDesignCache",key="#modelId") @CacheEvict(cacheNames="ModelDesignCache",key="\'jsonobject\'+#modelId") public int removeById(java.lang.String modelId) throws java.lang.Exception
BaseService
removeById
在接口中 BaseService<CoreModelDesign>
removeById
在类中 BaseServiceImpl<CoreModelDesign>
modelId
- 实体idjava.lang.Exception
- 出错会抛出异常@CacheEvict(cacheNames="ModelDesignCache",key="#modelId") @CacheEvict(cacheNames="ModelDesignCache",key="\'jsonobject\'+#modelId") public void cleanAll(java.lang.String modelId) throws java.lang.Exception
CoreModelDesignService
cleanAll
在接口中 CoreModelDesignService
modelId
- 模型rwidjava.lang.Exception
- 出错会抛出异常@CacheEvict(cacheNames="ModelDesignCache", allEntries=true) public void refreshParents(java.lang.String tableName)
CoreModelDesignService
refreshParents
在接口中 CoreModelDesignService
tableName
- 表名@CacheEvict(cacheNames="ModelDesignCache",key="#entity.RWID") @CacheEvict(cacheNames="ModelDesignCache",key="\'jsonobject\'+#entity.RWID") public int modify(CoreModelDesign entity) throws java.lang.Exception
BaseService
modify
在接口中 BaseService<CoreModelDesign>
modify
在类中 BaseServiceImpl<CoreModelDesign>
entity
- 实体对象java.lang.Exception
- 出错会抛出异常public int removeByIds(java.util.List<java.lang.String> ids) throws java.lang.Exception
BaseService
removeByIds
在接口中 BaseService<CoreModelDesign>
removeByIds
在类中 BaseServiceImpl<CoreModelDesign>
ids
- 实体的主键Listjava.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.lang.String findFormulaDesc() throws java.lang.Exception
CoreModelDesignService
findFormulaDesc
在接口中 CoreModelDesignService
java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.lang.String findFormulaDescEx() throws java.lang.Exception
CoreModelDesignService
findFormulaDescEx
在接口中 CoreModelDesignService
java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.lang.String findQueryFormulaSqlHit() throws java.lang.Exception
CoreModelDesignService
findQueryFormulaSqlHit
在接口中 CoreModelDesignService
java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public RetVo checkFormula(java.lang.String formula, java.util.Map<java.lang.String,java.lang.Object> variables)
CoreModelDesignService
checkFormula
在接口中 CoreModelDesignService
formula
- 公式variables
- 参数public RetVo checkSqlFormula(java.lang.String sql, java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreModelDesignService
checkSqlFormula
在接口中 CoreModelDesignService
sql
- 公式params
- 参数java.lang.Exception
- 出错会抛出异常void processModelJson(com.alibaba.fastjson.JSONObject jsonModelClone) throws java.lang.Exception
jsonModelClone
- java.lang.Exception
@Transactional(propagation=REQUIRED) public java.lang.String processModel(java.lang.String strJsonModel) throws java.lang.Exception
CoreModelDesignService
processModel
在接口中 CoreModelDesignService
strJsonModel
- 表单模型json对象字符串java.lang.Exception
- 出错会抛出异常public void processRightsByResId(com.alibaba.fastjson.JSONObject jsonModel, java.lang.String resId) throws java.lang.Exception
CoreModelDesignService
processRightsByResId
在接口中 CoreModelDesignService
jsonModel
- 模型的jsonresId
- 菜单资源的IDjava.lang.Exception
public java.lang.String processModel(CoreModelDesign model) throws java.lang.Exception
CoreModelDesignService
processModel
在接口中 CoreModelDesignService
model
- 表单模型实例java.lang.Exception
- 出错会抛出异常public void copy(CoreModelDesign coreModelDesign) throws java.lang.Exception
CoreModelDesignService
copy
在接口中 CoreModelDesignService
coreModelDesign
- 表单模型java.lang.Exception
- 出错抛出异常public java.lang.String changeJsonId(java.lang.String json) throws java.lang.Exception
CoreModelDesignService
changeJsonId
在接口中 CoreModelDesignService
json
- 表单模型jsonjava.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.lang.String getJsonByModelId(java.lang.String modelId, java.lang.Boolean designModel) throws java.lang.Exception
CoreModelDesignService
getJsonByModelId
在接口中 CoreModelDesignService
modelId
- 模型rwiddesignModel
- 是否设计模式java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.lang.String getJsonByModelCode(java.lang.String modelCode, java.lang.Boolean designModel) throws java.lang.Exception
CoreModelDesignService
getJsonByModelCode
在接口中 CoreModelDesignService
modelCode
- 表单编号designModel
- 是否设计模式java.lang.Exception
- 出错会抛出异常public void commit(CoreModelDesign coreModelDesign, java.lang.String desc, java.lang.Integer type) throws java.lang.Exception
CoreModelDesignService
commit
在接口中 CoreModelDesignService
coreModelDesign
- 提交的实体desc
- 版本描述type
- 1 :普通修改保存; 2: 回滚修改 ; 3: 删除java.lang.Exception
- 出错会抛出异常@CacheEvict(cacheNames="ModelDesignCache", key="#modelId") public void rollBack(java.lang.String modelId, java.lang.String revisionId) throws java.lang.Exception
CoreModelDesignService
rollBack
在接口中 CoreModelDesignService
modelId
- 模型rwidrevisionId
- 版本的idjava.lang.Exception
- 出错会抛出异常public RetPageVo getLogs(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreModelDesignService
getLogs
在接口中 CoreModelDesignService
params
- 参数java.lang.Exception
- 出错会抛出异常public void buildFunctionFromPageModel(java.lang.String modelId)
@CacheEvict(cacheNames="ModelDesignCache",key="#modelId") @CacheEvict(cacheNames="ModelDesignCache",key="\'jsonobject\'+#modelId") public void lock(java.lang.String modelId) throws java.lang.Exception
CoreModelDesignService
lock
在接口中 CoreModelDesignService
modelId
- 模型rwidjava.lang.Exception
- 出错会抛出异常@CacheEvict(cacheNames="ModelDesignCache",key="#modelId") @CacheEvict(cacheNames="ModelDesignCache",key="\'jsonobject\'+#modelId") public void unLock(java.lang.String modelId) throws java.lang.Exception
CoreModelDesignService
unLock
在接口中 CoreModelDesignService
modelId
- 模型rwidjava.lang.Exception
- 出错会抛出异常public com.alibaba.fastjson.JSONObject getModelJsonByMenuId(java.lang.String menuId) throws java.lang.Exception
CoreModelDesignService
getModelJsonByMenuId
在接口中 CoreModelDesignService
menuId
- 菜单id(resid)java.lang.Exception