diff --git a/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java b/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java index 85d73fc4..46eb8762 100644 --- a/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java @@ -2145,11 +2145,11 @@ public class AccountServiceImpl extends ServiceImpl impl @Override public AccountLoginVO enterpriseLogin(AccountLoginDTO accountDTO) { QueryWrapper qw = new QueryWrapper<>(); - qw.lambda().eq(Account::getUserName, accountDTO.getUserName()); + qw.lambda().eq(Account::getUserEmail, accountDTO.getEmail()); qw.lambda().eq(Account::getOrganizationName, accountDTO.getOrganizationName()); List accounts = accountMapper.selectList(qw); if (CollectionUtil.isEmpty(accounts)) { - throw new BusinessException("Username or enterprise name incorrect."); + throw new BusinessException("UserEmail or enterprise name incorrect."); } qw.lambda().eq(Account::getUserPassword, accountDTO.getPassword()); accounts = accountMapper.selectList(qw); @@ -2186,11 +2186,11 @@ public class AccountServiceImpl extends ServiceImpl impl @Override public AccountLoginVO schoolLogin(AccountLoginDTO accountDTO) { QueryWrapper qw = new QueryWrapper<>(); - qw.lambda().eq(Account::getUserName, accountDTO.getUserName()); + qw.lambda().eq(Account::getUserEmail, accountDTO.getEmail()); qw.lambda().eq(Account::getOrganizationName, accountDTO.getOrganizationName()); List accounts = accountMapper.selectList(qw); if (CollectionUtil.isEmpty(accounts)) { - throw new BusinessException("Username or school name incorrect."); + throw new BusinessException("UserEmail or school name incorrect."); } qw.lambda().eq(Account::getUserPassword, accountDTO.getPassword()); accounts = accountMapper.selectList(qw);