From 2a06a2a8aed92fd2eb4b4570b79f304a1c0caf6d Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期四, 12 九月 2024 09:39:37 +0800 Subject: [PATCH] 1、Action树查询接口增加id。 2、增加角色列表接口 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 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 d686499..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 */ @@ -268,6 +269,76 @@ } } + //椤甸潰璁捐鐩稿叧鎺ュ彛 + /** + * 鏌ヨ椤甸潰璁捐瀹氫箟 + * @param pageContextOId + * @return + */ + @GetMapping( "/getPLPageDefinations") + @VciBusinessLog(operateName = "鏌ヨ椤甸潰璁捐瀹氫箟") + public BaseResult<DataGrid> getPLPageDefinations(String pageContextOId){ + try { + return BaseResult.dataGrid(uiManagerService.getPLPageDefinations(pageContextOId)); + }catch (Exception e) { + e.printStackTrace(); + String exceptionMessage = "鏌ヨ椤甸潰璁捐瀹氫箟鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + } + + /** + * 娣诲姞椤甸潰瀹氫箟 + * @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 -- Gitblit v1.9.3