From 315be47531c8c4cec9187e80a660dd3a8b77193e Mon Sep 17 00:00:00 2001 From: zhibing.pu <393733352@qq.com> Date: 星期五, 16 八月 2024 15:29:29 +0800 Subject: [PATCH] 新增加管理后台接口和修复运行异常问题 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCouponController.java | 12 ++++++++++++ 1 files changed, 12 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 f2d803e..67abca2 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 @@ -127,5 +127,17 @@ } return R.ok(list); } + + + /** + * 根据id获取优惠券信息 + * @param id + * @return + */ + @PostMapping(value = "/getCouponById/{id}") + public R<TCoupon> getCouponById(@PathVariable Integer id){ + TCoupon coupon = tCouponService.getById(id); + return R.ok(coupon); + } } -- Gitblit v1.7.1