From 9d92bb1d5698690bfd06fb93c668d9ae73300426 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 13 十二月 2024 13:05:09 +0800 Subject: [PATCH] 添加按钮权限查询接口。 修改UI页面定义的属性字段。 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/SmFunctionController.java | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 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 b264d82..6a7c534 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,13 +1,15 @@ 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.frameworkcore.pagemodel.MenuVO; -import com.vci.frameworkcore.pagemodel.SmFunctionVO; +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.pagemodel.*; -import com.vci.web.pageModel.UIContentVO; +import com.vci.pagemodel.UIContentVO; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -29,6 +31,10 @@ @Autowired private ISmFunctionQueryService functionQueryService; + /** + * 鏃ュ織 + */ + private Logger logger = LoggerFactory.getLogger(getClass()); /** * 鑾峰彇褰撳墠鐢ㄦ埛鐨勮彍鍗� @@ -41,6 +47,16 @@ } /** + * 鑾峰彇褰撳墠鐢ㄦ埛鐨勬墍鏈夋寜閽� + * @param treeQueryObject 鏍戞煡璇㈠璞� + * @return + */ + @GetMapping("/getAllButtons") + public BaseResult getAllButtons(TreeQueryObject treeQueryObject){ + return BaseResult.dataList(functionQueryService.buttons(treeQueryObject)); + } + + /** * 鑾峰彇褰撳墠鐢ㄦ埛鐨勮彍鍗� * @param treeQueryObject 鏍戞煡璇㈠璞� * @return 鏍戣妭鐐癸紝鍑虹幇閿欒浼氬湪寮傚父澶勭悊鍣ㄤ腑缁熶竴杩斿洖Json -- Gitblit v1.9.3