From b83f20fd0d9be4ed0dbba7f22f82f71b839044eb Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期二, 14 一月 2025 10:25:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/UserCouponServiceImpl.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/UserCouponServiceImpl.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/UserCouponServiceImpl.java
index 2dc890d..549f8b3 100644
--- a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/UserCouponServiceImpl.java
+++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/UserCouponServiceImpl.java
@@ -68,8 +68,10 @@
 			couponInfoVo.setDiscountAmount(couponInfo.getDiscountAmount());
 			couponInfoVo.setMoneyAmount(couponInfo.getMoneyAmount());
 			couponInfoVo.setDiscount(couponInfo.getDiscount());
-			couponInfoVo.setPeriodStartTime(couponInfo.getPeriodStartTime().format(formatter));
-			couponInfoVo.setPeriodEndTime(couponInfo.getPeriodEndTime().format(formatter));
+			if(null != couponInfo.getPeriodStartTime()){
+				couponInfoVo.setPeriodStartTime(couponInfo.getPeriodStartTime().atTime(0, 0, 0).format(formatter));
+				couponInfoVo.setPeriodEndTime(couponInfo.getPeriodEndTime().atTime(23, 59, 59).format(formatter));
+			}
             String forGoodIds = couponInfo.getForGoodIds();
             String[] split = forGoodIds.split(",");
 			if("-1".equals(forGoodIds)){

--
Gitblit v1.7.1