package com.codvision.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * qrtz任务详情
 * </p>
 *
 * @author lingee
 * @since 2023-11-20
 */
@Data
@TableName("qrtz_job_details")
@ApiModel(value = "QuartzJob", description = "qrtz任务详情")
public class QuartzJob implements Serializable {

    private static final long serialVersionUID = 1L;

    private String schedName;

    @ApiModelProperty("任务名称")
    private String jobName;

    @ApiModelProperty("任务分组(以：定时任务_)")
    private String jobGroup;

    private String description;

    @ApiModelProperty("执行类(固定值：com.codvision.serverboot.job.QuartzJob)")
    private String jobClassName;

    private Boolean isDurable;

    private Boolean isNonconcurrent;

    private Boolean isUpdateData;

    private Boolean requestsRecovery;

    private byte[] jobData;

    @ApiModelProperty("执行方法")
    @TableField(exist = false)
    private String jobMethodName;

    @ApiModelProperty("执行时间")
    @TableField(exist = false)
    private String cronExpression;

    @ApiModelProperty("任务状态")
    @TableField(exist = false)
    private String triggerState;

    @ApiModelProperty("旧任务名称-用于修改")
    @TableField(exist = false)
    private String oldJobName;

    @ApiModelProperty("旧任务分组-用于修改")
    @TableField(exist = false)
    private String oldJobGroup;

    @ApiModelProperty("任务分组(以：定时任务_)")
    @TableField(exist = false)
    private String jobsetMessage;
}
