|
@@ -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) {
|