From c65c0b31e6dfd01db744a450dda3816f65eebbc1 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期四, 05 十二月 2024 11:41:10 +0800 Subject: [PATCH] 1、修改使用当前用户的类型查询用户接口,可以传入用户类型。 2、增加根据用户主键获取关联的部门接口。 3、增加查询授权结果接口。 4、增加查询业务对象接口。 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java | 85 +++++++++++++++++++++++++++++++++++++++--- 1 files changed, 79 insertions(+), 6 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 f3707d7..055a527 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 @@ -9,6 +9,7 @@ import com.vci.pagemodel.PLDefinationVO; import com.vci.pagemodel.PLTabButtonVO; import com.vci.pagemodel.PLUILayoutCloneVO; +import com.vci.pagemodel.UICloneVO; import com.vci.starter.web.annotation.log.VciBusinessLog; import com.vci.starter.web.exception.VciBaseException; import com.vci.starter.web.pagemodel.BaseQueryObject; @@ -19,7 +20,7 @@ import com.vci.starter.web.util.VciBaseUtil; import com.vci.web.service.OsBtmServiceI; import com.vci.web.service.UIManagerServiceI; -import com.vci.web.util.Func; +import com.vci.starter.web.util.Lcm.Func; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -32,7 +33,6 @@ import java.io.IOException; import java.util.Arrays; import java.util.Date; -import java.util.List; import java.util.Map; /** @@ -517,7 +517,7 @@ * @param tabButtonVO * @return 淇濆瓨缁撴灉 */ - @PostMapping("/addTapButton") + @PostMapping("/addTabButton") public BaseResult addTabButton(@RequestBody PLTabButtonVO tabButtonVO){ try { return uiManagerService.addTabButton(tabButtonVO); @@ -534,7 +534,7 @@ * @param tabButtonVO * @return 淇敼缁撴灉 */ - @PutMapping("/updateTapbutton") + @PutMapping("/updateTabButton") public BaseResult updateTabButton(@RequestBody PLTabButtonVO tabButtonVO){ try { return uiManagerService.updateTabButton(tabButtonVO); @@ -551,7 +551,7 @@ * @param tabButtonVO * @return */ - @DeleteMapping("/deleteTapButton") + @DeleteMapping("/deleteTabButton") public BaseResult deleteTabButton(@RequestBody PLTabButtonVO tabButtonVO){ try { return uiManagerService.deleteTabButton(tabButtonVO) ? BaseResult.success("鍒犻櫎鍗曚釜鎸夐挳閰嶇疆鎴愬姛锛�"):BaseResult.fail("鍒犻櫎鍗曚釜鎸夐挳閰嶇疆澶辫触锛�"); @@ -606,7 +606,7 @@ @VciBusinessLog(operateName = "UI鎺堟潈锛堟爲褰㈢粨鏋勶級") public BaseResult getUIAuthor(BaseQueryObject baseQueryObject){ try { - return BaseResult.dataList( uiManagerService.getUIAuthor(baseQueryObject)); + return BaseResult.dataList(uiManagerService.getUIAuthor(baseQueryObject)); }catch (Throwable e) { e.printStackTrace(); String exceptionMessage = "UI鎺堟潈鍔犺浇鍑虹幇閿欒锛屽師鍥狅細" + VciBaseUtil.getExceptionMessage(e); @@ -614,6 +614,25 @@ return BaseResult.fail(exceptionMessage); } } + + /** + * 鏍规嵁瑙掕壊涓婚敭鑾峰彇宸叉巿鏉冪殑淇℃伅 + * @param roleId + * @return + * @throws PLException + */ + /* @GetMapping( "/getRightListByRoleId") + @VciBusinessLog(operateName = "鏍规嵁瑙掕壊涓婚敭鑾峰彇宸叉巿鏉冪殑UI涓婚敭闆嗗悎") + public BaseResult getRightListByRoleId(String roleId){ + try { + return BaseResult.success(uiManagerService.getRightListByRoleId(roleId)); + }catch (Throwable e) { + e.printStackTrace(); + String exceptionMessage = "鑾峰彇宸叉巿鏉冧俊鎭椂閿欒锛屽師鍥狅細" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + }*/ /*** * @param uiAuthorDTO 鍕鹃�夌殑闇�瑕佷繚瀛樼殑鏁版嵁瀵硅薄 @@ -650,4 +669,58 @@ } } + /** + * 鍏嬮殕椤电 + * @param uiCloneVO + * @return + * @throws Throwable + */ + @PostMapping("/clonetabPage") + public BaseResult clonetabPage(@RequestBody UICloneVO uiCloneVO){ + try { + return uiManagerService.clonetabPage(uiCloneVO); + } catch (Throwable e) { + e.printStackTrace(); + String exceptionMessage = "鍏嬮殕椤电鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + } + + /** + * 鍏嬮殕椤甸潰瀹氫箟 + * @param uiCloneVO + * @return + * @throws Throwable + */ + @PostMapping("/clonePageDef") + public BaseResult clonePageDef(@RequestBody UICloneVO uiCloneVO){ + try { + return uiManagerService.clonePageDef(uiCloneVO); + } catch (Throwable e) { + e.printStackTrace(); + String exceptionMessage = "鍏嬮殕椤甸潰瀹氫箟鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + } + + /** + * 鍏嬮殕鎸夐挳 + * @param uiCloneVO + * @return + * @throws Throwable + */ + @PostMapping("/cloneTabButton") + public BaseResult cloneTabButton(@RequestBody UICloneVO uiCloneVO){ + try { + return uiManagerService.cloneTabButton(uiCloneVO); + } catch (Throwable e) { + e.printStackTrace(); + String exceptionMessage = "鍏嬮殕鎸夐挳閰嶇疆鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + } + } -- Gitblit v1.9.3