From e04e10a0765e1d32535d91292763289adf43d651 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 09 九月 2024 17:49:33 +0800
Subject: [PATCH] 按钮设计对话框:查询、添加、修改接口上传。

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java |   54 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 53 insertions(+), 1 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java
index fe7860b..a0795b9 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java
@@ -5,6 +5,7 @@
 import com.vci.corba.portal.data.PLTabPage;
 import com.vci.corba.portal.data.PLUILayout;
 import com.vci.dto.UIAuthorDTO;
+import com.vci.pagemodel.PLDefinationVO;
 import com.vci.pagemodel.PLUILayoutCloneVO;
 import com.vci.starter.web.annotation.log.VciBusinessLog;
 import com.vci.starter.web.exception.VciBaseException;
@@ -252,7 +253,7 @@
     }
 
     /**
-     * 鍒犻櫎鏁版嵁
+     * 鍒犻櫎鍖哄煙瀹氫箟鏁版嵁
      * @param oids
      * @return
      */
@@ -288,6 +289,57 @@
     }
 
     /**
+     * 娣诲姞椤甸潰瀹氫箟
+     * @param pdVO
+     * @return 淇濆瓨缁撴灉
+     */
+    @PostMapping("/addPageDefination")
+    public BaseResult addPageDefination(@RequestBody PLDefinationVO pdVO){
+        try {
+            return uiManagerService.addPageDefination(pdVO) ? BaseResult.success("椤甸潰瀹氫箟娣诲姞鎴愬姛锛�"):BaseResult.fail("椤甸潰瀹氫箟娣诲姞澶辫触锛�");
+        } catch (Throwable e) {
+            e.printStackTrace();
+            String exceptionMessage = "椤甸潰瀹氫箟娣诲姞鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
+            logger.error(exceptionMessage);
+            return BaseResult.fail(exceptionMessage);
+        }
+    }
+
+    /**
+     * 淇敼椤甸潰瀹氫箟鏁版嵁
+     * @param  pdVO
+     * @return 淇敼缁撴灉
+     */
+    @PutMapping("/updatePageDefination")
+    public BaseResult updatePageDefination(@RequestBody PLDefinationVO pdVO){
+        try {
+            return uiManagerService.updatePageDefination(pdVO) ? BaseResult.success("淇敼椤甸潰瀹氫箟鎴愬姛锛�"):BaseResult.fail("淇敼椤甸潰瀹氫箟澶辫触锛�");
+        } catch (Throwable e) {
+            e.printStackTrace();
+            String exceptionMessage = "淇敼椤甸潰瀹氫箟鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
+            logger.error(exceptionMessage);
+            return BaseResult.fail(exceptionMessage);
+        }
+    }
+
+    /**
+     * 鍒犻櫎椤甸潰瀹氫箟鏁版嵁
+     * @param oids
+     * @return
+     */
+    @DeleteMapping("/delPageDefination")
+    public BaseResult delPageDefination(String[] oids){
+        try {
+            return uiManagerService.delPageDefination(oids) ? BaseResult.success("鍒犻櫎椤甸潰瀹氫箟鎴愬姛锛�"):BaseResult.fail("鍒犻櫎椤甸潰瀹氫箟鏁版嵁澶辫触锛�");
+        } catch (PLException e) {
+            e.printStackTrace();
+            String exceptionMessage = "鍒犻櫎椤甸潰瀹氫箟鏁版嵁鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
+            logger.error(exceptionMessage);
+            return BaseResult.fail(exceptionMessage);
+        }
+    }
+
+    /**
      * 鏍规嵁瑙掕壊鑾峰彇UI/琛ㄥ崟/鎸夐挳鐨勬潈闄�.
      * @param baseQueryObject
      * @return

--
Gitblit v1.9.3