Browse Source

Merge branch 'release_toaliyun_real' into release_toaliyun_real_offline_activity

release_toaliyun_real
winter 1 year ago
parent
commit
b16dbe2319
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 2
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java View File

@@ -1025,7 +1025,7 @@ public class WxRentContractServiceImpl implements WxRentContractService {
@Override
public List<Date> getYearList(int years,int month,Date rentalStartDate,Date endContractTime ) {
List<Date> yearList = new ArrayList<>();
List<Date> yearList = new ArrayList<Date>();
for (int i = 0; i < years; i++) {
Calendar instance = Calendar.getInstance();
instance.setTime(rentalStartDate);
@@ -1033,6 +1033,7 @@ public class WxRentContractServiceImpl implements WxRentContractService {
Date startDate = instance.getTime();
if (null != endContractTime && endContractTime.before(startDate)) {
yearList.add(endContractTime);
break;
}else {
yearList.add(startDate);
}


Loading…
Cancel
Save