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 | 54 +++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 49 insertions(+), 5 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 cc69c56..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
@@ -73,6 +76,47 @@
@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;
@@ -179,7 +223,7 @@
}
public String getCustomGoodsCnt() {
- return customGoodsCnt;
+ return new BigDecimal(totalSaleCnt).divide(new BigDecimal(perCustomCnt), 2, BigDecimal.ROUND_DOWN).toPlainString();
}
public void setCustomGoodsCnt(String customGoodsCnt) {
@@ -187,7 +231,7 @@
}
public String getPerCustomPrice() {
- return perCustomPrice;
+ return new BigDecimal(totalPay).divide(new BigDecimal(perCustomCnt), 2, BigDecimal.ROUND_DOWN).toPlainString();
}
public void setPerCustomPrice(String perCustomPrice) {
@@ -195,7 +239,7 @@
}
public String getCost() {
- return cost;
+ return new BigDecimal(goodsCost).add(new BigDecimal(otherCost)).toPlainString();
}
public void setCost(String cost) {
@@ -203,7 +247,7 @@
}
public String getGrossProfit() {
- return grossProfit;
+ return new BigDecimal(totalPay).subtract(new BigDecimal(getCost())).toPlainString();
}
public void setGrossProfit(String grossProfit) {
@@ -211,7 +255,7 @@
}
public String getGrossProfitRate() {
- return grossProfitRate;
+ return new BigDecimal(getGrossProfit()).divide(new BigDecimal(totalPay), 2, BigDecimal.ROUND_DOWN).toPlainString();
}
public void setGrossProfitRate(String grossProfitRate) {
--
Gitblit v1.9.1