| | |
| | | String attrId = baseQueryObject.getConditionMap().containsKey("name")?baseQueryObject.getConditionMap().get("name").replace("*",""):""; |
| | | String attrName = baseQueryObject.getConditionMap().containsKey("label") ? baseQueryObject.getConditionMap().get("label").replace("*","") : ""; |
| | | OsLinkTypeVO linkTypeVO = linkTypeService.selectByOid(linkTypeOid); |
| | | List<OsLinkTypeAttributeVO> boAttrs = linkTypeService.listAttributeByLinkId(linkTypeVO.getId()); |
| | | List<OsLinkTypeAttributeVO> boAttrs = null; |
| | | try { |
| | | boAttrs = linkTypeService.listAttributeByLinkId(linkTypeVO.getId()); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String errorLog = "查询链接类型关联的属性时出现错误,原因:"+VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(errorLog); |
| | | throw new VciBaseException(errorLog); |
| | | } |
| | | List<OsLinkTypeAttributeVO> attrList = boAttrs.stream().filter(s->{ |
| | | boolean usedFlag = true; |
| | | if(StringUtils.isNotBlank(attrId) && !s.getId().contains(attrId)){ |