Browse Source

注册修改

anderx 7 years ago
parent
commit
83863291a8

+ 2 - 0
src/main/java/com/goafanti/user/controller/UserRegisterController.java

@@ -90,6 +90,7 @@ public class UserRegisterController extends BaseController {
 			us.setPassword(passwordUtil.getEncryptPwd(us));
 			us.setNickname(user.getUnitName());
 			us.setSource(AFTConstants.USER_SOURCE_REGISTER);
+			us.setType(user.getType());
 			us.setStatus(AFTConstants.USER_STATUS_NORMAL);
 			us.setShareType(AFTConstants.USER_SHARE_PUBLIC);
 			us.setIdentifyName(StringUtils.isBlank(user.getUnitName())?"":user.getUnitName());
@@ -142,6 +143,7 @@ public class UserRegisterController extends BaseController {
 			us.setUpdateTime(now.getTime());
 			us.setPassword(passwordUtil.getEncryptPwd(us));
 			us.setNickname(user.getUnitName());
+			us.setType(user.getType());
 			us.setSource(AFTConstants.USER_SOURCE_REGISTER);
 			us.setStatus(AFTConstants.USER_STATUS_NORMAL);
 			us.setShareType(AFTConstants.USER_SHARE_PUBLIC);