@CacheConfig(cacheNames="dictionaryCache") @Transactional(rollbackFor=java.lang.Exception.class) @Service public class CoreDictionarymxServiceImpl extends BaseServiceImpl<CoreDictionarymx> implements CoreDictionarymxService
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) CoreDictionaryMapper |
coreDictionaryMapper |
(专用程序包) CoreDictionarymxMapper |
coreDictionarymxMapper |
(专用程序包) org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations |
jdbcTemplate |
构造器和说明 |
---|
CoreDictionarymxServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
CoreDictionarymx |
addEntity(CoreDictionarymx entity)
新增实体并返回实体
|
java.util.List<CoreDictionarymx> |
findListTree(java.util.Map<java.lang.String,java.lang.Object> params)
查询明细树,懒加载的方式
|
java.util.List<CoreDictionarymx> |
findScriptData(java.lang.String scriptString)
查询脚本的数据
|
java.lang.Long |
getDictionarymxTotalByDictionaryId(java.util.Map<java.lang.String,java.lang.Object> params)
根据字典项id获取字典明细总数
|
int |
modify(CoreDictionarymx entity)
更新实体
|
int |
removeByDictionaryId(java.lang.String rwid)
删除多条字典项通过字典ID
|
int |
removeByIds(java.util.List<java.lang.String> ids)
删除多个实体
|
add, confirm, findAll, findList, getEntity, removeById, saveJdbc, startProcess, startProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, confirm, findAll, findList, getEntity, removeById, startProcess, startProcess
@Autowired CoreDictionaryMapper coreDictionaryMapper
@Autowired CoreDictionarymxMapper coreDictionarymxMapper
@Autowired org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations jdbcTemplate
@CacheEvict(key="#entity.getZDZ_DICTIONARYID()", beforeInvocation=true) public CoreDictionarymx addEntity(CoreDictionarymx entity) throws java.lang.Exception
BaseService
addEntity
在接口中 BaseService<CoreDictionarymx>
addEntity
在类中 BaseServiceImpl<CoreDictionarymx>
entity
- 实体对象java.lang.Exception
- 出错会抛出异常@CacheEvict(key="#entity.getZDZ_DICTIONARYID()", beforeInvocation=true) public int modify(CoreDictionarymx entity) throws java.lang.Exception
BaseService
modify
在接口中 BaseService<CoreDictionarymx>
modify
在类中 BaseServiceImpl<CoreDictionarymx>
entity
- 实体对象java.lang.Exception
- 出错会抛出异常@CacheEvict(key="#rwid", beforeInvocation=true) public int removeByDictionaryId(java.lang.String rwid)
CoreDictionarymxService
removeByDictionaryId
在接口中 CoreDictionarymxService
rwid
- 注解@CacheEvict(allEntries=true) public int removeByIds(java.util.List<java.lang.String> ids) throws java.lang.Exception
BaseService
removeByIds
在接口中 BaseService<CoreDictionarymx>
removeByIds
在类中 BaseServiceImpl<CoreDictionarymx>
ids
- 实体的主键Listjava.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.lang.Long getDictionarymxTotalByDictionaryId(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreDictionarymxService
getDictionarymxTotalByDictionaryId
在接口中 CoreDictionarymxService
params
- 参数java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<CoreDictionarymx> findListTree(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreDictionarymxService
findListTree
在接口中 CoreDictionarymxService
params
- 参数java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<CoreDictionarymx> findScriptData(java.lang.String scriptString) throws java.lang.Exception
CoreDictionarymxService
findScriptData
在接口中 CoreDictionarymxService
scriptString
- 脚本java.lang.Exception
- 出错会抛出异常