old mode 100644
new mode 100755
| | |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.feeDiscount.ComputeDiscountDto; |
| | | import com.java110.dto.feeDiscount.FeeDiscountDto; |
| | | import com.java110.dto.feeDiscountSpec.FeeDiscountSpecDto; |
| | | import com.java110.dto.feeDiscount.FeeDiscountSpecDto; |
| | | import com.java110.fee.discount.IComputeDiscount; |
| | | import com.java110.intf.fee.IFeeInnerServiceSMO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 空置房打折规则 |
| | |
| | | feeDto.setFeeId(feeDiscountDto.getFeeId()); |
| | | List<FeeDto> feeDtos = feeInnerServiceSMOImpl.queryFees(feeDto); |
| | | |
| | | double price = computeFeeSMOImpl.getFeePrice(feeDtos.get(0)); |
| | | Map feePriceAll = computeFeeSMOImpl.getFeePrice(feeDtos.get(0)); |
| | | |
| | | BigDecimal priceDec = new BigDecimal(price); |
| | | BigDecimal priceDec = new BigDecimal(feePriceAll.get("feePrice").toString()); |
| | | |
| | | BigDecimal cycleDec = new BigDecimal(month); |
| | | //BigDecimal cycleDec = new BigDecimal(month); |
| | | //2021-03-05 根据缴费 时长来算 不应该按 至少缴费来算 |
| | | BigDecimal cycleDec = new BigDecimal(feeDiscountDto.getCycles()); |
| | | |
| | | double discountPrice = priceDec.multiply(cycleDec).multiply(new BigDecimal(1.0 - rate)).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue(); |
| | | |