package com.kiisoo.ic.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * sys_task
 * @author 
 */
@Data
@TableName("sys_task")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysTaskDO implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 任务名
     */
    private String taskName;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 类型：1、同步拓客总数  2、同步店铺拓客  3、同步客户统计
     */
    private Integer type;

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

    /**
     * 更新时间
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public SysTaskDO() {}
    public SysTaskDO(String taskName, Integer status, Integer type, Date createTime) {
        this.taskName = taskName;
        this.status = status;
        this.type = type;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysTaskDO{" +
                "id=" + id +
                ", taskName='" + taskName + '\'' +
                ", status=" + status +
                ", type=" + type +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}