人工交互分析上传报告文件在文件名称后拼接.txt

This commit is contained in:
qiaoqinzheng 2024-01-18 13:49:34 +08:00
parent e34725f446
commit 128e0b6a50
2 changed files with 2 additions and 2 deletions

View File

@ -5095,7 +5095,7 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
} }
{ {
String rptPathName = middleData.analyses_absolute_ReportPath.substring(0, middleData.analyses_absolute_ReportPath.lastIndexOf(StringPool.SLASH)); String rptPathName = middleData.analyses_absolute_ReportPath.substring(0, middleData.analyses_absolute_ReportPath.lastIndexOf(StringPool.SLASH));
String rptFileName = middleData.analyses_absolute_ReportPath.substring(middleData.analyses_absolute_ReportPath.lastIndexOf(StringPool.SLASH)+1); String rptFileName = middleData.analyses_absolute_ReportPath.substring(middleData.analyses_absolute_ReportPath.lastIndexOf(StringPool.SLASH)+1)+".txt";
File rptFile = new File(rptFileName); File rptFile = new File(rptFileName);
try { try {
FileUtil.writeString(gammaFileUtil.GetReportContent(middleData), rptFile, "UTF-8"); FileUtil.writeString(gammaFileUtil.GetReportContent(middleData), rptFile, "UTF-8");

View File

@ -4059,7 +4059,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
{ {
String rptContent = phdFileUtil.OutPutRnRpt(betaDataFile); String rptContent = phdFileUtil.OutPutRnRpt(betaDataFile);
String rptPathName = analyses_absolute_ReportPath.substring(0, analyses_absolute_ReportPath.lastIndexOf(StringPool.SLASH)); String rptPathName = analyses_absolute_ReportPath.substring(0, analyses_absolute_ReportPath.lastIndexOf(StringPool.SLASH));
String rptFileName = analyses_absolute_ReportPath.substring(analyses_absolute_ReportPath.lastIndexOf(StringPool.SLASH)+1); String rptFileName = analyses_absolute_ReportPath.substring(analyses_absolute_ReportPath.lastIndexOf(StringPool.SLASH)+1)+".txt";
File rptFile = new File(rptFileName); File rptFile = new File(rptFileName);
try { try {
FileUtil.writeString(rptContent, rptFile, "UTF-8"); FileUtil.writeString(rptContent, rptFile, "UTF-8");