From c65c0b31e6dfd01db744a450dda3816f65eebbc1 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期四, 05 十二月 2024 11:41:10 +0800 Subject: [PATCH] 1、修改使用当前用户的类型查询用户接口,可以传入用户类型。 2、增加根据用户主键获取关联的部门接口。 3、增加查询授权结果接口。 4、增加查询业务对象接口。 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/SmFunctionController.java | 25 ++----------------------- 1 files changed, 2 insertions(+), 23 deletions(-) diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/SmFunctionController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/SmFunctionController.java index 7e9968d..c7d0a5a 100644 --- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/SmFunctionController.java +++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/SmFunctionController.java @@ -1,15 +1,13 @@ package com.vci.web.controller; import com.vci.corba.common.PLException; -import com.vci.frameworkcore.compatibility.ISmFunctionQueryService; -import com.vci.frameworkcore.enumpck.ResourceControlTypeEnum; +import com.vci.web.service.ISmFunctionQueryService; +import com.vci.web.enumpck.ResourceControlTypeEnum; import com.vci.pagemodel.MenuVO; import com.vci.pagemodel.SmFunctionVO; import com.vci.starter.web.annotation.controller.VciUnCheckRight; -import com.vci.starter.web.exception.VciBaseException; import com.vci.starter.web.pagemodel.*; import com.vci.pagemodel.UIContentVO; -import com.vci.starter.web.util.VciBaseUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -46,25 +44,6 @@ @GetMapping("/treeMyMenu") public List<MenuVO> treeMyMenu(TreeQueryObject treeQueryObject) throws PLException { return functionQueryService.treeCurrentUserMenu(treeQueryObject, ResourceControlTypeEnum.BS); - } - - /** - * 鑾峰彇褰撳墠妯″潡涓嬬殑瀛愭ā鍧� - * @param parentId - * @return - * @throws PLException - */ - @GetMapping("/getSysModelTreeMenuByPID") - @VciUnCheckRight - public List<MenuVO> getSysModelTreeMenuByPID(String parentId) { - try { - return functionQueryService.getSysModelTreeMenuByPID(parentId,true); - }catch (Exception e){ - e.printStackTrace(); - String errorMsg = "鏌ヨ瀛愭ā鍧楁椂鍑虹幇閿欒锛屽師鍥狅細"+VciBaseUtil.getExceptionMessage(e); - logger.error(errorMsg); - throw new VciBaseException(errorMsg); - } } /** -- Gitblit v1.9.3