package cn.ezhizao.project.business.collection.domain;

import cn.ezhizao.framework.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.FieldFill;
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;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author 朱汕
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("channel_detail 收款合同明细")
public class BizCollectionDetail extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "收款主表id")
    private Long collectionId;

    @ApiModelProperty(value = "合同外键")
    private Long contractId;

    @ApiModelProperty("合同明细外键")
    private Long contractDetailId;

    @ApiModelProperty(value = "客户外键")
    private Long companyId;

    @ApiModelProperty(value = "产品外键")
    private Long taskTypeId;

    @ApiModelProperty(value = "购买数量")
    private BigDecimal buyNum;

    @ApiModelProperty(value = "赠送数量")
    private BigDecimal freeNum;

    @ApiModelProperty(value = "数量单位")
    private String unit;

    @ApiModelProperty(value = "总价")
    private BigDecimal amount;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "成交价格")
    private BigDecimal dealPrice;

    @ApiModelProperty(value = "预估成本")
    private BigDecimal estimateCost;

    @ApiModelProperty(value = "收款金额")
    private BigDecimal arriveAmount;

     /** 虚字段 */
    @ApiModelProperty(value = "客户")
    @TableField(exist = false)
    private String customerName;

    @ApiModelProperty(value = "产品")
    @TableField(exist = false)
    private String taskTypeName;

    @TableField(exist = false)
    private BigDecimal arrived;

    @TableField(exist = false)
    private String forRenew;

    @ApiModelProperty("账套外键")
    private Long tenantId;
    @TableField(exist = false)
    private List<Long> collectionIds;
    @TableField(exist = false)
    private List<Long> ids;
    @TableField(exist = false)
    private Integer verifyStatus;
}
