ludc
2024-09-13 5056af07922b451b6edaaff615e34d88ce77dd16
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebEnumController.java
@@ -216,7 +216,7 @@
   @VciBusinessLog(operateName = "导出枚举类型")
   public void exportEnumTypes(String exportFileName,String enumNames, HttpServletResponse response){
      try {
         String excelPath = enumService.exportEnumTypes(exportFileName,enumNames);
         String excelPath = enumService.exportEnumTypes(exportFileName,enumNames,false);
         ControllerUtil.writeFileToResponse(response,excelPath);
      } catch (Exception e) {
         String msg = "导出枚举时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e);
@@ -270,7 +270,7 @@
            return BaseResult.fail(FrameWorkLangCodeConstant.IMPORT_FAIL, new String[]{"无导入的文件"});
         }
      }catch (Throwable e) {
         throw new VciBaseException(e.getMessage(),new String[0],e);
         throw new VciBaseException(VciBaseUtil.getExceptionMessage(e),new String[0],e);
      }finally {
         file1.delete();
      }