记得上下班打卡 | git大法好,push需谨慎

Commit fbd789de authored by 胡佳晨's avatar 胡佳晨

修改 离线券 算法

parent 40634911
...@@ -255,7 +255,7 @@ public class GoblinOrderUtils { ...@@ -255,7 +255,7 @@ public class GoblinOrderUtils {
for (CouponOutLineVo data : couponList) { for (CouponOutLineVo data : couponList) {
if (data.getStoreCouponId().equals(ucouponId)) { if (data.getStoreCouponId().equals(ucouponId)) {
isOutLine = true; isOutLine = true;
BigDecimal tempPrice = totalPrice.subtract(totalPrice.multiply(BigDecimal.valueOf(data.getDiscount()).divide(BigDecimal.valueOf(100))).setScale(2, BigDecimal.ROUND_HALF_DOWN)); BigDecimal tempPrice = totalPrice.subtract(totalPrice.multiply(BigDecimal.valueOf(data.getDiscount()).divide(BigDecimal.valueOf(100)).setScale(2, BigDecimal.ROUND_HALF_DOWN)).setScale(2, BigDecimal.ROUND_HALF_DOWN));
returnVo.setSpuIds(CollectionUtil.linkedListString()); returnVo.setSpuIds(CollectionUtil.linkedListString());
returnVo.setValue(tempPrice); returnVo.setValue(tempPrice);
returnVo.setCouType(data.getCouType()); returnVo.setCouType(data.getCouType());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment