领取时间 范围校验
This commit is contained in:
@@ -138,17 +138,22 @@ public class ACouponController {
|
||||
|
||||
/**
|
||||
* 优惠券列表/已领取详情
|
||||
* @param search 用户Id/昵称/手机号
|
||||
*
|
||||
* @param search 用户Id/昵称/手机号
|
||||
* @param param 用户的优惠券列表 使用该对象的UserId
|
||||
*/
|
||||
@GetMapping("/record")
|
||||
public CzgResult<Page<MkShopCouponRecordDTO>> getRecord(@RequestParam(required = false) String search, MkShopCouponRecordDTO param) {
|
||||
Page<MkShopCouponRecordDTO> data = couponRecordService.getRecord(search, param);
|
||||
public CzgResult<Page<MkShopCouponRecordDTO>> getRecord(@RequestParam(required = false) String search,
|
||||
@RequestParam(required = false) String startTime,
|
||||
@RequestParam(required = false) String endTime,
|
||||
MkShopCouponRecordDTO param) {
|
||||
Page<MkShopCouponRecordDTO> data = couponRecordService.getRecord(search, param, startTime, endTime);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户优惠券
|
||||
*
|
||||
* @param id 优惠券记录Id
|
||||
*/
|
||||
@DeleteMapping("/deleteRecord")
|
||||
|
||||
Reference in New Issue
Block a user