| | |
| | | |
| | | List<Map> result = reportFeeInnerServiceSMOImpl.repostPaidInFeeByWhiteOrder(feeQueryParams); |
| | | String[][] reportList = new String[feeQueryParams.getRow()!=null?feeQueryParams.getRow():100][]; |
| | | for (int i = 0; i < result.size(); i++) { |
| | | Map map = result.get(i); |
| | | String[] strings = new String[29]; |
| | | for (int j = 1; j <= 27; j++) { |
| | | if(map.containsKey("row"+j)){ |
| | | strings[j-1] = map.get("row"+j).toString(); |
| | | if (!result.get(0).get("count").toString().equals("0")) { |
| | | for (int i = 0; i < result.size(); i++) { |
| | | Map map = result.get(i); |
| | | String[] strings = new String[29]; |
| | | for (int j = 1; j <= 27; j++) { |
| | | if(map.containsKey("row"+j)){ |
| | | strings[j-1] = map.get("row"+j).toString(); |
| | | } |
| | | } |
| | | reportList[i] = strings; |
| | | } |
| | | reportList[i] = strings; |
| | | } |
| | | FeeDetailDto feeDetailDto = new FeeDetailDto(); |
| | | feeDetailDto.setCommunityId(reqJson.getString("communityId")); |
| | |
| | | |
| | | ResultVo resultVo = new ResultVo(reportList); |
| | | resultVo.setTotal(Integer.parseInt(result.get(0).get("count").toString())); |
| | | resultVo.setRecords((int) (resultVo.getTotal() / feeQueryParams.getRow())); |
| | | // resultVo.setTotal(count); |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |