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-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BANK_CUSBANKCHARGEDETAIL")
@ApiModel(value="BankCusbankchargedetail对象", description="托管银行手续费区间配置表 (手续费收取类型为区间时取此表)")

public class BankCusbankchargedetail extends Model<BankCusbankchargedetail> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "出入金类型 - 1:出金 2:入金 ")
    @TableField("OUTORIN")
    private Integer outorin;

    @ApiModelProperty(value = "客户类型 -  1:对私 2:对公")
    @TableField("USERTYPE")
    private Integer usertype;

    @ApiModelProperty(value = "区间序号 - 金额由小到大递增，从1开始; 添加、修改、删除区间时须重新变更")
    @TableField("RANGEORDER")
    private Integer rangeorder;

    @ApiModelProperty(value = "区间左值")
    @TableField("RANGEMIN")
    private BigDecimal rangemin;

    @ApiModelProperty(value = "区间右值")
    @TableField("RANGEMAX")
    private BigDecimal rangemax;

    @ApiModelProperty(value = "手续费收取方式 - 1:比率 2:固定")
    @TableField("CHARGEALGORITHM")
    private Integer chargealgorithm;

    @ApiModelProperty(value = "手续费值")
    @TableField("CHARGEVALUE")
    private BigDecimal chargevalue;


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

}
