Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
77950898
Commit
77950898
authored
Aug 12, 2021
by
mroldx
Browse files
添加加载字典数据,清空字典数据,重置字典数据方法上遗漏的@Override注解
parent
d9e805a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java
View file @
77950898
package
com.ruoyi.system.service.impl
;
package
com.ruoyi.system.service.impl
;
import
java.util.List
;
import
javax.annotation.PostConstruct
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.ruoyi.common.constant.UserConstants
;
import
com.ruoyi.common.constant.UserConstants
;
import
com.ruoyi.common.core.domain.entity.SysDictData
;
import
com.ruoyi.common.core.domain.entity.SysDictData
;
import
com.ruoyi.common.core.domain.entity.SysDictType
;
import
com.ruoyi.common.core.domain.entity.SysDictType
;
...
@@ -14,6 +9,12 @@ import com.ruoyi.common.utils.StringUtils;
...
@@ -14,6 +9,12 @@ import com.ruoyi.common.utils.StringUtils;
import
com.ruoyi.system.mapper.SysDictDataMapper
;
import
com.ruoyi.system.mapper.SysDictDataMapper
;
import
com.ruoyi.system.mapper.SysDictTypeMapper
;
import
com.ruoyi.system.mapper.SysDictTypeMapper
;
import
com.ruoyi.system.service.ISysDictTypeService
;
import
com.ruoyi.system.service.ISysDictTypeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.PostConstruct
;
import
java.util.List
;
/**
/**
* 字典 业务层处理
* 字典 业务层处理
...
@@ -132,6 +133,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
...
@@ -132,6 +133,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
/**
/**
* 加载字典缓存数据
* 加载字典缓存数据
*/
*/
@Override
public
void
loadingDictCache
()
public
void
loadingDictCache
()
{
{
List
<
SysDictType
>
dictTypeList
=
dictTypeMapper
.
selectDictTypeAll
();
List
<
SysDictType
>
dictTypeList
=
dictTypeMapper
.
selectDictTypeAll
();
...
@@ -145,6 +147,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
...
@@ -145,6 +147,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
/**
/**
* 清空字典缓存数据
* 清空字典缓存数据
*/
*/
@Override
public
void
clearDictCache
()
public
void
clearDictCache
()
{
{
DictUtils
.
clearDictCache
();
DictUtils
.
clearDictCache
();
...
@@ -153,6 +156,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
...
@@ -153,6 +156,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
/**
/**
* 重置字典缓存数据
* 重置字典缓存数据
*/
*/
@Override
public
void
resetDictCache
()
public
void
resetDictCache
()
{
{
clearDictCache
();
clearDictCache
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment