|
|
@ -182,6 +182,52 @@ public class HighDiscountAgentRelController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getDiscountUseConditionList",method = RequestMethod.GET) |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
|
|
@ApiOperation(value = "查询优惠券使用情况") |
|
|
|
|
|
|
|
public ResponseData getDiscountUseConditionList(@RequestParam(name = "discountId", required = false) Long discountId, |
|
|
|
|
|
|
|
@RequestParam(name = "discountName", required = false) String discountName, |
|
|
|
|
|
|
|
@RequestParam(name = "storeName", required = false) String storeName, |
|
|
|
|
|
|
|
@RequestParam(name = "status", required = false) Integer status, |
|
|
|
|
|
|
|
@RequestParam(name = "receiveTimeS", required = false) Long receiveTimeS, |
|
|
|
|
|
|
|
@RequestParam(name = "receiveTimeE", required = false) Long receiveTimeE, |
|
|
|
|
|
|
|
@RequestParam(name = "useTimeS", required = false) Long useTimeS, |
|
|
|
|
|
|
|
@RequestParam(name = "useTimeE", required = false) Long useTimeE, |
|
|
|
|
|
|
|
@RequestParam(name = "idS", required = false) Long idS, |
|
|
|
|
|
|
|
@RequestParam(name = "idE", required = false) Long idE, |
|
|
|
|
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
|
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize, |
|
|
|
|
|
|
|
HttpServletRequest request) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
SessionObject sessionObject = userCenter.getSessionObject(request); |
|
|
|
|
|
|
|
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); |
|
|
|
|
|
|
|
if (userInfoModel.getHighAgent() == null) { |
|
|
|
|
|
|
|
log.error("HighCouponController -> insertCoupon() error!","该主角色没有权限"); |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MENU_TREE_HAS_NOT_ERROR, ""); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
map.put("agentId", userInfoModel.getHighAgent().getId()); |
|
|
|
|
|
|
|
map.put("discountId", discountId); |
|
|
|
|
|
|
|
map.put("discountName", discountName); |
|
|
|
|
|
|
|
map.put("storeName", storeName); |
|
|
|
|
|
|
|
map.put("status", status); |
|
|
|
|
|
|
|
map.put("receiveTimeS", receiveTimeS); |
|
|
|
|
|
|
|
map.put("receiveTimeE", receiveTimeE); |
|
|
|
|
|
|
|
map.put("useTimeS", useTimeS); |
|
|
|
|
|
|
|
map.put("useTimeE", useTimeE); |
|
|
|
|
|
|
|
map.put("idS", idS); |
|
|
|
|
|
|
|
map.put("idE", idE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum,pageSize); |
|
|
|
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highDiscountAgentCodeService.getDiscountUseConditionList(map))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("HighDiscountController -> getDiscountUseConditionList() error!",e); |
|
|
|
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getDiscountCodeById",method = RequestMethod.GET) |
|
|
|
@RequestMapping(value="/getDiscountCodeById",method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
@ApiOperation(value = "查询优惠券码 详情") |
|
|
|
@ApiOperation(value = "查询优惠券码 详情") |
|
|
|