package com.storlead.sales.pojo.dto.finance;

import com.storlead.sales.pojo.entity.finance.OrderReceivePlanDetailEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-07-26 14:42
 */
@Data
public class OrderReceivePlanDTO {
    /**
     * 客户id
     */
    private Long customerId;
    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 首次回款日期
     */
    private LocalDate firstReceiveDate;

    /**
     * 回款间隔单位，1：天 或 2：月
     */
    private Integer receiveIntervalUnit;

    /**
     * 回款间隔时间，天 或 月
     */
    private Integer receiveInterval;

    /**
     * 回款期数
     */
    private Integer receivePeriodTotal;

    /**
     * 回款金额
     */
    private BigDecimal planReceiveAmount;

    /**
     * isCreate 创建还是修改: 0:创建,1:修改
     */
    private  Integer isCreate = 0;

    /**
     * 计划详情
     */
    @ApiModelProperty(value = "需要修改的数据")
    List<OrderReceivePlanDetailEntity> updateData;

}
