fix(系统设置): 编辑用户组后操作人会被清空的问题
--bug=1020250 --user=李玉号 【系统设置】用户组与权限-编辑-操作人会被清空 https://www.tapd.cn/55049933/s/1304842
This commit is contained in:
parent
842d6abec7
commit
a80224d119
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue