Merge remote-tracking branch 'origin/station' into station
This commit is contained in:
commit
f6f540cef6
|
@ -5,6 +5,7 @@ import com.google.common.collect.Lists;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jeecg.common.properties.SpectrumPathProperties;
|
import org.jeecg.common.properties.SpectrumPathProperties;
|
||||||
import org.jeecg.modules.base.enums.DataType;
|
import org.jeecg.modules.base.enums.DataType;
|
||||||
|
import org.jeecg.modules.exception.FileRepeatException;
|
||||||
import org.jeecg.modules.file.FileOperation;
|
import org.jeecg.modules.file.FileOperation;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
|
@ -186,8 +187,8 @@ public abstract class AbstractSpectrumHandler extends AbstractChain {
|
||||||
* 处理解析失败的文件,上传到undeal目录
|
* 处理解析失败的文件,上传到undeal目录
|
||||||
* @throws FileNotFoundException
|
* @throws FileNotFoundException
|
||||||
*/
|
*/
|
||||||
protected void handleParseingFailFile() throws FileNotFoundException {
|
protected void handleParseingFailFile(Exception e) throws FileNotFoundException {
|
||||||
if(!fromUndel){
|
if(!fromUndel && !(e instanceof FileRepeatException)){
|
||||||
try {
|
try {
|
||||||
//解析失败会把文件移动到undeal目录
|
//解析失败会把文件移动到undeal目录
|
||||||
final String rootPath = spectrumServiceQuotes.getSpectrumPathProperties().getRootPath();
|
final String rootPath = spectrumServiceQuotes.getSpectrumPathProperties().getRootPath();
|
||||||
|
|
|
@ -2,6 +2,8 @@ package org.jeecg.modules.spectrum;
|
||||||
|
|
||||||
import org.jeecg.modules.base.enums.DataType;
|
import org.jeecg.modules.base.enums.DataType;
|
||||||
import org.jeecg.modules.base.enums.SampleStatus;
|
import org.jeecg.modules.base.enums.SampleStatus;
|
||||||
|
import org.jeecg.modules.exception.FileRepeatException;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,7 +57,7 @@ public class DetbkphdSpectrum extends AbstractS_D_Q_G_SpectrumHandler {
|
||||||
super.updateStatus();
|
super.updateStatus();
|
||||||
|
|
||||||
//处理解析失败的文件,上传到undeal目录
|
//处理解析失败的文件,上传到undeal目录
|
||||||
super.handleParseingFailFile();
|
super.handleParseingFailFile(e);
|
||||||
throw e;
|
throw e;
|
||||||
}finally {
|
}finally {
|
||||||
if(Objects.nonNull(this.parsingProcessLog)){
|
if(Objects.nonNull(this.parsingProcessLog)){
|
||||||
|
|
|
@ -3,6 +3,8 @@ package org.jeecg.modules.spectrum;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jeecg.modules.base.enums.DataType;
|
import org.jeecg.modules.base.enums.DataType;
|
||||||
import org.jeecg.modules.base.enums.SampleStatus;
|
import org.jeecg.modules.base.enums.SampleStatus;
|
||||||
|
import org.jeecg.modules.exception.FileRepeatException;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -57,7 +59,7 @@ public class GasbkphdSpectrum extends AbstractS_D_Q_G_SpectrumHandler {
|
||||||
super.updateStatus();
|
super.updateStatus();
|
||||||
|
|
||||||
//处理解析失败的文件,上传到undeal目录
|
//处理解析失败的文件,上传到undeal目录
|
||||||
super.handleParseingFailFile();
|
super.handleParseingFailFile(e);
|
||||||
throw e;
|
throw e;
|
||||||
}finally {
|
}finally {
|
||||||
if(Objects.nonNull(this.parsingProcessLog)){
|
if(Objects.nonNull(this.parsingProcessLog)){
|
||||||
|
|
|
@ -2,6 +2,8 @@ package org.jeecg.modules.spectrum;
|
||||||
|
|
||||||
import org.jeecg.modules.base.enums.DataType;
|
import org.jeecg.modules.base.enums.DataType;
|
||||||
import org.jeecg.modules.base.enums.SampleStatus;
|
import org.jeecg.modules.base.enums.SampleStatus;
|
||||||
|
import org.jeecg.modules.exception.FileRepeatException;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +58,7 @@ public class QcphdSpectrum extends AbstractS_D_Q_G_SpectrumHandler {
|
||||||
super.updateStatus();
|
super.updateStatus();
|
||||||
|
|
||||||
//处理解析失败的文件,上传到undeal目录
|
//处理解析失败的文件,上传到undeal目录
|
||||||
super.handleParseingFailFile();
|
super.handleParseingFailFile(e);
|
||||||
throw e;
|
throw e;
|
||||||
}finally {
|
}finally {
|
||||||
if(Objects.nonNull(this.parsingProcessLog)){
|
if(Objects.nonNull(this.parsingProcessLog)){
|
||||||
|
|
|
@ -3,6 +3,8 @@ package org.jeecg.modules.spectrum;
|
||||||
import org.jeecg.modules.base.enums.DataType;
|
import org.jeecg.modules.base.enums.DataType;
|
||||||
import org.jeecg.modules.base.enums.SampleStatus;
|
import org.jeecg.modules.base.enums.SampleStatus;
|
||||||
import org.jeecg.modules.base.enums.SystemType;
|
import org.jeecg.modules.base.enums.SystemType;
|
||||||
|
import org.jeecg.modules.exception.FileRepeatException;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -59,7 +61,7 @@ public class SamplephdSpectrum extends AbstractS_D_Q_G_SpectrumHandler {
|
||||||
super.updateStatus();
|
super.updateStatus();
|
||||||
|
|
||||||
//处理解析失败的文件,上传到undeal目录
|
//处理解析失败的文件,上传到undeal目录
|
||||||
super.handleParseingFailFile();
|
super.handleParseingFailFile(e);
|
||||||
throw e;
|
throw e;
|
||||||
}finally {
|
}finally {
|
||||||
if(Objects.nonNull(this.parsingProcessLog)){
|
if(Objects.nonNull(this.parsingProcessLog)){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user