|
|
|
@@ -1747,7 +1747,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
public static double getNeedPay(long monthPrice,long dayPrice,Date start,Date end){ |
|
|
|
SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
SimpleDateFormat sdM = new SimpleDateFormat("MM"); |
|
|
|
Double total = new Double(0); |
|
|
|
Double total; |
|
|
|
int[] diff; |
|
|
|
|
|
|
|
int dayCount = DateUtils.getMonthDayCount(start); |
|
|
|
@@ -1763,7 +1763,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
System.out.println(sd.format(start)); |
|
|
|
System.out.println(sd.format(currEnd)); |
|
|
|
|
|
|
|
if(sdM.format(start).equals(sdM.format(end))){ |
|
|
|
if(sd.format(start).equals(sd.format(end))){ |
|
|
|
total = 1 * price; //算1天 |
|
|
|
return total; |
|
|
|
}else{ |
|
|
|
|