diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/GammaServiceImpl.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/GammaServiceImpl.java index 8c61626c..07223d3b 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/GammaServiceImpl.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/GammaServiceImpl.java @@ -83,6 +83,8 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi @Autowired private GammaFileUtil gammaFileUtil; @Autowired + private FileFtransitUtil fileFtransitUtil; + @Autowired private DBUtil dbUtil; @Autowired private UserTaskUtil userTaskUtil; @@ -4498,14 +4500,14 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi imsFile = File.createTempFile("betaGamma", null); inputStream = file.getInputStream(); FileUtils.copyInputStreamToFile(inputStream, imsFile); - if(!FileFtransitUtil.ReadIMS(imsFile, datas)) { + if(!fileFtransitUtil.ReadIMS(imsFile, datas)) { String Warning = "Read "+ImsName+" failed!\n"+ "Possible Reason:\n"+ "1、The file is unreadable;\n"+ "2、The format of file is error."; return; } - String iecValue = FileFtransitUtil.WriteIEC(datas); + String iecValue = fileFtransitUtil.WriteIEC(datas); //设置响应类型 response.setContentType("application/octet-stream"); //解决中文不能生成文件 @@ -4543,14 +4545,14 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi iecFile = File.createTempFile("betaGamma", null); inputStream = file.getInputStream(); FileUtils.copyInputStreamToFile(inputStream, iecFile); - if(!FileFtransitUtil.ReadIEC(iecFile, datas)) { + if(!fileFtransitUtil.ReadIEC(iecFile, datas)) { String Warning = "Read "+IecName+" failed!\n"+ "Possible Reason:\n"+ "1、The file is unreadable;\n"+ "2、The format of file is error."; return; } - String imsValue = FileFtransitUtil.WriteIMS(datas); + String imsValue = fileFtransitUtil.WriteIMS(datas); //设置响应类型 response.setContentType("application/octet-stream"); //解决中文不能生成文件