|
|
|
@@ -281,10 +281,10 @@ public class TtCouponController extends BaseController { |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
@SystemControllerLog(description = "") |
|
|
|
public ResultData puton(@RequestParam Long id) { |
|
|
|
logger.debug("[" + getIpAddr() + "] TtCouponController::findById");if (id == null) { |
|
|
|
logger.debug("[" + getIpAddr() + "] TtCouponController::findById"); |
|
|
|
if (id == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
|
|
|
|
return ttCouponService.puton(id); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -300,4 +300,28 @@ public class TtCouponController extends BaseController { |
|
|
|
return ttCouponService.putoff(id); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("审批通过") |
|
|
|
@GetMapping("/auditPass") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
@SystemControllerLog(description = "") |
|
|
|
public ResultData auditPass(@RequestParam Long id) { |
|
|
|
logger.debug("[" + getIpAddr() + "] TtCouponController::auditPass"); |
|
|
|
if (id == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
return ttCouponService.auditPass(id); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("审批拒绝") |
|
|
|
@PostMapping("/auditRejected") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
@SystemControllerLog(description = "") |
|
|
|
public ResultData auditRejected(@RequestBody TtCoupon record) { |
|
|
|
logger.debug("[" + getIpAddr() + "] TtCouponController::auditRejected"); |
|
|
|
if (record.getId() == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
return ttCouponService.auditRejected(record.getId()); |
|
|
|
} |
|
|
|
|
|
|
|
} |