From 56de7a42d2567ce72885be8ebb1d1250d68ddd1b Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 16 八月 2024 17:53:34 +0800
Subject: [PATCH] 业务类型接口联调调整,首页系统模块配置查询接口上传

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/SmFunctionController.java |   48 +++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 41 insertions(+), 7 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 a2272a4..7e9968d 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
@@ -3,11 +3,15 @@
 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.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.web.pageModel.UIContentVO;
+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;
 import org.springframework.web.bind.annotation.*;
 
@@ -29,16 +33,38 @@
 	@Autowired
 	private ISmFunctionQueryService functionQueryService;
 
+	/**
+	 * 鏃ュ織
+	 */
+	private Logger logger = LoggerFactory.getLogger(getClass());
 
    /**
     * 鑾峰彇褰撳墠鐢ㄦ埛鐨勮彍鍗�
     * @param treeQueryObject 鏍戞煡璇㈠璞�
     * @return  鏍戣妭鐐癸紝鍑虹幇閿欒浼氬湪寮傚父澶勭悊鍣ㄤ腑缁熶竴杩斿洖Json
     */
-    @VciUnCheckRight
 	@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);
+		}
 	}
 
 	/**
@@ -92,7 +118,15 @@
 		return new DataGrid<>();
 	}
 
-
-
-	
+	/**
+	 * 鑾峰彇褰撳墠鐢ㄦ埛鐨勮彍鍗�
+	 * @param treeQueryObject 鏍戞煡璇㈠璞�
+	 * @return  鏍戣妭鐐癸紝鍑虹幇閿欒浼氬湪寮傚父澶勭悊鍣ㄤ腑缁熶竴杩斿洖Json
+	 */
+	@VciUnCheckRight
+	@GetMapping("/getTreeMyMenu")
+	@ResponseBody
+	public List<MenuVO> getTreeMyMenu(TreeQueryObject treeQueryObject) throws PLException {
+		return functionQueryService.treeCurrentUserMenu(treeQueryObject, ResourceControlTypeEnum.BS);
+	}
 }

--
Gitblit v1.9.3