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

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 回款计划
 * </p>
 *
 * @author chenkq
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("order_receive_plan_record")
@ApiModel(value="OrderReceivePlanRecordEntity对象", description="回款计划")
public class OrderReceivePlanRecordEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "编号")
    @TableField("data_code")
    private String data_code;

    @ApiModelProperty(value = "关联订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "关联客户id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "总期次")
    @TableField("period_total")
    private Integer periodTotal;

    @ApiModelProperty(value = "订单总金额")
    @TableField("order_amount")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "回款总金额")
    @TableField("receive_amount")
    private BigDecimal receiveAmount;

    @ApiModelProperty(value = "剩余总金额")
    @TableField("residue_amount")
    private BigDecimal residueAmount;

    @ApiModelProperty(value = "回款间隔单位，1：天 或 2：月")
    @TableField("receive_interval_unit")
    private Integer receiveIntervalUnit;

    @ApiModelProperty(value = "回款间隔时间，天 或 月")
    @TableField("receive_interval")
    private Integer receiveInterval;

    @ApiModelProperty(value = "备注信息")
    @TableField("remark")
    private String remark;


}
