package cn.com.ctop.toutiao.modules.report.entity;

import cn.com.ctop.common.module.entity.CtopOauthToken;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 头条数据检查任务记录
 * @author jeecg-boot
 * @date   2021-06-07
 * @version V1.0
 */
@Data
@TableName("ctop_bytedance_check_report_task_info")
public class BytedanceCheckReportTaskInfo {
    
	/**id*/
	@TableId(type = IdType.AUTO)
	private Long id;
	/**accountId*/
	private Long accountId;
	private BigDecimal accountCost;
	private BigDecimal campaignCost;
	private BigDecimal matCost;
	private BigDecimal imageCost;
	/**stateDate*/
	private String stateDate;
	/**status*/
	private Integer status;
	/**desc*/
	private String description;
	/**createTime*/
	private Date createTime;
	/**updateTime*/
	private Date updateTime;
	private Integer costStatus;

	public BytedanceCheckReportTaskInfo(){

	}
	public BytedanceCheckReportTaskInfo(CtopOauthToken token, String date) {
		this.accountId = token.getAccountId();
		this.accountCost = BigDecimal.ZERO;
		this.campaignCost = BigDecimal.ZERO;
		this.matCost = BigDecimal.ZERO;
		this.imageCost = BigDecimal.ZERO;
		this.status = 0;
		this.costStatus = 0;
		this.stateDate = date;
		this.createTime = new Date();
		this.updateTime = new Date();
	}
}
