Commit 27ec437e authored by fangxinjiang's avatar fangxinjiang

缓存更新

parent a78fcf4e
...@@ -237,16 +237,11 @@ public class SysDictItemServiceImpl extends ServiceImpl<SysDictItemMapper, SysDi ...@@ -237,16 +237,11 @@ public class SysDictItemServiceImpl extends ServiceImpl<SysDictItemMapper, SysDi
} }
private void extracted(List<SysDictItem> allList, Map<String, Object> resultMap) { private void extracted(List<SysDictItem> allList, Map<String, Object> resultMap) {
if (Common.isNotNull(allList)){ if (Common.isNotNull(allList)){
for (SysDictItem item : allList) { if (Common.isEmpty(resultMap)){
String dictCode = item.getType(); resultMap = new HashMap<>();
if (resultMap.get(dictCode) == null) {
Map<String, Object> dictMap = new HashMap<String, Object>();
dictMap.put(item.getValue(), item.getLabel());
resultMap.put(dictCode, dictMap);
} else {
Map dictMap = (Map) resultMap.get(dictCode);
dictMap.put(item.getValue(), item.getLabel());
} }
for (SysDictItem item : allList) {
resultMap.put(item.getValue(), item.getLabel());
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment