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

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

/**
 * <p>
 * 账户履约计划日照表
 * </p>
 *
 * @author XKF
 * @since 2024-08-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("RECKON_DAYACCOUNTPP")
@ApiModel(value="ReckonDayaccountpp对象", description="账户履约计划日照表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ReckonDayaccountpp extends Model<ReckonDayaccountpp> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日照日期(yyyyMMdd) 日照日期(yyyyMMdd)")
    private String reckondate;

    @ApiModelProperty(value = "资金账户ID")
    @TableField("ACCOUNTID")
    private Long accountid;

    @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.reckondate;
    }

}
