From a85ab71180fdcb02b3cae304ebc96bb2ca12423c Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期五, 01 十一月 2024 17:24:14 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCouponController.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCouponController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCouponController.java
index 9a00b7d..f666844 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCouponController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCouponController.java
@@ -118,7 +118,12 @@
         for (ExchangeRecordVO record : data) {
             TCoupon byId = tCouponService.getById(record.getCouponId());
             if (byId!=null){
+                if (byId.getDiscountAmount()!=null){
                     record.setDiscountAmount("¥"+byId.getDiscountAmount());
+
+                }else{
+                    record.setDiscountAmount("¥"+byId.getMaximumDiscountAmount());
+                }
                 if (Objects.equals(byId.getMeetTheConditions(), BigDecimal.ZERO)){
                     record.setMeetTheConditions("无门槛");
                 }else{

--
Gitblit v1.7.1