|
@@ -51,32 +51,32 @@ public class ICenterMiddlewareWebServiceImp implements ICenterMiddlewareWebServi
|
|
|
}
|
|
|
|
|
|
|
|
|
- private List<String> getObjectIdList(String pjId, String groupCode, List<String> classCodeList) {
|
|
|
- log.info("查询对象信息列表开始,项目:" + pjId + "groupCode:" + groupCode + "classCodeList:" + classCodeList);
|
|
|
- if (StringUtils.isEmpty(pjId) || StringUtils.isEmpty(groupCode) || CollectionUtils.isEmpty(classCodeList)) {
|
|
|
- log.info("查询中台对象信息时参数为空,故不进行查询");
|
|
|
- return new ArrayList<>();
|
|
|
- }
|
|
|
- List<String> resultList = new ArrayList<>();
|
|
|
- try {
|
|
|
- QueryObjectInfoDTO queryObjectInfoDTO = new QueryObjectInfoDTO();
|
|
|
- queryObjectInfoDTO.setProjectId(pjId);
|
|
|
- queryObjectInfoDTO.setGroupCode(groupCode);
|
|
|
- Criteria criteria = new Criteria();
|
|
|
- criteria.setClassCode(classCodeList);
|
|
|
- queryObjectInfoDTO.setCriteria(criteria);
|
|
|
- PoemsFeignResponse<ObjectInfoVO> response = centerMiddlewareWebClient.getObjectInfo(queryObjectInfoDTO);
|
|
|
- List<ObjectInfoVO> objectInfoVOList = response.getContent();
|
|
|
- log.info("中台返回对象结果:" + objectInfoVOList);
|
|
|
- if (!CollectionUtils.isEmpty(objectInfoVOList)) {
|
|
|
- for (ObjectInfoVO vo : objectInfoVOList) {
|
|
|
- resultList.add(vo.getId());
|
|
|
- }
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- throw new RuntimeException("查询中台对象信息时异常", e);
|
|
|
- }
|
|
|
- log.info("查询对象信息列表结束");
|
|
|
- return resultList;
|
|
|
- }
|
|
|
+// private List<String> getObjectIdList(String pjId, String groupCode, List<String> classCodeList) {
|
|
|
+// log.info("查询对象信息列表开始,项目:" + pjId + "groupCode:" + groupCode + "classCodeList:" + classCodeList);
|
|
|
+// if (StringUtils.isEmpty(pjId) || StringUtils.isEmpty(groupCode) || CollectionUtils.isEmpty(classCodeList)) {
|
|
|
+// log.info("查询中台对象信息时参数为空,故不进行查询");
|
|
|
+// return new ArrayList<>();
|
|
|
+// }
|
|
|
+// List<String> resultList = new ArrayList<>();
|
|
|
+// try {
|
|
|
+// QueryObjectInfoDTO queryObjectInfoDTO = new QueryObjectInfoDTO();
|
|
|
+// queryObjectInfoDTO.setProjectId(pjId);
|
|
|
+// queryObjectInfoDTO.setGroupCode(groupCode);
|
|
|
+// Criteria criteria = new Criteria();
|
|
|
+// criteria.setClassCode(classCodeList);
|
|
|
+// queryObjectInfoDTO.setCriteria(criteria);
|
|
|
+// PoemsFeignResponse<ObjectInfoVO> response = centerMiddlewareWebClient.getObjectInfo(queryObjectInfoDTO);
|
|
|
+// List<ObjectInfoVO> objectInfoVOList = response.getContent();
|
|
|
+// log.info("中台返回对象结果:" + objectInfoVOList);
|
|
|
+// if (!CollectionUtils.isEmpty(objectInfoVOList)) {
|
|
|
+// for (ObjectInfoVO vo : objectInfoVOList) {
|
|
|
+// resultList.add(vo.getId());
|
|
|
+// }
|
|
|
+// }
|
|
|
+// } catch (Exception e) {
|
|
|
+// throw new RuntimeException("查询中台对象信息时异常", e);
|
|
|
+// }
|
|
|
+// log.info("查询对象信息列表结束");
|
|
|
+// return resultList;
|
|
|
+// }
|
|
|
}
|