|
|
|
@ -3,6 +3,7 @@ package com.bweb.controller; |
|
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
|
|
import com.hai.model.ResponseData; |
|
|
|
|
import com.hai.service.HighGoldRecService; |
|
|
|
@ -41,16 +42,19 @@ public class HighGoldRecController { |
|
|
|
|
@ApiOperation(value = "获取金币情况") |
|
|
|
|
public ResponseData getGoldRecList(@RequestParam(name = "goldType", required = false) Integer goldType, |
|
|
|
|
@RequestParam(name = "resType", required = false) Integer resType, |
|
|
|
|
@RequestParam(name = "createTimeS", required = false) String createTimeS, |
|
|
|
|
@RequestParam(name = "createTimeE", required = false) String createTimeE, |
|
|
|
|
@RequestParam(name = "createTimeS", required = false) Long createTimeS, |
|
|
|
|
@RequestParam(name = "createTimeE", required = false) Long createTimeE, |
|
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize) { |
|
|
|
|
try { |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("goldType", goldType); |
|
|
|
|
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); |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highGoldRecService.getGoldRec(map))); |
|
|
|
@ -66,15 +70,16 @@ public class HighGoldRecController { |
|
|
|
|
@ApiOperation(value = "获取金币统计") |
|
|
|
|
public ResponseData queryGold(@RequestParam(name = "goldType", required = false) Integer goldType, |
|
|
|
|
@RequestParam(name = "resType", required = false) Integer resType, |
|
|
|
|
@RequestParam(name = "createTimeS", required = false) String createTimeS, |
|
|
|
|
@RequestParam(name = "createTimeE", required = false) String createTimeE) { |
|
|
|
|
@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); |
|
|
|
|
map.put("createTimeS", createTimeS); |
|
|
|
|
map.put("createTimeE", createTimeE); |
|
|
|
|
|
|
|
|
|
if (createTimeS != null) { |
|
|
|
|
map.put("createTimeS", DateUtil.long2Date(createTimeS)); |
|
|
|
|
map.put("createTimeE", DateUtil.long2Date(createTimeE)); |
|
|
|
|
} |
|
|
|
|
return ResponseMsgUtil.success(highGoldRecService.queryGold(map)); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|