人工交互模块存储方法,存储数据到数据库文件已经存在的情况下,重复文件提交导致文件大小变成0的问题修改
This commit is contained in:
parent
17c487ca32
commit
70f3d172b6
|
@ -4260,7 +4260,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
||||||
}
|
}
|
||||||
//上传本次文件到ftp人工交互存储路径下
|
//上传本次文件到ftp人工交互存储路径下
|
||||||
try {
|
try {
|
||||||
{
|
if (StringUtils.isNotBlank(sampleFilePathName)) {
|
||||||
//sample文件的saveFile存储路径
|
//sample文件的saveFile存储路径
|
||||||
String saveSamplePath = ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + sampleFilePathName;
|
String saveSamplePath = ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + sampleFilePathName;
|
||||||
if (StringUtils.isNotBlank(betaDataFile.getSampleTmpPath()) && !saveSamplePath.equals(betaDataFile.getSampleTmpPath())) {
|
if (StringUtils.isNotBlank(betaDataFile.getSampleTmpPath()) && !saveSamplePath.equals(betaDataFile.getSampleTmpPath())) {
|
||||||
|
@ -4268,7 +4268,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
||||||
ftpUtil.saveFile(saveSamplePath, new FileInputStream(sampleTmp));
|
ftpUtil.saveFile(saveSamplePath, new FileInputStream(sampleTmp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
if (StringUtils.isNotBlank(gasFilePathName)) {
|
||||||
//gas文件的saveFile存储路径
|
//gas文件的saveFile存储路径
|
||||||
String saveGasPath = ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + gasFilePathName;
|
String saveGasPath = ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + gasFilePathName;
|
||||||
if (StringUtils.isNotBlank(betaDataFile.getGasTmpPath()) && !saveGasPath.equals(betaDataFile.getGasTmpPath())) {
|
if (StringUtils.isNotBlank(betaDataFile.getGasTmpPath()) && !saveGasPath.equals(betaDataFile.getGasTmpPath())) {
|
||||||
|
@ -4276,7 +4276,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
||||||
ftpUtil.saveFile(saveGasPath, new FileInputStream(gasTmp));
|
ftpUtil.saveFile(saveGasPath, new FileInputStream(gasTmp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
if (StringUtils.isNotBlank(detFilePathName)) {
|
||||||
//det文件的saveFile存储路径
|
//det文件的saveFile存储路径
|
||||||
String saveDetPath = ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + detFilePathName;
|
String saveDetPath = ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + detFilePathName;
|
||||||
if (StringUtils.isNotBlank(betaDataFile.getDetTmpPath()) && !saveDetPath.equals(betaDataFile.getDetTmpPath())) {
|
if (StringUtils.isNotBlank(betaDataFile.getDetTmpPath()) && !saveDetPath.equals(betaDataFile.getDetTmpPath())) {
|
||||||
|
@ -4284,7 +4284,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
||||||
ftpUtil.saveFile(saveDetPath, new FileInputStream(detTmp));
|
ftpUtil.saveFile(saveDetPath, new FileInputStream(detTmp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
if (StringUtils.isNotBlank(qcFilePathName)) {
|
||||||
//qc文件的saveFile存储路径
|
//qc文件的saveFile存储路径
|
||||||
String saveQcPath = ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + qcFilePathName;
|
String saveQcPath = ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + qcFilePathName;
|
||||||
if (StringUtils.isNotBlank(betaDataFile.getQcTmpPath()) && !saveQcPath.equals(betaDataFile.getQcTmpPath())) {
|
if (StringUtils.isNotBlank(betaDataFile.getQcTmpPath()) && !saveQcPath.equals(betaDataFile.getQcTmpPath())) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user