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

import cn.ezhizao.framework.web.domain.BaseEntity;
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.math.BigDecimal;

/**
 * @author 周晓
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("payment_detail 支出合同明细")
public class BizPaymentDetail extends BaseEntity {
    @ApiModelProperty(value = "付款单外键")
    private Long paymentId;

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

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

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

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

    @TableField(exist = false)
    private String taskTypeName;

    @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 = "支付金额")
    private BigDecimal paymentAmount;

    @TableField(exist = false)
    private BigDecimal payment;
    @TableField(exist = false)
    private BigDecimal reallyAmount;
    @TableField(exist = false)
    private BigDecimal arrived;

    @ApiModelProperty("账套外键")
    private Long tenantId;


    @TableField(exist = false)
    @ApiModelProperty("地址类型")
    private Integer addressStyle;
    @TableField(exist = false)
    @ApiModelProperty("虚拟地址外键")
    private Long fictionAddressId;

    @TableField(exist = false)
    @ApiModelProperty(value = "省")
    private String province;

    @TableField(exist = false)
    @ApiModelProperty(value = "市")
    private String city;


    @TableField(exist = false)
    @ApiModelProperty(value = "区")
    private String district;
    @ApiModelProperty("所属区")
    @TableField(exist = false)
    private Integer belongRegion;
    @ApiModelProperty("所属区")
    @TableField(exist = false)
    private String regionName;
    @TableField(exist = false)
    private String fictionAddressName;
    @TableField(exist = false)
    private String explain;

    @TableField(exist = false)
    private String inputRemark;
    @TableField(exist = false)
    private BigDecimal reviewAmount;
    @TableField(exist = false)
    private BigDecimal thisPaymentAmount;
}
