|
@@ -135,14 +135,13 @@ public class DictService {
|
|
|
}
|
|
|
|
|
|
public Map<String,String> getDictMapByType(String param) {
|
|
|
- String[] split = param.split(",");
|
|
|
- if(ObjectUtil.isNull(split)){
|
|
|
- return new HashMap<>();
|
|
|
- }
|
|
|
DictParam dictParam = new DictParam();
|
|
|
- dictParam.setDictTypes(split[0]);
|
|
|
+ dictParam.setDictTypes(param);
|
|
|
Map<String, Map<String, String>> dictMaps = getDictMapsByTypes(dictParam);
|
|
|
- Map<String, String> dictMap = dictMaps.get(split[0]);
|
|
|
+ Map<String, String> dictMap = dictMaps.get(param);
|
|
|
+ if(ObjectUtil.isNull(dictMap)){
|
|
|
+ new HashMap<>();
|
|
|
+ }
|
|
|
return dictMap;
|
|
|
}
|
|
|
|