| | |
| | | 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); |
| | |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | return formDO2VO(portalVI); |
| | | } |
| | | return self.selectAllFormMap().getOrDefault(btmId.toLowerCase()+SEP+id.toLowerCase(),null); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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; |
| | | }*/ |
| | | } |
| | | |
| | | /** |