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

    private static final long serialVersionUID = 1L;

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


    /**
     * 身份证号
     */
    @TableField("idcardNo")
    private String idcardNo;


    /**
     * 姓名
     */
    @TableField("certName")
    private String certName;


    /**
     * 关联用户id
     */
    @TableField("userId")
    private Integer userId;


    /**
     * 违规商户id
     */
    @TableField("causeUserId")
    private Integer causeUserId;


    /**
     * 备注
     */
    @TableField("remark")
    private String remark;


    /**
     * 违规通道
     */
    @TableField("channel")
    private Integer channel;


    /**
     * 支付方式, 01：微信； 02：支付宝；03：银联
     */
    @TableField("payWay")
    private String payWay;


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

}