|
|
@@ -759,7 +759,13 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
long[] priceArr = new long[arraySize]; |
|
|
long[] priceArr = new long[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.getString("price")).multiply(new BigDecimal(100)).longValue(); |
|
|
|
|
|
|
|
|
//年 需要除12 |
|
|
|
|
|
if(EnumPriceUnit.Y.getCode().equals(priceUnit)){ |
|
|
|
|
|
BigDecimal yprice = new BigDecimal(rentInfoObject.getString("price")).divide(new BigDecimal(12),2, BigDecimal.ROUND_HALF_DOWN); |
|
|
|
|
|
priceArr[i] = yprice.multiply(new BigDecimal(100)).longValue(); |
|
|
|
|
|
}else{ |
|
|
|
|
|
priceArr[i] = new BigDecimal(rentInfoObject.getString("price")).multiply(new BigDecimal(100)).longValue(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
priceList.add(priceArr); |
|
|
priceList.add(priceArr); |
|
|
//大于一年 |
|
|
//大于一年 |
|
|
|