From a13255b4129ee8a7a7b7e1ecd8e02dd2c78f7c17 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 16 一月 2025 16:19:20 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIManagerServiceI.java |  179 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 158 insertions(+), 21 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIManagerServiceI.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIManagerServiceI.java
index 85c87d8..460cfed 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIManagerServiceI.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIManagerServiceI.java
@@ -1,23 +1,28 @@
 package com.vci.web.service;
 
 import com.vci.corba.common.PLException;
-import com.vci.corba.portal.data.PLUILayout;
-import com.vci.corba.portal.data.PLPageDefination;
+import com.vci.corba.framework.data.RoleRightInfo;
+import com.vci.corba.omd.btm.BizType;
+import com.vci.corba.omd.ltm.LinkType;
+import com.vci.corba.omd.qtm.QTInfo;
 import com.vci.corba.portal.data.PLTabPage;
-import com.vci.pagemodel.PLUILayoutCloneVO;
+import com.vci.corba.portal.data.PLUILayout;
+import com.vci.corba.portal.data.PortalVI;
+import com.vci.dto.UIAuthorDTO;
+import com.vci.pagemodel.*;
 import com.vci.starter.web.exception.VciBaseException;
 import com.vci.starter.web.pagemodel.BaseQueryObject;
 import com.vci.starter.web.pagemodel.BaseResult;
 import com.vci.starter.web.pagemodel.DataGrid;
-import com.vci.dto.UIAuthorDTO;
 import com.vci.starter.web.pagemodel.Tree;
-import com.vci.pagemodel.PLDefinationVO;
-import org.springframework.web.multipart.MultipartFile;
-import javax.servlet.http.HttpServletResponse;
+
+import java.io.File;
 import java.io.IOException;
 import java.util.List;
+import java.util.Map;
 
 /**
+ * UI瀹氫箟绠$悊鏈嶅姟
  * @author ludc
  * @date 2024/8/28 17:05
  */
@@ -61,18 +66,25 @@
     boolean cloneUIContextData(PLUILayoutCloneVO pluiLayoutCloneVO) throws PLException;
 
     /**
+     * 鏍规嵁鍕鹃�夌殑鏉′欢鑾峰彇闇�瑕佸鍑虹殑ui涓婁笅鏂囨爲
+     * @param expDatas
+     * @return
+     */
+    Tree getExpContextTree(List<String> expDatas);
+
+    /**
      * 瀵煎嚭ui涓婁笅鏂�(鍕鹃�夌殑瑕佸鍑虹殑鎺у埗鍖虹殑鏁版嵁)
      * oids
      * @return
      */
-    void expUIContextData(String[] oids, HttpServletResponse response) throws PLException, IOException;
+    String expUIContextData(Map<String,String> expConditionMap) throws PLException, IOException;
 
     /**
      * 瀵煎叆UI涓婁笅鏂�
      * @param file
      * @return
      */
-    BaseResult impUIContextData(MultipartFile file);
+    BaseResult impUIContextData(File file, boolean isCovered,String selectBtm);
 
     //鍖哄煙鐩稿叧鏌ヨ銆佹坊鍔犮�佸垹闄ゃ�佷慨鏀圭瓑鎺ュ彛
     /**
@@ -81,21 +93,21 @@
     DataGrid getTabByContextIdAndType(String contextId, int areaType) throws PLException;
 
     /**
-     * 娣诲姞鍖哄煙鏁版嵁
+     * 娣诲姞鍖哄煙锛堥〉绛撅級鏁版嵁
      * @param plTabPage
      * @return
      */
     boolean addTabData(PLTabPage plTabPage) throws PLException;
 
     /**
-     * 淇敼鍖哄煙鏁版嵁
+     * 淇敼鍖哄煙锛堥〉绛撅級鏁版嵁
      * @param plTabPage
      * @return
      */
     boolean updateTabData(PLTabPage plTabPage) throws PLException;
 
     /**
-     * 鍒犻櫎鍖哄煙鏁版嵁
+     * 鍒犻櫎鍖哄煙锛堥〉绛撅級鏁版嵁
      * @param oids
      * @return
      */
@@ -111,24 +123,24 @@
     //椤甸潰璁捐鐩稿叧鎺ュ彛
     /**
      * 鏌ヨ椤甸潰璁捐瀹氫箟
-     * @param plPageContextOId
+     * @param pageContextOId
      * @return
      */
-    DataGrid getPLPageDefinations(String plPageContextOId) throws PLException;
+    DataGrid getPLPageDefinations(String pageContextOId) throws PLException;
 
     /**
      * 娣诲姞椤甸潰瀹氫箟
-     * @param pd
+     * @param pdVO
      * @return
      */
-    boolean addPageDefination(PLDefinationVO pd) throws Throwable;
+    boolean addPageDefination(PLDefinationVO pdVO) throws Throwable;
 
     /**
      * 淇敼椤甸潰瀹氫箟
-     * @param pd
+     * @param pdVO
      * @return
      */
-    boolean updatePageDefination(PLDefinationVO pd) throws Throwable;
+    boolean updatePageDefination(PLDefinationVO pdVO) throws Throwable;
 
     /**
      * 鍒犻櫎椤甸潰瀹氫箟
@@ -137,9 +149,55 @@
      */
     boolean delPageDefination(String[] oids) throws PLException;
 
-    //閰嶇疆鎸夐挳鐩稿叧鎺ュ彛
+    //椤甸潰璁捐涓嬮厤缃寜閽浉鍏虫帴鍙�
+    /**
+     * 鑾峰彇椤电鍖哄煙鎸夐挳閰嶇疆淇℃伅
+     * @param pageDefinationOid
+     * @return
+     */
+    List<PLTabButtonVO> getTabButtons(String pageDefinationOid);
 
+    /**
+     * 娣诲姞鎸夐挳閰嶇疆淇℃伅
+     * @param tabButtonVO
+     * @return
+     */
+    BaseResult addTabButton(PLTabButtonVO tabButtonVO);
 
+    /**
+     * 淇敼鎸夐挳閰嶇疆淇℃伅
+     * @param tabButtonVO
+     * @return
+     */
+    BaseResult updateTabButton(PLTabButtonVO tabButtonVO);
+
+    /**
+     * 淇濆瓨鎴栦慨鏀规寜閽厤缃俊鎭�
+     * @param tabButtonVO
+     * @return
+     */
+    boolean saveOrUpdateTabButton(PLTabButtonVO tabButtonVO,boolean isAdd);
+
+    /**
+     * 鍒犻櫎鍗曚釜鎸夐挳閰嶇疆
+     * @param tabButtonVO
+     * @return
+     */
+    boolean deleteTabButton(PLTabButtonVO tabButtonVO) throws PLException;
+
+    /**
+     * 璋冩暣涓轰笅绾ф寜閽�
+     * @param tabButtonVO
+     * @return
+     */
+    BaseResult joinBtn(PLTabButtonVO tabButtonVO) throws PLException;
+
+    /**
+     * 璋冩暣涓轰笂绾ф寜閽�
+     * @param tabButtonVO
+     * @return
+     */
+    BaseResult exitBtn(PLTabButtonVO tabButtonVO) throws PLException;
 
     /**
      * 鑾峰彇UI鏉冮檺鏍�
@@ -149,13 +207,92 @@
      */
     List<Tree> getUIAuthor(BaseQueryObject baseQueryObject)throws Exception;
 
-    /***
+    /**
+     * 鏍规嵁瑙掕壊涓婚敭鑾峰彇宸叉巿鏉冪殑淇℃伅
+     * @param roleId
+     * @return
+     * @throws PLException
+     */
+    Map<String, List<RoleRightVO>> getRoleRightMap(String roleId) throws PLException;
+
+    /**
      * UI鎺堟潈
      * @param uiAuthorDTO
      * @return
      * @throws Exception
      */
-    public boolean authorizedUI(UIAuthorDTO uiAuthorDTO)throws Exception;
+    boolean authorizedUI(UIAuthorDTO uiAuthorDTO)throws Exception;
 
+    /**
+     * 涓氬姟绫诲瀷銆佹簮瀵硅薄绫诲瀷銆侀《灞傝妭鐐规樉绀虹被鍨嬬瓑閮借皟鐢ㄨ繖涓帴鍙f煡璇�
+     * @param baseQueryObject
+     * @return
+     * @throws PLException
+     */
+    DataGrid<BizType> getBtmDatasByPage(BaseQueryObject baseQueryObject) throws Throwable;
+
+    /**
+     * 鏌ヨ閾炬帴绫诲瀷涓嬫媺
+     * @param baseQueryObject
+     * @return
+     * @throws PLException
+     */
+    DataGrid<LinkType> getLinkDatasByPage(BaseQueryObject baseQueryObject) throws Throwable;
+
+    /**
+     * UI瀹氫箟涓嬫媺鏌ヨ锛坱emplateType涓篣I瀹氫箟鏃剁殑閫夋嫨瀵硅薄涓嬫媺鏌ヨ锛�
+     * @param baseQueryObject selectBtmType 閫夋嫨鐨勬簮瀵硅薄,甯﹀垎椤典俊鎭�
+     * @return
+     * @throws PLException
+     */
+    DataGrid<PLUILayout> getUILayoutDatasByPage(BaseQueryObject baseQueryObject)throws Throwable;
+
+    /**
+     * 閫夋嫨妯℃澘涓嬫媺鏌ヨ锛坱emplateType涓鸿〃鏍笺�佽〃鍗曘�佹爲琛ㄦ椂鐨勯�夋嫨瀵硅薄涓嬫媺鏌ヨ锛�
+     * @param baseQueryObject
+     * @return
+     * @throws PLException
+     */
+    DataGrid<PortalVI> getPortalVIDatasByPage(BaseQueryObject baseQueryObject) throws Throwable;
+
+    /**
+     * 鏌ヨ妯℃澘涓嬫媺鏌ヨ
+     * @param baseQueryObject
+     * @return
+     * @throws PLException
+     */
+    DataGrid<QTInfo> getQTInfoDatasByPage(BaseQueryObject baseQueryObject)throws Throwable;
+
+    /**
+     * 閫氳繃涓氬姟绫诲瀷鑾峰彇UI涓婁笅鏂囧寘鍚叾涓嬪叧鑱旂殑鍖哄煙瀹氫箟>椤甸潰瀹氫箟绛夋墍鏈夊叧鑱旀暟鎹紝褰掔撼鎴恡ree缁撴瀯
+     * @param btmName 涓氬姟绫诲瀷鍚嶇О
+     * @param level 鏌ヨ鍒伴偅涓眰绾т负姝紙ui銆乼ap銆乸ageDef锛�
+     * @return
+     */
+    Tree getAllLevelTreeByBtm(String btmName,String level) throws PLException;
+
+    /**
+     * 鍏嬮殕鎸夐挳
+     * @param uiCloneVO
+     * @return
+     * @throws Throwable
+     */
+    BaseResult cloneTabButton(UICloneVO uiCloneVO)throws Throwable;
+
+    /**
+     * 鍏嬮殕椤电
+     * @param uiCloneVO
+     * @return
+     * @throws Throwable
+     */
+    BaseResult clonetabPage(UICloneVO uiCloneVO)throws Throwable;
+
+    /**
+     * 鍏嬮殕椤甸潰瀹氫箟
+     * @param uiCloneVO
+     * @return
+     * @throws Throwable
+     */
+    BaseResult clonePageDef(UICloneVO uiCloneVO)throws Throwable;
 
 }

--
Gitblit v1.9.3