|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
|
+import com.qmth.teachcloud.common.base.BaseEntity;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.enums.TaskResultEnum;
|
|
import com.qmth.teachcloud.common.enums.TaskResultEnum;
|
|
import com.qmth.teachcloud.common.enums.TaskStatusEnum;
|
|
import com.qmth.teachcloud.common.enums.TaskStatusEnum;
|
|
@@ -24,15 +25,10 @@ import java.io.Serializable;
|
|
* @since 2021-03-19
|
|
* @since 2021-03-19
|
|
*/
|
|
*/
|
|
@ApiModel(value = "TBTask对象", description = "导入导出任务表")
|
|
@ApiModel(value = "TBTask对象", description = "导入导出任务表")
|
|
-public class TBTask implements Serializable {
|
|
|
|
|
|
+public class TBTask extends BaseEntity implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
- @JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
- @ApiModelProperty(value = "主键")
|
|
|
|
- @TableId(value = "id")
|
|
|
|
- private Long id;
|
|
|
|
-
|
|
|
|
@ApiModelProperty(value = "任务类型,QUESTION_MISSION_BATCH_CREATE:批量新建命题任务,SAMPLE_EXPORT:导出审核样本,EXAMINATION_IMPORT:考务数据导入,EXAMINATION_EXPORT:考务数据导出,PRINT_PDF_DOWNLOAD:批量下载pdf,CREATE_PDF:生成pdf")
|
|
@ApiModelProperty(value = "任务类型,QUESTION_MISSION_BATCH_CREATE:批量新建命题任务,SAMPLE_EXPORT:导出审核样本,EXAMINATION_IMPORT:考务数据导入,EXAMINATION_EXPORT:考务数据导出,PRINT_PDF_DOWNLOAD:批量下载pdf,CREATE_PDF:生成pdf")
|
|
@TableField(value = "type")
|
|
@TableField(value = "type")
|
|
private TaskTypeEnum type;
|
|
private TaskTypeEnum type;
|
|
@@ -93,15 +89,6 @@ public class TBTask implements Serializable {
|
|
@TableField(value = "report_file_path")
|
|
@TableField(value = "report_file_path")
|
|
private String reportFilePath;
|
|
private String reportFilePath;
|
|
|
|
|
|
- @ApiModelProperty(value = "创建时间")
|
|
|
|
- @TableField(value = "create_time", fill = FieldFill.INSERT)//新增执行
|
|
|
|
- private Long createTime;
|
|
|
|
-
|
|
|
|
- @JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
- @ApiModelProperty(value = "创建人id")
|
|
|
|
- @TableField("create_id")
|
|
|
|
- private Long createId;
|
|
|
|
-
|
|
|
|
@ApiModelProperty(value = "备注")
|
|
@ApiModelProperty(value = "备注")
|
|
@TableField(value = "remark")
|
|
@TableField(value = "remark")
|
|
private String remark;
|
|
private String remark;
|
|
@@ -175,49 +162,41 @@ public class TBTask implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
public TBTask(TaskTypeEnum type, Long entityId, TaskStatusEnum status, String summary, String importFileName, String importFilePath, Long createId, Long schoolId) {
|
|
public TBTask(TaskTypeEnum type, Long entityId, TaskStatusEnum status, String summary, String importFileName, String importFilePath, Long createId, Long schoolId) {
|
|
- this.id = SystemConstant.getDbUuid();
|
|
|
|
|
|
+ setId(SystemConstant.getDbUuid());
|
|
this.type = type;
|
|
this.type = type;
|
|
this.entityId = entityId;
|
|
this.entityId = entityId;
|
|
this.status = status;
|
|
this.status = status;
|
|
this.summary = summary;
|
|
this.summary = summary;
|
|
this.importFileName = importFileName;
|
|
this.importFileName = importFileName;
|
|
this.importFilePath = importFilePath;
|
|
this.importFilePath = importFilePath;
|
|
- this.createId = createId;
|
|
|
|
- this.createTime = System.currentTimeMillis();
|
|
|
|
|
|
+ setCreateId(createId);
|
|
|
|
+ setCreateTime(System.currentTimeMillis());
|
|
this.schoolId = schoolId;
|
|
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) {
|
|
- this.id = SystemConstant.getDbUuid();
|
|
|
|
|
|
+ setId(SystemConstant.getDbUuid());
|
|
this.type = type;
|
|
this.type = type;
|
|
this.status = status;
|
|
this.status = status;
|
|
this.summary = summary;
|
|
this.summary = summary;
|
|
this.importFileName = importFileName;
|
|
this.importFileName = importFileName;
|
|
this.importFilePath = importFilePath;
|
|
this.importFilePath = importFilePath;
|
|
- this.createId = createId;
|
|
|
|
- this.createTime = System.currentTimeMillis();
|
|
|
|
|
|
+ setCreateId(createId);
|
|
|
|
+ setCreateTime(System.currentTimeMillis());
|
|
this.schoolId = schoolId;
|
|
this.schoolId = schoolId;
|
|
}
|
|
}
|
|
|
|
|
|
public TBTask(TaskTypeEnum type, TaskStatusEnum status, String importFileName, String importFilePath, Long createId, Long schoolId) {
|
|
public TBTask(TaskTypeEnum type, TaskStatusEnum status, String importFileName, String importFilePath, Long createId, Long schoolId) {
|
|
- this.id = SystemConstant.getDbUuid();
|
|
|
|
|
|
+ setId(SystemConstant.getDbUuid());
|
|
this.type = type;
|
|
this.type = type;
|
|
this.status = status;
|
|
this.status = status;
|
|
this.importFileName = importFileName;
|
|
this.importFileName = importFileName;
|
|
this.importFilePath = importFilePath;
|
|
this.importFilePath = importFilePath;
|
|
- this.createId = createId;
|
|
|
|
- this.createTime = System.currentTimeMillis();
|
|
|
|
|
|
+ setCreateId(createId);
|
|
|
|
+ setCreateTime(System.currentTimeMillis());
|
|
this.schoolId = schoolId;
|
|
this.schoolId = schoolId;
|
|
}
|
|
}
|
|
|
|
|
|
- public Long getId() {
|
|
|
|
- return id;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setId(Long id) {
|
|
|
|
- this.id = id;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public Long getSchoolId() {
|
|
public Long getSchoolId() {
|
|
return schoolId;
|
|
return schoolId;
|
|
}
|
|
}
|
|
@@ -325,20 +304,4 @@ public class TBTask implements Serializable {
|
|
public void setReportFilePath(String reportFilePath) {
|
|
public void setReportFilePath(String reportFilePath) {
|
|
this.reportFilePath = reportFilePath;
|
|
this.reportFilePath = reportFilePath;
|
|
}
|
|
}
|
|
-
|
|
|
|
- public Long getCreateTime() {
|
|
|
|
- return createTime;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setCreateTime(Long createTime) {
|
|
|
|
- this.createTime = createTime;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Long getCreateId() {
|
|
|
|
- return createId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setCreateId(Long createId) {
|
|
|
|
- this.createId = createId;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|