|
@@ -425,6 +425,9 @@ public class AdminUserLogic {
|
|
|
(addUserRole = adminRoleService.getById(adminUser.getRoleId())) == null) {
|
|
|
throw new RemoteServiceException("请为用户选择角色");
|
|
|
}
|
|
|
+ if (curAdminUser.getType() == 0 && curAdminUser.getIsMaster()) {
|
|
|
+ adminUser.setMasterWebsitId(curAdminUser.getAdminWebsitIds().get(0));
|
|
|
+ }
|
|
|
adminUser.setRoleName(addUserRole.getName());
|
|
|
adminUser.setPassword(MD5Utils.md5(adminUser.getPassword()));
|
|
|
adminUser.setCreateTime(new Date());
|