|
|
|
@@ -250,12 +250,23 @@ public class WxCouponController extends BaseController { |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
@TenantIgnore |
|
|
|
@ApiOperation("根据id查询接口") |
|
|
|
@GetMapping("/findDraftCoupon") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
@SystemControllerLog(description = "券投放-查询") |
|
|
|
public ResultData findDraftCoupon(@RequestParam Long id) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCouponController::findDraftCoupon"); |
|
|
|
TenantEntity tenantEntity = getTenantInfo(); |
|
|
|
return new ResultData(wxCouponService.getDraftCoupon(id,tenantEntity.getTenantId(),tenantEntity)); |
|
|
|
} |
|
|
|
|
|
|
|
@TenantIgnore |
|
|
|
@ApiOperation("根据id更新接口") |
|
|
|
@PostMapping("updateOnlie") |
|
|
|
@PostMapping("updateByOnlie") |
|
|
|
@SystemControllerLog(description = "券投放-更新") |
|
|
|
public ResultData updateOnlie(@RequestBody WxCoupon wxCoupon) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCouponController::update"); |
|
|
|
public ResultData updateByOnlie(@RequestBody WxCoupon wxCoupon) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCouponController::updateByOnlie"); |
|
|
|
if (wxCoupon.getId() == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
|