...
|
...
|
@@ -13,6 +13,7 @@ import com.synthesize_energy.item.algorithm.NpvData; |
|
|
import com.synthesize_energy.item.dto.*;
|
|
|
import com.synthesize_energy.item.entity.*;
|
|
|
import com.synthesize_energy.item.event.No2_1SaveEvent;
|
|
|
import com.synthesize_energy.item.event.No3_1_1GetTypeEvent;
|
|
|
import com.synthesize_energy.item.mapper.*;
|
|
|
import com.synthesize_energy.item.utils.JwtUtil;
|
|
|
import com.synthesize_energy.item.utils.UserContext;
|
...
|
...
|
@@ -164,11 +165,11 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
/**
|
|
|
* 光伏
|
|
|
*/
|
|
|
no_3_1Dto.setPhotovoltaicResources(map.get("sting1").toString());
|
|
|
no_3_1Dto.setPhotovoltaicResources(map.get("sting2").toString());
|
|
|
/**
|
|
|
* 风
|
|
|
*/
|
|
|
no_3_1Dto.setWindResource(map.get("string3").toString());
|
|
|
no_3_1Dto.setWindResource(map.get("sting4").toString());
|
|
|
CityDict dict = cityDictService.getOne(new QueryWrapper<CityDict>().lambda().eq(CityDict::getName, byId.getProjectSite()));
|
|
|
//CpvAndCfmData cfmData = cpvAndCfmDataService.getById(dict.getId());
|
|
|
Synthesize_no_2_6 synthesize_no_2_6 = synthesize_no_2_6Service.getById(id);
|
...
|
...
|
@@ -1741,19 +1742,27 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
if (savingStandardCoal == 0) {
|
|
|
map.put("num1", 0 + "吨");
|
|
|
} else {
|
|
|
|
|
|
map.put("num1", df.format(savingStandardCoal) + "吨");
|
|
|
if (savingStandardCoal >= 10000){
|
|
|
savingStandardCoal = savingStandardCoal / 10000;
|
|
|
map.put("num1", df.format(savingStandardCoal) + "万吨");
|
|
|
}else {
|
|
|
map.put("num1", df.format(savingStandardCoal) + "吨");
|
|
|
}
|
|
|
}
|
|
|
if (co2Reduction == 0) {
|
|
|
|
|
|
map.put("num2", 0 + "吨");
|
|
|
} else {
|
|
|
|
|
|
map.put("num2", df.format(Math.round(co2Reduction)) + "吨");
|
|
|
if (co2Reduction >= 10000){
|
|
|
co2Reduction = co2Reduction / 10000;
|
|
|
map.put("num2", df.format(co2Reduction) + "万吨");
|
|
|
}else {
|
|
|
map.put("num2", df.format(co2Reduction) + "吨");
|
|
|
}
|
|
|
}
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 经济指标 净现值(NPV) 内部收益率(IRR) 静态投资回收期(SPP) 动态投资回收期(DPP)
|
|
|
*
|
...
|
...
|
@@ -2299,6 +2308,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
Synthesize_no_1Img synthesize_no_1Img = synthesize_no_1ImgService.getById(id);
|
|
|
List<Synthesize_no_2_1> synthesize_no_2_1s = synthesize_no_2_1Service.list(new QueryWrapper<Synthesize_no_2_1>().lambda().eq(Synthesize_no_2_1::getPid, id));
|
|
|
if (!synthesize_no_2_1s.isEmpty()) {
|
|
|
applicationContext.publishEvent(new No3_1_1GetTypeEvent(synthesize_no_2_1s));
|
|
|
for (Synthesize_no_2_1 synthesize_no_2_1 : synthesize_no_2_1s) {
|
|
|
CalculateLoad calculateLoad = calculateLoadService.getOne(new LambdaQueryWrapper<CalculateLoad>().eq(CalculateLoad::getId, synthesize_no_2_1.getId()));
|
|
|
if (!StringUtils.isEmpty(calculateLoad)) {
|
...
|
...
|
|