...
|
...
|
@@ -327,7 +327,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
synthesize_no_3_6.setNo222(0.0D);
|
|
|
synthesize_no_3_6.setNo223(0.0D);
|
|
|
synthesize_no_3_6.setNo224(0.0D);
|
|
|
List<CalculateLoad> list1 = calculateLoadService.list(new LambdaQueryWrapper<CalculateLoad>().eq(CalculateLoad::getCid, id));// 年总需电量 年总需热量 年总需冷量
|
|
|
//List<CalculateLoad> list1 = calculateLoadService.list(new LambdaQueryWrapper<CalculateLoad>().eq(CalculateLoad::getCid, id));// 年总需电量 年总需热量 年总需冷量
|
|
|
synthesize_no_3_6.setId(id);
|
|
|
synthesize_no_3_6.setNo1("0");
|
|
|
synthesize_no_3_6.setNo2(0.0D);
|
...
|
...
|
@@ -556,9 +556,15 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
* 10 * 365 * architectureArea * electricity * 0.8 / 1000
|
|
|
*/
|
|
|
double electricityAll = 0.0;
|
|
|
for (CalculateLoad calculateLoad : list1) {
|
|
|
electricityAll += calculateLoad.getNo11();
|
|
|
for (Synthesize_no_2_1 synthesize_no_2_1 : synthesize_no_2_1s) {
|
|
|
CalculateLoad calculateLoad = calculateLoadService.getById(synthesize_no_2_1.getId());
|
|
|
if (Objects.nonNull(calculateLoad.getNo11())) {
|
|
|
electricityAll += calculateLoad.getNo11();
|
|
|
}
|
|
|
}
|
|
|
/* for (CalculateLoad calculateLoad : list1) {
|
|
|
electricityAll += calculateLoad.getNo11();
|
|
|
}*/
|
|
|
// electricityAll = storeItemListTotal;
|
|
|
// synthesize_no_3_6.setNo1(String.valueOf(Double.valueOf(df.format(electricityAll * synthesize_no_2_5.getElectricitySellingPrice()))));
|
|
|
/**
|
...
|
...
|
@@ -828,7 +834,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
double level = synthesizeNo26ServiceById.getNo126();
|
|
|
double end = synthesizeNo26ServiceById.getNo127();
|
|
|
for (int i = 0; i < names.size(); i++) {
|
|
|
String zd_name = "no_" + names.get(i).getId();
|
|
|
//String zd_name = "no_" + names.get(i).getId();
|
|
|
CalculateLoad calculateLoad = calculateLoadService.getById(synthesize_no_2_1s.get(i).getId());
|
|
|
Synthesize_no_2_1 synthesize_no_2_1 = synthesize_no_2_1Service.getById(synthesize_no_2_1s.get(i).getId());
|
|
|
if (!StringUtils.isEmpty(calculateLoad)) {
|
...
|
...
|
@@ -876,9 +882,15 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
java.text.NumberFormat nf = java.text.NumberFormat.getInstance();
|
|
|
nf.setGroupingUsed(false);
|
|
|
double annualTotalHeatRequirement = 0.0;
|
|
|
for (CalculateLoad calculateLoad : list1) {
|
|
|
annualTotalHeatRequirement += calculateLoad.getNo22();
|
|
|
for (Synthesize_no_2_1 synthesize_no_2_1 : synthesize_no_2_1s) {
|
|
|
CalculateLoad calculateLoad = calculateLoadService.getById(synthesize_no_2_1.getId());
|
|
|
if (Objects.nonNull(calculateLoad.getNo22())) {
|
|
|
annualTotalHeatRequirement += calculateLoad.getNo22();
|
|
|
}
|
|
|
}
|
|
|
/* for (CalculateLoad calculateLoad : list1) {
|
|
|
annualTotalHeatRequirement += calculateLoad.getNo22();
|
|
|
}*/
|
|
|
String format2 = nf.format(annualTotalHeatRequirement);
|
|
|
/**
|
|
|
* 电锅炉年供热量
|
...
|
...
|
@@ -1242,16 +1254,26 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
* 8 * 150 * coldArea * coldLoadAll * 0.75 / 1000
|
|
|
*/
|
|
|
double annualTotalHeatRequirement = 0.0;
|
|
|
for (CalculateLoad calculateLoad : list1) {
|
|
|
annualTotalHeatRequirement += calculateLoad.getNo33();
|
|
|
double AnnualTotalHeatRequirement = 0.0;
|
|
|
for (Synthesize_no_2_1 synthesize_no_2_1 : synthesize_no_2_1s) {
|
|
|
CalculateLoad calculateLoad = calculateLoadService.getById(synthesize_no_2_1.getId());
|
|
|
if (Objects.nonNull(calculateLoad.getNo33())) {
|
|
|
annualTotalHeatRequirement += calculateLoad.getNo33();
|
|
|
}
|
|
|
if (Objects.nonNull(calculateLoad.getNo22())) {
|
|
|
AnnualTotalHeatRequirement += calculateLoad.getNo22();
|
|
|
}
|
|
|
}
|
|
|
/* for (CalculateLoad calculateLoad : list1) {
|
|
|
annualTotalHeatRequirement += calculateLoad.getNo33();
|
|
|
}*/
|
|
|
java.text.NumberFormat nf = java.text.NumberFormat.getInstance();
|
|
|
nf.setGroupingUsed(false);
|
|
|
double AnnualTotalHeatRequirement = 0.0;
|
|
|
for (CalculateLoad calculateLoad : list1) {
|
|
|
|
|
|
/* for (CalculateLoad calculateLoad : list1) {
|
|
|
AnnualTotalHeatRequirement += calculateLoad.getNo22();
|
|
|
}
|
|
|
String format1 = nf.format(AnnualTotalHeatRequirement);
|
|
|
}*/
|
|
|
//String format1 = nf.format(AnnualTotalHeatRequirement);
|
|
|
synthesize_no_3_6.setNo234(coldStorageCapacity);
|
|
|
/**
|
|
|
* 供冷收入
|
...
|
...
|
@@ -1459,9 +1481,15 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
*/
|
|
|
double totalAnnualHotWaterDemand = hotWaterQuota * waterPersonNum * hotWaterDays / 1000;
|
|
|
double totalAnnualTotalHotWaterRequirement = 0.0;
|
|
|
for (CalculateLoad calculateLoad : list1) {
|
|
|
totalAnnualTotalHotWaterRequirement += calculateLoad.getNo44();
|
|
|
for (Synthesize_no_2_1 synthesize_no_2_1 : synthesize_no_2_1s) {
|
|
|
CalculateLoad calculateLoad = calculateLoadService.getById(synthesize_no_2_1.getId());
|
|
|
if (Objects.nonNull(calculateLoad.getNo44())){
|
|
|
totalAnnualTotalHotWaterRequirement += calculateLoad.getNo44();
|
|
|
}
|
|
|
}
|
|
|
/* for (CalculateLoad calculateLoad : list1) {
|
|
|
|
|
|
}*/
|
|
|
synthesize_no_3_6.setNo20(Double.valueOf(df.format(totalAnnualTotalHotWaterRequirement)));
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -1956,10 +1984,10 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
case 4:
|
|
|
case 5:
|
|
|
case 6:
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue)*0.12) * 0.25 / 2);
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue) * 0.12) * 0.25 / 2);
|
|
|
break;
|
|
|
default:
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue)*0.12) * 0.25);
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue) * 0.12) * 0.25);
|
|
|
break;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -1968,7 +1996,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
* 高新技术企业
|
|
|
*/
|
|
|
for (Integer i = 0; i < npvData.getYear(); i++) {
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue)*0.12) * 0.15);
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue) * 0.12) * 0.15);
|
|
|
}
|
|
|
list.set(0, -synthesize_no_3_6.getNo300() - otherIncome);
|
|
|
} else if ("1,2".equals(synthesize_no_2_5.getSale())) {
|
...
|
...
|
@@ -1988,10 +2016,10 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
case 4:
|
|
|
case 5:
|
|
|
case 6:
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue)*0.12) * 0.15 / 2);
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue) * 0.12) * 0.15 / 2);
|
|
|
break;
|
|
|
default:
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue)*0.12) * 0.15);
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue) * 0.12) * 0.15);
|
|
|
break;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -2001,7 +2029,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
*/
|
|
|
|
|
|
for (int i = 0; i <= yearLength; i++) {
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue)*0.12) * 0.25);
|
|
|
list.add(profit - (originalValue - synthesize_no_3_6.getNo300() / yearLength - annualTotalTransportationCost - (annualIncome - originalValue) * 0.12) * 0.25);
|
|
|
}
|
|
|
list.set(0, -synthesize_no_3_6.getNo300());
|
|
|
}
|
...
|
...
|
@@ -2043,7 +2071,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
double spp = year + Math.abs(sum1) / sum2 ;
|
|
|
double spp = year + Math.abs(sum1) / sum2;
|
|
|
map.put("num3", df.format(spp));
|
|
|
/**
|
|
|
* 动态投资回收期(DPP)
|
...
|
...
|
@@ -2062,7 +2090,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
double dpp = year3 + Math.abs(sum3) / sum4 ;
|
|
|
double dpp = year3 + Math.abs(sum3) / sum4;
|
|
|
map.put("num4", df.format(dpp));
|
|
|
return map;
|
|
|
}
|
...
|
...
|
|