浏览代码

获取能耗管理平台运维数据统一接口

wangchenghong 3 年之前
父节点
当前提交
0b88a66ba4

+ 13 - 0
src/main/java/com/persagy/apm/energy/report/common/service/CommonService.java

@@ -1,5 +1,8 @@
 package com.persagy.apm.energy.report.common.service;
 
+import com.persagy.apm.energy.report.common.dto.QueryAreaPlatformParamDTO;
+import com.persagy.apm.energy.report.monthly.config.statisticsitems.model.StatisticItems;
+import com.persagy.apm.energy.report.monthly.detail.business.model.Platform;
 import io.swagger.annotations.Api;
 
 import java.util.List;
@@ -13,4 +16,14 @@ public interface CommonService {
      * @return
      */
     List<String> getPjNameByPjId(List<String> pjIdList);
+
+    /**
+     * 根据配置条目信息获取能耗管理平台运维数据
+     *
+     * @param statisticItems 条目信息
+     * @param queryAreaPlatformParamDTO 查询条件对象
+     * @return 能耗管理平台运维数据
+     */
+    Platform getPlatform(StatisticItems statisticItems, QueryAreaPlatformParamDTO queryAreaPlatformParamDTO);
+
 }

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

@@ -3,7 +3,10 @@ package com.persagy.apm.energy.report.common.service.impl;
 import com.persagy.apm.common.model.dto.PoemsPuser;
 import com.persagy.apm.common.response.PoemsFeignResponse;
 import com.persagy.apm.energy.report.common.DataConstants;
+import com.persagy.apm.energy.report.common.dto.QueryAreaPlatformParamDTO;
 import com.persagy.apm.energy.report.common.service.CommonService;
+import com.persagy.apm.energy.report.monthly.config.statisticsitems.model.StatisticItems;
+import com.persagy.apm.energy.report.monthly.detail.business.model.Platform;
 import com.persagy.apm.energy.report.saasweb.model.dto.QueryProjectDTO;
 import com.persagy.apm.energy.report.saasweb.model.vo.PoemsProjectVO;
 import com.persagy.apm.energy.report.saasweb.service.impl.SaasWebClientWrapper;
@@ -24,7 +27,7 @@ public class CommonServiceImpl implements CommonService {
 
     @Override
     public List<String> getPjNameByPjId(List<String> pjIdList) {
-        if(CollectionUtils.isEmpty(pjIdList)){
+        if (CollectionUtils.isEmpty(pjIdList)) {
             return new ArrayList<>();
         }
         QueryProjectDTO queryProjectDTO = new QueryProjectDTO();
@@ -47,4 +50,10 @@ public class CommonServiceImpl implements CommonService {
         }
         return new ArrayList<>();
     }
+
+    @Override
+    public Platform getPlatform(StatisticItems statisticItems, QueryAreaPlatformParamDTO queryAreaPlatformParamDTO) {
+        String serviceName = "I" + statisticItems.getItemCode() + statisticItems.getItemSource() + "WebService";
+        return null;
+    }
 }