mirror of https://github.com/jeecgboot/jeecg-boot
Merge 509ac3f8ec
into 118775cf79
commit
b874a2430e
|
@ -100,18 +100,19 @@ public class ResourceUtil {
|
||||||
}
|
}
|
||||||
Map<String, List<DictModel>> map = new HashMap<>();
|
Map<String, List<DictModel>> map = new HashMap<>();
|
||||||
for (String code : enumDictData.keySet()) {
|
for (String code : enumDictData.keySet()) {
|
||||||
if(dictCodeList.indexOf(code)>=0){
|
if(dictCodeList.indexOf(code)<0){
|
||||||
List<DictModel> dictItemList = enumDictData.get(code);
|
continue;
|
||||||
for(DictModel dm: dictItemList){
|
|
||||||
String value = dm.getValue();
|
|
||||||
if(keys.indexOf(value)>=0){
|
|
||||||
List<DictModel> list = new ArrayList<>();
|
|
||||||
list.add(new DictModel(value, dm.getText()));
|
|
||||||
map.put(code,list);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
List<DictModel> dictItemList = enumDictData.get(code);
|
||||||
|
List<DictModel> list = new ArrayList<>();
|
||||||
|
for(DictModel dm: dictItemList){
|
||||||
|
String value = dm.getValue();
|
||||||
|
if(keys.indexOf(value)<0){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
list.add(new DictModel(value, dm.getText()));
|
||||||
|
}
|
||||||
|
map.put(code,list);
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue