| | |
| | | } else if ("1101".equals(computingFormula)) { // 租金 |
| | | feeReceiptDetailPo.setArea(""); |
| | | feeReceiptDetailPo.setSquarePrice(roomDto.getRoomRent()); |
| | | } else if ("1102".equals(computingFormula)) { // 租金 |
| | | feeReceiptDetailPo.setArea(""); |
| | | feeReceiptDetailPo.setSquarePrice(roomDto.getRoomRent()); |
| | | } else if ("4004".equals(computingFormula)) { |
| | | } else if ("5005".equals(computingFormula)) { |
| | | if (StringUtil.isEmpty(feeDto.getCurDegrees())) { |
| | |
| | | } else if ("1101".equals(computingFormula)) { //租金 |
| | | feeReceiptDetailPo.setArea(roomDtos.get(0).getBuiltUpArea()); |
| | | feeReceiptDetailPo.setSquarePrice(roomDtos.get(0).getRoomRent()); |
| | | } else if ("1102".equals(computingFormula)) { //租金 |
| | | feeReceiptDetailPo.setArea(roomDtos.get(0).getBuiltUpArea()); |
| | | feeReceiptDetailPo.setSquarePrice(roomDtos.get(0).getRoomRent()); |
| | | } else { |
| | | } |
| | | } else if (FeeDto.PAYER_OBJ_TYPE_CAR.equals(feeDto.getPayerObjType())) {//车位相关 |
| | |
| | | feeReceiptDetailPo.setArea(""); |
| | | feeReceiptDetailPo.setSquarePrice("0"); |
| | | } else if ("1101".equals(computingFormula)) { // 租金 |
| | | feeReceiptDetailPo.setArea(""); |
| | | feeReceiptDetailPo.setSquarePrice("0"); |
| | | } else if ("1102".equals(computingFormula)) { // 租金(递增) |
| | | feeReceiptDetailPo.setArea(""); |
| | | feeReceiptDetailPo.setSquarePrice("0"); |
| | | } else if ("4004".equals(computingFormula)) { |
| | |
| | | feeReceiptDetailPo.setArea(builtUpArea.doubleValue() + ""); |
| | | feeReceiptDetailPo.setSquarePrice(feeDto.getSquarePrice() + "/" + feeDto.getAdditionalAmount()); |
| | | } else if ("1101".equals(computingFormula)) { // 租金 |
| | | BigDecimal builtUpArea = new BigDecimal(0); |
| | | for (ContractRoomDto tmpContractRoomDto : contractRoomDtos) { |
| | | builtUpArea = builtUpArea.add(new BigDecimal(Double.parseDouble(tmpContractRoomDto.getRoomRent()))); |
| | | } |
| | | feeReceiptDetailPo.setArea(builtUpArea.doubleValue() + ""); |
| | | feeReceiptDetailPo.setSquarePrice(feeDto.getSquarePrice() + "/" + feeDto.getAdditionalAmount()); |
| | | } else if ("1102".equals(computingFormula)) { // 租金 |
| | | BigDecimal builtUpArea = new BigDecimal(0); |
| | | for (ContractRoomDto tmpContractRoomDto : contractRoomDtos) { |
| | | builtUpArea = builtUpArea.add(new BigDecimal(Double.parseDouble(tmpContractRoomDto.getRoomRent()))); |
| | |
| | | } else if ("1101".equals(computingFormula)) { // 租金 |
| | | BigDecimal additionalAmount = new BigDecimal(Double.parseDouble(tmpReportFeeDto.getRoomRent())); |
| | | feePrice = additionalAmount.setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | } else if ("1102".equals(computingFormula)) { // 租金 |
| | | BigDecimal additionalAmount = new BigDecimal(Double.parseDouble(tmpReportFeeDto.getRoomRent())); |
| | | feePrice = additionalAmount.setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | } else if ("4004".equals(computingFormula)) { |
| | | feePrice = new BigDecimal(Double.parseDouble(tmpReportFeeDto.getAmount())); |
| | | } else if ("5005".equals(computingFormula)) { |
| | |
| | | //feePrice = Double.parseDouble(feeDto.getAdditionalAmount()); |
| | | feePrice = new BigDecimal(0); |
| | | } else if ("1101".equals(computingFormula)) { // 租金 |
| | | feePrice = new BigDecimal(0); |
| | | } else if ("1102".equals(computingFormula)) { // 租金 |
| | | feePrice = new BigDecimal(0); |
| | | } else if ("4004".equals(computingFormula)) { |
| | | feePrice = new BigDecimal(Double.parseDouble(tmpReportFeeDto.getAmount())); |
| | |
| | | BigDecimal cycle1 = new BigDecimal(feeDto.getCycle()); |
| | | feeTotalPrice = additionalAmount.multiply(cycle1).setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | } |
| | | }else if ("1102".equals(computingFormula)) { // 租金 |
| | | BigDecimal additionalAmount = new BigDecimal(Double.parseDouble(roomDto.getRoomRent())); |
| | | feePrice = additionalAmount.setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | if (!StringUtil.isEmpty(feeDto.getCycle())) { |
| | | BigDecimal cycle1 = new BigDecimal(feeDto.getCycle()); |
| | | feeTotalPrice = additionalAmount.multiply(cycle1).setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | } |
| | | } else if ("4004".equals(computingFormula)) { //动态费用 |
| | | feePrice = new BigDecimal(Double.parseDouble(feeDto.getAmount())); |
| | | if (!StringUtil.isEmpty(feeDto.getCycle())) { |
| | |
| | | BigDecimal cycle1 = new BigDecimal(feeDto.getCycle()); |
| | | feeTotalPrice = additionalAmount.multiply(cycle1).setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | } |
| | | } else if ("1102".equals(computingFormula)) { // 租金 |
| | | BigDecimal additionalAmount = new BigDecimal(Double.parseDouble(roomDto.getRoomRent())); |
| | | feePrice = additionalAmount.setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | if (!StringUtil.isEmpty(feeDto.getCycle())) { |
| | | BigDecimal cycle1 = new BigDecimal(feeDto.getCycle()); |
| | | feeTotalPrice = additionalAmount.multiply(cycle1).setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | } |
| | | } else if ("4004".equals(computingFormula)) { |
| | | feePrice = new BigDecimal(Double.parseDouble(feeDto.getAmount())); |
| | | if (!StringUtil.isEmpty(feeDto.getCycle())) { |
| | |
| | | BigDecimal cycle1 = new BigDecimal(feeDto.getCycle()); |
| | | feeTotalPrice = additionalAmount.multiply(cycle1).setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | } |
| | | }else if ("1102".equals(computingFormula)) { // 租金 |
| | | BigDecimal additionalAmount = new BigDecimal(Double.parseDouble(roomDto.getRoomRent())); |
| | | feePrice = additionalAmount.setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | if (!StringUtil.isEmpty(feeDto.getCycle())) { |
| | | BigDecimal cycle1 = new BigDecimal(feeDto.getCycle()); |
| | | feeTotalPrice = additionalAmount.multiply(cycle1).setScale(3, BigDecimal.ROUND_HALF_UP); |
| | | } |
| | | } else if ("4004".equals(computingFormula)) { //动态费用 |
| | | feePrice = new BigDecimal(Double.parseDouble(feeDto.getAmount())); |
| | | if (!StringUtil.isEmpty(feeDto.getCycle())) { |