| | |
| | | import com.vci.web.xmlmodel.UIComponentDetailXO; |
| | | import com.vci.web.xmlmodel.UIComponentItemXO; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.poi.hdf.extractor.SEP; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | if(StringUtils.isBlank(btmId) || StringUtils.isBlank(id)){ |
| | | return null; |
| | | } |
| | | if(!QUERY_BY_CACHE){ |
| | | PortalVI portalVI = null; |
| | | try { |
| | | portalVI = platformClientUtil.getUIService().getPortalVIByTypeNameAndVIName(btmId, id); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | return formDO2VO(portalVI); |
| | | PortalVI portalVI = null; |
| | | try { |
| | | portalVI = platformClientUtil.getUIService().getPortalVIByTypeNameAndVIName(btmId, id); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | return self.selectAllFormMap().getOrDefault(btmId.toLowerCase()+SEP+id.toLowerCase(),null); |
| | | return formDO2VO(portalVI); |
| | | } |
| | | |
| | | /** |
| | |
| | | if(StringUtils.isBlank(componentOid)){ |
| | | return null; |
| | | } |
| | | if(!QUERY_BY_CACHE){ |
| | | try { |
| | | return uiComponentDO2VO(platformClientUtil.getUIService().getPLPageDefinationById(componentOid),true,attributeVOMap); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | /*if(!QUERY_BY_CACHE){ |
| | | try { |
| | | return uiComponentDO2VO(platformClientUtil.getUIService().getPLPageDefinationById(componentOid),true,attributeVOMap); |
| | | } catch (PLException vciError) { |
| | |
| | | if(!CollectionUtils.isEmpty(componentVOList)){ |
| | | return componentVOList.get(0); |
| | | } |
| | | } |
| | | return null; |
| | | }*/ |
| | | } |
| | | |
| | | /** |
| | |
| | | componentVO.setName(page.name); |
| | | componentVO.setDescription(page.desc); |
| | | componentVO.setOrderNum((int) page.seq); |
| | | |
| | | UIComponentDefineXO componentDefineXO = null; |
| | | try { |
| | | componentDefineXO = readInfoFromXML(page.plDefination, UIComponentDefineXO.class); |
| | |
| | | logger.error("读取xml出错",e); |
| | | return null; |
| | | } |
| | | //自定义查询方式 |
| | | componentVO.setBsCustQueryCLsOrUrl(componentDefineXO.getBsCustQueryCLsOrUrl()); |
| | | //之前的类型的值是1,2,3等看着不直观 |
| | | UIComponentTypeEnum componentTypeEnum = null; |
| | | if("1".equals(componentDefineXO.getTemplateType())){ |