导出ARR报告多余内容删除

This commit is contained in:
qiaoqinzheng 2023-10-16 18:25:03 +08:00
parent 59f35cd7cc
commit 5e88c491bb

View File

@ -3345,14 +3345,8 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
@Override
public void exportARR(Integer sampleId, HttpServletResponse response) {
if(Objects.isNull(sampleId)) {
String waring = "The file isn't existed.";
}
//获取自动处理生成的报告地址
String reportPath = spectrumAnalysisMapper.viewARR(sampleId);
if(StringUtils.isBlank(reportPath.trim())) {
String waring = "The file isn't existed.";
}
String pathName = StringPool.SLASH + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + reportPath.substring(0, reportPath.lastIndexOf(StringPool.SLASH));
String fileName = reportPath.substring(reportPath.lastIndexOf(StringPool.SLASH)+1)+".txt";
//连接ftp