|
|
@ -3,6 +3,7 @@ package com.bweb.controller; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
|
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
|
import com.hai.model.ResponseData; |
|
|
|
import com.hai.model.ResponseData; |
|
|
|
import com.hai.service.HighGoldRecService; |
|
|
|
import com.hai.service.HighGoldRecService; |
|
|
@ -33,9 +34,6 @@ public class HighGoldRecController { |
|
|
|
|
|
|
|
|
|
|
|
private static Logger log = LoggerFactory.getLogger(HighGoldRecController.class); |
|
|
|
private static Logger log = LoggerFactory.getLogger(HighGoldRecController.class); |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private UserCenter userCenter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private HighGoldRecService highGoldRecService; |
|
|
|
private HighGoldRecService highGoldRecService; |
|
|
|
|
|
|
|
|
|
|
@ -44,6 +42,8 @@ public class HighGoldRecController { |
|
|
|
@ApiOperation(value = "获取金币情况") |
|
|
|
@ApiOperation(value = "获取金币情况") |
|
|
|
public ResponseData getGoldRecList(@RequestParam(name = "goldType", required = false) Integer goldType, |
|
|
|
public ResponseData getGoldRecList(@RequestParam(name = "goldType", required = false) Integer goldType, |
|
|
|
@RequestParam(name = "resType", required = false) Integer resType, |
|
|
|
@RequestParam(name = "resType", required = false) Integer resType, |
|
|
|
|
|
|
|
@RequestParam(name = "createTimeS", required = false) Long createTimeS, |
|
|
|
|
|
|
|
@RequestParam(name = "createTimeE", required = false) Long createTimeE, |
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize) { |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize) { |
|
|
|
try { |
|
|
|
try { |
|
|
@ -51,6 +51,11 @@ public class HighGoldRecController { |
|
|
|
map.put("goldType", goldType); |
|
|
|
map.put("goldType", goldType); |
|
|
|
map.put("resType", resType); |
|
|
|
map.put("resType", resType); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (createTimeS != null) { |
|
|
|
|
|
|
|
map.put("createTimeS", DateUtil.long2Date(createTimeS)); |
|
|
|
|
|
|
|
map.put("createTimeE", DateUtil.long2Date(createTimeE)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum,pageSize); |
|
|
|
PageHelper.startPage(pageNum,pageSize); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highGoldRecService.getGoldRec(map))); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highGoldRecService.getGoldRec(map))); |
|
|
|
|
|
|
|
|
|
|
@ -60,4 +65,27 @@ public class HighGoldRecController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/queryGold",method = RequestMethod.GET) |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
|
|
@ApiOperation(value = "获取金币统计") |
|
|
|
|
|
|
|
public ResponseData queryGold(@RequestParam(name = "goldType", required = false) Integer goldType, |
|
|
|
|
|
|
|
@RequestParam(name = "resType", required = false) Integer resType, |
|
|
|
|
|
|
|
@RequestParam(name = "createTimeS", required = false) Long createTimeS, |
|
|
|
|
|
|
|
@RequestParam(name = "createTimeE", required = false) Long createTimeE) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
map.put("goldType", goldType); |
|
|
|
|
|
|
|
map.put("resType", resType); |
|
|
|
|
|
|
|
if (createTimeS != null) { |
|
|
|
|
|
|
|
map.put("createTimeS", DateUtil.long2Date(createTimeS)); |
|
|
|
|
|
|
|
map.put("createTimeE", DateUtil.long2Date(createTimeE)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ResponseMsgUtil.success(highGoldRecService.queryGold(map)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("HighCouponController -> getCouponList() error!",e); |
|
|
|
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|