|
@@ -10,13 +10,10 @@ import com.ym.mec.common.page.QueryInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import java.math.BigDecimal;
|
|
|
-
|
|
|
@RequestMapping("sysCouponCode")
|
|
|
@Api(tags = "优惠券明细")
|
|
|
@RestController
|
|
@@ -53,14 +50,4 @@ public class SysCouponCodeController extends BaseController {
|
|
|
}
|
|
|
return succeed(sysCouponCodeService.exchangeCouponTest(sysUser.getId(), couponId, paymentOrderId, exchangeNum));
|
|
|
}
|
|
|
-
|
|
|
- @ApiOperation("获取用户待使用的优惠券")
|
|
|
- @PostMapping(value = "queryCouponPage")
|
|
|
- public HttpResponseResult queryCouponPage(BigDecimal amount){
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
- return failed("用户信息获取失败");
|
|
|
- }
|
|
|
- return succeed(sysCouponCodeService.queryCouponPage(amount,sysUser.getId()));
|
|
|
- }
|
|
|
}
|