From bd2f8c89f49f92ef075bf39798a71a0d6c08a64a Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期日, 28 九月 2025 11:25:45 +0800
Subject: [PATCH] 店铺绑优惠劵领取记录

---
 framework/src/main/java/cn/lili/modules/lmk/service/impl/StoreCouponClaimRecordServiceImpl.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/framework/src/main/java/cn/lili/modules/lmk/service/impl/StoreCouponClaimRecordServiceImpl.java b/framework/src/main/java/cn/lili/modules/lmk/service/impl/StoreCouponClaimRecordServiceImpl.java
index 08971a4..6a960c2 100644
--- a/framework/src/main/java/cn/lili/modules/lmk/service/impl/StoreCouponClaimRecordServiceImpl.java
+++ b/framework/src/main/java/cn/lili/modules/lmk/service/impl/StoreCouponClaimRecordServiceImpl.java
@@ -218,7 +218,7 @@
             this.save(storeCouponClaimRecord);
             LambdaUpdateWrapper<StoreCoupon> updateStoreCoupon = Wrappers.<StoreCoupon>lambdaUpdate().eq(StoreCoupon::getId, storeCoupon.getId())
                     .set(StoreCoupon::getCouponClaimNum, storeCoupon.getCouponClaimNum() + 1)
-                    .gt(StoreCoupon::getCouponClaimNum, storeCoupon.getCouponClaimNum() + 1);
+                    .ge(StoreCoupon::getCouponNum, storeCoupon.getCouponClaimNum() + 1);
             boolean update = storeCouponService.update(updateStoreCoupon);
             if (!update) {
                 throw new ServiceException("鏇存柊澶辫触");
@@ -264,7 +264,7 @@
         String[] headers = {
                 "浼氬憳鍚嶇О", "浼樻儬鍒稿悕绉�", "鍙戝竷搴楅摵", "闈㈤/鎶樻墸",
                  "鑾峰彇鏂瑰紡", "浼氬憳浼樻儬鍒哥姸鎬�", "浼樻儬鍒哥被鍨�",
-                 "浣跨敤璧峰鏃堕棿", "鎴鏃堕棿"
+                 "浣跨敤璧峰鏃堕棿", "鎴鏃堕棿","棰嗗彇鏃堕棿"
         };
         for (int i = 0; i < headers.length; i++) {
             Cell cell = header.createCell(i);
@@ -368,6 +368,12 @@
             } else {
                 endTimeCell.setCellValue("");
             }
+            Cell claimTimeCell = row.createCell(9);
+            if (Objects.nonNull(dto.getClaimTime())) {
+                endTimeCell.setCellValue(DateUtil.formatDateTime(dto.getClaimTime()));
+            } else {
+                claimTimeCell.setCellValue("");
+            }
         }
 
         return workbook;

--
Gitblit v1.8.0