wangwei 7 tahun lalu
induk
melakukan
7e9a622698

+ 3 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/provider/UserCloudServiceProvider.java

@@ -66,6 +66,8 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
 		trim(req);
 		Long rootOrgId = req.getRootOrgId();
 		String loginName = req.getLoginName();
+		String name = req.getName();
+
 		UserEntity userEntity = userRepo.findByRootOrgIdAndLoginName(rootOrgId, loginName);
 
 		if (null != userEntity) {
@@ -75,6 +77,7 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
 		userEntity = new UserEntity();
 		userEntity.setLoginName(loginName);
 		userEntity.setRootOrgId(rootOrgId);
+		userEntity.setName(name);
 		if (StringUtils.isBlank(req.getPassword())) {
 			userEntity.setPassword(Consts.DEFAULT_PASSWORD);
 		} else {