ludc
2024-04-09 fecc7305a48f8ce6e283434718da33e143885c75
Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/impl/UIEngineServiceImpl.java
@@ -837,8 +837,8 @@
         actionVO.setCreator(action.plCreateUser);
         actionVO.setLastModifier(action.plModifyUser);
         try {
            actionVO.setCreateTime(VciDateUtil.str2Date(String.valueOf(action.plCreateTime), VciDateUtil.DateTimeFormat));
            actionVO.setLastModifyTime(VciDateUtil.str2Date(String.valueOf(action.plCreateTime), VciDateUtil.DateTimeFormat));
            actionVO.setCreateTime(new Date(action.plCreateTime));
            actionVO.setLastModifyTime(new Date(action.plCreateTime));
         }catch (Throwable e){
            logger.error("转换时间",e);
         }
@@ -922,8 +922,8 @@
         contentVO.setDescription(pageLayoutDefination.plDesc);
         contentVO.setCreator(pageLayoutDefination.plCreateUser);
         try {
            contentVO.setCreateTime(VciDateUtil.str2Date(String.valueOf(pageLayoutDefination.plCreateTime),VciDateUtil.DateTimeFormat));
            contentVO.setLastModifyTime(VciDateUtil.str2Date(String.valueOf(pageLayoutDefination.plModifyTime),VciDateUtil.DateTimeFormat));
            contentVO.setCreateTime(new Date(pageLayoutDefination.plCreateTime));
            contentVO.setLastModifyTime(new Date(pageLayoutDefination.plModifyTime));
         } catch (Exception e) {
            e.printStackTrace();
         }
@@ -1144,8 +1144,8 @@
         }
         layoutVO.setCreator(page.plCreateUser);
         try {
            layoutVO.setCreateTime(VciDateUtil.str2Date(String.valueOf(page.plCreateTime),VciDateUtil.DateTimeFormat));
            layoutVO.setLastModifyTime(VciDateUtil.str2Date(String.valueOf(page.plModifyTime),VciDateUtil.DateTimeFormat));
            layoutVO.setCreateTime(new Date(page.plCreateTime));
            layoutVO.setLastModifyTime(new Date(page.plModifyTime));
         } catch (Exception e) {
            e.printStackTrace();
         }
@@ -1223,7 +1223,7 @@
    * @param pages 数据对象
    * @return 显示对象
    */
   private List<UIComponentVO> uiComponentDO2VOs(Collection<PLPageDefination> pages, boolean queryDetail){
   private List<UIComponentVO> uiComponentDO2VOs(Collection<com.vci.corba.portal.data.PLPageDefination> pages, boolean queryDetail){
      List<UIComponentVO> componentVOS = new ArrayList<>();
      pages.stream().forEach(page->{
         componentVOS.add(uiComponentDO2VO(page,queryDetail));
@@ -1454,10 +1454,10 @@
    * @return 显示对象
    */
   @Override
   public UIButtonDefineVO buttonDO2VO(PLTabButton button)  {
   public UIButtonDefineVO buttonDO2VO(com.vci.corba.portal.data.PLTabButton button)  {
      UIButtonDefineVO buttonVO = new UIButtonDefineVO();
      Map<String, UIActionVO> actionVOMap = self.selectAllActionMap();
      //Map<String, UIActionVO> actionVOMap = ServiceProvider.getUIService().getAllPLAction();
//      Map<String, UIActionVO> actionVOMap = ServiceProvider.getUIService().getAllPLAction();
      if(button !=null){
         buttonVO.setOid(button.plOId);
         buttonVO.setPkComponent(button.plTableOId);
@@ -1553,22 +1553,24 @@
   @Cacheable(value = VCI_OBJECT_SERVICE,key = "#p0.concat('${uicache}').concat(#p1)",unless = "#result == null || #p0 == null || #p1 ==null")
   public UIContentVO getUIContentByBtmTypeAndId(String btmType, String id) {
      WebUtil.alertNotNull(btmType,"业务类型或者链接类型",id,"UI上下文的编号");
      PLPageLayoutDefination[] obj = null;
      PLUILayout[] obj = null;
      try {
         obj = platformClientUtil.getPortalService().getPLPageLayoutDefinationsByRelatedType(btmType);
         obj = ServiceProvider.getUIService().getPLUILayoutsByRelatedType(btmType);
//         obj = platformClientUtil.getPortalService().getPLPageLayoutDefinationsByRelatedType(btmType);
//         obj = ServiceProvider.geT(btmType);
      } catch (VCIError vciError) {
         throw WebUtil.getVciBaseException(vciError);
      }
      PLPageLayoutDefination context = null;
      PLUILayout context = null;
      for (int i = 0; i < obj.length; i++) {
         if (obj[i].plCode.equals(id)) {
            context = obj[i];
            break;
         }
      }
      //return UIContentDO2VO(context,true);
      return UIContentDO2VO(null,true);
      return UIContentDO2VO(context,true);
//      return UIContentDO2VO(null,true);
   }
}