From 2783a550d31da38419bc5fd3e3298e369dd2b399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92?= Date: Sat, 1 Nov 2025 12:51:56 +0800 Subject: [PATCH] 1 --- .../src/main/resources/mapper/jarvis/GiftCouponMapper.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/resources/mapper/jarvis/GiftCouponMapper.xml b/ruoyi-system/src/main/resources/mapper/jarvis/GiftCouponMapper.xml index 3d5b725..b9ad213 100644 --- a/ruoyi-system/src/main/resources/mapper/jarvis/GiftCouponMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/jarvis/GiftCouponMapper.xml @@ -156,7 +156,13 @@ COUNT(*) as use_count, COALESCE(SUM(total_ocs_amount), 0) as total_ocs_amount FROM ( - + SELECT + gift_coupon_key, + use_count, + total_ocs_amount + FROM ( + + ) grouped ) stats