mirror of https://github.com/elunez/eladmin
[Bug修复](master): update DictServiceImpl.java
close https://github.com/elunez/eladmin/issues/612pull/654/head
parent
4b845b748f
commit
48dff86111
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue