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_msg")
public class DeviceVoiceBoxMsg implements Serializable {

    private static final long serialVersionUID = 1L;

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


    /**
     * 请求ID
     */
    @TableField("requestId")
    private String requestId;


    /**
     * 消息ID
     */
    @TableField("msgId")
    private String msgId;


    /**
     * 消息推送内容体
     */
    @TableField("body")
    private String body;


    /**
     * 创建时间
     */
    @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 = "deviceNo",whereStrategy = FieldStrategy.NOT_EMPTY)
    private String deviceNo;


    /**
     * 订单号
     */
    @TableField(value = "orderNumber",whereStrategy = FieldStrategy.NOT_EMPTY)
    private String orderNumber;

    /**
     * @description:响应内容
     * @date: 2021/9/1 11:22
     */
    @TableField("respBody")
    private String respBody;

    /**
     * @description:类型1：支付 2取消支付 3其他
     * @date: 2021/9/1 11:35
     */
    @TableField("type")
    private String type;
}