| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2023/11/28 11:12 |
| | |
| | | @ResponseBody |
| | | @PostMapping("/userCouponPayment/addUserCouponPayment") |
| | | public void addUserCouponPayment(@RequestBody UserCouponPayment userCouponPayment){ |
| | | userCouponPayment.setInsertTime(new Date()); |
| | | userCouponPaymentService.save(userCouponPayment); |
| | | } |
| | | |
| | |
| | | @ResponseBody |
| | | @PostMapping("/userCouponPayment/updateUserCouponPayment") |
| | | public void updateUserCouponPayment(@RequestBody UserCouponPayment userCouponPayment){ |
| | | userCouponPayment.setUserId(null); |
| | | userCouponPaymentService.updateById(userCouponPayment); |
| | | } |
| | | } |