|
|
|
@@ -1802,6 +1802,12 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
Double total = new Double(0); |
|
|
|
int[] diff; |
|
|
|
|
|
|
|
//同一天 |
|
|
|
if(sd.format(start).equals(sd.format(end))){ |
|
|
|
int dayCount = DateUtils.getMonthDayCount(start); |
|
|
|
return 1 * (price/dayCount); |
|
|
|
} |
|
|
|
|
|
|
|
//同月 |
|
|
|
if(sdM.format(start).equals(sdM.format(end))){ |
|
|
|
diff = DateUtils.getDiff(start,end); |
|
|
|
|