Browse Source

批量获取监控点的预置点信息

wyb 3 months ago
parent
commit
a826387f61

+ 1 - 1
src/main/java/com/chinaitop/depot/hk/service/HkService.java

@@ -132,7 +132,7 @@ public interface HkService {
132 132
      * @author: ybw
133 133
      * @date: 2024/8/2
134 134
      **/
135
-    PresetsSearchResDTO searchPresets(PresetsSearchReqDTO presetsSearchReqDTO);
135
+//    PresetsSearchResDTO searchPresets(PresetsSearchReqDTO presetsSearchReqDTO);
136 136
 
137 137
     /**
138 138
      * 批量获取监控点的预置点信息

+ 21 - 21
src/main/java/com/chinaitop/depot/hk/service/impl/HkServiceImpl.java

@@ -220,27 +220,27 @@ public class HkServiceImpl implements HkService {
220 220
         }
221 221
     }
222 222
 
223
-    @Override
224
-    public PresetsSearchResDTO searchPresets(PresetsSearchReqDTO presetsSearchReqDTO) {
225
-        try {
226
-            // 接口地址
227
-            Map<String, String> path = getPath(ApiHkConstant.API_HK_PRESETS_SEARCH);
228
-            String result = ArtemisHttpUtil.doPostStringArtemis(artemisConfig, path, JSON.toJSONString(presetsSearchReqDTO), null, null,  ContentType.CONTENT_TYPE_JSON);
229
-            log.info("result:{}",result);
230
-            ResultResDTO<PresetsSearchResDTO> resultResDTO = JSONObject.parseObject(
231
-                    result,
232
-                    new TypeReference<ResultResDTO<PresetsSearchResDTO>>() {
233
-                    }
234
-            );
235
-            log.info("{}", JSON.toJSONString(resultResDTO));
236
-            if (ApiHkConstant.Code.SUCCESS.equals(resultResDTO.getCode())) {
237
-                return resultResDTO.getData();
238
-            }
239
-        } catch (Exception e) {
240
-            log.error("searchPresets error:", e);
241
-        }
242
-        return null;
243
-    }
223
+//    @Override
224
+//    public PresetsSearchResDTO searchPresets(PresetsSearchReqDTO presetsSearchReqDTO) {
225
+//        try {
226
+//            // 接口地址
227
+//            Map<String, String> path = getPath(ApiHkConstant.API_HK_PRESETS_SEARCH);
228
+//            String result = ArtemisHttpUtil.doPostStringArtemis(artemisConfig, path, JSON.toJSONString(presetsSearchReqDTO), null, null,  ContentType.CONTENT_TYPE_JSON);
229
+//            log.info("result:{}",result);
230
+//            ResultResDTO<PresetsSearchResDTO> resultResDTO = JSONObject.parseObject(
231
+//                    result,
232
+//                    new TypeReference<ResultResDTO<PresetsSearchResDTO>>() {
233
+//                    }
234
+//            );
235
+//            log.info("{}", JSON.toJSONString(resultResDTO));
236
+//            if (ApiHkConstant.Code.SUCCESS.equals(resultResDTO.getCode())) {
237
+//                return resultResDTO.getData();
238
+//            }
239
+//        } catch (Exception e) {
240
+//            log.error("searchPresets error:", e);
241
+//        }
242
+//        return null;
243
+//    }
244 244
 
245 245
     @Override
246 246
     public PresetsResDTO getPresets(PresetsReqDTO presetsReqDTO) {