| | |
| | | if(PortalVIType.Table.getName()==viType){ |
| | | lableName=PortalVIType.Table.getLabel(); |
| | | } |
| | | PortalVIVO portalVIVO=new PortalVIVO(); |
| | | PortalVI portalVI= platformClientUtil.getPortalService().getPortalVIById(id); |
| | | PortalVIVO portalVIVO = new PortalVIVO(); |
| | | PortalVI portalVI = platformClientUtil.getPortalService().getPortalVIById(id); |
| | | if(portalVI==null||StringUtils.isBlank(portalVI.id)){ |
| | | throw new VciBaseException("根据主键未查询到数据"); |
| | | } |
| | |
| | | List<String> allKeyList= getRefFormVIName(prmItemDO.getItemInObj()); |
| | | List<String> itemOutFieldList =VciBaseUtil.str2List(prmItemDO.getItemOutFields()); |
| | | List<String> itemKeyFieldList =VciBaseUtil.str2List(prmItemDO.getItemKeyFields()); |
| | | List<String> itemSelectOutFieldList= allKeyList.stream().filter(s ->!itemOutFieldList.stream().map(s1 -> s1).collect(Collectors.toList()).contains(s) ).collect(Collectors.toList()); |
| | | List<String> itemSelectOutFieldList= allKeyList.stream() |
| | | .filter(s -> !itemOutFieldList.contains(s)) |
| | | .collect(Collectors.toList()); |
| | | prmItemVO.setItemSelectOutFieldList(itemSelectOutFieldList);//待选择的属性字段 |
| | | prmItemVO.setItemOutFieldList(itemOutFieldList);//需要使用的集合 |
| | | // List<String> itemSearchFieldList= itemOutFieldList.stream().filter(s ->!CollectionUtils.isEmpty(itemKeyFieldList).stream().map(s1 -> s1).collect(Collectors.toList()).contains(s) ).collect(Collectors.toList()); |
| | | // List<String> itemSearchFieldList= itemOutFieldList.stream().filter(s ->!CollectionUtils.isEmpty(itemKeyFieldList).stream().map(s1 -> s1).collect(Collectors.toList()).contains(s) ).collect(Collectors.toList()); |
| | | List<String> itemSearchFieldList=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(itemKeyFieldList)){ |
| | | itemSearchFieldList= itemOutFieldList.stream().filter(s ->!itemKeyFieldList.contains(s)).collect(Collectors.toList()); |
| | |
| | | } |
| | | return itemSeniorQueryBOList; |
| | | } |
| | | |
| | | private List<String> getRefFormVIName(String refFormOid){ |
| | | List<String> keyList=new ArrayList<>(); |
| | | try { |