Browse Source

no message

FengChaoYu 6 months ago
parent
commit
901b32eb88

+ 3 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/admin/AdminUserLogic.java

@@ -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());