101captain
2021-12-07 05a88f0a2ed6a2e107a744a58673decde79f91d1
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java
@@ -181,9 +181,9 @@
    }
    private void checkDepositMoney(RentingHouseRegisterDTO registerDTO) {
        BigDecimal depositMoney = registerDTO.getDepositMoney();
        BigDecimal dingMoney = registerDTO.getDingMoney();
        BigDecimal monthlyRentMoney = registerDTO.getMonthlyRentMoney();
        if (nonNull(depositMoney) && nonNull(monthlyRentMoney) && depositMoney.compareTo(monthlyRentMoney) == 1) {
        if (nonNull(dingMoney) && nonNull(monthlyRentMoney) && dingMoney.compareTo(monthlyRentMoney) == 1) {
            throw new ServiceException("500", "定金不能超过月租金");
        }
    }