|
|
@@ -583,7 +583,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
int[] priceArr = new int[arraySize]; |
|
|
int[] priceArr = new int[arraySize]; |
|
|
for (int i = 0; i < arraySize; i++) { |
|
|
for (int i = 0; i < arraySize; i++) { |
|
|
JSONObject rentInfoObject = rentInfoArray.getJSONObject(i); |
|
|
JSONObject rentInfoObject = rentInfoArray.getJSONObject(i); |
|
|
priceArr[i] = new BigDecimal(rentInfoObject.getIntValue("price")).multiply(new BigDecimal(100)).intValue(); |
|
|
|
|
|
|
|
|
priceArr[i] = new BigDecimal(rentInfoObject.getString("price")).multiply(new BigDecimal(100)).intValue(); |
|
|
} |
|
|
} |
|
|
priceList.add(priceArr); |
|
|
priceList.add(priceArr); |
|
|
//大于一年 |
|
|
//大于一年 |
|
|
@@ -596,7 +596,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
for (int j = 0; j < arraySize; j++) { |
|
|
for (int j = 0; j < arraySize; j++) { |
|
|
rentInfoObject = rentInfoArray.getJSONObject(j); |
|
|
rentInfoObject = rentInfoArray.getJSONObject(j); |
|
|
adjustRatio = rentInfoObject.getJSONArray("adjustRatio"); |
|
|
adjustRatio = rentInfoObject.getJSONArray("adjustRatio"); |
|
|
BigDecimal multiply = new BigDecimal(priceList.get(i)[j]).multiply(new BigDecimal(adjustRatio.getIntValue(i)).divide(new BigDecimal(100))); |
|
|
|
|
|
|
|
|
BigDecimal multiply = new BigDecimal(priceList.get(i)[j]).multiply(new BigDecimal(adjustRatio.getString(i)).divide(new BigDecimal(100))); |
|
|
BigDecimal price = new BigDecimal(priceList.get(i)[j]).add(multiply); |
|
|
BigDecimal price = new BigDecimal(priceList.get(i)[j]).add(multiply); |
|
|
priceArrs[j] = price.setScale(0, RoundingMode.HALF_EVEN).intValue(); |
|
|
priceArrs[j] = price.setScale(0, RoundingMode.HALF_EVEN).intValue(); |
|
|
} |
|
|
} |
|
|
|