From 7d7b42822d9a11f8fa107fc3bbbbd518f0a7ef91 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期六, 09 十一月 2024 01:17:28 +0800 Subject: [PATCH] 1、修复系统功能模块-》管理功能模块修改是否有效功能修改无效问题。 2、Action管理,Action分类删除报错问题修改。 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsActionServiceImpl.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsActionServiceImpl.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsActionServiceImpl.java index 80c21c9..a79ae49 100644 --- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsActionServiceImpl.java +++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsActionServiceImpl.java @@ -98,6 +98,7 @@ PLActionCls pac = new PLActionCls(); pac.name = pLActionCls.getName(); pac.pid = pLActionCls.getPid(); + pac.id = pLActionCls.getId(); pac.description = pLActionCls.getDescription() == null ? "" : pLActionCls.getDescription(); pac.creator = WebUtil.getCurrentUserId(); pac.createTime = System.currentTimeMillis(); @@ -131,7 +132,7 @@ Map<String, List<PLActionCls>> allDataMap = Arrays.stream(clses).collect(Collectors.groupingBy(pl -> pl.pid)); for (PLActionCls cls : clses) { - if (StringUtils.isBlank(cls.pid)) { + if (StringUtils.isBlank(cls.pid) || cls.pid.equals("root")) { PLActionClsDTO parentDto = new PLActionClsDTO(); parentDto.setId(cls.id); parentDto.setName(cls.name); @@ -611,7 +612,10 @@ throw new PLException("500", new String[]{"璇ュ垎绫讳笅瀛樺湪瀛愬垎绫讳笉鑳藉垹闄わ紒\n璇峰垹闄ゆ鍒嗙被涓嬬殑瀛愬垎绫伙紒"}); } // 鎵ц鍒犻櫎鎿嶄綔 - String message = platformClientUtil.getUIService().deletePLActionClsById(dto.getId()); + PLActionCls actionCls = new PLActionCls(); + actionCls.id = dto.getId(); + actionCls.name = dto.getName(); + String message = platformClientUtil.getUIService().deletePLActionCls(actionCls); if (message.startsWith("0")) { throw new PLException("500", new String[]{"鍒犻櫎鍒嗙被澶辫触锛�" + message.substring(1)}); } @@ -672,7 +676,6 @@ } return res; } - /** * 澶勭悊鍙傛暟鍒楄〃 -- Gitblit v1.9.3