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.*;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 履约计划模板表
 * </p>
 *
 * @author XKF
 * @since 2024-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PERFORMANCEPLANTEMPLATE")
@ApiModel(value="Performanceplantemplate对象", description="履约计划模板表")
@KeySequence(value = "SEQ_PERFORMANCEPLANTEMPLATE")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Performanceplantemplate extends Model<Performanceplantemplate> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "AutoID")
    @TableId(value = "AUTOID", type = IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "模板名称")
    @TableField("TEMPLATENAME")
    private String templatename;

    @ApiModelProperty(value = "支付方式 - 1:冻结 2:扣款(不支持,对接银行会导致当日进出资金不平)")
    @TableField("PAYMENTTYPE")
    private Integer paymenttype;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "模板类型 - 0:通用 1:交割 2:仓单贸易 3:预售集采 7:竞拍-竞价式 8:竞拍-大宗式 9:荷兰式 --失效枚举：4:竞拍-降价式 (无仓单) 5:挂牌期权  6:竞拍-降价式")
    @TableField("TEMPLATETYPE")
    private Integer templatetype;

    @ApiModelProperty(value = "提货方式 - 1:无 2:买方自提 3:卖方发货")
    @TableField("TAKEMODE")
    private Integer takemode;

    @ApiModelProperty(value = "所属用户")
    @TableField("USERID")
    private Long userid;


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

}
