...
|
...
|
@@ -628,7 +628,8 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
Double num1 = Double.valueOf(df.format(photovoltaicInstall * synthesizeNo26ServiceById.getNo18() / 10));
|
|
|
no_3_1_1_1Dto.setInvestmentEstimation(format.apply(new BigDecimal(num1)));
|
|
|
synthesize_no_3_6.setNo36(num1);
|
|
|
Double num2 = Double.valueOf(df.format(electricityAll * synthesize_no_2_5.getElectricitySellingPrice() / 10000));
|
|
|
// Double num2 = Double.valueOf(df.format(electricityAll * synthesize_no_2_5.getElectricitySellingPrice() / 10000));
|
|
|
Double num2 = Double.valueOf(df.format(synthesize_no_3_6.getNo51() * synthesize_no_2_5.getElectricitySellingPrice() / 10000));
|
|
|
no_3_1_1_1Dto.setProjectEarnings(format.apply(new BigDecimal(num2)));
|
|
|
synthesize_no_3_6.setNo24(num2);
|
|
|
Double num3 = Double.valueOf(df.format(photovoltaicInstall * synthesizeNo26ServiceById.getNo17() * 1000 / 10000));
|
...
|
...
|
@@ -848,7 +849,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
}
|
|
|
if (calculateLoad.getNo3().equals(calculateLoad.getNo33())) {
|
|
|
for (Synthesize_no_2_1 synthesizeNo21 : synthesize_no_2_1s) {
|
|
|
hotLoadAll += synthesizeNo21.getDesignCoolingLoadIndex();
|
|
|
coldLoadAll += synthesizeNo21.getDesignCoolingLoadIndex();
|
|
|
}
|
|
|
//coldLoadAll += coldLoadDataMapper.queryName(zd_name, dict.getId());
|
|
|
} else {
|
...
|
...
|
@@ -1241,12 +1242,13 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
* =10*150*供冷面积*设计冷负荷*0.75/1000
|
|
|
* 8 * 150 * coldArea * coldLoadAll * 0.75 / 1000
|
|
|
*/
|
|
|
double annualTotalHeatRequirement = 0.0;
|
|
|
double annualTotalColdRequirement = 0.0;
|
|
|
for (CalculateLoad calculateLoad : list1) {
|
|
|
annualTotalHeatRequirement += calculateLoad.getNo33();
|
|
|
annualTotalColdRequirement += calculateLoad.getNo33();
|
|
|
}
|
|
|
java.text.NumberFormat nf = java.text.NumberFormat.getInstance();
|
|
|
nf.setGroupingUsed(false);
|
|
|
/**年总需热量*/
|
|
|
double AnnualTotalHeatRequirement = 0.0;
|
|
|
for (CalculateLoad calculateLoad : list1) {
|
|
|
AnnualTotalHeatRequirement += calculateLoad.getNo22();
|
...
|
...
|
@@ -1269,7 +1271,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
* 选择单位 元/GJ
|
|
|
* 供冷收入=供总需冷量*售冷价格
|
|
|
*/
|
|
|
coolingIncome = annualTotalHeatRequirement * synthesize_no_2_5.getColdSellingPrice();
|
|
|
coolingIncome = annualTotalColdRequirement * synthesize_no_2_5.getColdSellingPrice();
|
|
|
}
|
|
|
synthesize_no_3_6.setNo3(Double.valueOf(df.format(coolingIncome)));
|
|
|
|
...
|
...
|
@@ -1294,7 +1296,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
/**
|
|
|
* 空气源热泵(制冷)年供冷量=年总需热量/0.9
|
|
|
*/
|
|
|
synthesize_no_3_6.setNo58(Double.valueOf(df.format(annualTotalHeatRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100)));
|
|
|
synthesize_no_3_6.setNo58(Double.valueOf(df.format(annualTotalColdRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100)));
|
|
|
synthesize_no_3_6.setNo18(Double.valueOf(df.format(airSourceHeatPump)));
|
|
|
No_3_1_1_1Dto no_3_1_1_1Dto = new No_3_1_1_1Dto();
|
|
|
no_3_1_1_1Dto.setName(array2[8]);
|
...
|
...
|
@@ -1302,14 +1304,14 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
Double num1 = Double.valueOf(df.format(airSourceHeatPump * synthesizeNo26ServiceById.getNo39() / 10000));
|
|
|
synthesize_no_3_6.setNo43(num1);
|
|
|
no_3_1_1_1Dto.setInvestmentEstimation(format.apply(new BigDecimal(num1)));
|
|
|
Double num2 = Double.valueOf(df.format((coolingIncome - annualTotalHeatRequirement / synthesizeNo26ServiceById.getNo38() * averageElectricityPrice) / 10000));
|
|
|
Double num2 = Double.valueOf(df.format((coolingIncome - annualTotalColdRequirement / synthesizeNo26ServiceById.getNo38() * averageElectricityPrice) / 10000));
|
|
|
synthesize_no_3_6.setNo31(num2);
|
|
|
no_3_1_1_1Dto.setProjectEarnings(format.apply(new BigDecimal(coolingIncome * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100 / 10000)));
|
|
|
Double num3 = 0.0;
|
|
|
if (Arrays.asList(powerCold).contains("6")) {
|
|
|
num3 = Double.valueOf(df.format(((annualTotalHeatRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100 - coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100) / synthesizeNo26ServiceById.getNo38() * averageElectricityPrice + coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100 / 0.9 / synthesizeNo26ServiceById.getNo38() * end + airSourceHeatPump * synthesizeNo26ServiceById.getNo40() + coolStorageInstalledCapacity * synthesizeNo26ServiceById.getNo113()) / 10000));
|
|
|
num3 = Double.valueOf(df.format(((annualTotalColdRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100 - coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100) / synthesizeNo26ServiceById.getNo38() * averageElectricityPrice + coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100 / 0.9 / synthesizeNo26ServiceById.getNo38() * end + airSourceHeatPump * synthesizeNo26ServiceById.getNo40() + coolStorageInstalledCapacity * synthesizeNo26ServiceById.getNo113()) / 10000));
|
|
|
} else {
|
|
|
num3 = Double.valueOf(df.format(((annualTotalHeatRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100) / synthesizeNo26ServiceById.getNo38() * averageElectricityPrice + airSourceHeatPump * synthesizeNo26ServiceById.getNo40()) / 10000));
|
|
|
num3 = Double.valueOf(df.format(((annualTotalColdRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100) / synthesizeNo26ServiceById.getNo38() * averageElectricityPrice + airSourceHeatPump * synthesizeNo26ServiceById.getNo40()) / 10000));
|
|
|
}
|
|
|
no_3_1_1_1Dto.setRemark(format.apply(new BigDecimal(num3)));
|
|
|
synthesize_no_3_6.setNo73(num3);
|
...
|
...
|
@@ -1322,14 +1324,14 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
no_3_1_1_1Dto.setName(array2[9]);
|
|
|
no_3_1_1_1Dto.setInstallCapacity("0.00");
|
|
|
no_3_1_1_1Dto.setInvestmentEstimation("0.00");
|
|
|
Double num2 = Double.valueOf(df.format((coolingIncome - annualTotalHeatRequirement / synthesizeNo26ServiceById.getNo31() * averageElectricityPrice) / 10000));
|
|
|
Double num2 = Double.valueOf(df.format((coolingIncome - annualTotalColdRequirement / synthesizeNo26ServiceById.getNo31() * averageElectricityPrice) / 10000));
|
|
|
synthesize_no_3_6.setNo32(num2);
|
|
|
no_3_1_1_1Dto.setProjectEarnings(format.apply(new BigDecimal(coolingIncome * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100 / 10000)));
|
|
|
Double num3 = 0.0;
|
|
|
if (Arrays.asList(powerCold).contains("6")) {
|
|
|
num3 = Double.valueOf(df.format(((annualTotalHeatRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100 - coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100) / synthesizeNo26ServiceById.getNo31() * averageElectricityPrice + coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100 / 0.9 / synthesizeNo26ServiceById.getNo31() * end + synthesize_no_3_6.getNo16() * synthesizeNo26ServiceById.getNo33() + coolStorageInstalledCapacity * synthesizeNo26ServiceById.getNo113()) / 10000));
|
|
|
num3 = Double.valueOf(df.format(((annualTotalColdRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100 - coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100) / synthesizeNo26ServiceById.getNo31() * averageElectricityPrice + coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100 / 0.9 / synthesizeNo26ServiceById.getNo31() * end + synthesize_no_3_6.getNo16() * synthesizeNo26ServiceById.getNo33() + coolStorageInstalledCapacity * synthesizeNo26ServiceById.getNo113()) / 10000));
|
|
|
} else {
|
|
|
num3 = Double.valueOf(df.format(((annualTotalHeatRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100) / synthesizeNo26ServiceById.getNo31() * averageElectricityPrice + synthesize_no_3_6.getNo16() * synthesizeNo26ServiceById.getNo33()) / 10000));
|
|
|
num3 = Double.valueOf(df.format(((annualTotalColdRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldB"))) / 100) / synthesizeNo26ServiceById.getNo31() * averageElectricityPrice + synthesize_no_3_6.getNo16() * synthesizeNo26ServiceById.getNo33()) / 10000));
|
|
|
}
|
|
|
no_3_1_1_1Dto.setRemark(format.apply(new BigDecimal(num3)));
|
|
|
synthesize_no_3_6.setNo74(num3);
|
...
|
...
|
@@ -1338,7 +1340,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
/**
|
|
|
* 冷水机组
|
|
|
*/
|
|
|
synthesize_no_3_6.setNo59(Double.valueOf(df.format(annualTotalHeatRequirement / 0.85 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100)));
|
|
|
synthesize_no_3_6.setNo59(Double.valueOf(df.format(annualTotalColdRequirement / 0.85 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100)));
|
|
|
synthesize_no_3_6.setNo19(Double.valueOf(df.format(assemblyCapacityOfChiller)));
|
|
|
No_3_1_1_1Dto no_3_1_1_1Dto = new No_3_1_1_1Dto();
|
|
|
no_3_1_1_1Dto.setName(array2[10]);
|
...
|
...
|
@@ -1346,14 +1348,14 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
Double num1 = Double.valueOf(df.format(assemblyCapacityOfChiller * synthesizeNo26ServiceById.getNo49() / 10000));
|
|
|
no_3_1_1_1Dto.setInvestmentEstimation(format.apply(new BigDecimal(num1)));
|
|
|
synthesize_no_3_6.setNo45(num1);
|
|
|
Double num2 = Double.valueOf(df.format((coolingIncome - annualTotalHeatRequirement / synthesizeNo26ServiceById.getNo47() * averageElectricityPrice) / 10000));
|
|
|
Double num2 = Double.valueOf(df.format((coolingIncome - annualTotalColdRequirement / synthesizeNo26ServiceById.getNo47() * averageElectricityPrice) / 10000));
|
|
|
synthesize_no_3_6.setNo33(num2);
|
|
|
no_3_1_1_1Dto.setProjectEarnings(format.apply(new BigDecimal(coolingIncome * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100 / 10000)));
|
|
|
Double num3 = 0.0;
|
|
|
if (Arrays.asList(powerCold).contains("6")) {
|
|
|
num3 = Double.valueOf(df.format(((annualTotalHeatRequirement / 0.85 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100 - coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100) / synthesizeNo26ServiceById.getNo47() * averageElectricityPrice + coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100 / 0.9 / synthesizeNo26ServiceById.getNo47() * end + assemblyCapacityOfChiller * synthesizeNo26ServiceById.getNo48() + coolStorageInstalledCapacity * synthesizeNo26ServiceById.getNo113()) / 10000));
|
|
|
num3 = Double.valueOf(df.format(((annualTotalColdRequirement * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100 - coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100) / synthesizeNo26ServiceById.getNo47() * averageElectricityPrice + coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100 / 0.9 / synthesizeNo26ServiceById.getNo47() * end + assemblyCapacityOfChiller * synthesizeNo26ServiceById.getNo48() + coolStorageInstalledCapacity * synthesizeNo26ServiceById.getNo113()) / 10000));
|
|
|
} else {
|
|
|
num3 = Double.valueOf(df.format(((annualTotalHeatRequirement / 0.85 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100) / synthesizeNo26ServiceById.getNo47() * averageElectricityPrice + assemblyCapacityOfChiller * synthesizeNo26ServiceById.getNo48()) / 10000));
|
|
|
num3 = Double.valueOf(df.format(((annualTotalColdRequirement * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldC"))) / 100) / synthesizeNo26ServiceById.getNo47() * averageElectricityPrice + assemblyCapacityOfChiller * synthesizeNo26ServiceById.getNo48()) / 10000));
|
|
|
}
|
|
|
no_3_1_1_1Dto.setRemark(format.apply(new BigDecimal(num3)));
|
|
|
synthesize_no_3_6.setNo75(num3);
|
...
|
...
|
@@ -1372,12 +1374,12 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
/**
|
|
|
* 多联机中央空调成本=(多联机中央空调年供冷量/多联机中央空调制冷能效比*平均电价+年蓄冷量/0.9*低谷电价+单位运维*容量+蓄热单位运维*容量)/10000
|
|
|
*/
|
|
|
synthesize_no_3_6.setNo226(Double.valueOf(df.format(annualTotalHeatRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100)));
|
|
|
synthesize_no_3_6.setNo226(Double.valueOf(df.format(annualTotalColdRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100)));
|
|
|
Double num2 = 0.0;
|
|
|
if (Arrays.asList(powerCold).contains("6")) {
|
|
|
num2 = Double.valueOf(df.format(((annualTotalHeatRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100 - coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100) / synthesizeNo26ServiceById.getNo101() * averageElectricityPrice + coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100 / 0.9 * end + synthesizeNo26ServiceById.getNo103() * synthesize_no_3_6.getNo201() + coolStorageInstalledCapacity * synthesizeNo26ServiceById.getNo113()) / 10000));
|
|
|
num2 = Double.valueOf(df.format(((annualTotalColdRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100 - coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100) / synthesizeNo26ServiceById.getNo101() * averageElectricityPrice + coldStorageCapacity * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100 / 0.9 * end + synthesizeNo26ServiceById.getNo103() * synthesize_no_3_6.getNo201() + coolStorageInstalledCapacity * synthesizeNo26ServiceById.getNo113()) / 10000));
|
|
|
} else {
|
|
|
num2 = Double.valueOf(df.format(((annualTotalHeatRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100) / synthesizeNo26ServiceById.getNo101() * averageElectricityPrice + synthesizeNo26ServiceById.getNo103() * synthesize_no_3_6.getNo201()) / 10000));
|
|
|
num2 = Double.valueOf(df.format(((annualTotalColdRequirement / 0.9 * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100) / synthesizeNo26ServiceById.getNo101() * averageElectricityPrice + synthesizeNo26ServiceById.getNo103() * synthesize_no_3_6.getNo201()) / 10000));
|
|
|
}
|
|
|
no_3_1_1_1Dto.setRemark(format.apply(new BigDecimal(num2)));
|
|
|
list2.add(no_3_1_1_1Dto);
|
...
|
...
|
|