|
@@ -7,6 +7,7 @@ import com.qmth.themis.business.constant.SpringContextHolder;
|
|
|
import com.qmth.themis.business.constant.SystemConstant;
|
|
|
import com.qmth.themis.business.entity.TBTaskHistory;
|
|
|
import com.qmth.themis.business.enums.TaskStatusEnum;
|
|
|
+import com.qmth.themis.business.enums.UploadFileEnum;
|
|
|
import com.qmth.themis.business.service.TBAttachmentService;
|
|
|
import com.qmth.themis.business.service.TBTaskHistoryService;
|
|
|
import com.qmth.themis.business.util.OssUtil;
|
|
@@ -160,6 +161,7 @@ public class TaskExportCommon {
|
|
|
json.put("path", file.getPath());
|
|
|
}
|
|
|
json.put("type", this.type);
|
|
|
+ json.put(SystemConstant.UPLOAD_TYPE, UploadFileEnum.file.name());
|
|
|
this.tbTaskHistory.setReportFilePath(json.toJSONString());
|
|
|
if (Objects.nonNull(excelFile)) {
|
|
|
JSONObject excelJson = new JSONObject();
|
|
@@ -168,8 +170,8 @@ public class TaskExportCommon {
|
|
|
} else {
|
|
|
excelJson.put("path", excelFile.getPath());
|
|
|
}
|
|
|
-
|
|
|
excelJson.put("type", this.type);
|
|
|
+ excelJson.put(SystemConstant.UPLOAD_TYPE, UploadFileEnum.file.name());
|
|
|
this.tbTaskHistory.setResultFilePath(excelJson.toJSONString());
|
|
|
}
|
|
|
if (Objects.equals(this.type, SystemConstant.OSS)) {
|