FileFtransitUtil去掉方法的静态关键字

This commit is contained in:
qiaoqinzheng 2023-10-20 08:54:08 +08:00
parent c5f4b20183
commit b09bb44a0a

View File

@ -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");
//解决中文不能生成文件