package com.cool.store.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "xfsg_franchise_fee")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FranchiseFeeDO {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    @Column(name = "shop_id")
    private Long shopId;
    @Column(name = "pay_id")
    private Long payId;
    @Column(name = "audit_id")
    private Long auditId;
    @Column(name = "year_franchise_fee")
    private String yearFranchiseFee;
    @Column(name = "loan_margin")
    private String loanMargin;
    @Column(name = "first_year_start_time")
    private Date firstYearStartTime;
    @Column(name = "first_year_end_time")
    private Date firstYearEndTime;
    @Column(name = "first_year_fee")
    private String  firstYearFee;
    @Column(name = "first_year_manage_fee")
    private String  firstYearManageFee;
    @Column(name = "second_year_start_time")
    private Date secondYearStartTime;
    @Column(name = "second_year_end_time")
    private Date secondYearEndTime;
    @Column(name = "second_year_fee")
    private String secondYearFee;
    @Column(name = "third_year_start_time")
    private Date thirdYearStartTime;
    @Column(name = "third_year_end_time")
    private Date thirdYearEndTime;
    @Column(name = "third_year_fee")
    private String thirdYearFee;
    @Column(name = "performance_bond")
    private String performanceBond;
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty("加盟费优惠原因")
    @Column(name = "discount_reason")
    private String discountReason;

    @Column(name = "xgj_collection_status")
    @ApiModelProperty("新管家收款状态 0-待缴费 1-部分缴款 2-已完成")
    private Integer xgjCollectionStatus;

    @Column(name = "xgj_remainder_payable_amount")
    @ApiModelProperty("新管家剩余应缴金额")
    private BigDecimal xgjRemainderPayableAmount;

    @Column(name = "xgj_fees_paid")
    @ApiModelProperty("新管家已缴金额")
    private BigDecimal xgjFeesPaid;

    @Column(name = "cashier_fee")
    @ApiModelProperty("收银费(系统费)")
    private String cashierFee;

}
