package com.yh.saas.plugin.yiliangyiyun.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 贸易仓单还款管理
 * </p>
 *
 * @author Gdc
 * @since 2021-11-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("repayment_management")
public class RepaymentManagement extends BaseModel<RepaymentManagement> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 贸易仓单id
     */
    private String tradeWarehouseReceiptId;
    /**
     * 合同编号
     */
    private String contractNo;
    /**
     * 待还金额(元)
     */
    private Double repaymentIngAmount;
    /**
     * 还款金额(元)
     */
    private Double repaymentEdAmount;
    /**
     * 还款日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date repaymentDate;
    /**
     * 还款截图
     */
    private String repaymentScreenshot;
    /**
     * 操作人
     */
    private String operator;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
