|
@@ -12,6 +12,7 @@ import com.ym.mec.common.page.QueryInfo;
|
|
|
import com.ym.mec.common.page.WrapperUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -76,8 +77,11 @@ public class SysCouponCodeController extends BaseController {
|
|
|
|
|
|
@ApiOperation("查询优惠券发放记录")
|
|
|
@GetMapping(value = "/queryCanBeGet")
|
|
|
- public HttpResponseResult queryCanBeGetCoupon() {
|
|
|
- return succeed(couponIssueRecordService.queryCanBeGetCoupon(getUserId()));
|
|
|
+ public HttpResponseResult queryCanBeGetCoupon(String useSystem) {
|
|
|
+ if (StringUtils.isEmpty(useSystem)) {
|
|
|
+ useSystem = "MEC";
|
|
|
+ }
|
|
|
+ return succeed(couponIssueRecordService.queryCanBeGetCoupon(getUserId(),useSystem));
|
|
|
}
|
|
|
|
|
|
private Integer getUserId() {
|