winter 1 год назад
Родитель
Сommit
c1296f60c8
1 измененных файлов: 6 добавлений и 0 удалений
  1. +6
    -0
      mallinkService/src/main/java/com/iformall/service/helper/WxEnergyHelper.java

+ 6
- 0
mallinkService/src/main/java/com/iformall/service/helper/WxEnergyHelper.java Просмотреть файл

@@ -101,6 +101,8 @@ public class WxEnergyHelper {
BigDecimal buildingArea = buildingAreaMap.get(Long.parseLong(b1));
if (null != buildingArea) {
formula = formula.replaceAll("#buildingArea_"+Long.parseLong(b1)+"#", buildingArea.toPlainString());
}else {
formula = formula.replaceAll("#buildingArea_"+Long.parseLong(b1)+"#", "0");
}
}
}
@@ -115,6 +117,8 @@ public class WxEnergyHelper {
BigDecimal floorarea = floorAreaMap.get(Long.parseLong(b1));
if (null != floorarea) {
formula = formula.replaceAll("#floorArea_"+Long.parseLong(b1)+"#", floorarea.toPlainString());
}else {
formula = formula.replaceAll("#floorArea_"+Long.parseLong(b1)+"#", "0");
}
}
@@ -130,6 +134,8 @@ public class WxEnergyHelper {
BigDecimal mu = meterNumberMap.get(Long.parseLong(b1));
if (null != mu ) {
formula = formula.replaceAll("#meter_"+Long.parseLong(b1)+"#", mu.toPlainString());
}else {
formula = formula.replaceAll("#meter_"+Long.parseLong(b1)+"#", "0");
}
}
}


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