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);
|
writeLog(middleData.getAnalyses_LogPath(), middleData);
|
||||||
// todo 报告文件
|
// todo 报告文件
|
||||||
String reportContent = gammaFileUtil.GetReportContent(phdFile, false);
|
String reportContent = gammaFileUtil.GetReportContent(middleData);
|
||||||
String reportPath = StringUtils.substringBeforeLast(middleData.getAnalyses_ReportPath(), StringPool.SLASH);
|
String reportPath = StringUtils.substringBeforeLast(middleData.getAnalyses_ReportPath(), StringPool.SLASH);
|
||||||
String reportName = StringUtils.substringAfterLast(middleData.getAnalyses_ReportPath(), StringPool.SLASH) + ".txt";
|
String reportName = StringUtils.substringAfterLast(middleData.getAnalyses_ReportPath(), StringPool.SLASH) + ".txt";
|
||||||
String savePath = spectrumPathProperties.getRootPath() + File.separator +
|
String savePath = spectrumPathProperties.getRootPath() + File.separator +
|
||||||
|
|
|
@ -1362,8 +1362,7 @@ public class GammaFileUtil extends AbstractLogOrReport {
|
||||||
|
|
||||||
public boolean AnalyseSpectrum(PHDFile phd, Map<String, NuclideLines> mapLines){
|
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();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
try {
|
try {
|
||||||
String phdStr = mapper.writeValueAsString(phd);
|
String phdStr = mapper.writeValueAsString(phd);
|
||||||
|
@ -4186,6 +4185,7 @@ public class GammaFileUtil extends AbstractLogOrReport {
|
||||||
}
|
}
|
||||||
|
|
||||||
public File analyzeFile(String path, String fileName) {
|
public File analyzeFile(String path, String fileName) {
|
||||||
|
path = path.replace("\\","/");
|
||||||
//连接ftp
|
//连接ftp
|
||||||
FTPClient ftpClient = ftpUtil.LoginFTP();
|
FTPClient ftpClient = ftpUtil.LoginFTP();
|
||||||
InputStream inputStream = null;
|
InputStream inputStream = null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user