package cn.pluss.platform.entity;

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 2021-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_merchant_move_setting")
public class MerchantMoveSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;


    /**
     * 商户编号
     */
    @TableField("merchantCode")
    private String merchantCode;


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


    /**
     * 每日生成动态码次数
     */
    @TableField("qr_num")
    private Integer qrNum;


    /**
     * 每日支付成功次数
     */
    @TableField("pay_num")
    private Integer payNum;


    /**
     * 加密key
     */
    @TableField("aesKey")
    private String aesKey;


    /**
     * 状态1：正常 0：禁用
     */
    @TableField("status")
    private Integer status;

    /**
     * 扫码后可支付的时间 默认5分钟
     */
    @TableField("payOverTime")
    private Integer payOverTime;

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

}