|
|
|
@ -77,7 +77,7 @@ public class HighCouponController { |
|
|
|
|
@RequestMapping(value = "/getCouponList", method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "卡卷列表") |
|
|
|
|
public ResponseData getCouponList(@RequestParam(name = "regionId", required = true) String regionId, |
|
|
|
|
public ResponseData getCouponList(@RequestParam(name = "companyId", required = true) String companyId, |
|
|
|
|
@RequestParam(name = "merchantId", required = false) Long merchantId, |
|
|
|
|
@RequestParam(name = "couponName", required = false) String couponName, |
|
|
|
|
@RequestParam(name = "couponType", required = false) Integer couponType, |
|
|
|
@ -88,12 +88,8 @@ public class HighCouponController { |
|
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize) { |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
SecRegion region = commonService.getParentByRegion(Long.parseLong(regionId)); |
|
|
|
|
if (region != null) { |
|
|
|
|
BsCompany bsCompany = bsCompanyService.selectCompanyByRegion(region.getRegionId().toString()); |
|
|
|
|
if (bsCompany != null) { |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("companyId", bsCompany.getId()); |
|
|
|
|
map.put("companyId", companyId); |
|
|
|
|
map.put("merchantId", merchantId); |
|
|
|
|
map.put("couponName", couponName); |
|
|
|
|
map.put("couponType", couponType); |
|
|
|
@ -104,9 +100,6 @@ public class HighCouponController { |
|
|
|
|
map.put("status", 2); |
|
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highCouponService.getCouponList(map))); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>()); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("HighCouponController -> getCouponList() error!", e); |
|
|
|
|