| | |
| | | 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 { |