| | |
| | | |
| | | @PostMapping("/v1/api/appUserCoupon/deleteByIds") |
| | | @ApiOperation(value = "根据ids删除用户优惠券", tags = {"管理后台-白名单-删除用户优惠券"}) |
| | | public R<Boolean> deleteByIds(@RequestBody List<Long> ids) { |
| | | if (ids == null || ids.isEmpty()) { |
| | | public R<Boolean> deleteByIds(@RequestBody XpAppUserCouponPageListQuery query ) { |
| | | if (query.getIds() == null || query.getIds().isEmpty()) { |
| | | return R.fail("ID列表不能为空"); |
| | | } |
| | | boolean result = xpAppUserCouponService.removeByIds(ids); |
| | | boolean result = xpAppUserCouponService.removeByIds(query.getIds()); |
| | | return R.ok(result); |
| | | } |
| | | |