package com.ssm.manage.response;

import io.swagger.models.auth.In;
import lombok.*;

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

@Setter
@Getter
@ToString
@NoArgsConstructor
public class PersonZBResponse {

    //销售员编码
    private Long id;
    private Long staffId;
    //销售员水牌号v
    private String brandNumber;
    //销售员姓名
    private String staffName;
    //销售员占比
    private BigDecimal sale_ratio;
    //前端输出比例（金额*占比）
    private BigDecimal ratio;

    //员工的类型
    private Integer type;
//    private List<PersonZBResponse> gly;
//    private List<PersonZBResponse> gg;

    private BigDecimal cardSalesAchievement;//卡付销售业绩标准
    private BigDecimal cardSalesCommission;//卡付销售提成标准
    private BigDecimal cardAchievementAmount;//卡付销售业绩
    private BigDecimal cardCommissionAmount;//卡付销售提成

    public PersonZBResponse(Long id, String brandNumber, String staffName, BigDecimal sale_ratio, BigDecimal ratio) {
        this.id = id;
        this.brandNumber = brandNumber;
        this.staffName = staffName;
        this.sale_ratio = sale_ratio;
        this.ratio = ratio;
    }

    public PersonZBResponse(Long id, String brandNumber, String staffName, BigDecimal sale_ratio, BigDecimal ratio, BigDecimal cardSalesAchievement, BigDecimal cardSalesCommission, BigDecimal cardAchievementAmount, BigDecimal cardCommissionAmount) {
        this.id = id;
        this.brandNumber = brandNumber;
        this.staffName = staffName;
        this.sale_ratio = sale_ratio;
        this.ratio = ratio;
        this.cardSalesAchievement = cardSalesAchievement;
        this.cardSalesCommission = cardSalesCommission;
        this.cardAchievementAmount = cardAchievementAmount;
        this.cardCommissionAmount = cardCommissionAmount;
    }
}
