From 2f8555410f031e66ee91ee60f64d1cc9a34cc7d9 Mon Sep 17 00:00:00 2001
From: dangsn <dangsn@vci-tech.com>
Date: 星期三, 25 十二月 2024 17:44:38 +0800
Subject: [PATCH] 1、首页配置 2、调整BaseModelDTO的位置

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java
index 9de09f6..f241c1e 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java
@@ -13,6 +13,7 @@
 import com.vci.model.SmRoleForPlatform1;
 import com.vci.omd.utils.ObjectTool;
 import com.vci.pagemodel.MenuVO;
+import com.vci.pagemodel.RoleRightVO;
 import com.vci.pagemodel.SmFunctionVO;
 import com.vci.pagemodel.UIContentVO;
 import com.vci.starter.web.constant.QueryOptionConstant;
@@ -24,6 +25,7 @@
 import com.vci.web.properties.JsonConfigReader;
 import com.vci.web.service.ISmFunctionQueryService;
 import com.vci.web.service.UIEngineServiceI;
+import com.vci.web.service.UIManagerServiceI;
 import com.vci.web.service.WebBoServiceI;
 import com.vci.starter.web.util.Lcm.Func;
 import com.vci.web.util.PlatformClientUtil;
@@ -87,13 +89,16 @@
 	private ISmFunctionQueryService self;
 
     @Autowired
-    private  UIEngineServiceI uiEngineServiceI;
+    private UIEngineServiceI uiEngineServiceI;
+
+    @Autowired
+    private UIManagerServiceI uiManagerServiceI;
+
+    @Autowired
+    private RightControlUtil rightControlUtil;
 
     @Autowired
     private PlatformClientUtil platformClientUtil;
-
-    @Autowired
-    RightControlUtil rightControlUtil;
 
     /**
      * 鏌ヨ鎵�鏈夌殑鍔熻兘
@@ -363,7 +368,7 @@
             }
         }
 
-        functionVO.setBtmname("function");
+        functionVO.setBtmName("function");
         //鑰佺殑鏁版嵁閲屽垱寤轰汉锛屾渶鍚庝慨鏀逛汉绛夐兘娌℃湁
         return functionVO;
     }
@@ -708,13 +713,14 @@
     @Override
     public UIContentVO getUIContentByBtmTypeAndId(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws PLException {
         SessionInfo sessionInfo = WebUtil.getCurrentUserSessionInfoNotException();
-        if(resourceControlTypeEnum == null){
+        /* if(resourceControlTypeEnum == null){
             resourceControlTypeEnum = ResourceControlTypeEnum.BS;
-        }
+        }*/
+        Map<String, RoleRightVO> roleRightMap = uiManagerServiceI.getRoleRightMap(null);
         for (PLUILayout allPLUILayout : platformClientUtil.getUIService().getAllPLUILayouts()) {
             if(treeQueryObject.getConditionMap().getOrDefault("type","").equals(allPLUILayout.plRelatedType)
                     && treeQueryObject.getConditionMap().getOrDefault("context","").equals(allPLUILayout.plCode)){
-                return uiEngineServiceI.UIContentDO2VO(allPLUILayout,true);
+                return uiEngineServiceI.UIContentDO2VO(allPLUILayout,true,roleRightMap);
             }
         }
         return null;

--
Gitblit v1.9.3