|
@@ -177,7 +177,10 @@ public class AdminUserLogic {
|
|
|
|| (StringUtils.isBlank(adminUser.getAdminUserId()) && StringUtils.isEmpty(adminUser.getPassword()))) {
|
|
|
throw new RemoteServiceException("参数错误");
|
|
|
}
|
|
|
- Integer count = adminUserService.lambdaQuery().eq(AdminUser::getUserName, adminUser.getUserName()).count();
|
|
|
+ Integer count = adminUserService.lambdaQuery()
|
|
|
+ .ne(StringUtils.isNotBlank(adminUser.getAdminUserId()), AdminUser::getAdminUserId, adminUser.getAdminUserId())
|
|
|
+ .eq(AdminUser::getUserName, adminUser.getUserName())
|
|
|
+ .count();
|
|
|
if (count > 0) {
|
|
|
throw new RemoteServiceException("帐号已被注册");
|
|
|
}
|