From 083f3042f0a1bc628adfd9c91a7756af9cb0709c Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 08 四月 2024 10:27:20 +0800
Subject: [PATCH] getDataForTree接口修改
---
Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/impl/UIEngineServiceImpl.java | 60 ++++++++++++++++-------------
Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/UIEngineServiceI.java | 7 +--
2 files changed, 35 insertions(+), 32 deletions(-)
diff --git a/Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/UIEngineServiceI.java b/Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/UIEngineServiceI.java
index dbce492..b63e549 100644
--- a/Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/UIEngineServiceI.java
+++ b/Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/UIEngineServiceI.java
@@ -1,13 +1,10 @@
package com.vci.web.service;
-
-import com.vci.corba.common.VCIError;
-import com.vci.corba.portal.data.PLAction;
import com.vci.corba.portal.data.PLTabButton;
import com.vci.corba.portal.data.PLUILayout;
import com.vci.corba.portal.data.PortalVI;
+import com.vci.corba.portal.data.PLAction;
import com.vci.web.pageModel.*;
-import plm.corba.portal.PLPageLayoutDefination;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -127,7 +124,7 @@
* @param actions 鏁版嵁瀵硅薄
* @return 鏄剧ず瀵硅薄
*/
- List<UIActionVO> actionDO2VOs(Collection<com.vci.corba.portal.data.PLAction> actions);
+ List<UIActionVO> actionDO2VOs(Collection<PLAction> actions);
/**
* action鏁版嵁瀵硅薄杞崲涓烘樉绀哄璞�
diff --git a/Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/impl/UIEngineServiceImpl.java b/Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/impl/UIEngineServiceImpl.java
index fd6b38f..47b838d 100644
--- a/Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/impl/UIEngineServiceImpl.java
+++ b/Source/platformProject/vci-platform-web/src/main/java/com/vci/web/service/impl/UIEngineServiceImpl.java
@@ -40,6 +40,10 @@
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
+import com.vci.corba.portal.data.PortalVI;
+import com.vci.corba.portal.data.PLAction;
+import com.vci.corba.portal.data.PLTabPage;
+import com.vci.corba.portal.data.PLTabButton;
import plm.corba.portal.*;
import java.util.*;
@@ -138,7 +142,8 @@
public void checkInvalidXmlVI() {
PortalVI[] portalVIS = null;
try {
- portalVIS = platformClientUtil.getPortalService().getAllPortalVI();
+ portalVIS = ServiceProvider.getUIService().getAllPortalVI();
+ // portalVIS = platformClientUtil.getPortalService().getAllPortalVI();
} catch (VCIError vciError) {
throw WebUtil.getVciBaseException(vciError);
}
@@ -483,7 +488,7 @@
*/
@Override
@VciUnLog
- public List<UITableDefineVO> tableDO2VOs(Collection<com.vci.corba.portal.data.PortalVI> prms, boolean queryDetail) {
+ public List<UITableDefineVO> tableDO2VOs(Collection<PortalVI> prms, boolean queryDetail) {
List<UITableDefineVO> tableDefineVOList = new ArrayList<>();
Optional.ofNullable(prms).orElseGet(()->new ArrayList<com.vci.corba.portal.data.PortalVI>()).stream().forEach(portal->{
UITableDefineVO defineVO = tableDO2VO(portal,queryDetail);
@@ -501,7 +506,8 @@
*/
@Override
@VciUnLog
- public UITableDefineVO tableDO2VO(com.vci.corba.portal.data.PortalVI portal, boolean queryDetail) {
+ public UITableDefineVO tableDO2VO(PortalVI portal, boolean queryDetail) {
+
UITableDefineVO tableDefineVO = new UITableDefineVO();
tableDefineVO.setOid(portal.id);
tableDefineVO.setId(portal.viName);
@@ -800,7 +806,7 @@
*/
@Override
@VciUnLog
- public List<UIActionVO> actionDO2VOs(Collection<com.vci.corba.portal.data.PLAction> actions) {
+ public List<UIActionVO> actionDO2VOs(Collection<PLAction> actions) {
List<UIActionVO> actionVOS = new ArrayList<>();
Optional.ofNullable(actions).orElseGet(()->new ArrayList<>()).stream().forEach(action->{
UIActionVO actionVO = actionDO2VO(action);
@@ -817,7 +823,7 @@
*/
@Override
@VciUnLog
- public UIActionVO actionDO2VO(com.vci.corba.portal.data.PLAction action) {
+ public UIActionVO actionDO2VO(PLAction action) {
UIActionVO actionVO = new UIActionVO();
if(action!=null){
actionVO.setOid(action.plOId);
@@ -999,24 +1005,24 @@
return contentVO;
}
-// private List<UILayoutVO> swapLayArea(List<UILayoutVO> layoutVOS){
-// List<UILayoutVO> layoutVOList = new ArrayList<>();
-// //1 瀵艰埅鍖�
-// //2 涓诲唴瀹瑰尯
-// //3 椤电鍖�
-// if(!CollectionUtils.isEmpty(layoutVOS)){
-// //鍙湁涓�涓尯鍩熺殑鏃跺�欙紝閮芥斁鍦╟enter閲岋紝鍝�曟湰韬槸瀵艰埅鍖�
-// if(layoutVOS.size() == 1){
-// layoutVOS.get(0).setLayoutAreaType(UILayoutAreaTypeEnum.CENTER.getValue());
-// layoutVOList.add(layoutVOS.get(0));
-// }else{
-// Map<String,List<UILayoutVO>> layoutAreaMap = layoutVOS.stream().collect(Collectors.groupingBy(UILayoutVO::getLayoutAreaType));
-// if(layoutAreaMap.containsKey("1")){
-// //
-// }
-// }
-// }
-// }
+ // private List<UILayoutVO> swapLayArea(List<UILayoutVO> layoutVOS){
+ // List<UILayoutVO> layoutVOList = new ArrayList<>();
+ // //1 瀵艰埅鍖�
+ // //2 涓诲唴瀹瑰尯
+ // //3 椤电鍖�
+ // if(!CollectionUtils.isEmpty(layoutVOS)){
+ // //鍙湁涓�涓尯鍩熺殑鏃跺�欙紝閮芥斁鍦╟enter閲岋紝鍝�曟湰韬槸瀵艰埅鍖�
+ // if(layoutVOS.size() == 1){
+ // layoutVOS.get(0).setLayoutAreaType(UILayoutAreaTypeEnum.CENTER.getValue());
+ // layoutVOList.add(layoutVOS.get(0));
+ // }else{
+ // Map<String,List<UILayoutVO>> layoutAreaMap = layoutVOS.stream().collect(Collectors.groupingBy(UILayoutVO::getLayoutAreaType));
+ // if(layoutAreaMap.containsKey("1")){
+ // //
+ // }
+ // }
+ // }
+ // }
/**
* 鑾峰彇鏌愪釜UI涓婁笅鏂囩殑鍖哄煙
@@ -1083,9 +1089,9 @@
* @param pages 鍖哄煙鐨勬暟鎹璞�
* @return 鏄剧ず瀵硅薄
*/
- private List<UILayoutVO> UILayoutDO2VOs(Collection<com.vci.corba.portal.data.PLTabPage> pages, boolean queryDetail){
+ private List<UILayoutVO> UILayoutDO2VOs(Collection<PLTabPage> pages, boolean queryDetail){
List<UILayoutVO> contentVOS = new ArrayList<>();
- Optional.ofNullable(pages).orElseGet(()->new ArrayList<com.vci.corba.portal.data.PLTabPage>()).stream().forEach(page->{
+ Optional.ofNullable(pages).orElseGet(()->new ArrayList<PLTabPage>()).stream().forEach(page->{
UILayoutVO layoutVO = UILayoutDO2VO(page, queryDetail);
if(layoutVO.isEnableStatus()) {
contentVOS.add(layoutVO);
@@ -1109,7 +1115,7 @@
* @return 鍖哄煙鐨勬樉绀哄璞�
*/
@VciUnLog
- private UILayoutVO UILayoutDO2VO(com.vci.corba.portal.data.PLTabPage page, boolean queryDetail){
+ private UILayoutVO UILayoutDO2VO(PLTabPage page, boolean queryDetail){
UILayoutVO layoutVO = new UILayoutVO();
if(page !=null ){
layoutVO.setOid(page.plOId);
@@ -1435,7 +1441,7 @@
* @return 鏄剧ず瀵硅薄
*/
@Override
- public List<UIButtonDefineVO> buttonDO2VOs(Collection<com.vci.corba.portal.data.PLTabButton> buttons){
+ public List<UIButtonDefineVO> buttonDO2VOs(Collection<PLTabButton> buttons){
List<UIButtonDefineVO> buttonDefineVOS = new ArrayList<>();
Optional.ofNullable(buttons).orElseGet(()->new ArrayList<>()).stream().forEach(button->{
buttonDefineVOS.add(buttonDO2VO(button));
--
Gitblit v1.9.3