'提交代码'

dev-discount
199901012 4 years ago
parent 2b68b71ff0
commit b0d567dec4
  1. 21
      hai-bweb/src/main/java/com/bweb/controller/HighCouponAgentController.java

@ -60,12 +60,31 @@ public class HighCouponAgentController {
@Resource
private HighCouponService highCouponService;
@RequestMapping(value = "/getAgentCount", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "根据销售码查询详情")
public ResponseData getAgentCount(HttpServletRequest request) {
try {
SessionObject sessionObject = userCenter.getSessionObject(request);
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject();
Map<String,Object> map = new HashMap<>();
map.put("", "");
return ResponseMsgUtil.success(map);
} catch (Exception e) {
log.error("HighCouponAgentController --> getCodeById() error!", e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value = "/assignCouponAgent", method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "分配卡券给代理商")
public ResponseData assignCouponAgent(@RequestBody HighCouponAgentRel highCouponAgentRel, HttpServletRequest request) {
try {
//发布人员
SessionObject sessionObject = userCenter.getSessionObject(request);
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject();
if (userInfoModel.getBsCompany() == null) {

Loading…
Cancel
Save