package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
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 2024-12-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("THJ_SPOTGOODSDEPOSIT")
@ApiModel(value="ThjSpotgoodsdeposit对象", description="现货商品定金比例设置表")
@KeySequence(value = "SEQ_THJ_SPOTGOODSDEPOSIT")
public class ThjSpotgoodsdeposit extends Model<ThjSpotgoodsdeposit> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID(SEQ_THJ_SPOTGOODSDEPOSIT)")
    @TableId(value = "AUTOID", type = IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "现货商品ID")
    @TableField("WRSTANDARDID")
    private Long wrstandardid;

    @ApiModelProperty(value = "定金比例")
    @TableField("DEPOSITRATE")
    private BigDecimal depositrate;

    @ApiModelProperty(value = "优惠金额(每吨)")
    @TableField("DISCOUNTAMOUNT")
    private BigDecimal discountamount;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATORID")
    private Long updatorid;

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


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

}
