| | |
| | | }else{ |
| | | record.setMeetTheConditions("满"+byId.getMeetTheConditions()+"元可用"); |
| | | } |
| | | record.setCoverPicture(byId.getCoverPicture()); |
| | | record.setDetailsPicture(byId.getDetailsPicture()); |
| | | } |
| | | } |
| | | return AjaxResult.ok(data); |
| | |
| | | return AjaxResult.ok(tCouponService.pageList(dto)); |
| | | } |
| | | |
| | | @PostMapping(value = "/getCouponById") |
| | | public R<TCoupon> getCouponById(@RequestParam Integer id) { |
| | | return R.ok(tCouponService.getById(id)); |
| | | |
| | | } |
| | | /** |
| | | * 小程序远程调用 获取优惠券信息 |
| | | */ |
| | |
| | | } |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据id获取优惠券信息 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/getCouponById1/{id}") |
| | | public R<TCoupon> getCouponById1(@PathVariable(value = "id") Integer id){ |
| | | TCoupon coupon = tCouponService.getById(id); |
| | | return R.ok(coupon); |
| | | } |
| | | } |
| | | |