...
|
...
|
@@ -220,7 +220,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
Synthesize_no_2_3 synthesize_no_2_3 = synthesize_no_2_3Service.getById(id);//能源设备 供电 供热 供冷 热水
|
|
|
List<No_3_1_1Dto> list = new ArrayList<>();
|
|
|
String[] array = new String[]{"供电系统", "供热系统", "供冷系统", "热水系统"};
|
|
|
String[] array2 = new String[]{"电网", "光伏发电", "风电", "储能", "电锅炉", "空气源热泵(制热型)", "空气源热泵(双工况)", "燃气锅炉", "空气源热泵(制冷型)", "空气源热泵(双工况)", "冷水机组", "太阳能集热器", "空气源热泵(热水型)", "多联机中央空调", "蓄热", "双蓄", "蓄冷", "地源热泵", "污水源热泵"};
|
|
|
String[] array2 = new String[]{"电网", "光伏发电", "风电", "储能", "电锅炉", "空气源热泵(制热型)", "空气源热泵(双工况)", "燃气锅炉", "空气源热泵(制冷型)", "空气源热泵(双工况)", "冷水机组", "太阳能集热器", "空气源热泵(热水型)", "多联机中央空调", "蓄热", "双蓄", "蓄冷", "地源热泵", "水源热泵"};
|
|
|
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));//建筑
|
|
|
|
|
|
//Electrovalence electrovalence = electrovalenceMapper.selectById(dict.getId());//电价
|
...
|
...
|
@@ -1441,7 +1441,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
synthesize_no_3_6.setNo232(num3);
|
|
|
list2.add(no_3_1_1_1Dto);*/
|
|
|
/**
|
|
|
* 污水源热泵
|
|
|
* 水源热泵
|
|
|
*/
|
|
|
double electricBoilerCapacity = synthesizeNo26ServiceById.getNo50() * waterPersonNum * 4.2 * (synthesizeNo26ServiceById.getNo52() - synthesizeNo26ServiceById.getNo51()) / 3600 / synthesizeNo26ServiceById.getNo57() / 0.9 / synthesizeNo26ServiceById.getNo119() * Double.parseDouble(String.valueOf(jsonObject.get("hotWaterC"))) / 100;
|
|
|
No_3_1_1_1Dto no_3_1_1_1Dto = new No_3_1_1_1Dto();
|
...
|
...
|
@@ -1499,6 +1499,13 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
*/
|
|
|
no_3_1Tall_dto.setTotalAll(format.apply(new BigDecimal(totalAll)) + "万元");
|
|
|
no_3_1Tall_dto.setList(list);
|
|
|
|
|
|
/**
|
|
|
* 新增是否计算过
|
|
|
*/
|
|
|
Synthesize_no_1 synthesize_no_1 = no_1Service.getById(id);
|
|
|
synthesize_no_1.setFlagCalculate("2");
|
|
|
no_1Service.updateById(synthesize_no_1);
|
|
|
return no_3_1Tall_dto;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1876,8 +1883,10 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
String id = "";
|
|
|
List<Synthesize_no_2_1> synthesize_no_2_1s = JSON.parseArray(synthesize_no_2_1_new, Synthesize_no_2_1.class);
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotEmpty(synthesize_no_2_1s.get(0).getPid()) && !synthesize_no_2_1s.isEmpty()) {
|
|
|
|
|
|
synthesize_no_2_1Service.remove(new QueryWrapper<Synthesize_no_2_1>().lambda().eq(Synthesize_no_2_1::getPid, synthesize_no_2_1s.get(0).getPid()));
|
|
|
calculateLoadService.remove(new QueryWrapper<CalculateLoad>().lambda().eq(CalculateLoad::getCid, synthesize_no_2_1s.get(0).getPid()));
|
|
|
CalculateLoad serviceOne = calculateLoadService.getOne(new LambdaQueryWrapper<CalculateLoad>().eq(CalculateLoad::getCid, synthesize_no_2_1s.get(0).getPid()));
|
|
|
//calculateLoadService.remove(new QueryWrapper<CalculateLoad>().lambda().eq(CalculateLoad::getCid, synthesize_no_2_1s.get(0).getPid()));
|
|
|
for (Synthesize_no_2_1 synthesizeNo21 : synthesize_no_2_1s) {
|
|
|
id = synthesizeNo21.getPid();
|
|
|
synthesize_no_2_1Service.saveOrUpdate(synthesizeNo21);
|
...
|
...
|
@@ -1962,7 +1971,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
}
|
|
|
|
|
|
}
|
|
|
CalculateLoad serviceOne = calculateLoadService.getById(synthesizeNo21.getId());
|
|
|
//CalculateLoad serviceOne = calculateLoadService.getById(synthesizeNo21.getId());
|
|
|
if (!StringUtils.isEmpty(serviceOne)) {
|
|
|
calculateLoad.setId(serviceOne.getId());
|
|
|
calculateLoad.setNo1(Double.valueOf(df.format(annualTotalElectricityDemand)));
|
...
|
...
|
@@ -2127,7 +2136,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
CalculateLoad calculateLoad = calculateLoadService.getById(synthesize_no_2_1.getId());
|
|
|
if (!StringUtils.isEmpty(calculateLoad)) {
|
|
|
annualCoolingCapacity += calculateLoad.getNo22();
|
|
|
coolingArea += synthesize_no_2_1.getHeatArea();
|
|
|
coolingArea += synthesize_no_2_1.getColdArea();
|
|
|
CityDict dict = cityDictService.getOne(new QueryWrapper<CityDict>().lambda().eq(CityDict::getName, synthesize_no_1.getProjectSite()));//城市
|
|
|
Sort sort = sortMapper.selectById(synthesize_no_2_1.getBuildingTypeId());
|
|
|
Assert.notNull(synthesize_no_2_1.getHeatEnd(), "末端形式选择出错了");
|
...
|
...
|
@@ -2180,7 +2189,9 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
if (!synthesize_no_2_1s.isEmpty()) {
|
|
|
for (Synthesize_no_2_1 synthesize_no_2_1 : synthesize_no_2_1s) {
|
|
|
CalculateLoad calculateLoad = calculateLoadService.getOne(new LambdaQueryWrapper<CalculateLoad>().eq(CalculateLoad::getCid, synthesize_no_2_1.getPid()));
|
|
|
synthesize_no_2_1.setCalculateLoad(calculateLoad);
|
|
|
CalculateLoadVo calculateLoadVo = new CalculateLoadVo();
|
|
|
BeanUtils.copyProperties(calculateLoad,calculateLoadVo);
|
|
|
synthesize_no_2_1.setCalculateLoad(calculateLoadVo);
|
|
|
Sort sort = sortMapper.selectById(synthesize_no_2_1.getBuildingTypeId());
|
|
|
if (!StringUtils.isEmpty(sort)) {
|
|
|
synthesize_no_2_1.setBuildingTypeName(sort.getName());
|
...
|
...
|
@@ -2547,7 +2558,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
list2.add(equipmentCapacityDto2);
|
|
|
} else if ("4".equals(string)) {
|
|
|
EquipmentCapacityDto equipmentCapacityDto2 = new EquipmentCapacityDto();
|
|
|
equipmentCapacityDto2.setName("污水源热泵");
|
|
|
equipmentCapacityDto2.setName("水源热泵");
|
|
|
equipmentCapacityDto2.setData(format.apply(new BigDecimal(synthesize_no_3_6.getNo208())));
|
|
|
equipmentCapacityDto2.setType("4");
|
|
|
list2.add(equipmentCapacityDto2);
|
...
|
...
|
@@ -2790,7 +2801,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
list2.add(equipmentCapacityDto1);
|
|
|
} else if ("4".equals(string)) {
|
|
|
EquipmentCapacityDto equipmentCapacityDto1 = new EquipmentCapacityDto();
|
|
|
equipmentCapacityDto1.setName("污水源热泵");
|
|
|
equipmentCapacityDto1.setName("水源热泵");
|
|
|
equipmentCapacityDto1.setData(format.apply(new BigDecimal(synthesize_no_3_6.getNo216())));
|
|
|
equipmentCapacityDto1.setType("4");
|
|
|
list2.add(equipmentCapacityDto1);
|
...
|
...
|
@@ -3539,7 +3550,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
list2.add(equipmentCapacityDto1);
|
|
|
} else if ("4".equals(string)) {
|
|
|
EquipmentCapacityDto equipmentCapacityDto1 = new EquipmentCapacityDto();
|
|
|
equipmentCapacityDto1.setName("污水源热泵");
|
|
|
equipmentCapacityDto1.setName("水源热泵");
|
|
|
equipmentCapacityDto1.setData(format.apply(new BigDecimal(synthesize_no_3_6.getNo224())));
|
|
|
equipmentCapacityDto1.setType("4");
|
|
|
list2.add(equipmentCapacityDto1);
|
...
|
...
|
@@ -3949,7 +3960,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
* 电锅炉热水节省费用=年热水费费用*0.4-年总需热水热量*0.4/0.9/电锅炉效率*((8*低谷电价+2*高峰电价)/10)
|
|
|
*/
|
|
|
No_3_1_1_1Dto no_3_1_1_1Dto = new No_3_1_1_1Dto();
|
|
|
no_3_1_1_1Dto.setName("污水源热泵");
|
|
|
no_3_1_1_1Dto.setName("水源热泵");
|
|
|
no_3_1_1_1Dto.setProjectEarnings(format.apply(new BigDecimal(synthesize_no_2_2.getHotWaterPrice() * 0.4 - synthesize_no_3_6.getNo62() * 0.4 / 0.9 / synthesize_no_2_6.getNo119() * ((8 * synthesize_no_3_6.getNo114() + 2 * synthesize_no_3_6.getNo112()) / 10))));
|
|
|
no_3_1_1_1Dtos.add(no_3_1_1_1Dto);
|
|
|
}
|
...
|
...
|
|