|  |  |  | 
|---|
|  |  |  | package com.matrix.system.app.vo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModel; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.math.BigDecimal; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author wzy | 
|---|
|  |  |  | 
|---|
|  |  |  | private String dataTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "营业收入") | 
|---|
|  |  |  | private String totalPay; | 
|---|
|  |  |  | private BigDecimal totalPay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "现金收款") | 
|---|
|  |  |  | private String cashPay; | 
|---|
|  |  |  | private BigDecimal cashPay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "储值卡收款") | 
|---|
|  |  |  | private String cardPay; | 
|---|
|  |  |  | private BigDecimal cardPay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "欠款") | 
|---|
|  |  |  | private String arrearsPay; | 
|---|
|  |  |  | private BigDecimal arrearsPay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "现金退款") | 
|---|
|  |  |  | private String refundCashPay; | 
|---|
|  |  |  | private BigDecimal refundCashPay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "卡项退款") | 
|---|
|  |  |  | private String refundCardPay; | 
|---|
|  |  |  | private BigDecimal refundCardPay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "产品业绩") | 
|---|
|  |  |  | private String productAchieve; | 
|---|
|  |  |  | private BigDecimal productAchieve; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "卡项业绩") | 
|---|
|  |  |  | private String cardAchieve; | 
|---|
|  |  |  | private BigDecimal cardAchieve; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "退款") | 
|---|
|  |  |  | private String refund; | 
|---|
|  |  |  | private BigDecimal refund; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "客单数") | 
|---|
|  |  |  | private String perCustomCnt; | 
|---|
|  |  |  | private BigDecimal perCustomCnt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "客品数") | 
|---|
|  |  |  | private String customGoodsCnt; | 
|---|
|  |  |  | private BigDecimal customGoodsCnt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "客单价") | 
|---|
|  |  |  | private String perCustomPrice; | 
|---|
|  |  |  | private BigDecimal perCustomPrice; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "成本") | 
|---|
|  |  |  | private String cost; | 
|---|
|  |  |  | private BigDecimal cost; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "毛利") | 
|---|
|  |  |  | private String grossProfit; | 
|---|
|  |  |  | private BigDecimal grossProfit; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "毛利率") | 
|---|
|  |  |  | private String grossProfitRate; | 
|---|
|  |  |  | private BigDecimal grossProfitRate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "本金消耗") | 
|---|
|  |  |  | private String consumePay; | 
|---|
|  |  |  | private BigDecimal consumePay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "赠送消耗") | 
|---|
|  |  |  | private String freeConsumePay; | 
|---|
|  |  |  | private BigDecimal freeConsumePay; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "人头数") | 
|---|
|  |  |  | private String peopleCnt; | 
|---|
|  |  |  | private BigDecimal peopleCnt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "项目消耗数") | 
|---|
|  |  |  | private String projConsumeCnt; | 
|---|
|  |  |  | private BigDecimal projConsumeCnt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "服务时长") | 
|---|
|  |  |  | private String timeLength; | 
|---|
|  |  |  | private BigDecimal timeLength; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 当天销售总数量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(hidden = true) | 
|---|
|  |  |  | private Integer totalSaleCnt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 家居产品成本 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(hidden = true) | 
|---|
|  |  |  | private BigDecimal goodsCost; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 除家具产品以外成本 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(hidden = true) | 
|---|
|  |  |  | private BigDecimal otherCost; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Integer getTotalSaleCnt() { | 
|---|
|  |  |  | return totalSaleCnt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTotalSaleCnt(Integer totalSaleCnt) { | 
|---|
|  |  |  | this.totalSaleCnt = totalSaleCnt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public BigDecimal getGoodsCost() { | 
|---|
|  |  |  | return goodsCost; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setGoodsCost(BigDecimal goodsCost) { | 
|---|
|  |  |  | this.goodsCost = goodsCost; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public BigDecimal getOtherCost() { | 
|---|
|  |  |  | return otherCost; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOtherCost(BigDecimal otherCost) { | 
|---|
|  |  |  | this.otherCost = otherCost; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDataTime() { | 
|---|
|  |  |  | return dataTime; | 
|---|
|  |  |  | 
|---|
|  |  |  | this.dataTime = dataTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTotalPay() { | 
|---|
|  |  |  | public BigDecimal getTotalPay() { | 
|---|
|  |  |  | return totalPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTotalPay(String totalPay) { | 
|---|
|  |  |  | public void setTotalPay(BigDecimal totalPay) { | 
|---|
|  |  |  | this.totalPay = totalPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCashPay() { | 
|---|
|  |  |  | public BigDecimal getCashPay() { | 
|---|
|  |  |  | return cashPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCashPay(String cashPay) { | 
|---|
|  |  |  | public void setCashPay(BigDecimal cashPay) { | 
|---|
|  |  |  | this.cashPay = cashPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCardPay() { | 
|---|
|  |  |  | public BigDecimal getCardPay() { | 
|---|
|  |  |  | return cardPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCardPay(String cardPay) { | 
|---|
|  |  |  | public void setCardPay(BigDecimal cardPay) { | 
|---|
|  |  |  | this.cardPay = cardPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getArrearsPay() { | 
|---|
|  |  |  | public BigDecimal getArrearsPay() { | 
|---|
|  |  |  | return arrearsPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setArrearsPay(String arrearsPay) { | 
|---|
|  |  |  | public void setArrearsPay(BigDecimal arrearsPay) { | 
|---|
|  |  |  | this.arrearsPay = arrearsPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getFreeConsumePay() { | 
|---|
|  |  |  | public BigDecimal getFreeConsumePay() { | 
|---|
|  |  |  | return freeConsumePay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setFreeConsumePay(String freeConsumePay) { | 
|---|
|  |  |  | public void setFreeConsumePay(BigDecimal freeConsumePay) { | 
|---|
|  |  |  | this.freeConsumePay = freeConsumePay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getConsumePay() { | 
|---|
|  |  |  | public BigDecimal getConsumePay() { | 
|---|
|  |  |  | return consumePay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setConsumePay(String consumePay) { | 
|---|
|  |  |  | public void setConsumePay(BigDecimal consumePay) { | 
|---|
|  |  |  | this.consumePay = consumePay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getRefundCashPay() { | 
|---|
|  |  |  | public BigDecimal getRefundCashPay() { | 
|---|
|  |  |  | return refundCashPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRefundCashPay(String refundCashPay) { | 
|---|
|  |  |  | public void setRefundCashPay(BigDecimal refundCashPay) { | 
|---|
|  |  |  | this.refundCashPay = refundCashPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getRefundCardPay() { | 
|---|
|  |  |  | public BigDecimal getRefundCardPay() { | 
|---|
|  |  |  | return refundCardPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRefundCardPay(String refundCardPay) { | 
|---|
|  |  |  | public void setRefundCardPay(BigDecimal refundCardPay) { | 
|---|
|  |  |  | this.refundCardPay = refundCardPay; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getProductAchieve() { | 
|---|
|  |  |  | public BigDecimal getProductAchieve() { | 
|---|
|  |  |  | return productAchieve; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setProductAchieve(String productAchieve) { | 
|---|
|  |  |  | public void setProductAchieve(BigDecimal productAchieve) { | 
|---|
|  |  |  | this.productAchieve = productAchieve; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCardAchieve() { | 
|---|
|  |  |  | public BigDecimal getCardAchieve() { | 
|---|
|  |  |  | return cardAchieve; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCardAchieve(String cardAchieve) { | 
|---|
|  |  |  | public void setCardAchieve(BigDecimal cardAchieve) { | 
|---|
|  |  |  | this.cardAchieve = cardAchieve; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getRefund() { | 
|---|
|  |  |  | public BigDecimal getRefund() { | 
|---|
|  |  |  | return refund; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRefund(String refund) { | 
|---|
|  |  |  | public void setRefund(BigDecimal refund) { | 
|---|
|  |  |  | this.refund = refund; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getPerCustomCnt() { | 
|---|
|  |  |  | public BigDecimal getPerCustomCnt() { | 
|---|
|  |  |  | return perCustomCnt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setPerCustomCnt(String perCustomCnt) { | 
|---|
|  |  |  | public void setPerCustomCnt(BigDecimal perCustomCnt) { | 
|---|
|  |  |  | this.perCustomCnt = perCustomCnt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCustomGoodsCnt() { | 
|---|
|  |  |  | return customGoodsCnt; | 
|---|
|  |  |  | public BigDecimal getCustomGoodsCnt() { | 
|---|
|  |  |  | if (BigDecimal.ZERO.compareTo(perCustomCnt) != 0) { | 
|---|
|  |  |  | return new BigDecimal(totalSaleCnt).divide(perCustomCnt, 2, BigDecimal.ROUND_DOWN); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return BigDecimal.ZERO; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCustomGoodsCnt(String customGoodsCnt) { | 
|---|
|  |  |  | public void setCustomGoodsCnt(BigDecimal customGoodsCnt) { | 
|---|
|  |  |  | this.customGoodsCnt = customGoodsCnt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getPerCustomPrice() { | 
|---|
|  |  |  | return perCustomPrice; | 
|---|
|  |  |  | public BigDecimal getPerCustomPrice() { | 
|---|
|  |  |  | if (perCustomCnt.compareTo(BigDecimal.ZERO) != 0) { | 
|---|
|  |  |  | return totalPay.divide(perCustomCnt, 2, BigDecimal.ROUND_DOWN); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return BigDecimal.ZERO; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setPerCustomPrice(String perCustomPrice) { | 
|---|
|  |  |  | public void setPerCustomPrice(BigDecimal perCustomPrice) { | 
|---|
|  |  |  | this.perCustomPrice = perCustomPrice; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCost() { | 
|---|
|  |  |  | return cost; | 
|---|
|  |  |  | public BigDecimal getCost() { | 
|---|
|  |  |  | return goodsCost.add(otherCost); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCost(String cost) { | 
|---|
|  |  |  | public void setCost(BigDecimal cost) { | 
|---|
|  |  |  | this.cost = cost; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getGrossProfit() { | 
|---|
|  |  |  | return grossProfit; | 
|---|
|  |  |  | public BigDecimal getGrossProfit() { | 
|---|
|  |  |  | return totalPay.subtract(getCost()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setGrossProfit(String grossProfit) { | 
|---|
|  |  |  | public void setGrossProfit(BigDecimal grossProfit) { | 
|---|
|  |  |  | this.grossProfit = grossProfit; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getGrossProfitRate() { | 
|---|
|  |  |  | return grossProfitRate; | 
|---|
|  |  |  | public BigDecimal getGrossProfitRate() { | 
|---|
|  |  |  | if (totalPay.compareTo(BigDecimal.ZERO) != 0) { | 
|---|
|  |  |  | return getGrossProfit().divide(totalPay, 2, BigDecimal.ROUND_DOWN); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return BigDecimal.ZERO; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setGrossProfitRate(String grossProfitRate) { | 
|---|
|  |  |  | public void setGrossProfitRate(BigDecimal grossProfitRate) { | 
|---|
|  |  |  | this.grossProfitRate = grossProfitRate; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getPeopleCnt() { | 
|---|
|  |  |  | return peopleCnt; | 
|---|
|  |  |  | public BigDecimal getPeopleCnt() { | 
|---|
|  |  |  | return peopleCnt == null ? BigDecimal.ZERO : peopleCnt.setScale(2, BigDecimal.ROUND_DOWN); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setPeopleCnt(String peopleCnt) { | 
|---|
|  |  |  | public void setPeopleCnt(BigDecimal peopleCnt) { | 
|---|
|  |  |  | this.peopleCnt = peopleCnt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getProjConsumeCnt() { | 
|---|
|  |  |  | public BigDecimal getProjConsumeCnt() { | 
|---|
|  |  |  | return projConsumeCnt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setProjConsumeCnt(String projConsumeCnt) { | 
|---|
|  |  |  | public void setProjConsumeCnt(BigDecimal projConsumeCnt) { | 
|---|
|  |  |  | this.projConsumeCnt = projConsumeCnt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTimeLength() { | 
|---|
|  |  |  | public BigDecimal getTimeLength() { | 
|---|
|  |  |  | return timeLength; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTimeLength(String timeLength) { | 
|---|
|  |  |  | public void setTimeLength(BigDecimal timeLength) { | 
|---|
|  |  |  | this.timeLength = timeLength; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|