huliguo
15 小时以前 aefe81a52fcbda2175b40575982d18e648e7013c
ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/management/MgtCouponController.java
@@ -12,10 +12,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
@@ -127,8 +124,8 @@
    //获取抽奖类型优惠券列表
    @RequestMapping(value = "/getLotteryEventCouponList", method = RequestMethod.POST)
    @ApiOperation(value = "平台获取抽奖类型优惠券列表【2.0】")
    public R<List<LotteryEventCouponListVO>> getLotteryEventCouponList() {
        return R.ok( couponService.getLotteryEventCouponList());
    public R<List<LotteryEventCouponListVO>> getLotteryEventCouponList(@RequestParam(value = "shopId",required = false) Long shopId) {
        return R.ok( couponService.getLotteryEventCouponList(shopId));
    }
}