|
@@ -15,6 +15,8 @@ import java.io.FileWriter;
|
|
|
import java.io.IOException;
|
|
|
import java.util.*;
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+
|
|
|
/**
|
|
|
* @Description: 导入任务公用
|
|
|
* @Param:
|
|
@@ -126,6 +128,15 @@ public class TaskImportCommon {
|
|
|
this.ossUtil.ossUpload(this.ossEnv, file.getPath(), txtStr);
|
|
|
file.delete();
|
|
|
}
|
|
|
+ //临时加的代码 我不知道该怎么写
|
|
|
+ if(this.exception) {
|
|
|
+ this.tbTaskHistory.setSummary("处理出错");
|
|
|
+ }else {
|
|
|
+ this.tbTaskHistory.setProgress(100.0);
|
|
|
+ if(StringUtils.isBlank(this.tbTaskHistory.getSummary())) {
|
|
|
+ this.tbTaskHistory.setSummary("处理成功");
|
|
|
+ }
|
|
|
+ }
|
|
|
tbTaskHistoryService.updateById(this.tbTaskHistory);
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|