From a80224d1192829c87f4fe43cf0c2ccdb1199bb6b Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Thu, 24 Nov 2022 18:03:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E7=94=A8=E6=88=B7=E7=BB=84=E5=90=8E=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E4=BA=BA=E4=BC=9A=E8=A2=AB=E6=B8=85=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020250 --user=李玉号 【系统设置】用户组与权限-编辑-操作人会被清空 https://www.tapd.cn/55049933/s/1304842 --- .../src/main/java/io/metersphere/service/GroupService.java | 1 + .../src/main/java/io/metersphere/service/GroupService.java | 1 + 2 files changed, 2 insertions(+) diff --git a/project-management/backend/src/main/java/io/metersphere/service/GroupService.java b/project-management/backend/src/main/java/io/metersphere/service/GroupService.java index 4ceab97edd..01e0eff00c 100644 --- a/project-management/backend/src/main/java/io/metersphere/service/GroupService.java +++ b/project-management/backend/src/main/java/io/metersphere/service/GroupService.java @@ -149,6 +149,7 @@ public class GroupService { Group group = new Group(); request.setScopeId(null); BeanUtils.copyBean(group, request); + group.setCreator(SessionUtils.getUserId()); group.setUpdateTime(System.currentTimeMillis()); groupMapper.updateByPrimaryKeySelective(group); } diff --git a/system-setting/backend/src/main/java/io/metersphere/service/GroupService.java b/system-setting/backend/src/main/java/io/metersphere/service/GroupService.java index 15d5c5bfcb..2add8fbc63 100644 --- a/system-setting/backend/src/main/java/io/metersphere/service/GroupService.java +++ b/system-setting/backend/src/main/java/io/metersphere/service/GroupService.java @@ -147,6 +147,7 @@ public class GroupService { Group group = new Group(); request.setScopeId(null); BeanUtils.copyBean(group, request); + group.setCreator(SessionUtils.getUserId()); group.setUpdateTime(System.currentTimeMillis()); groupMapper.updateByPrimaryKeySelective(group); }