package com.bohuikeji.delivery.backstage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bohuikeji.frame.module.admin.annotation.TableNewField;
import com.bohuikeji.frame.module.admin.annotation.TableShowField;
import com.bohuikeji.frame.module.admin.base.EntityBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 订单异常记录表实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ApiModel(value="TCourierCard对象", description="派送员银行卡记录表")
@TableName("t_courier_card")
public class TCourierCard extends EntityBase<TCourierCard> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录表卡号id")
    @TableId(value = "card_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer cardId;

    @TableField("courier_id")
    @TableShowField("派送员ID")
    @TableNewField
    private Integer courierId;

    @TableField("card_name")
    @TableShowField("持卡者姓名")
    @TableNewField
    private String cardName;

    @TableField("card_num")
    @TableShowField("卡号")
    @TableNewField
    private String cardNum;

    @TableField("id_number")
    @TableShowField("身份证号")
    @TableNewField
    private String idNumber;

    @TableField("create_date")
    @TableShowField("创建时间")
    @TableNewField
    private LocalDateTime createDate;

    @TableField("card_bank")
    @TableShowField("所属银行")
    @TableNewField
    private String cardBank;

    @TableField("bank_type")
    @TableShowField("收单机构类型")
    @TableNewField
    private String bankType;
}
