|
|
|
@@ -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"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|