@CacheConfig(cacheNames="dictionaryCache") @Transactional(rollbackFor=java.lang.Exception.class) @Service public class CoreDictionaryServiceImpl extends BaseServiceImpl<CoreDictionary> implements CoreDictionaryService
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) CoreDictionaryMapper |
coreDictionaryMapper |
(专用程序包) CoreDictionarymxService |
coreDictionaryService |
java.lang.String |
KEY_NAME |
构造器和说明 |
---|
CoreDictionaryServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
CoreDictionary |
addEntity(CoreDictionary entity)
新增实体并返回实体
|
java.util.List<CoreDictionarymx> |
findDictionaryMX(java.util.Map<java.lang.String,java.lang.Object> params)
获取对应的明细值
|
java.util.List<CoreDictionarymx> |
findDictionaryMXByCode(java.lang.String zdmxBianh)
通过字典代码来获取字典明细列表
|
java.util.List<BaseKeyValue> |
getDictionary(java.util.Map<java.lang.String,java.lang.Object> params)
获取字段的 key-value格式 返回的key是字典项的值
|
java.util.List<BaseKeyValue> |
getMenuDictionary()
获取菜单的值 形式 key-value 其中key 的值是rwid
|
int |
modify(CoreDictionary entity)
更新实体
|
int |
removeById(java.lang.String id)
删除实体
|
int |
removeByIds(java.util.List<java.lang.String> ids)
删除多个实体
|
add, confirm, findAll, findList, getEntity, saveJdbc, startProcess, startProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, confirm, findAll, findList, getEntity, startProcess, startProcess
@Autowired CoreDictionaryMapper coreDictionaryMapper
@Autowired CoreDictionarymxService coreDictionaryService
public final java.lang.String KEY_NAME
public CoreDictionary addEntity(CoreDictionary entity) throws java.lang.Exception
BaseService
addEntity
在接口中 BaseService<CoreDictionary>
addEntity
在类中 BaseServiceImpl<CoreDictionary>
entity
- 实体对象java.lang.Exception
- 出错会抛出异常@CacheEvict(key="#entity.getRWID()", beforeInvocation=true) public int modify(CoreDictionary entity) throws java.lang.Exception
BaseService
modify
在接口中 BaseService<CoreDictionary>
modify
在类中 BaseServiceImpl<CoreDictionary>
entity
- 实体对象java.lang.Exception
- 出错会抛出异常@Cacheable(key="#params.get(\'RWID\')") @Transactional(propagation=REQUIRED) public java.util.List<BaseKeyValue> getDictionary(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreDictionaryService
getDictionary
在接口中 CoreDictionaryService
params
- 参数java.lang.Exception
- 出错会抛出异常
参数集合@Transactional(propagation=REQUIRED) public java.util.List<CoreDictionarymx> findDictionaryMX(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
CoreDictionaryService
findDictionaryMX
在接口中 CoreDictionaryService
params
- 参数
条件集合java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<CoreDictionarymx> findDictionaryMXByCode(java.lang.String zdmxBianh) throws java.lang.Exception
CoreDictionaryService
findDictionaryMXByCode
在接口中 CoreDictionaryService
zdmxBianh
- 编号java.lang.Exception
- 出错会抛出异常@CacheEvict(key="#id", beforeInvocation=true) public int removeById(java.lang.String id) throws java.lang.Exception
BaseService
removeById
在接口中 BaseService<CoreDictionary>
removeById
在类中 BaseServiceImpl<CoreDictionary>
id
- 实体idjava.lang.Exception
- 出错会抛出异常public int removeByIds(java.util.List<java.lang.String> ids) throws java.lang.Exception
BaseService
removeByIds
在接口中 BaseService<CoreDictionary>
removeByIds
在类中 BaseServiceImpl<CoreDictionary>
ids
- 实体的主键Listjava.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<BaseKeyValue> getMenuDictionary()
CoreDictionaryService
getMenuDictionary
在接口中 CoreDictionaryService