|
@@ -40,8 +40,7 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
* @param userAuthenticationVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public UserAuthenticationDTO userAuthentication(UserAuthenticationVO userAuthenticationVO) {
|
|
|
- UserAuthenticationDTO userAuthenticationDTO = new UserAuthenticationDTO();
|
|
|
+ public Map<Integer, Object> userAuthentication(UserAuthenticationVO userAuthenticationVO) {
|
|
|
Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
User user_old = userFacade.getById(userId);
|
|
|
User user = userFacade.findByName(userAuthenticationVO.getUserName());
|
|
@@ -102,10 +101,9 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
userAuthentication.setStatus(AuthStatusEnum.Authorizing.getKey()); //状态设为认证中
|
|
|
this.saveOrUpdate(userAuthentication);
|
|
|
|
|
|
- userAuthenticationDTO.setUser(user);
|
|
|
- userAuthenticationDTO.setOrganization(organization);
|
|
|
- userAuthenticationDTO.setUserAuthentication(userAuthentication);
|
|
|
- return userAuthenticationDTO;
|
|
|
+ Map<Integer, Object> map = new HashMap<>();
|
|
|
+ map.put(userAuthentication.getStatus(), AuthStatusEnum.Authorizing.getName());
|
|
|
+ return map;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -127,11 +125,6 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
userAuthenticationDTO.setUser(user);
|
|
|
userAuthenticationDTO.setOrganization(organization);
|
|
|
userAuthenticationDTO.setUserAuthentication(userAuthentication);
|
|
|
- Map<Integer, Object> organizationType = new HashMap<>();
|
|
|
- for (OrganizationTypeEnum item : OrganizationTypeEnum.values()) {
|
|
|
- organizationType.put(item.getKey(), item.getName());
|
|
|
- }
|
|
|
- userAuthenticationDTO.setOrganizationType(organizationType);
|
|
|
return userAuthenticationDTO;
|
|
|
}
|
|
|
|