diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java index f9e430be1..dfbffaa21 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java @@ -722,8 +722,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService int receivePeriod = wxPropertyContract.getReceivePeriod().intValue(); Integer lease = wxPropertyContract.getLease(); Date rentalStartDate = wxPropertyContract.getRentalStartDate(); - System.out.println(wxPropertyContract.getRentStartType().intValue() + "------------------"); - if (wxPropertyContract.getRentStartType().equals(EnumRentStartType.STARTTIME.getCode())) { + if (EnumRentStartType.STARTTIME.getCode().equals(wxPropertyContract.getRentStartType())) { rentalStartDate = wxPropertyContract.getStartDate(); } propertyContract.setRentalStartDate(rentalStartDate); diff --git a/mallinkService/src/main/java/com/iformall/utils/DateUtils.java b/mallinkService/src/main/java/com/iformall/utils/DateUtils.java index a88002166..1cb074406 100755 --- a/mallinkService/src/main/java/com/iformall/utils/DateUtils.java +++ b/mallinkService/src/main/java/com/iformall/utils/DateUtils.java @@ -1105,7 +1105,7 @@ public class DateUtils { LocalDate end = localDateTime.toLocalDate(); if (!start.isBefore(end)) { - throw new IllegalArgumentException("Start must not be before end."); + throw new IllegalArgumentException("日期不正确,请检查。"); } Period period = Period.between(start, end);