智慧保安后台管理-外网项目备份
钟日健
2026-06-01 62eb499b0c969f246d3245d1429a97da4de1ce28
src/main/java/org/springblade/common/excel/ExcelDictConverter.java
@@ -55,12 +55,23 @@
      List<DictBiz> list = DictBizCache.getList(dictType);
      //解析返回
      String key = "";
      for (DictBiz dictBiz : list) {
         if (dictBiz.getDictValue().equals(dictLabel)){
            key = dictBiz.getDictKey();
            break;
      //对学历进行单独处理
      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;
   }