fix:1.修改处理失败文件时异常判断逻辑,解决get or get异常文件不进undel目录问题
This commit is contained in:
parent
91014bb0c8
commit
f9211a5bac
|
@ -277,7 +277,16 @@ public abstract class AbstractSpectrumHandler extends AbstractChain {
|
|||
final String savefileName = spectrumServiceQuotes.getSpectrumPathProperties().getSaveFilePath().substring(1);
|
||||
//若文件已经在savefile了进行复制
|
||||
if(spectrumFile.getAbsolutePath().contains(savefileName)){
|
||||
if (!(e instanceof AnalyseException)) {
|
||||
boolean copyFlag = false;
|
||||
if (e instanceof AnalyseException) {
|
||||
AnalyseException exception = (AnalyseException) e;
|
||||
if (!exception.isDuplicateKeyException()) {
|
||||
copyFlag = true;
|
||||
}
|
||||
}else{
|
||||
copyFlag = true;
|
||||
}
|
||||
if(copyFlag){
|
||||
FileOperation.copyFile(spectrumFile,finalPath,true);
|
||||
}
|
||||
}else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user