From 72c7bbd66b8456db7dabf0dbc15f7aa9c2af2b9d Mon Sep 17 00:00:00 2001 From: dangsn <dangsn@chicecm.com> Date: 星期三, 05 六月 2024 14:53:54 +0800 Subject: [PATCH] 项目引用调整 --- Source/platformProject/vci-platform-web/src/main/java/com/vci/frameworkcore/compatibility/impl/SmFunctionQueryServicePlatformImpl.java | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Source/platformProject/vci-platform-web/src/main/java/com/vci/frameworkcore/compatibility/impl/SmFunctionQueryServicePlatformImpl.java b/Source/platformProject/vci-platform-web/src/main/java/com/vci/frameworkcore/compatibility/impl/SmFunctionQueryServicePlatformImpl.java index 7b28e76..58977d3 100644 --- a/Source/platformProject/vci-platform-web/src/main/java/com/vci/frameworkcore/compatibility/impl/SmFunctionQueryServicePlatformImpl.java +++ b/Source/platformProject/vci-platform-web/src/main/java/com/vci/frameworkcore/compatibility/impl/SmFunctionQueryServicePlatformImpl.java @@ -2,9 +2,8 @@ import com.alibaba.fastjson.JSONObject; import com.vci.client.common.providers.ServiceProvider; -import com.vci.corba.common.VCIError; +import com.vci.corba.common.PLException; import com.vci.corba.framework.data.FunctionInfo; -import com.vci.corba.portal.data.PLTabPage; import com.vci.corba.portal.data.PLUILayout; import com.vci.frameworkcore.compatibility.ISmFunctionQueryService; import com.vci.frameworkcore.enumpck.ResourceControlTypeEnum; @@ -29,7 +28,6 @@ import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; -import plm.bs.bom.clientobject.ClientBusinessObject; import java.util.*; import java.util.stream.Collectors; @@ -238,7 +236,7 @@ * @return 鑿滃崟锛屽寘鍚笂涓嬬骇 */ @Override - public List<MenuVO> treeCurrentUserMenu(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws VCIError { + public List<MenuVO> treeCurrentUserMenu(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws PLException { SessionInfo sessionInfo = WebUtil.getCurrentUserSessionInfoNotException(); // if(sessionInfo == null || CollectionUtils.isEmpty(sessionInfo.getFunctionOids())){ // return new ArrayList<Tree>(); @@ -249,6 +247,7 @@ // PortalServicePrx uiService = ServiceProvider.getUIService(); // FrameworkServicePrx frameService = ServiceProvider.getFrameService(); FunctionInfo[] menus = ServiceProvider.getFrameService().getModuleListByParentId("modelManagmentNode", true); +// FunctionInfo[] menus = ServiceProvider.getFrameService().("modelManagmentNode", true); // PLAction[] allPLAction = uiService.getAllPLAction(); List<MenuVO> functionVOList = new ArrayList<>(); @@ -289,7 +288,7 @@ return functionVOList.stream().sorted(Comparator.comparing(s -> s.getSort())).collect(Collectors.toList()); } - public List<MenuVO> findChildFunctionVO(String parentOid) throws VCIError { + public List<MenuVO> findChildFunctionVO(String parentOid) throws PLException { FunctionInfo[] menus = ServiceProvider.getFrameService().getModuleListByParentId(parentOid, true); List<MenuVO> functionVOList = new ArrayList<>(); for (FunctionInfo menu : menus) { @@ -329,7 +328,7 @@ @Override - public UIContentVO getUIContentByBtmTypeAndId(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws VCIError { + public UIContentVO getUIContentByBtmTypeAndId(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws PLException { SessionInfo sessionInfo = WebUtil.getCurrentUserSessionInfoNotException(); // if(sessionInfo == null || CollectionUtils.isEmpty(sessionInfo.getFunctionOids())){ // return new ArrayList<Tree>(); @@ -570,7 +569,7 @@ if(!CollectionUtils.isEmpty(functionVOS)){ functionVOList.addAll(functionVOS); String sql = "select plfuncoid,plroleoid from plroleright where plroleoid in (" + WebUtil.toInSql(roleOids.toArray(new String[0])) + ")"; - List<ClientBusinessObject> cbos = boService.queryBySql(sql, null); + List<com.vci.client.bof.ClientBusinessObject> cbos = boService.queryBySql(sql, null); if(!CollectionUtils.isEmpty(cbos)){ cbos.stream().forEach(cbo->{ String roleOid = cbo.getAttributeValue("plroleoid"); -- Gitblit v1.9.3