|
|
|
@ -1,11 +1,14 @@ |
|
|
|
|
package com.bweb.controller; |
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
|
import com.hai.common.exception.ErrorCode; |
|
|
|
|
import com.hai.common.exception.ErrorHelp; |
|
|
|
|
import com.hai.common.exception.SysCode; |
|
|
|
|
import com.hai.common.security.SessionObject; |
|
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
|
import com.hai.common.utils.PageUtil; |
|
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
|
|
import com.hai.entity.HighActivityAward; |
|
|
|
|
import com.hai.entity.HighActivityInfo; |
|
|
|
@ -15,6 +18,7 @@ import com.hai.enum_type.ActivityInfoStatus; |
|
|
|
|
import com.hai.model.HighUserModel; |
|
|
|
|
import com.hai.model.ResponseData; |
|
|
|
|
import com.hai.service.HighActivityAwardService; |
|
|
|
|
import com.hai.service.HighActivityAwardUserService; |
|
|
|
|
import com.hai.service.HighActivityInfoService; |
|
|
|
|
import com.hai.service.HighActivityUserLotteryNumService; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
@ -50,6 +54,8 @@ public class HighActivityController { |
|
|
|
|
@Resource |
|
|
|
|
private HighActivityUserLotteryNumService highActivityUserLotteryNumService; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private HighActivityAwardUserService highActivityAwardUserService; |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/editActivityAward",method = RequestMethod.POST) |
|
|
|
|
@ResponseBody |
|
|
|
@ -129,5 +135,26 @@ public class HighActivityController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getWinLotteryList",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "查询活动中奖记录") |
|
|
|
|
public ResponseData getWinLotteryList(@RequestParam(name = "activityId", required = true) Long activityId, |
|
|
|
|
@RequestParam(name = "userPhone", required = false) String userPhone, |
|
|
|
|
@RequestParam(name = "awardName", required = false) String awardName, |
|
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize) { |
|
|
|
|
try { |
|
|
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
|
|
param.put("userPhone", userPhone); |
|
|
|
|
param.put("awardName", awardName); |
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageSize,pageSize); |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highActivityAwardUserService.getWinLotteryUserList(activityId, param))); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("HighActivityController -> getWinLotteryList() error!",e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|