package com.liquidnet.service.goblin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 官方(平台)营销表[活动]表
 * </p>
 *
 * @author liquidnet
 * @since 2021-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class GoblinSelfMarketing implements Serializable, Cloneable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Long mid;

    /**
     * 官方营销表id
     */
    private String selfMarketId;

    /**
     * 演出id
     */
    private String performanceId;

    /**
     * 演出id
     */
    private String performanceImg;

    /**
     * 营销名称
     */
    private String name;

    /**
     * 营销类型[1-正在下单]
     */
    private Integer type;

    /**
     * 活动状态[-1-全部|0-等待开始|1-活动中|2-活动结束|7-停用]
     */
    private Integer status;

    /**
     * 营销描述
     */
    private String describes;

    /**
     * 营销开始时间
     */
    private LocalDateTime startTime;

    /**
     * 营销结束时间营销为定金预售的时候，该时间也是第二阶段付款的时间营销为全款预售的时候，该时间也是发货时间
     */
    private LocalDateTime endTime;

    /**
     * 删除标记[0-未删除|1-删除]
     */
    private Integer delFlag;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private String comment;

    private static final GoblinSelfMarketing obj = new GoblinSelfMarketing();

    public static GoblinSelfMarketing getNew() {
        try {
            return (GoblinSelfMarketing) obj.clone();
        } catch (CloneNotSupportedException e) {
            return new GoblinSelfMarketing();
        }
    }
}
