From aecacfb404d19749260189ab1d4ee90efc92ae24 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 15 十月 2024 14:46:52 +0800
Subject: [PATCH] UI授权树查询接口优化。添加按角色查询已授权UI接口。

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java |   40 +++++++++++++++++++++++++++++++---------
 1 files changed, 31 insertions(+), 9 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java
index 964b250..c489099 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsBtmServiceI.java
@@ -4,10 +4,7 @@
 import com.vci.corba.omd.btm.BizType;
 import com.vci.dto.OsBtmTypeDTO;
 import com.vci.model.IndexObject;
-import com.vci.pagemodel.OsBtmTypeAttributeVO;
-import com.vci.pagemodel.OsBtmTypeVO;
-import com.vci.pagemodel.OsERVO;
-import com.vci.pagemodel.OsUsedAttributeVO;
+import com.vci.pagemodel.*;
 import com.vci.starter.web.pagemodel.BaseResult;
 import com.vci.starter.web.pagemodel.DataGrid;
 import com.vci.starter.web.pagemodel.PageHelper;
@@ -49,6 +46,11 @@
      * @return 涓氬姟绫诲瀷瀵硅薄
      */
     List<OsBtmTypeVO> selectAllBtm();
+    /**
+     * 鏌ヨ鎵�鏈夌殑涓氬姟绫诲瀷
+     * @return 涓氬姟绫诲瀷瀵硅薄
+     */
+    List<OsBtmTypeVO> selectAllBtm(Map<String, OsAttributeVO> attributeVOMap);
 
     /**
      * 鑾峰彇鍚嶅瓧浠ilter寮�濮嬬殑涓氬姟绫诲瀷(for 鏌ヨ)锛屼富瑕佺敤浜庡睘鎬ф睜鐨勪笟鍔$被鍨嬮�夋嫨瀵硅瘽妗�
@@ -60,24 +62,38 @@
     BizType[] getBizTypes(String btmName) throws PLException;
 
     /**
+     * 涓氬姟绫诲瀷鍒楄〃鏌ヨ锛岄潪鏍戠粨鏋勶細鐢ㄤ簬UI瀹氫箟宸︿晶涓氬姟绫诲瀷鏌ヨ锛屽彧杩斿洖name鍜宭able
+     * @param btmName
+     * @return
+     * @throws PLException
+     */
+    Tree getBizTree(String btmName) throws PLException;
+
+    /**
      * 鏌ヨ鎵�鏈夌殑涓氬姟绫诲瀷鏄犲皠
      * @return key 鏄笟鍔$殑鑻辨枃鍚嶇О鐨勫皬鍐�
      */
     Map<String,OsBtmTypeVO> selectAllBtmMap();
 
     /**
+     * 鏌ヨ鎵�鏈夌殑涓氬姟绫诲瀷鏄犲皠
+     * @return key 鏄笟鍔$殑鑻辨枃鍚嶇О鐨勫皬鍐�
+     */
+    Map<String,OsBtmTypeVO> selectAllBtmMap(Map<String, OsAttributeVO> attributeVOMap);
+
+    /**
      * 鏁版嵁瀵硅薄杞崲涓烘樉绀哄璞�
      * @param btmItems 鏁版嵁瀵硅薄
      * @return 鏄剧ず瀵硅薄
      */
-    List<OsBtmTypeVO> btmDO2VOs(Collection<BizType> btmItems);
+    List<OsBtmTypeVO> btmDO2VOs(Collection<BizType> btmItems,Map<String, OsAttributeVO> attributeVOMap);
 
     /**
      * 鏁版嵁瀵硅薄杞崲涓烘樉绀哄璞�
      * @param btmItem 鏁版嵁瀵硅薄
      * @return 鏄剧ず瀵硅薄
      */
-    OsBtmTypeVO btmDO2VO(BizType btmItem);
+    OsBtmTypeVO btmDO2VO(BizType btmItem, Map<String, OsAttributeVO> attributeVOMap);
 
     /**
      * 浣跨敤缂栧彿鑾峰彇涓氬姟绫诲瀷
@@ -92,6 +108,12 @@
      * @return 涓氬姟绫诲瀷
      */
     OsBtmTypeVO getBtmById(String id);
+    /**
+     * 浣跨敤缂栧彿鑾峰彇涓氬姟绫诲瀷
+     * @param id 缂栧彿
+     * @return 涓氬姟绫诲瀷
+     */
+    OsBtmTypeVO getBtmById(String id, Map<String, OsAttributeVO> attributeVOMap);
 
     /**
      * 鑾峰彇涓氬姟绫诲瀷鐨勫湪鍝釜灞炴�т腑浣跨敤
@@ -114,14 +136,14 @@
      * @param btmId 涓氬姟绫诲瀷鐨勭紪鍙�
      * @return 灞炴�х殑鍐呭
      */
-    List<OsBtmTypeAttributeVO> listAttributeByBtmId(String btmId);
+    List<OsBtmTypeAttributeVO> listAttributeByBtmId(String btmId) throws PLException;
 
     /**
      * 鏍规嵁涓氬姟绫诲瀷鑾峰彇鍖呭惈鐨勫睘鎬�--鍖呭惈鍩虹灞炴��
      * @param btmId 涓氬姟绫诲瀷鐨勭紪鍙�
      * @return 灞炴�х殑鍐呭
      */
-    List<OsBtmTypeAttributeVO> listAttributeByBtmIdHasDefault(String btmId);
+    List<OsBtmTypeAttributeVO> listAttributeByBtmIdHasDefault(String btmId) throws PLException;
 
     /**
      * 鍙傜収涓氬姟绫诲瀷
@@ -276,7 +298,7 @@
     /**
      * 瀵煎嚭涓氬姟绫诲瀷
      * oid 涓氬姟绫诲瀷鍚嶇О
-     * @return 鍒涘缓缁撴灉
+     * @return
      */
     void expData(String oid, HttpServletResponse response) throws PLException, IOException;
 

--
Gitblit v1.9.3