| | |
| | | list.add(DateUtil.addMonthToDate(startDate,i*6)); |
| | | } |
| | | if(restMonth>0 || monthDays>0){ |
| | | list.add(DateUtil.addDaysToDate(startDate,monthSix)); |
| | | list.add(DateUtil.addMonthToDate(startDate,monthSix)); |
| | | } |
| | | return list; |
| | | } |
| | |
| | | list.add(DateUtil.addMonthToDate(startDate,i*3)); |
| | | } |
| | | if(restMonth>0 || monthDays>0){ |
| | | list.add(DateUtil.addDaysToDate(startDate,monthThree)); |
| | | list.add(DateUtil.addMonthToDate(startDate,monthThree)); |
| | | } |
| | | return list; |
| | | } |
| | |
| | | private void dealCircleDateBillBiz( List<Date> dateList ,YwContract model, YwContractDetail d, Date freeStart, Date freeEnd, List<YwContractBill> list ) { |
| | | int temp = 0; |
| | | for(Date start : dateList){ |
| | | Date end = d.getEndDate(); |
| | | Date end = model.getEndDate(); |
| | | if(temp+1 < dateList.size()){ |
| | | end =DateUtil.addDaysToDate(dateList.get(temp+1),-1); |
| | | } |