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;
import java.util.Date;

/**
 * <p>
 * 汇率配置表
 * </p>
 *
 * @author XKF
 * @since 2025-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("EXCHANGERATECONFIG")
@ApiModel(value="Exchangerateconfig对象", description="汇率配置表")
public class Exchangerateconfig extends Model<Exchangerateconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "源币种ID")
    private Integer oricurrencyid;

    @ApiModelProperty(value = "目标币种ID")
    @TableField("DESCURRENCYID")
    private Integer descurrencyid;

    @ApiModelProperty(value = "汇率")
    @TableField("EXCHANGERATE")
    private BigDecimal exchangerate;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATEBY")
    private Long updateby;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;


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

}
