| | |
| | | package com.java110.report.cmd.reportFeeMonthStatistics; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | |
| | | queryStatisticsDto.setCommunityId(reqJson.getString("communityId")); |
| | | queryStatisticsDto.setStartDate(reqJson.getString("startDate")); |
| | | queryStatisticsDto.setEndDate(reqJson.getString("endDate")); |
| | | queryStatisticsDto.setConfigId(reqJson.getString("configId")); |
| | | queryStatisticsDto.setFloorId(reqJson.getString("floorId")); |
| | | queryStatisticsDto.setObjName(reqJson.getString("objName")); |
| | | queryStatisticsDto.setFeeTypeCd(reqJson.getString("feeTypeCd")); |
| | | queryStatisticsDto.setOwnerName(reqJson.getString("ownerName")); |
| | | queryStatisticsDto.setLink(reqJson.getString("link")); |
| | | |
| | | if(reqJson.containsKey("configIds")){ |
| | | queryStatisticsDto.setConfigIds(reqJson.getString("configIds").split(",")); |
| | | } |
| | | |
| | | //todo 查询历史欠费 |
| | | double hisOweFee = feeStatisticsImpl.getHisMonthOweFee(queryStatisticsDto); |
| | | |
| | | //todo 查询 单月欠费 |
| | | double curOweFee = feeStatisticsImpl.getCurMonthOweFee(queryStatisticsDto); |
| | | |
| | | //todo 查询当月应收 |
| | | double curReceivableFee = feeStatisticsImpl.getCurReceivableFee(queryStatisticsDto); |
| | | |
| | | //todo 查询 欠费追回 |
| | | double hisReceivedFee = feeStatisticsImpl.getHisReceivedFee(queryStatisticsDto); |
| | |
| | | long roomCount = baseDataStatisticsImpl.getRoomCount(queryStatisticsDto); |
| | | |
| | | //todo 空闲房屋数 |
| | | long freeRoomCount = baseDataStatisticsImpl.getFreeRoomCount(queryStatisticsDto); |
| | | long feeRoomCount = feeStatisticsImpl.getFeeRoomCount(queryStatisticsDto); |
| | | |
| | | //todo 欠费户数 |
| | | int oweRoomCount = feeStatisticsImpl.getOweRoomCount(queryStatisticsDto); |
| | |
| | | data.put("preReceivedFee", preReceivedFee); |
| | | data.put("receivedFee", receivedFee); |
| | | data.put("roomCount", roomCount); |
| | | data.put("freeRoomCount", freeRoomCount); |
| | | data.put("feeRoomCount", feeRoomCount); |
| | | data.put("oweRoomCount", oweRoomCount); |
| | | context.setResponseEntity(ResultVo.createResponseEntity(data)); |
| | | data.put("curReceivableFee", curReceivableFee); |
| | | |
| | | JSONArray datas = new JSONArray(); |
| | | datas.add(data); |
| | | context.setResponseEntity(ResultVo.createResponseEntity(datas)); |
| | | } |
| | | } |