package com.muchinfo.mtp3pojos.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.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 托管银行扩展配置表
 * </p>
 *
 * @author XKF
 * @since 2025-05-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BANK_CUSBANKEXTENDCONFIG")
@ApiModel(value="BankCusbankextendconfig对象", description="托管银行扩展配置表")
public class BankCusbankextendconfig extends Model<BankCusbankextendconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "托管银行编号")
    @TableId(value = "CUSBANKID")
    private String cusbankid;

    @ApiModelProperty(value = "扩展业务类型 - 1:签约 2:入金 3:出金 4:签约信息修改")
    @TableField("EXTENDBIZTYPE")
    private Integer extendbiztype;

    @ApiModelProperty(value = "字段ID")
    @TableField("FIELDID")
    private Long fieldid;

    @ApiModelProperty(value = "是否必填 - 0:不必填 1:必填")
    @TableField("ISMANDATORY")
    private Integer ismandatory;

    @TableField(select = false)
    private String fieldnames;

    @Override
    public Serializable pkVal() {
        return this.cusbankid;
    }

}
