From 74756b90856b7de19b4a2543e2c0c8089d6a48f1 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期二, 23 七月 2024 18:53:45 +0800 Subject: [PATCH] 分享赠送金额查询优化 --- phis-feign/src/main/java/com/hz/phis/vo/order/OrderActivityReturnVo.java | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/phis/vo/order/OrderActivityReturnVo.java b/phis-feign/src/main/java/com/hz/phis/vo/order/OrderActivityReturnVo.java index 0b3377a..8320abf 100644 --- a/phis-feign/src/main/java/com/hz/phis/vo/order/OrderActivityReturnVo.java +++ b/phis-feign/src/main/java/com/hz/phis/vo/order/OrderActivityReturnVo.java @@ -3,6 +3,7 @@ import lombok.Data; import java.math.BigDecimal; +import java.math.RoundingMode; /** * @author CJH @@ -24,4 +25,26 @@ /**鍒嗕韩鐨勪汉鏁�*/ private Integer shareNum = 0; + + + public void incrementMoneyAdd(BigDecimal money) { + if (money == null){ + money = BigDecimal.ZERO; + } + this.incrementMoney = this.incrementMoney.add(money).setScale(2, RoundingMode.HALF_UP); + } + public void integralMoneyAdd(BigDecimal money) { + if (money == null){ + money = BigDecimal.ZERO; + } + this.integralMoney = this.integralMoney.add(money).setScale(2, RoundingMode.HALF_UP); + } + public void couponNumAdd(Integer num) { + if (num == null){ + num = 0; + } + this.couponNum = this.couponNum + num; + } + + } -- Gitblit v1.8.0