| | |
| | | return null; |
| | | } |
| | | } |
| | | @ResponseBody |
| | | @PostMapping("/coupon/queryUserCouponById") |
| | | public Integer queryUserCouponById(@RequestBody Long id) { |
| | | try { |
| | | Integer couponId = userCouponService.getById(id).getCouponId(); |
| | | return couponId; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | |
| | | @Autowired |
| | |
| | | @PostMapping("/base/coupon/listRecord") |
| | | @ResponseBody |
| | | public List<Map<String, Object>> listRecord(@RequestBody CouponRecordQuery ofSearch) { |
| | | Page<Object> objectPage = new Page<>(ofSearch.getOffset(), ofSearch.getLimit()); |
| | | return couponService.listRecord(objectPage, ofSearch.getId(), ofSearch.getIds(), ofSearch.getType()); |
| | | return couponService.listRecord(ofSearch.getId(), ofSearch.getIds(), ofSearch.getType()); |
| | | } |
| | | |
| | | |