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-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("order_receive_record")
@ApiModel(value="OrderReceiveRecordEntity对象", description="回款记录")
public class OrderReceiveRecordEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

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

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

    @ApiModelProperty(value = "关联计划id")
    @TableField("plan_id")
    private Long planId;

    @ApiModelProperty(value = "关联计划详情id")
    @TableField("plan_detail_id")
    private Long planDetailId;

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

    @ApiModelProperty(value = "计划回款")
    @TableField("receive_date")
    private LocalDate receiveDate;

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

    @ApiModelProperty(value = "回款方式 0:现金，1：其他")
    @TableField("receive_mode")
    private Integer receiveMode;

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

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

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


}
