|
|
|
@@ -94,8 +94,8 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
instance.setTime(wxPropertyContract.getRentalEndDate()); |
|
|
|
instance.add(Calendar.DATE, 1); |
|
|
|
int[] array = DateUtils.getDiff(wxPropertyContract.getRentalStartDate(),instance.getTime()); |
|
|
|
result.put("rentDiffMonth",array[0]); |
|
|
|
result.put("rentDiffDay",array[1]); |
|
|
|
result.put("totalPeriodMonth",array[0]); |
|
|
|
result.put("totalPeriodMonth",array[1]); |
|
|
|
} |
|
|
|
|
|
|
|
wxPropertyContract.setPrice(wxPropertyContract.getPrice() != null ? wxPropertyContract.getPrice() : 0); |
|
|
|
|