Просмотр исходного кода

fix jinmaorentcontract

release_toaliyun_real
zhengfangyuan 3 лет назад
Родитель
Сommit
0559b2b6ab
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java Просмотреть файл

@@ -1223,7 +1223,7 @@ public class WxRentContractServiceImpl implements WxRentContractService {
JSONObject jsonObject = array.getJSONObject(i); JSONObject jsonObject = array.getJSONObject(i);
String perMonthMoney = jsonObject.getString("perMonthMoney"); String perMonthMoney = jsonObject.getString("perMonthMoney");
if(StringUtils.isNotBlank(perMonthMoney) && !"0".equals(perMonthMoney)){ if(StringUtils.isNotBlank(perMonthMoney) && !"0".equals(perMonthMoney)){
BigDecimal priceD = new BigDecimal(perMonthMoney).divide(new BigDecimal(100));
BigDecimal priceD = new BigDecimal(perMonthMoney);
priceArrs[i] = priceD.setScale(0, RoundingMode.HALF_EVEN).longValue(); priceArrs[i] = priceD.setScale(0, RoundingMode.HALF_EVEN).longValue();
}else{ }else{
priceArrs[i] = 0; priceArrs[i] = 0;
@@ -1299,7 +1299,7 @@ public class WxRentContractServiceImpl implements WxRentContractService {
long rentPrice = 0l, siteMoney = 0l, facilityMoney = 0l, administratorMoney = 0l; long rentPrice = 0l, siteMoney = 0l, facilityMoney = 0l, administratorMoney = 0l;
if(!wxRentContract.getType().equals(EnumRentContractType.RENT_BY_JOINT.getCode()) && if(!wxRentContract.getType().equals(EnumRentContractType.RENT_BY_JOINT.getCode()) &&
!wxRentContract.getType().equals(EnumRentContractType.RENT_BY_COUNT.getCode()) !wxRentContract.getType().equals(EnumRentContractType.RENT_BY_COUNT.getCode())
&& !wxRentContract.getType().equals(EnumRentContractType.RENT_BY_CUSTOMIZE.getCode())){
&& !wxRentContract.getType().equals(EnumRentContractType.RENT_BY_COUNT.getCode())){
if(wxRentContract.getRentInputWay().equals(EnumRentContractRentInputWay.PART.getCode())){ if(wxRentContract.getRentInputWay().equals(EnumRentContractRentInputWay.PART.getCode())){
String rentInfo = wxRentContract.getRentInfo(); String rentInfo = wxRentContract.getRentInfo();
JSONArray rentInfoArray = JSONArray.parseArray(rentInfo); JSONArray rentInfoArray = JSONArray.parseArray(rentInfo);


Загрузка…
Отмена
Сохранить