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
f4536d5d
"vscode:/vscode.git/clone" did not exist on "29c2b5f88c838d358715f1990335b58c66df9c68"
Commit
f4536d5d
authored
Sep 04, 2020
by
若依
Committed by
Gitee
Sep 04, 2020
Browse files
!86 数据字典缓存处理的一点小问题
Merge pull request !86 from 说一/master
parents
aed958b1
3fd9147a
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java
View file @
f4536d5d
...
@@ -76,12 +76,12 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
...
@@ -76,12 +76,12 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
public
List
<
SysDictData
>
selectDictDataByType
(
String
dictType
)
public
List
<
SysDictData
>
selectDictDataByType
(
String
dictType
)
{
{
List
<
SysDictData
>
dictDatas
=
DictUtils
.
getDictCache
(
dictType
);
List
<
SysDictData
>
dictDatas
=
DictUtils
.
getDictCache
(
dictType
);
if
(
StringUtils
.
isNotNull
(
dictDatas
))
if
(
null
!=
dictDatas
&&!
dictDatas
.
isEmpty
(
))
{
{
return
dictDatas
;
return
dictDatas
;
}
}
dictDatas
=
dictDataMapper
.
selectDictDataByType
(
dictType
);
dictDatas
=
dictDataMapper
.
selectDictDataByType
(
dictType
);
if
(
StringUtils
.
isNotNull
(
dictDatas
))
if
(
null
!=
dictDatas
&&!
dictDatas
.
isEmpty
(
))
{
{
DictUtils
.
setDictCache
(
dictType
,
dictDatas
);
DictUtils
.
setDictCache
(
dictType
,
dictDatas
);
return
dictDatas
;
return
dictDatas
;
...
...
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