|
@@ -10,6 +10,7 @@ import com.persagy.apm.energy.report.common.utils.DataUtils;
|
|
|
import com.persagy.apm.energy.report.common.utils.DateUtils;
|
|
|
import com.persagy.apm.energy.report.common.utils.SpringContextHolder;
|
|
|
import com.persagy.apm.energy.report.common.vo.PlatformAreaInfoVO;
|
|
|
+import com.persagy.apm.energy.report.emsweather.service.EMSWeatherWebService;
|
|
|
import com.persagy.apm.energy.report.environment.model.dto.BatchQueryEnvListByParamDTO;
|
|
|
import com.persagy.apm.energy.report.environment.service.IEnvironmentWebService;
|
|
|
import com.persagy.apm.energy.report.equiprunmanager.service.IEquipRunManagerService;
|
|
@@ -79,6 +80,9 @@ public class CommonServiceImpl implements CommonService {
|
|
|
@Autowired
|
|
|
IEquipRunManagerService iEquipRunManagerService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ EMSWeatherWebService emsWeatherWebService;
|
|
|
+
|
|
|
@Override
|
|
|
public List<String> getPjNameByPjId(List<String> pjIdList) {
|
|
|
if (CollectionUtils.isEmpty(pjIdList)) {
|
|
@@ -362,4 +366,24 @@ public class CommonServiceImpl implements CommonService {
|
|
|
return hotelProjectMaintenanceBaseInfo;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public HotelProjectChillerPlantEfficiency getHotelProjectChillerPlantEfficiency(String projectId, Date reportDate) {
|
|
|
+ if (StringUtils.isEmpty(projectId) || null == reportDate) {
|
|
|
+ log.info("获取HotelProjectChillerPlantEfficiency信息时传入参为空,故不进行查询");
|
|
|
+ return new HotelProjectChillerPlantEfficiency();
|
|
|
+ }
|
|
|
+ HotelProjectChillerPlantEfficiency hotelProjectChillerPlantEfficiency = new HotelProjectChillerPlantEfficiency();
|
|
|
+ Double avgTempCurrentMonth = emsWeatherWebService.getPjMonthAvgTemp(projectId, reportDate);
|
|
|
+ Double avgTempLastYearMonth = emsWeatherWebService.getPjMonthAvgTemp(projectId, reportDate);
|
|
|
+ emsWeatherWebService.getPjMonthAvgTemp(projectId, DateUtils.getYearOff(reportDate, -1));
|
|
|
+ hotelProjectChillerPlantEfficiency.setAverageTemperatureCurrentMonth(avgTempCurrentMonth);
|
|
|
+ hotelProjectChillerPlantEfficiency.setAverageTemperatureLastYearSameTime(avgTempLastYearMonth);
|
|
|
+ Double avgTempGrowth = null;
|
|
|
+ if (avgTempCurrentMonth != null && avgTempLastYearMonth != null) {
|
|
|
+ avgTempGrowth = avgTempCurrentMonth = avgTempLastYearMonth;
|
|
|
+ }
|
|
|
+ hotelProjectChillerPlantEfficiency.setAverageTemperatureGrowth(avgTempGrowth);
|
|
|
+ return hotelProjectChillerPlantEfficiency;
|
|
|
+ }
|
|
|
+
|
|
|
}
|