소스 검색

no message

FengChaoYu 6 달 전
부모
커밋
901b32eb88
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      mall-server-api/src/main/java/com/gree/mall/manager/logic/admin/AdminUserLogic.java

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