|
|
|
@ -109,7 +109,7 @@ public class HighCouponController { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MERCHANT_NOF_FOUND, ""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String setCouponKey = DateUtil.date2String(new Date(), "yyyyMMddhhmmss") + ((Math.random()*9+1)*10000); //订单号生成 年月日小时分秒 + 5位随机数
|
|
|
|
|
String setCouponKey = DateUtil.date2String(new Date(), "yyyyMMddhhmmss"); //订单号生成 年月日小时分秒 + 5位随机数
|
|
|
|
|
highCoupon.setCouponKey(setCouponKey); |
|
|
|
|
highCoupon.setCompanyId(merchant.getCompanyId()); |
|
|
|
|
highCoupon.setOperatorId(userInfoModel.getSecUser().getId()); |
|
|
|
@ -255,6 +255,21 @@ public class HighCouponController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/deleteCoupon",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "删除卡卷") |
|
|
|
|
public ResponseData deleteCoupon(@RequestParam(name = "id", required = true) Long id) { |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
highCouponService.ofShelfCoupon(id); |
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("HighCouponController -> deleteCoupon() error!",e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getCouponById",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "根据id 查询卡卷") |
|
|
|
|