| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @ApiOperation(value = "余额变更明细", tags = {"后台"}) |
| | | public R<IPage<BalanceChangeRecord>> page(@RequestBody BalanceQuery agentQuery) { |
| | | |
| | | return R.ok(balanceChangeRecordService.pageList(agentQuery)); |
| | | IPage<BalanceChangeRecord> page = balanceChangeRecordService.pageList(agentQuery); |
| | | for (BalanceChangeRecord record : page.getRecords()) { |
| | | if (record.getChangeDirection() == -1){ |
| | | record.setFlag(2); |
| | | }else { |
| | | record.setFlag(1); |
| | | } |
| | | } |
| | | return R.ok(page); |
| | | } |
| | | |
| | | /** |
| | |
| | | ExcelUtil<WalletStatisticsDetail> util = new ExcelUtil<>(WalletStatisticsDetail.class); |
| | | util.exportExcel(response, userPointList, "钱包统计"); |
| | | } |
| | | |
| | | |
| | | } |