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
Eladmin
Commits
48dff861
Commit
48dff861
authored
Jun 07, 2021
by
Zheng Jie
Browse files
[Bug修复](master): update DictServiceImpl.java
close
https://github.com/elunez/eladmin/issues/612
parent
4b845b74
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/DictServiceImpl.java
View file @
48dff861
...
...
@@ -72,8 +72,9 @@ public class DictServiceImpl implements DictService {
delCaches
(
resources
);
Dict
dict
=
dictRepository
.
findById
(
resources
.
getId
()).
orElseGet
(
Dict:
:
new
);
ValidationUtil
.
isNull
(
dict
.
getId
(),
"Dict"
,
"id"
,
resources
.
getId
());
resources
.
setId
(
dict
.
getId
());
dictRepository
.
save
(
resources
);
dict
.
setName
(
resources
.
getName
());
dict
.
setDescription
(
resources
.
getDescription
());
dictRepository
.
save
(
dict
);
}
@Override
...
...
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