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 java.time.LocalDate;
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_detail")
@ApiModel(value="OrderReceivePlanDetailEntity对象", description="回款计划详情")
public class OrderReceivePlanDetailEntity 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 = "计划回款日期")
    @TableField("plan_receive_date")
    private LocalDate planReceiveDate;

    @ApiModelProperty(value = "实际回款日期")
    @TableField("actual_receive_date")
    private LocalDate actualReceiveDate;

    @ApiModelProperty(value = "计划回款金额")
    @TableField("plan_receive_amount")
    private BigDecimal planReceiveAmount;

    @ApiModelProperty(value = "实际回款金额")
    @TableField("actual_receive_amount")
    private BigDecimal actualReceiveAmount;

    @ApiModelProperty(value = "占比")
    @TableField("receive_ratio")
    private BigDecimal receiveRatio;

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

    @ApiModelProperty(value = "审批状态")
    @TableField("approve_status")
    private Integer approveStatus;

    @ApiModelProperty(value = "期次")
    @TableField("period_num")
    private Integer periodNum;

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

    @ApiModelProperty(value = "回款 状态")
    @TableField("receive_status")
    private Integer receiveStatus;

    @ApiModelProperty(value = "逾期天数")
    @TableField("overdue_day")
    private Integer overdueDay;

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


}
