From 9c791d431038fe79a111805762ee2f42c96b51c5 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 08 Nov 2021 17:03:15 +0800
Subject: [PATCH] fix

---
 zq-erp/src/main/java/com/matrix/system/app/vo/BusinessesDataShowVo.java |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 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 ab14537..be5703e 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
@@ -40,6 +40,12 @@
     @ApiModelProperty(value = "卡项业绩")
     private BigDecimal cardAchieve;
 
+    @ApiModelProperty(value = "储值卡本金扣款")
+    private BigDecimal cardAmount;
+
+    @ApiModelProperty(value = "储值卡增金扣款")
+    private BigDecimal cardFreeAmount;
+
     @ApiModelProperty(value = "退款")
     private BigDecimal refund;
 
@@ -167,7 +173,7 @@
     }
 
     public BigDecimal getConsumePay() {
-        return consumePay;
+        return consumePay.setScale(2, BigDecimal.ROUND_HALF_UP);
     }
 
     public void setConsumePay(BigDecimal consumePay) {
@@ -275,7 +281,7 @@
     }
 
     public BigDecimal getPeopleCnt() {
-        return peopleCnt;
+        return peopleCnt == null ? BigDecimal.ZERO : peopleCnt.setScale(2, BigDecimal.ROUND_DOWN);
     }
 
     public void setPeopleCnt(BigDecimal peopleCnt) {
@@ -297,4 +303,20 @@
     public void setTimeLength(BigDecimal timeLength) {
         this.timeLength = timeLength;
     }
+
+    public BigDecimal getCardAmount() {
+        return cardAmount;
+    }
+
+    public void setCardAmount(BigDecimal cardAmount) {
+        this.cardAmount = cardAmount;
+    }
+
+    public BigDecimal getCardFreeAmount() {
+        return cardFreeAmount;
+    }
+
+    public void setCardFreeAmount(BigDecimal cardFreeAmount) {
+        this.cardFreeAmount = cardFreeAmount;
+    }
 }

--
Gitblit v1.9.1