|
|
@ -112,7 +112,6 @@ public class HighDiscountController { |
|
|
|
if (highDiscount.getId() == null |
|
|
|
if (highDiscount.getId() == null |
|
|
|
|| StringUtils.isBlank(highDiscount.getDiscountName()) |
|
|
|
|| StringUtils.isBlank(highDiscount.getDiscountName()) |
|
|
|
|| StringUtils.isBlank(highDiscount.getDiscountImg()) |
|
|
|
|| StringUtils.isBlank(highDiscount.getDiscountImg()) |
|
|
|
|| StringUtils.isBlank(highDiscount.getDiscountCarouselImg()) |
|
|
|
|
|
|
|
|| highDiscount.getEffectiveDay() == null |
|
|
|
|| highDiscount.getEffectiveDay() == null |
|
|
|
|| highDiscount.getSalesEndTime() == null) { |
|
|
|
|| highDiscount.getSalesEndTime() == null) { |
|
|
|
log.error("HighDiscountController -> updateDiscount() error!","参数错误"); |
|
|
|
log.error("HighDiscountController -> updateDiscount() error!","参数错误"); |
|
|
@ -148,7 +147,7 @@ public class HighDiscountController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/updateDiscountStatus",method = RequestMethod.POST) |
|
|
|
@RequestMapping(value="/updateDiscountStatus",method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
@ApiOperation(value = "修改优惠券状态") |
|
|
|
@ApiOperation(value = "修改优惠券状态") |
|
|
|
public ResponseData updateDiscountStatus(@RequestParam(name = "discountId", required = true) Long discountId, |
|
|
|
public ResponseData updateDiscountStatus(@RequestParam(name = "discountId", required = true) Long discountId, |
|
|
@ -187,6 +186,7 @@ public class HighDiscountController { |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getDiscountList",method = RequestMethod.GET) |
|
|
|
@RequestMapping(value="/getDiscountList",method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询优惠券列表") |
|
|
|
@ApiOperation(value = "查询优惠券列表") |
|
|
|
public ResponseData getDiscountList(@RequestParam(name = "discountKey", required = false) String discountKey, |
|
|
|
public ResponseData getDiscountList(@RequestParam(name = "discountKey", required = false) String discountKey, |
|
|
|
@RequestParam(name = "discountName", required = false) String discountName, |
|
|
|
@RequestParam(name = "discountName", required = false) String discountName, |
|
|
|