自动处理程序移动文件在savefile已经有的情况下增加判断是否不是违反唯一约束性的异常信息,不是就移动到undeal
This commit is contained in:
parent
00a61f60c6
commit
f7e51db3bc
|
@ -277,7 +277,9 @@ public abstract class AbstractSpectrumHandler extends AbstractChain {
|
|||
final String savefileName = spectrumServiceQuotes.getSpectrumPathProperties().getSaveFilePath().substring(1);
|
||||
//若文件已经在savefile了进行复制
|
||||
if(spectrumFile.getAbsolutePath().contains(savefileName)){
|
||||
FileOperation.copyFile(spectrumFile,finalPath,true);
|
||||
if (!(e instanceof AnalyseException)) {
|
||||
FileOperation.copyFile(spectrumFile,finalPath,true);
|
||||
}
|
||||
}else {
|
||||
//若文件不在savefile 则判断异常是否属于违反唯一约束性
|
||||
if (e instanceof AnalyseException) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user