ludc
2024-12-05 a485f4494787001a2695863e239910c019a52246
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/UIEngineServiceImpl.java
@@ -30,6 +30,7 @@
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;
@@ -414,16 +415,13 @@
      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);
   }
   /**
@@ -1201,7 +1199,12 @@
      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) {
@@ -1213,8 +1216,7 @@
         if(!CollectionUtils.isEmpty(componentVOList)){
            return componentVOList.get(0);
         }
      }
      return null;
      }*/
   }
   /**
@@ -1244,6 +1246,7 @@
         componentVO.setName(page.name);
         componentVO.setDescription(page.desc);
         componentVO.setOrderNum((int) page.seq);
         UIComponentDefineXO componentDefineXO = null;
         try {
            componentDefineXO = readInfoFromXML(page.plDefination, UIComponentDefineXO.class);
@@ -1251,6 +1254,8 @@
            logger.error("读取xml出错",e);
            return  null;
         }
         //自定义查询方式
         componentVO.setBsCustQueryCLsOrUrl(componentDefineXO.getBsCustQueryCLsOrUrl());
         //之前的类型的值是1,2,3等看着不直观
         UIComponentTypeEnum componentTypeEnum = null;
         if("1".equals(componentDefineXO.getTemplateType())){