From c35f907f1ab5c2cd45a55bf757bb2fc17a5bcf1e Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期四, 23 十一月 2023 18:45:54 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-activity/src/main/java/com/dsh/activity/controller/UserCouponController.java | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/cloud-server-activity/src/main/java/com/dsh/activity/controller/UserCouponController.java b/cloud-server-activity/src/main/java/com/dsh/activity/controller/UserCouponController.java index 74ff933..7df8685 100644 --- a/cloud-server-activity/src/main/java/com/dsh/activity/controller/UserCouponController.java +++ b/cloud-server-activity/src/main/java/com/dsh/activity/controller/UserCouponController.java @@ -178,8 +178,28 @@ return null; } } + + @ResponseBody + @PostMapping("/userCoupon/queryUserCouponById1") + public UserCoupon queryUserCouponById1(@RequestBody Long id){ + try { + UserCoupon userCoupon = userCouponService.getOne(new LambdaQueryWrapper<UserCoupon>().eq(UserCoupon::getId,id)); + return userCoupon; + }catch (Exception e){ + e.printStackTrace(); + return null; + } + } @Autowired private ICouponService couponService; + + @PostMapping("/userCoupon/edit") + public void edit(@RequestBody UserCoupon userCoupon) { + userCoupon.setUserId(null); + userCouponService.updateById(userCoupon); + + } + @PostMapping("/userCoupon/sendUserCoupon") public void sendUserCoupon(@RequestBody SendCouponReq sendCouponReq){ try { -- Gitblit v1.7.1