宋悦 7 năm trước cách đây
mục cha
commit
0e4692734e

+ 1 - 1
core-api/src/main/java/cn/com/qmth/examcloud/service/core/service/OrgService.java

@@ -104,7 +104,7 @@ public class OrgService {
 	 * @param tempOrg
      */
 	private void createOrgUser(Org tempOrg){
-		User user = new User(tempOrg.getName(), UserScope.ORG, tempOrg.getRootId(), tempOrg.getParentId(), UserType.NOT_STUDENT);
+		User user = new User(tempOrg.getName(), UserScope.ORG, tempOrg.getRootId(), tempOrg.getId(), UserType.NOT_STUDENT);
 		user.setLoginName(tempOrg.getCode());
 		user.setEnable(true);
 		user.setCreateTime(new Date());