|
@@ -11,10 +11,9 @@ import com.ym.mec.common.page.QueryInfo;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
|
-
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@RequestMapping("sysCouponCode")
|
|
@RequestMapping("sysCouponCode")
|
|
@Api(tags = "优惠券明细")
|
|
@Api(tags = "优惠券明细")
|
|
@@ -58,32 +57,4 @@ public class SysCouponCodeController extends BaseController {
|
|
return succeed(sysCouponCodeService.exchangeCouponTest(sysUser.getId(), couponId, paymentOrderId, exchangeNum));
|
|
return succeed(sysCouponCodeService.exchangeCouponTest(sysUser.getId(), couponId, paymentOrderId, exchangeNum));
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 手动发放优惠券
|
|
|
|
- */
|
|
|
|
- @ApiOperation("手动发放优惠券")
|
|
|
|
- @PostMapping(value = "/issueCoupon")
|
|
|
|
- public HttpResponseResult issueCoupon(@RequestBody Map<String, Object> param) {
|
|
|
|
- couponIssueRecordService.issueCoupon(param);
|
|
|
|
- return succeed();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation("撤销发放优惠券")
|
|
|
|
- @PostMapping(value = "/revokeCoupon")
|
|
|
|
- public HttpResponseResult revokeCoupon(Integer couponId) {
|
|
|
|
- return succeed(couponIssueRecordService.revokeCoupon(couponId));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation("查询优惠券发放名单")
|
|
|
|
- @PostMapping(value = "/queryIssueDetail")
|
|
|
|
- public HttpResponseResult queryIssueDetail(@RequestBody Map<String, Object> param) {
|
|
|
|
- return succeed(couponIssueRecordService.queryIssueDetail(param));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation("查询优惠券发放名单")
|
|
|
|
- @PostMapping(value = "/queryIssueRecord")
|
|
|
|
- public HttpResponseResult queryIssueRecord(@RequestBody Map<String, Object> param) {
|
|
|
|
- return succeed(couponIssueRecordService.queryIssueRecord(param));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|