|
|
@ -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; |
|
|
@ -41,16 +42,19 @@ 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) String createTimeS, |
|
|
|
@RequestParam(name = "createTimeS", required = false) Long createTimeS, |
|
|
|
@RequestParam(name = "createTimeE", required = false) String createTimeE, |
|
|
|
@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 { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("goldType", goldType); |
|
|
|
map.put("goldType", goldType); |
|
|
|
map.put("resType", resType); |
|
|
|
map.put("resType", resType); |
|
|
|
map.put("createTimeS", createTimeS); |
|
|
|
|
|
|
|
map.put("createTimeE", createTimeE); |
|
|
|
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))); |
|
|
@ -66,15 +70,16 @@ public class HighGoldRecController { |
|
|
|
@ApiOperation(value = "获取金币统计") |
|
|
|
@ApiOperation(value = "获取金币统计") |
|
|
|
public ResponseData queryGold(@RequestParam(name = "goldType", required = false) Integer goldType, |
|
|
|
public ResponseData queryGold(@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) String createTimeS, |
|
|
|
@RequestParam(name = "createTimeS", required = false) Long createTimeS, |
|
|
|
@RequestParam(name = "createTimeE", required = false) String createTimeE) { |
|
|
|
@RequestParam(name = "createTimeE", required = false) Long createTimeE) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("goldType", goldType); |
|
|
|
map.put("goldType", goldType); |
|
|
|
map.put("resType", resType); |
|
|
|
map.put("resType", resType); |
|
|
|
map.put("createTimeS", createTimeS); |
|
|
|
if (createTimeS != null) { |
|
|
|
map.put("createTimeE", createTimeE); |
|
|
|
map.put("createTimeS", DateUtil.long2Date(createTimeS)); |
|
|
|
|
|
|
|
map.put("createTimeE", DateUtil.long2Date(createTimeE)); |
|
|
|
|
|
|
|
} |
|
|
|
return ResponseMsgUtil.success(highGoldRecService.queryGold(map)); |
|
|
|
return ResponseMsgUtil.success(highGoldRecService.queryGold(map)); |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|