fix(系统设置): 编辑用户组后操作人会被清空的问题

--bug=1020250 --user=李玉号 【系统设置】用户组与权限-编辑-操作人会被清空
https://www.tapd.cn/55049933/s/1304842
This commit is contained in:
shiziyuan9527 2022-11-24 18:03:31 +08:00 committed by lyh
parent 6956335481
commit 25849e00b1
2 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,7 @@ public class GroupService {
Group group = new Group(); Group group = new Group();
request.setScopeId(null); request.setScopeId(null);
BeanUtils.copyBean(group, request); BeanUtils.copyBean(group, request);
group.setCreator(SessionUtils.getUserId());
group.setUpdateTime(System.currentTimeMillis()); group.setUpdateTime(System.currentTimeMillis());
groupMapper.updateByPrimaryKeySelective(group); groupMapper.updateByPrimaryKeySelective(group);
} }

View File

@ -147,6 +147,7 @@ public class GroupService {
Group group = new Group(); Group group = new Group();
request.setScopeId(null); request.setScopeId(null);
BeanUtils.copyBean(group, request); BeanUtils.copyBean(group, request);
group.setCreator(SessionUtils.getUserId());
group.setUpdateTime(System.currentTimeMillis()); group.setUpdateTime(System.currentTimeMillis());
groupMapper.updateByPrimaryKeySelective(group); groupMapper.updateByPrimaryKeySelective(group);
} }