fix:Ftp改为本地
This commit is contained in:
parent
2ce51ac78d
commit
a0278801ca
|
@ -152,7 +152,7 @@ public class Sample_G_Analysis {
|
|||
// 生成日志文件
|
||||
writeLog(middleData.getAnalyses_LogPath(), middleData);
|
||||
// todo 报告文件
|
||||
String reportContent = gammaFileUtil.GetReportContent(phdFile, false);
|
||||
String reportContent = gammaFileUtil.GetReportContent(middleData);
|
||||
String reportPath = StringUtils.substringBeforeLast(middleData.getAnalyses_ReportPath(), StringPool.SLASH);
|
||||
String reportName = StringUtils.substringAfterLast(middleData.getAnalyses_ReportPath(), StringPool.SLASH) + ".txt";
|
||||
String savePath = spectrumPathProperties.getRootPath() + File.separator +
|
||||
|
|
|
@ -1362,8 +1362,7 @@ public class GammaFileUtil extends AbstractLogOrReport {
|
|||
|
||||
public boolean AnalyseSpectrum(PHDFile phd, Map<String, NuclideLines> mapLines){
|
||||
//解析获取临时文件信息
|
||||
File tmpFile = new File(spectrumPathProperties.getRootPath() + phd.getFilepath(), phd.getFilename());
|
||||
|
||||
File tmpFile = analyzeFile(phd.getFilepath(), phd.getFilename());
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
try {
|
||||
String phdStr = mapper.writeValueAsString(phd);
|
||||
|
@ -4186,6 +4185,7 @@ public class GammaFileUtil extends AbstractLogOrReport {
|
|||
}
|
||||
|
||||
public File analyzeFile(String path, String fileName) {
|
||||
path = path.replace("\\","/");
|
||||
//连接ftp
|
||||
FTPClient ftpClient = ftpUtil.LoginFTP();
|
||||
InputStream inputStream = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user