| | |
| | | } |
| | | } |
| | | //缴费周期小于空置房打折规则至少应缴月份,就不享受打折优惠 |
| | | if (feeDiscountDto.getCycles() < month) { |
| | | if (Double.parseDouble(feeDiscountDto.getDiscountDesc()) < month) { |
| | | ComputeDiscountDto computeDiscountDto = new ComputeDiscountDto(); |
| | | computeDiscountDto.setDiscountId(feeDiscountDto.getDiscountId()); |
| | | computeDiscountDto.setDiscountType(FeeDiscountDto.DISCOUNT_TYPE_DV); |
| | |
| | | BigDecimal cycleDec = new BigDecimal(feeDiscountDto.getCycles()); |
| | | |
| | | double discountPrice = priceDec.multiply(cycleDec).multiply(new BigDecimal(1.0 - rate)).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue(); |
| | | |
| | | if (discountPrice < 0) { |
| | | return null; |
| | | } |
| | | ComputeDiscountDto computeDiscountDto = new ComputeDiscountDto(); |
| | | computeDiscountDto.setDiscountId(feeDiscountDto.getDiscountId()); |
| | | computeDiscountDto.setDiscountType(FeeDiscountDto.DISCOUNT_TYPE_DV); |