|
@@ -61,8 +61,8 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
}
|
|
|
//更新机构信息
|
|
|
QueryWrapper<Organization> qwOrganization = new QueryWrapper<>();
|
|
|
- qwOrganization.eq("name", userAuthenticationVO.getOrganization());
|
|
|
- qwOrganization.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
+ qwOrganization.eq("name", userAuthenticationVO.getOrganization()).
|
|
|
+ eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
Organization organization = organizationFacade.getOne(qwOrganization);
|
|
|
if (organization == null) {
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS,
|
|
@@ -81,8 +81,8 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
|
|
|
//更新验证信息
|
|
|
QueryWrapper<UserAuthentication> qwAuthentication = new QueryWrapper<>();
|
|
|
- qwAuthentication.eq("user_id", userId);
|
|
|
- qwAuthentication.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
+ qwAuthentication.eq("user_id", userId).
|
|
|
+ eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
UserAuthentication userAuthentication = this.getOne(qwAuthentication);
|
|
|
if (userAuthentication == null) {
|
|
|
userAuthentication = new UserAuthentication();
|
|
@@ -120,8 +120,8 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
user.setPassword(null);
|
|
|
Organization organization = organizationFacade.getByUserId(userId);
|
|
|
QueryWrapper<UserAuthentication> qw = new QueryWrapper<>();
|
|
|
- qw.eq("user_id", userId);
|
|
|
- qw.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
+ qw.eq("user_id", userId).
|
|
|
+ eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
UserAuthentication userAuthentication = this.getOne(qw);
|
|
|
UserAuthenticationDTO userAuthenticationDTO = new UserAuthenticationDTO();
|
|
|
userAuthenticationDTO.setUser(user);
|
|
@@ -143,8 +143,8 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
public Map<Integer, Object> getUserAuthenticationStatus() {
|
|
|
Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
QueryWrapper<UserAuthentication> qw = new QueryWrapper<>();
|
|
|
- qw.eq("user_id", userId);
|
|
|
- qw.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
+ qw.eq("user_id", userId).
|
|
|
+ eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
UserAuthentication userAuthentication = this.getOne(qw);
|
|
|
Map<Integer, Object> map = new HashMap<>();
|
|
|
if (userAuthentication == null) {
|
|
@@ -165,8 +165,8 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
public QueryAuthProgressDTO queryAuthProgress() {
|
|
|
Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
QueryWrapper<UserAuthentication> qw = new QueryWrapper<>();
|
|
|
- qw.eq("user_id", userId);
|
|
|
- qw.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
+ qw.eq("user_id", userId).
|
|
|
+ eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
UserAuthentication userAuthentication = this.getOne(qw);
|
|
|
|
|
|
QueryAuthProgressDTO queryAuthProgressDTO = new QueryAuthProgressDTO();
|