@Service public class DictionaryServiceImpl extends Object implements DictionaryService
| Constructor and Description |
|---|
DictionaryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
addDictionary(DmDictionaryCreateDTO createDTO)
添加值域
|
Long |
addDictionaryValue(DmDictValueCreateDTO createDTO)
添加值域值
|
void |
deleteDictionary(String dictionaryKey)
删除值域
|
void |
deleteDictionaryValue(String ids)
值域值标识,多个用逗号隔开
|
void |
exportXml(javax.servlet.http.HttpServletResponse response,
Long dictionaryId)
字典导出到xml
|
DmDictValueDTO |
getDictionaryTree(Long dictionaryId)
获取值域树
|
DmDictValueDTO |
getDictionaryTree(String dictionaryKey)
获取值域树
|
List<DmDictValueDTO> |
getDictionaryTreeByKeys(String[] dictionaryKeys)
获取值域树
|
List<DmDictValueDTO> |
getDictionaryValueList(String dictionaryKey)
获取值域列表
|
void |
importXml(org.springframework.web.multipart.MultipartFile file,
Long dictionaryId)
xml导入到字典
|
List<DmDictionary> |
list(String keyword)
获取值域配置列表
|
void |
sort(DmDictValueSortDTO sortDTO)
字典值重排序
|
void |
updateDictionary(DmDictionaryCreateDTO editDTO)
更新值域
|
void |
updateDictionaryValue(DmDictValueEditDTO editDTO)
更新值域值
|
public List<DmDictionary> list(String keyword)
DictionaryServicelist in interface DictionaryServicekeyword - 关键词@Cacheable(value="DictionaryCache",
keyGenerator="customKeyGenerator")
public DmDictValueDTO getDictionaryTree(Long dictionaryId)
DictionaryServicegetDictionaryTree in interface DictionaryServicedictionaryId - 值域标识@Cacheable(value="DictionaryCache",
keyGenerator="customKeyGenerator")
public DmDictValueDTO getDictionaryTree(String dictionaryKey)
DictionaryServicegetDictionaryTree in interface DictionaryServicedictionaryKey - 值域编码public List<DmDictValueDTO> getDictionaryTreeByKeys(String[] dictionaryKeys)
DictionaryServicegetDictionaryTreeByKeys in interface DictionaryServicedictionaryKeys - 值域编码列表@Cacheable(value="DictionaryCache",
keyGenerator="customKeyGenerator")
public List<DmDictValueDTO> getDictionaryValueList(String dictionaryKey)
DictionaryServicegetDictionaryValueList in interface DictionaryServicedictionaryKey - 值域编码@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DictionaryCache", allEntries=true) public Long addDictionary(DmDictionaryCreateDTO createDTO)
DictionaryServiceaddDictionary in interface DictionaryServicecreateDTO - 新增参数@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DictionaryCache", allEntries=true) public void updateDictionary(DmDictionaryCreateDTO editDTO)
DictionaryServiceupdateDictionary in interface DictionaryServiceeditDTO - 编辑参数@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DictionaryCache", allEntries=true) public void deleteDictionary(String dictionaryKey)
DictionaryServicedeleteDictionary in interface DictionaryServicedictionaryKey - 值域编码@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DictionaryCache", allEntries=true) public Long addDictionaryValue(DmDictValueCreateDTO createDTO)
DictionaryServiceaddDictionaryValue in interface DictionaryServicecreateDTO - 新增参数@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DictionaryCache", allEntries=true) public void updateDictionaryValue(DmDictValueEditDTO editDTO)
DictionaryServiceupdateDictionaryValue in interface DictionaryServiceeditDTO - 编辑参数@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DictionaryCache", allEntries=true) public void deleteDictionaryValue(String ids)
DictionaryServicedeleteDictionaryValue in interface DictionaryServiceids - 值域值标识,多个用逗号隔开@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DictionaryCache", allEntries=true) public void sort(DmDictValueSortDTO sortDTO)
DictionaryServicesort in interface DictionaryServicesortDTO - 排序参数@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DictionaryCache", allEntries=true) public void importXml(org.springframework.web.multipart.MultipartFile file, Long dictionaryId)
DictionaryServiceimportXml in interface DictionaryServicefile - xml文件dictionaryId - 字典值dpublic void exportXml(javax.servlet.http.HttpServletResponse response,
Long dictionaryId)
DictionaryServiceexportXml in interface DictionaryServiceresponse - 响应dictionaryId - 字典值dCopyright © 2025. All rights reserved.