From 68fd566d21b3efc3a670a5295289b1801f5a4155 Mon Sep 17 00:00:00 2001
From: ludc <ludc@vci-tech.com>
Date: 星期四, 16 一月 2025 18:18:55 +0800
Subject: [PATCH] 流程部署接口上传

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebUIController.java |   38 +++++++++++++++++---------------------
 1 files changed, 17 insertions(+), 21 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebUIController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebUIController.java
index 93a5a43..46ebfc6 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebUIController.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebUIController.java
@@ -1,14 +1,16 @@
 package com.vci.web.controller;
 
 import com.vci.corba.common.PLException;
-import com.vci.starter.web.annotation.controller.VciUnCheckRight;
-import com.vci.starter.web.annotation.log.VciBusinessLog;
-import com.vci.starter.web.pagemodel.BaseResult;
 import com.vci.pagemodel.UIContentVO;
 import com.vci.pagemodel.UIFormDefineVO;
 import com.vci.pagemodel.UITableDefineVO;
+import com.vci.starter.web.annotation.controller.VciUnCheckRight;
+import com.vci.starter.web.annotation.log.VciBusinessLog;
+import com.vci.starter.web.pagemodel.BaseResult;
+import com.vci.starter.web.util.VciBaseUtil;
 import com.vci.web.service.UIEngineServiceI;
-import com.vci.web.service.impl.WebInitServiceImpl;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -31,10 +33,9 @@
 	private UIEngineServiceI uiService;
 
 	/**
-	 * 鍒濆鍖�
+	 * 鏃ュ織
 	 */
-	@Autowired
-	private WebInitServiceImpl initService;
+	private Logger logger = LoggerFactory.getLogger(getClass());
 
 	/**
 	 * 鑾峰彇UI涓婁笅鏂囩殑瀹氫箟
@@ -44,8 +45,15 @@
 	 */
 	@GetMapping("/getUIContentByBtmTypeAndId")
 	@VciUnCheckRight
-	public UIContentVO getUIContentByBtmTypeAndId(String btmType,String id){
-		return uiService.getUIContentByBtmTypeAndId(btmType,id);
+	public BaseResult getUIContentByBtmTypeAndId(String btmType,String id){
+		try {
+			return BaseResult.success(uiService.getUIContentByBtmTypeAndId(btmType,id));
+		} catch (PLException e) {
+			e.printStackTrace();
+			String exceptionMessage = "鑾峰彇UI涓婁笅鏂囩殑瀹氫箟鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
+			logger.error(exceptionMessage);
+			return BaseResult.fail(exceptionMessage);
+		}
 	}
 
 	/**
@@ -69,18 +77,6 @@
 	@GetMapping("/getTableDefineById")
 	public UITableDefineVO getTableDefineById(String btmType,String id) throws PLException {
 		return uiService.getTableById(btmType,id);
-	}
-
-	/**
-	 * 娓呴櫎缂撳瓨
-	 * @return 鎵ц缁撴灉
-	 */
-	@GetMapping("/clearCache")
-	public BaseResult clearCache(){
-		//鏈嶅姟绔偅涓紝涓�瑷�闅惧敖
-		initService.clearAllCache();
-		initService.initServerCache();
-		return BaseResult.success();
 	}
 	
 

--
Gitblit v1.9.3