| | |
| | | public void exportUserStatistics(WorldCupGameStatisticsInfoList worldCupGameStatisticsInfoList, HttpServletResponse response){ |
| | | worldCupGameStatisticsInfoList.setOffset(0); |
| | | worldCupGameStatisticsInfoList.setLimit(100000); |
| | | Map<String, Object> map = worldCupClient.worldCupGameStatisticsInfoList(worldCupGameStatisticsInfoList); |
| | | Map<String, Object> map = worldCupClient.getUserGameRecordList(worldCupGameStatisticsInfoList); |
| | | List<Map<String, Object>> list = (List<Map<String, Object>>)map.get("rows"); |
| | | |
| | | try { |
| | |
| | | values[i] = new String[title.length]; |
| | | values[i][0] = d.get("name").toString(); |
| | | values[i][1] = d.get("phone").toString(); |
| | | values[i][2] = d.get("idcard").toString(); |
| | | values[i][2] = null == d.get("idcard") ? "" : d.get("idcard").toString(); |
| | | values[i][3] = d.get("totalSession").toString(); |
| | | values[i][4] = d.get("win").toString() + "-" + d.get("lose").toString(); |
| | | values[i][5] = d.get("winRate").toString() + "%"; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取用户比赛列表 |
| | | * @param worldCupGameStatisticsInfoList |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/getUserGameRecordList") |
| | | public Object getUserGameRecordList(WorldCupGameStatisticsInfoList worldCupGameStatisticsInfoList){ |
| | | return worldCupClient.getUserGameRecordList(worldCupGameStatisticsInfoList); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取用户比赛记录 |
| | | * @param userGameRecordList |