From 28ca3d9f9e6e7eeeb7a7f2a7f50012350f3934c3 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 13 十一月 2024 18:07:11 +0800 Subject: [PATCH] 优化业务数据的查询接口;修改业务数据保存和编辑接口没有保存基础默认属性问题。 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsActionServiceImpl.java | 11 +++++++---- 1 files changed, 7 insertions(+), 4 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 6a05746..8f6454e 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 @@ -132,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); @@ -186,7 +186,8 @@ @Override public BaseResult getActionTableData(PLActionQueryDTO dto) throws PLException { Constraint[] consArray ; - if(StringUtils.isNotBlank(dto.getPlactioncls())){ + //杩欏効瑕佺敤!=null鎺у埗锛屾煡璇㈡湭鍒嗙被鑺傜偣鐨勬椂鍊欎紶鐨�"" + if(dto.getPlactioncls() != null){ consArray = new Constraint[7]; consArray[6] = new Constraint("plactioncls", dto.getPlactioncls().equals("root") ? "": dto.getPlactioncls()); }else { @@ -612,7 +613,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)}); } @@ -673,7 +677,6 @@ } return res; } - /** * 澶勭悊鍙傛暟鍒楄〃 -- Gitblit v1.9.3