From ad0ec618318f3c1bc28fcc520d2ddf1cad2905e3 Mon Sep 17 00:00:00 2001
From: jyy <935090232@qq.com>
Date: Fri, 15 Jan 2021 12:49:03 +0800
Subject: [PATCH] 修改小程序预约接口1
---
zq-erp/src/main/java/com/matrix/system/app/vo/BusinessesDataShowVo.java | 193 ++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 185 insertions(+), 8 deletions(-)
diff --git a/zq-erp/src/main/java/com/matrix/system/app/vo/BusinessesDataShowVo.java b/zq-erp/src/main/java/com/matrix/system/app/vo/BusinessesDataShowVo.java
index f47b02e..7806b4f 100644
--- a/zq-erp/src/main/java/com/matrix/system/app/vo/BusinessesDataShowVo.java
+++ b/zq-erp/src/main/java/com/matrix/system/app/vo/BusinessesDataShowVo.java
@@ -1,7 +1,10 @@
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
@@ -16,26 +19,104 @@
@ApiModelProperty(value = "营业收入")
private String totalPay;
- @ApiModelProperty(value = "现金收入")
+ @ApiModelProperty(value = "现金收款")
private String cashPay;
- @ApiModelProperty(value = "余额划扣")
+ @ApiModelProperty(value = "储值卡收款")
private String cardPay;
@ApiModelProperty(value = "欠款")
private String arrearsPay;
-
- @ApiModelProperty(value = "赠送消耗")
- private String freeConsumePay;
-
- @ApiModelProperty(value = "本金消耗")
- private String consumePay;
@ApiModelProperty(value = "现金退款")
private String refundCashPay;
@ApiModelProperty(value = "卡项退款")
private String refundCardPay;
+
+ @ApiModelProperty(value = "产品业绩")
+ private String productAchieve;
+
+ @ApiModelProperty(value = "卡项业绩")
+ private String cardAchieve;
+
+ @ApiModelProperty(value = "退款")
+ private String refund;
+
+ @ApiModelProperty(value = "客单数")
+ private String perCustomCnt;
+
+ @ApiModelProperty(value = "客品数")
+ private String customGoodsCnt;
+
+ @ApiModelProperty(value = "客单价")
+ private String perCustomPrice;
+
+ @ApiModelProperty(value = "成本")
+ private String cost;
+
+ @ApiModelProperty(value = "毛利")
+ private String grossProfit;
+
+ @ApiModelProperty(value = "毛利率")
+ private String grossProfitRate;
+
+ @ApiModelProperty(value = "本金消耗")
+ private String consumePay;
+
+ @ApiModelProperty(value = "赠送消耗")
+ private String freeConsumePay;
+
+ @ApiModelProperty(value = "人头数")
+ private String peopleCnt;
+
+ @ApiModelProperty(value = "项目消耗数")
+ private String projConsumeCnt;
+
+ @ApiModelProperty(value = "服务时长")
+ private String timeLength;
+
+ /**
+ * 当天销售总数量
+ */
+ @ApiModelProperty(hidden = true)
+ private Integer totalSaleCnt;
+
+ /**
+ * 家居产品成本
+ */
+ @ApiModelProperty(hidden = true)
+ private String goodsCost;
+
+ /**
+ * 除家具产品以外成本
+ */
+ @ApiModelProperty(hidden = true)
+ private String otherCost;
+
+ public Integer getTotalSaleCnt() {
+ return totalSaleCnt;
+ }
+
+ public void setTotalSaleCnt(Integer totalSaleCnt) {
+ this.totalSaleCnt = totalSaleCnt;
+ }
+
+ public String getGoodsCost() {
+ return goodsCost;
+ }
+
+ public void setGoodsCost(String goodsCost) {
+ this.goodsCost = goodsCost;
+ }
+
+ public String getOtherCost() {
+ return otherCost;
+ }
+
+ public void setOtherCost(String otherCost) {
+ this.otherCost = otherCost;
+ }
public String getDataTime() {
return dataTime;
@@ -108,4 +189,100 @@
public void setRefundCardPay(String refundCardPay) {
this.refundCardPay = refundCardPay;
}
+
+ public String getProductAchieve() {
+ return productAchieve;
+ }
+
+ public void setProductAchieve(String productAchieve) {
+ this.productAchieve = productAchieve;
+ }
+
+ public String getCardAchieve() {
+ return cardAchieve;
+ }
+
+ public void setCardAchieve(String cardAchieve) {
+ this.cardAchieve = cardAchieve;
+ }
+
+ public String getRefund() {
+ return refund;
+ }
+
+ public void setRefund(String refund) {
+ this.refund = refund;
+ }
+
+ public String getPerCustomCnt() {
+ return perCustomCnt;
+ }
+
+ public void setPerCustomCnt(String perCustomCnt) {
+ this.perCustomCnt = perCustomCnt;
+ }
+
+ public String getCustomGoodsCnt() {
+ return new BigDecimal(totalSaleCnt).divide(new BigDecimal(perCustomCnt), 2, BigDecimal.ROUND_DOWN).toPlainString();
+ }
+
+ public void setCustomGoodsCnt(String customGoodsCnt) {
+ this.customGoodsCnt = customGoodsCnt;
+ }
+
+ public String getPerCustomPrice() {
+ return new BigDecimal(totalPay).divide(new BigDecimal(perCustomCnt), 2, BigDecimal.ROUND_DOWN).toPlainString();
+ }
+
+ public void setPerCustomPrice(String perCustomPrice) {
+ this.perCustomPrice = perCustomPrice;
+ }
+
+ public String getCost() {
+ return new BigDecimal(goodsCost).add(new BigDecimal(otherCost)).toPlainString();
+ }
+
+ public void setCost(String cost) {
+ this.cost = cost;
+ }
+
+ public String getGrossProfit() {
+ return new BigDecimal(totalPay).subtract(new BigDecimal(getCost())).toPlainString();
+ }
+
+ public void setGrossProfit(String grossProfit) {
+ this.grossProfit = grossProfit;
+ }
+
+ public String getGrossProfitRate() {
+ return new BigDecimal(getGrossProfit()).divide(new BigDecimal(totalPay), 2, BigDecimal.ROUND_DOWN).toPlainString();
+ }
+
+ public void setGrossProfitRate(String grossProfitRate) {
+ this.grossProfitRate = grossProfitRate;
+ }
+
+ public String getPeopleCnt() {
+ return peopleCnt;
+ }
+
+ public void setPeopleCnt(String peopleCnt) {
+ this.peopleCnt = peopleCnt;
+ }
+
+ public String getProjConsumeCnt() {
+ return projConsumeCnt;
+ }
+
+ public void setProjConsumeCnt(String projConsumeCnt) {
+ this.projConsumeCnt = projConsumeCnt;
+ }
+
+ public String getTimeLength() {
+ return timeLength;
+ }
+
+ public void setTimeLength(String timeLength) {
+ this.timeLength = timeLength;
+ }
}
--
Gitblit v1.9.1