From fab078bcf99eeef5813a9c797147eb2dc18434d4 Mon Sep 17 00:00:00 2001 From: phpcjl <phpcjl@gmail.com> Date: 星期五, 13 十二月 2024 16:38:34 +0800 Subject: [PATCH] 1.后台管理-评论 2.后台管理-门店特殊价 --- ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java index 58f9b98..60e083f 100644 --- a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java +++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java @@ -188,5 +188,13 @@ BeanUtils.copyProperties(data, couponInfoVo); return R.ok(couponInfoVo); } + + /** + * 获取优惠券发放数量 + */ + @GetMapping("/getCouponCount") + public R<Long> getCouponCount(@RequestParam Integer couponId){ + return R.ok(userCouponService.lambdaQuery().eq(UserCoupon::getCouponId, couponId).count()); + } } -- Gitblit v1.7.1