|
|
|
@@ -62,6 +62,19 @@ public class WxCouponController extends BaseController { |
|
|
|
return wxCouponService.saveOrUpdate(wxCoupon); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据id更新库存及有效期接口") |
|
|
|
@PostMapping("updateStokeAndValidDate") |
|
|
|
@SystemControllerLog(description = "券投放-库存/有效期更新") |
|
|
|
public ResultData updateStokeAndValidDate(@RequestBody WxCoupon wxCoupon) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCouponController::updateStokeAndValidDate"); |
|
|
|
if (wxCoupon.getId() == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
wxCoupon.setTenantId(getTenantId()); |
|
|
|
wxCouponService.updateCouponStockAndEndTime(wxCoupon); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据id删除接口") |
|
|
|
@GetMapping("/del") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
|