Browse Source

计算EER数据加入日志

wangchenghong 3 năm trước cách đây
mục cha
commit
2d673b4256

+ 6 - 0
src/main/java/com/persagy/apm/energy/report/centermiddleware/service/impl/ICenterMiddlewareWebServiceImp.java

@@ -76,6 +76,7 @@ public class ICenterMiddlewareWebServiceImp implements ICenterMiddlewareWebServi
 
     @Override
     public List<ProjectEERDataVo> getProjectEERDataList(List<String> pjIdList, String groupCode, Date reportDate) {
+        log.info("项目列表:"+pjIdList+"查询EER数据开始");
         if (CollectionUtils.isEmpty(pjIdList) || StringUtils.isEmpty(groupCode) || null == reportDate) {
             log.info("查询ProjectEERDataVo时参数为空,故不进行查询");
             return new ArrayList<>();
@@ -131,6 +132,7 @@ public class ICenterMiddlewareWebServiceImp implements ICenterMiddlewareWebServi
         } catch (Exception e) {
             log.error("计算ProjectEERDataVo异常:", e);
         }
+        log.info("项目列表:"+pjIdList+"查询EER数据结束"+"结果列表:"+resultList);
         return resultList;
     }
 
@@ -156,6 +158,7 @@ public class ICenterMiddlewareWebServiceImp implements ICenterMiddlewareWebServi
 
     private TreeMap<Date, Double> getDayCountData(String pjId, String groupCode, Date reportDate, String infoCode, List<String> classCodeList, List<Date> dateList) {
         List<String> objectIdList = getObjectIdList(pjId, groupCode, classCodeList);
+        log.info("项目:"+pjId+"对象id:"+objectIdList);
         if (!CollectionUtils.isEmpty(objectIdList)) {
             return getInfoCodePeriodDataCountMap(pjId, groupCode, objectIdList, reportDate, infoCode, "1d",dateList);
         }
@@ -189,6 +192,7 @@ public class ICenterMiddlewareWebServiceImp implements ICenterMiddlewareWebServi
     }
 
     private TreeMap<Date, Double> getInfoCodePeriodDataCountMap(String pjId, String groupCode, List<String> objectIdList, Date reportDate, String infoCode, String period, List<Date> dateList) {
+        log.info("项目:"+pjId+"infoCod:"+infoCode+"查询数据列表开始");
         if (StringUtils.isEmpty(pjId) || StringUtils.isEmpty(groupCode) || CollectionUtils.isEmpty(objectIdList) || null == reportDate) {
             log.info("查询历史数据时参数为空,故不进行查询");
             return new TreeMap<>();
@@ -216,6 +220,7 @@ public class ICenterMiddlewareWebServiceImp implements ICenterMiddlewareWebServi
             batchQueryPeriodDataDTO.setCriterias(criteriasObjDTOList);
             PoemsFeignResponse<PoemsFeignResponse<PeriodDataInfoVO>> response = centerMiddlewareWebClient.getPeriodDataInfo(batchQueryPeriodDataDTO);
             List<PoemsFeignResponse<PeriodDataInfoVO>> responseList = response.getContent();
+            log.info("项目:"+pjId+"infoCod:"+infoCode+"数据列表:"+responseList);
             if (!CollectionUtils.isEmpty(responseList)) {
                 for (PoemsFeignResponse<PeriodDataInfoVO> responseVo : responseList) {
                     List<PeriodDataInfoVO> periodDataInfoVOList = responseVo.getContent();
@@ -249,6 +254,7 @@ public class ICenterMiddlewareWebServiceImp implements ICenterMiddlewareWebServi
         } catch (Exception e) {
             log.error("查询中台对象信息时异常:", e);
         }
+        log.info("项目:"+pjId+"infoCod:"+infoCode+"查询数据列表结束"+"结果:"+dataMap);
         return dataMap;
     }
 

+ 2 - 0
src/main/java/com/persagy/apm/energy/report/common/service/impl/CommonServiceImpl.java

@@ -397,6 +397,7 @@ public class CommonServiceImpl implements CommonService {
 
     @Override
     public HotelProjectChillerPlantEfficiency getHotelProjectChillerPlantEfficiency(String projectId, Date reportDate, List<String> pjIdList) {
+        log.info("获取HotelProjectChillerPlantEfficiency开始");
         if (StringUtils.isEmpty(projectId) || null == reportDate) {
             log.info("获取HotelProjectChillerPlantEfficiency信息时传入参为空,故不进行查询");
             return new HotelProjectChillerPlantEfficiency();
@@ -465,6 +466,7 @@ public class CommonServiceImpl implements CommonService {
                 hotelProjectChillerPlantEfficiency.setEerMonthRange(eerMonthRange);
             }
         }
+        log.info("获取HotelProjectChillerPlantEfficiency结束");
         return hotelProjectChillerPlantEfficiency;
     }