src/main/java/org/springblade/common/excel/ExcelDictConverter.java
@@ -55,12 +55,23 @@ List<DictBiz> list = DictBizCache.getList(dictType); //解析返回 String key = ""; //对学历进行单独处理 if (dictType.equals("educationType")){ for (DictBiz dictBiz : list) { if (dictBiz.getDictValue().indexOf(dictLabel)>-1){ key = dictBiz.getDictKey(); break; } } }else{ for (DictBiz dictBiz : list) { if (dictBiz.getDictValue().equals(dictLabel)){ key = dictBiz.getDictKey(); break; } } } // 返回key return key; }