package com.jwipc.contract.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jwipc.aggregation.annotation.RelationAggregationField;
import com.jwipc.sys.client.FileClient;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

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

/**
 * <p>
 * 合同 - mro 数据
 * </p>
 *
 * @author zx
 * @since 2024-04-09
 */
@Data
public class ContractDetailMroDTO{

    private Long id;

    private Long contractId;

    private String contractCode;

    /**
     * 文件名称
     */
    private String name;

    /**
     * 份数
     */
    private String num;

    /**
     * 签约日期
     */
    private LocalDate signTime;

    /**
     * 我方负责人
     */
    private String ourPeople;

    /**
     * 对方负责人
     */
    private String otherPeople;

    /**
     * 合同金额
     */
    private BigDecimal amount;

    /**
     * 附件
     */
    private Long fileId;

    @RelationAggregationField(masterIdField = "fileId", relationIdField = "id", relationNameField = "fileName",
            relationClientClass = FileClient.class, relationMethod = "getFileInfos")
    private String fileName;

}
