|
@@ -22,20 +22,11 @@ import java.io.Serializable;
|
|
* @author wangliang
|
|
* @author wangliang
|
|
* @since 2021-03-19
|
|
* @since 2021-03-19
|
|
*/
|
|
*/
|
|
-@ApiModel(value = "TBTask对象", description = "导入导出任务表")
|
|
|
|
|
|
+@ApiModel(value = "TBTask对象", description = "异步操作任务表")
|
|
public class TBTask extends BaseEntity implements Serializable {
|
|
public class TBTask extends BaseEntity implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
- @ApiModelProperty(value = "任务类型,USER_IMPORT:用户导入, QUESTION_MISSION_BATCH_CREATE:批量新建命题任务, SAMPLE_EXPORT:导出审核样本, PAPER_DOWNLOAD:卷库下载, EXAMINATION_IMPORT:考务数据导入, EXAMINATION_EXPORT:考务数据导出, PRINT_PDF_DOWNLOAD:批量下载pdf, CREATE_PDF:生成pdf, COURSE_IMPORT:课程导入,STATISTICS_IMPORT:命题统计导入")
|
|
|
|
- @TableField(value = "type")
|
|
|
|
- private TaskTypeEnum type;
|
|
|
|
-
|
|
|
|
- @JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
- @ApiModelProperty(value = "关联业务对象id")
|
|
|
|
- @TableField(value = "entity_id")
|
|
|
|
- private Long entityId;
|
|
|
|
-
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@ApiModelProperty(value = "学校id")
|
|
@ApiModelProperty(value = "学校id")
|
|
@TableField(value = "school_id")
|
|
@TableField(value = "school_id")
|
|
@@ -46,10 +37,9 @@ public class TBTask extends BaseEntity implements Serializable {
|
|
@TableField(value = "org_id")
|
|
@TableField(value = "org_id")
|
|
private Long orgId;
|
|
private Long orgId;
|
|
|
|
|
|
- @JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
- @ApiModelProperty(value = "印刷计划id")
|
|
|
|
- @TableField(value = "print_plan_id")
|
|
|
|
- private Long printPlanId;
|
|
|
|
|
|
+ @ApiModelProperty(value = "任务类型")
|
|
|
|
+ @TableField(value = "type")
|
|
|
|
+ private TaskTypeEnum type;
|
|
|
|
|
|
@ApiModelProperty(value = "任务状态,INIT:未开始,RUNNING:进行中,FINISH:已完成")
|
|
@ApiModelProperty(value = "任务状态,INIT:未开始,RUNNING:进行中,FINISH:已完成")
|
|
@TableField(value = "status")
|
|
@TableField(value = "status")
|
|
@@ -59,18 +49,10 @@ public class TBTask extends BaseEntity implements Serializable {
|
|
@TableField(value = "summary")
|
|
@TableField(value = "summary")
|
|
private String summary;
|
|
private String summary;
|
|
|
|
|
|
- @ApiModelProperty(value = "执行进度")
|
|
|
|
- @TableField(value = "progress")
|
|
|
|
- private Double progress;
|
|
|
|
-
|
|
|
|
@ApiModelProperty(value = "数据结果,SUCCESS:成功,ERROR:失败")
|
|
@ApiModelProperty(value = "数据结果,SUCCESS:成功,ERROR:失败")
|
|
@TableField(value = "result")
|
|
@TableField(value = "result")
|
|
private TaskResultEnum result;
|
|
private TaskResultEnum result;
|
|
|
|
|
|
- @ApiModelProperty(value = "是否启用,false:停用,true:启用")
|
|
|
|
- @TableField(value = "enable")
|
|
|
|
- private Boolean enable;
|
|
|
|
-
|
|
|
|
@ApiModelProperty(value = "导入文件名")
|
|
@ApiModelProperty(value = "导入文件名")
|
|
@TableField(value = "import_file_name", updateStrategy = FieldStrategy.IGNORED)
|
|
@TableField(value = "import_file_name", updateStrategy = FieldStrategy.IGNORED)
|
|
private String importFileName;
|
|
private String importFileName;
|
|
@@ -80,98 +62,21 @@ public class TBTask extends BaseEntity implements Serializable {
|
|
private String importFilePath;
|
|
private String importFilePath;
|
|
|
|
|
|
@ApiModelProperty(value = "导出文件路径")
|
|
@ApiModelProperty(value = "导出文件路径")
|
|
- @TableField(value = "result_file_path")
|
|
|
|
- private String resultFilePath;
|
|
|
|
|
|
+ @TableField(value = "export_file_path")
|
|
|
|
+ private String exportFilePath;
|
|
|
|
|
|
@ApiModelProperty(value = "报告路径")
|
|
@ApiModelProperty(value = "报告路径")
|
|
- @TableField(value = "report_file_path")
|
|
|
|
- private String reportFilePath;
|
|
|
|
|
|
+ @TableField(value = "txt_file_path")
|
|
|
|
+ private String txtFilePath;
|
|
|
|
|
|
@ApiModelProperty(value = "备注")
|
|
@ApiModelProperty(value = "备注")
|
|
@TableField(value = "remark")
|
|
@TableField(value = "remark")
|
|
private String remark;
|
|
private String remark;
|
|
|
|
|
|
- @ApiModelProperty(value = "实体名称")
|
|
|
|
- @TableField(value = "obj_name")
|
|
|
|
- private String objName;
|
|
|
|
-
|
|
|
|
- @ApiModelProperty(value = "重试次数")
|
|
|
|
- @TableField(value = "reset_count")
|
|
|
|
- private int resetCount;
|
|
|
|
-
|
|
|
|
- @ApiModelProperty(value = "更新版本号")
|
|
|
|
- @TableField(value = "version")
|
|
|
|
- private int version;
|
|
|
|
-
|
|
|
|
- @ApiModelProperty(value = "人工错误")
|
|
|
|
- @TableField(value = "error_message", updateStrategy = FieldStrategy.IGNORED)
|
|
|
|
- private String errorMessage;
|
|
|
|
-
|
|
|
|
- public String getErrorMessage() {
|
|
|
|
- return errorMessage;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setErrorMessage(String errorMessage) {
|
|
|
|
- this.errorMessage = errorMessage;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public int getVersion() {
|
|
|
|
- return version;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setVersion(int version) {
|
|
|
|
- this.version = version;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public int getResetCount() {
|
|
|
|
- return resetCount;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setResetCount(int resetCount) {
|
|
|
|
- this.resetCount = resetCount;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getObjName() {
|
|
|
|
- return objName;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setObjName(String objName) {
|
|
|
|
- this.objName = objName;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getRemark() {
|
|
|
|
- return remark;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setRemark(String remark) {
|
|
|
|
- this.remark = remark;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Long getPrintPlanId() {
|
|
|
|
- return printPlanId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setPrintPlanId(Long printPlanId) {
|
|
|
|
- this.printPlanId = printPlanId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public TBTask() {
|
|
public TBTask() {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- public TBTask(TaskTypeEnum type, Long entityId, TaskStatusEnum status, String summary, String importFileName, String importFilePath, Long createId, Long schoolId) {
|
|
|
|
- setId(SystemConstant.getDbUuid());
|
|
|
|
- this.type = type;
|
|
|
|
- this.entityId = entityId;
|
|
|
|
- this.status = status;
|
|
|
|
- this.summary = summary;
|
|
|
|
- this.importFileName = importFileName;
|
|
|
|
- this.importFilePath = importFilePath;
|
|
|
|
- setCreateId(createId);
|
|
|
|
- setCreateTime(System.currentTimeMillis());
|
|
|
|
- this.schoolId = schoolId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public TBTask(TaskTypeEnum type, TaskStatusEnum status, String summary, String importFileName, String importFilePath, Long createId, Long schoolId) {
|
|
public TBTask(TaskTypeEnum type, TaskStatusEnum status, String summary, String importFileName, String importFilePath, Long createId, Long schoolId) {
|
|
setId(SystemConstant.getDbUuid());
|
|
setId(SystemConstant.getDbUuid());
|
|
this.type = type;
|
|
this.type = type;
|
|
@@ -211,34 +116,6 @@ public class TBTask extends BaseEntity implements Serializable {
|
|
this.orgId = orgId;
|
|
this.orgId = orgId;
|
|
}
|
|
}
|
|
|
|
|
|
- public static long getSerialVersionUID() {
|
|
|
|
- return serialVersionUID;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Long getEntityId() {
|
|
|
|
- return entityId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setEntityId(Long entityId) {
|
|
|
|
- this.entityId = entityId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getSummary() {
|
|
|
|
- return summary;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setSummary(String summary) {
|
|
|
|
- this.summary = summary;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Double getProgress() {
|
|
|
|
- return progress;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setProgress(Double progress) {
|
|
|
|
- this.progress = progress;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public TaskTypeEnum getType() {
|
|
public TaskTypeEnum getType() {
|
|
return type;
|
|
return type;
|
|
}
|
|
}
|
|
@@ -255,20 +132,20 @@ public class TBTask extends BaseEntity implements Serializable {
|
|
this.status = status;
|
|
this.status = status;
|
|
}
|
|
}
|
|
|
|
|
|
- public TaskResultEnum getResult() {
|
|
|
|
- return result;
|
|
|
|
|
|
+ public String getSummary() {
|
|
|
|
+ return summary;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setResult(TaskResultEnum result) {
|
|
|
|
- this.result = result;
|
|
|
|
|
|
+ public void setSummary(String summary) {
|
|
|
|
+ this.summary = summary;
|
|
}
|
|
}
|
|
|
|
|
|
- public Boolean getEnable() {
|
|
|
|
- return enable;
|
|
|
|
|
|
+ public TaskResultEnum getResult() {
|
|
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setEnable(Boolean enable) {
|
|
|
|
- this.enable = enable;
|
|
|
|
|
|
+ public void setResult(TaskResultEnum result) {
|
|
|
|
+ this.result = result;
|
|
}
|
|
}
|
|
|
|
|
|
public String getImportFileName() {
|
|
public String getImportFileName() {
|
|
@@ -287,19 +164,27 @@ public class TBTask extends BaseEntity implements Serializable {
|
|
this.importFilePath = importFilePath;
|
|
this.importFilePath = importFilePath;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getResultFilePath() {
|
|
|
|
- return resultFilePath;
|
|
|
|
|
|
+ public String getExportFilePath() {
|
|
|
|
+ return exportFilePath;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setResultFilePath(String resultFilePath) {
|
|
|
|
- this.resultFilePath = resultFilePath;
|
|
|
|
|
|
+ public void setExportFilePath(String exportFilePath) {
|
|
|
|
+ this.exportFilePath = exportFilePath;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getReportFilePath() {
|
|
|
|
- return reportFilePath;
|
|
|
|
|
|
+ public String getTxtFilePath() {
|
|
|
|
+ return txtFilePath;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setReportFilePath(String reportFilePath) {
|
|
|
|
- this.reportFilePath = reportFilePath;
|
|
|
|
|
|
+ public void setTxtFilePath(String txtFilePath) {
|
|
|
|
+ this.txtFilePath = txtFilePath;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getRemark() {
|
|
|
|
+ return remark;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setRemark(String remark) {
|
|
|
|
+ this.remark = remark;
|
|
}
|
|
}
|
|
}
|
|
}
|