package com.ssm.manage.extendEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

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

@Setter
@Getter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class AchiCommEntity {

    /**
     * 单据ID
     */
    private Long docId;
    private String staffName;
    private Long id;
    private BigDecimal sale_ratio;


   private BigDecimal cashCoopAchi;
   private BigDecimal cardCoopAchi;
    /**
     * 业务人水牌号
     */
    private String brandNumber;

    /**
     * 业务人编码（来源于员工档案）
     */
    private Long saleStaffId;

    /**
     * 业务人名称（来源于员工档案）
     */
    private String saleStaffName;

    /**
     * 业务人占比
     */
    private BigDecimal saleRatio;

    /**
     * 业务人业绩
     */

    private BigDecimal saleAchievementAmount;

    /**
     * 业务人提成
     */
    private BigDecimal saleCommissionAmount;

    //卡付业绩
    private BigDecimal cardAchi;
    //卡付提成
    private BigDecimal cardComm;
    //现付业绩
    private BigDecimal cashAchi;
    //现付提成
    private BigDecimal cashComm;
    private BigDecimal changeOutMoney;
    private BigDecimal changeInPayMoney;

    /**
     * 业务人身份证号
     */
    private String saleIdentityCard;


    private String docType;

    //还款单据类别使用 标识还款
    private String type;
    //App端业绩明细使用 展示项目名称
    private String tradeName;
    //App端业绩提成按月查询时页面需按天展示 分组使用
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        private Date docDate;

    private String docNum;

    private String orderType;

    //总业绩
    private BigDecimal totalPerformance;

    //总提成
    private BigDecimal totalCommission;

    //单据金额
    private BigDecimal Money;

    //单据编码
    private String projectId;

    //会员名称
    private String memberName;

    //会员编码
    private String memberNum;

    //现付金额
    private BigDecimal cashMoney;

    //卡付金额
    private BigDecimal cardMoney;

    //内调金额
    private BigDecimal nTMoney;

    //部门
    private Integer detpName;

    //欠款单更新所用
    //充值欠款单疗程卡付业绩（算疗程开卡充值卡付作废）
    private BigDecimal KrepayCourseCardchia;
    private BigDecimal KrepayCourseCardcomm;

    //疗程欠款单充值卡付（算疗程充值卡付开卡）
    private BigDecimal ZrepayCourseCardchia;
    private BigDecimal ZrepayCourseCardcomm;

    //疗程欠款单疗程卡付（算讲不清楚）
    private BigDecimal courseChia;
    private BigDecimal courseComm;

    //合作方业绩
    private BigDecimal cooperationAchi;


}
