package cn.com.ctop.toutiao.modules.report.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 java.util.Date;

/**
 * 头条账户报表任务执行记录信息
 * @author jeecg-boot
 * @date   2021-01-20
 * @version V1.0
 */
@Data
@TableName("ctop_bytedance_account_report_task_record")
@EqualsAndHashCode(callSuper = false)
public class BytedanceAccountReportTaskRecord {

	/**id*/
	@TableId(type = IdType.AUTO)
	private Long id;
	/**accountId*/
	private Long accountId;
	/**startDate*/
	private String startDate;
	/**endDate*/
	private String endDate;
	/**status*/
	private Integer status;
	/**createTime*/
	private Date createTime;
	/**updateTime*/
	private Date updateTime;
	private String type;

	public BytedanceAccountReportTaskRecord(Long accountId, String startDate, String endDate) {
		this.accountId=accountId;
		this.startDate = startDate;
		this.endDate = endDate;
		this.status = 1;
		this.type = "ACCOUNT_DAILY";
		Date now = new Date();
		this.createTime = now;
		this.updateTime = now;
	}
}
