| | |
| | | queryStatisticsDto.setCommunityId(reqJson.getString("communityId")); |
| | | queryStatisticsDto.setStartDate(reqJson.getString("startDate")); |
| | | queryStatisticsDto.setEndDate(reqJson.getString("endDate")); |
| | | if(reqJson.containsKey("endDate") && !reqJson.getString("endDate").contains(":")) { |
| | | queryStatisticsDto.setEndDate(reqJson.getString("endDate") + " 23:59:59"); |
| | | } |
| | | queryStatisticsDto.setConfigId(reqJson.getString("configId")); |
| | | queryStatisticsDto.setFloorId(reqJson.getString("floorId")); |
| | | queryStatisticsDto.setObjName(reqJson.getString("objName")); |
| | |
| | | //todo 房屋数 |
| | | long roomCount = baseDataStatisticsImpl.getRoomCount(queryStatisticsDto); |
| | | |
| | | //todo 空闲房屋数 |
| | | //todo 收费房屋数 |
| | | long feeRoomCount = feeStatisticsImpl.getFeeRoomCount(queryStatisticsDto); |
| | | |
| | | //todo 已收费户数 |
| | | double monthReceivedRoomCount = feeStatisticsImpl.getReceivedRoomCount(queryStatisticsDto); |
| | | //int oweRoomCount = feeStatisticsImpl.getOweRoomCount(queryStatisticsDto); |
| | | //todo 欠费户数 |
| | | int oweRoomCount = feeStatisticsImpl.getOweRoomCount(queryStatisticsDto); |
| | | |
| | | JSONObject data = new JSONObject(); |
| | | data.put("hisOweFee", hisOweFee); |
| | |
| | | data.put("receivedFee", receivedFee); |
| | | data.put("roomCount", roomCount); |
| | | data.put("feeRoomCount", feeRoomCount); |
| | | data.put("oweRoomCount", feeRoomCount-monthReceivedRoomCount); |
| | | data.put("oweRoomCount", oweRoomCount); |
| | | data.put("curReceivableFee", curReceivableFee); |
| | | |
| | | JSONArray datas = new JSONArray(); |