package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
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 2024-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("REPORT_PLATEFORMPP")
@ApiModel(value="ReportPlateformpp对象", description="平台履约计划报表表(未完成的履约计划汇总)")
public class ReportPlateformpp extends Model<ReportPlateformpp> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "周期类型 - 1:月 2:季 3:年 4:周 5:全报表")
    private Integer cycletype;

    @ApiModelProperty(value = "周期时间 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)")
    @TableField("CYCLETIME")
    private String cycletime;

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

    @ApiModelProperty(value = "履约金额")
    @TableField("AMOUNT")
    private BigDecimal amount;

    @ApiModelProperty(value = "买方已冻/已扣金额")
    @TableField("BUYPAIDAMOUNT")
    private BigDecimal buypaidamount;

    @ApiModelProperty(value = "卖方已收金额")
    @TableField("SELLRECEIVEDAMOUNT")
    private BigDecimal sellreceivedamount;

    @ApiModelProperty(value = "本周期买方扣/冻金额")
    @TableField("BUYTODAYAMOUNT")
    private BigDecimal buytodayamount;

    @ApiModelProperty(value = "本周期卖方收取金额")
    @TableField("SELLTODAYAMOUNT")
    private BigDecimal selltodayamount;


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

}
