package com.hs.admin.bean;

import com.hs.admin.util.ObjUtil;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * sys_task
 *
 * @author
 */
@Data
public class SysTask implements Serializable {
    private Integer id;
    private String content;
    private String cronExpression;
    private String ctype;
    private Integer state;
    /**
     * 租户id
     */
    private String jcbId;
    private Integer cid;

    /**
     * 任务状态：NONE:0 ，NORMAL:1 ，PAUSED:2 ，COMPLETE:3 ，ERROR:4 ，BLOCKED:5
     */
    private Integer jobStatus;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 任务操作类型：1查询2新增3修改4删除
     */
    private String type;

    private String jobName;
    private String jobGroup;
    private String beanClass;

    public SysTask init() {
        ObjUtil.initField(this);
        return this;
    }

    private static final long serialVersionUID = 1L;
}