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 bzg
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_device_voice_box")
public class DeviceVoiceBox implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 音箱名称
     */
    @TableField(value = "boxName",whereStrategy = FieldStrategy.NOT_EMPTY,condition = SqlCondition.LIKE)
    private String boxName;


    /**
     * 音箱编号
     */
    @TableField(value = "boxNo",whereStrategy = FieldStrategy.NOT_EMPTY)
    private String boxNo;


    /**
     * 购买商家名称
     */
    @TableField(value = "buyMercName",whereStrategy = FieldStrategy.NOT_EMPTY,condition = SqlCondition.LIKE)
    private String buyMercName;


    /**
     * 购买商家ID
     */
    @TableField(value = "buyMercId",updateStrategy = FieldStrategy.IGNORED)
    private Integer buyMercId;


    /**
     * 购买设备订单号
     */
    @TableField(value = "orderNo",whereStrategy = FieldStrategy.NOT_EMPTY)
    private String orderNo;


    /**
     * 激活商家名称
     */
    @TableField(value = "actMercName",whereStrategy = FieldStrategy.NOT_EMPTY,condition = SqlCondition.LIKE)
    private String actMercName;


    /**
     * 激活商家Id
     */
    @TableField(value = "actMercId",updateStrategy = FieldStrategy.IGNORED)
    private Integer actMercId;


    /**
     * 状态1:未出售 2：已出售3：已激活
     */
    @TableField(value = "status",whereStrategy = FieldStrategy.NOT_EMPTY)
    private String status;


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

    /**
     * 创建时间 开始时间
     */
    @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;

    @TableField(exist = false)
    private String startBoxNo;

    @TableField(exist = false)
    private String endBoxNo;

}