package cn.pluss.platform.entity;

import cn.pluss.platform.config.mybatis.SqlConditionExtra;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 商户活动报名记录表
 * </p>
 *
 * @author Djh
 * @since 2020-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_activity_enroll")
public class ActivityEnroll implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;


    /**
     * 商户编号
     */
    @TableField(value = "merchantCode",whereStrategy = FieldStrategy.NOT_EMPTY)
    private String merchantCode;


    /**
     * 商户名称
     */
    @TableField(value = "merchantName",whereStrategy = FieldStrategy.NOT_EMPTY,condition = SqlCondition.LIKE)
    private String merchantName;


    /**
     * 报名活动名称
     */
    @TableField("actName")
    private String actName;


    /**
     * 报名活动id
     */
    @TableField("actId")
    private Integer actId;


    /**
     * 报名状态，0：申请中 1:通过 2：驳回
     */
    @TableField("status")
    private String status;

    /**
     * 活动类型
     */
    @TableField("actType")
    private String actType;

    /**
     * 驳回原因
     */
    @TableField("remark")
    private String remark;


    /**
     * 创建时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 审核时间
     */
    @TableField(value = "auditTime")
    private Date auditTime;

    /**
     * 设备编号
     */
    @TableField(value = "deviceNo",whereStrategy = FieldStrategy.NOT_EMPTY)
    private String deviceNo;

    /**
     * 创建时间 开始时间
     */
    @TableField(select = false, value = "createTime", condition = SqlConditionExtra.GT)
    private Date createTimeStart;

    /**
     * 创建时间 截止时间
     */
    @TableField(select = false, value = "createTime", condition = SqlConditionExtra.LT)
    private Date createTimeEnd;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 修改时间 开始时间
     */
    @TableField(select = false, value = "updateTime", condition = SqlConditionExtra.GT)
    private Date updateTimeStart;

    /**
     * 修改时间 截止时间
     */
    @TableField(select = false, value = "updateTime", condition = SqlConditionExtra.LT)
    private Date updateTimeEnd;

}