| | |
| | | reportFeeDto.setPayerObjId(reportRoomDto.getRoomId()); |
| | | reportFeeDto.setPayerObjType(FeeDto.PAYER_OBJ_TYPE_ROOM); |
| | | //reportFeeDto.setState(FeeDto.STATE_DOING); |
| | | reportFeeDto.setFeeFlag(FeeDto.FEE_FLAG_CYCLE); |
| | | //reportFeeDto.setFeeFlag(FeeDto.FEE_FLAG_CYCLE); |
| | | |
| | | List<ReportFeeDto> feeDtos = reportFeeServiceDaoImpl.getFees(reportFeeDto); |
| | | |
| | | if (feeDtos == null || feeDtos.size() < 1) { |
| | |
| | | reportFeeYearCollectionDto.setCommunityId(reportRoomDto.getCommunityId()); |
| | | reportFeeYearCollectionDto.setConfigId(tmpReportFeeDto.getConfigId()); |
| | | reportFeeYearCollectionDto.setObjId(tmpReportFeeDto.getPayerObjId()); |
| | | reportFeeYearCollectionDto.setFeeId(tmpReportFeeDto.getFeeId()); |
| | | //reportFeeYearCollectionDto.setFeeId(tmpReportFeeDto.getFeeId()); |
| | | reportFeeYearCollectionDto.setObjType(tmpReportFeeDto.getPayerObjType()); |
| | | List<ReportFeeYearCollectionDto> statistics = BeanConvertUtil.covertBeanList( |
| | | reportFeeYearCollectionServiceDaoImpl.getReportFeeYearCollectionInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionDto)), |
| | |
| | | reportFeeYearCollectionPo.setObjType(FeeDto.PAYER_OBJ_TYPE_ROOM); |
| | | reportFeeYearCollectionPo.setFeeName(StringUtil.isEmpty(tmpReportFeeDto.getImportFeeName()) ? tmpReportFeeDto.getFeeName() : tmpReportFeeDto.getImportFeeName()); |
| | | if (RoomDto.ROOM_TYPE_ROOM.equals(reportRoomDto.getRoomType())) { |
| | | reportFeeYearCollectionPo.setObjName(reportRoomDto.getFloorNum() + "-" + reportRoomDto.getUnitNum() + "-" + reportRoomDto.getRoomNum() ); |
| | | reportFeeYearCollectionPo.setObjName(reportRoomDto.getFloorNum() + "-" + reportRoomDto.getUnitNum() + "-" + reportRoomDto.getRoomNum()); |
| | | } else { |
| | | reportFeeYearCollectionPo.setObjName(reportRoomDto.getFloorNum() + "-" + reportRoomDto.getRoomNum() ); |
| | | reportFeeYearCollectionPo.setObjName(reportRoomDto.getFloorNum() + "-" + reportRoomDto.getRoomNum()); |
| | | } |
| | | reportFeeYearCollectionPo.setOwnerId(reportRoomDto.getOwnerId()); |
| | | reportFeeYearCollectionPo.setOwnerName(reportRoomDto.getOwnerName()); |
| | |
| | | int curYear = Calendar.getInstance().get(Calendar.YEAR); |
| | | double cycleMonth = 12; |
| | | |
| | | if (FeeDto.FEE_FLAG_ONCE.equals(tmpReportFeeDto.getFeeFlag())) { // 一次性费用没有应收 所以写成0 |
| | | return 0; |
| | | } |
| | | |
| | | if (endYear == curYear) { |
| | | try { |
| | | cycleMonth = computeFeeSMOImpl.dayCompare(DateUtil.getDateFromString(curYear + "-01-01", DateUtil.DATE_FORMATE_STRING_B), tmpReportFeeDto.getConfigEndTime()); |
| | |
| | | */ |
| | | private double getReceivedAmount(ReportFeeDto tmpReportFeeDto, int year) { |
| | | ReportFeeDetailDto feeDetailDto = new ReportFeeDetailDto(); |
| | | feeDetailDto.setFeeId(tmpReportFeeDto.getFeeId()); |
| | | feeDetailDto.setConfigId(tmpReportFeeDto.getConfigId()); |
| | | feeDetailDto.setPayerObjId(tmpReportFeeDto.getPayerObjId()); |
| | | String flag = CommonCache.getValue(RECEIVED_TIME); |
| | | if (RECEIVED_TIME_START.equals(flag)) { |
| | | feeDetailDto.setStartTime(year + ""); |
| | | feeDetailDto.setCurStartYear(year + ""); |
| | | } else { |
| | | feeDetailDto.setEndTime(year + ""); |
| | | feeDetailDto.setCurEndYear(year + ""); |
| | | } |
| | | double receivedAmount = reportFeeServiceDaoImpl.getFeeReceivedAmount(feeDetailDto); |
| | | |