package com.sptg.statistics.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * title: StatisticsAdPushCount
 * package: com.sptg.statistics.api.entity
 * description:统计广告发布数量
 *
 *                
 *                
 */
@Getter
@Setter
@TableName(value = "statistics_ad_push_count")
public class StatisticsAdPushCount implements java.io.Serializable{

    /**
     * 主键
     */
    @TableId(value = "l_id",type = IdType.AUTO)
    private Long id;

    /**
     * 广告发布任务id
     */
    @TableField(value = "l_ad_push_task_id")
    private Long  adPushTaskId;

    /**
     * 发布广告条数
     */
    @TableField(value = "i_count")
    private int count;

    /**
     * 推送状态 0推送中 1推送成功
     */
    @TableField(value = "i_push_state")
    private Integer pushState;

    /**
     * 发布时间
     */
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern="yyyy-MM",timezone="GMT+8")
    @TableField(value = "t_create_date")
    private Date createDate;

    /**
     * 设备所属根机构 l_root_org_id
     */
    @TableField(value = "l_root_org_id")
    private Long rootOrgId;

    /**
     * 设备存储位置
     */
    @TableField(value = "s_org_position")
    private String orgPosition;
}
