Skip to content

Commit 2b54b58

Browse files
engine/schema: fix findActiveAccountById in AccountDaoImpl.java (#5704)
1 parent a85a00b commit 2b54b58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/schema/src/main/java/com/cloud/user/dao/AccountDaoImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class AccountDaoImpl extends GenericDaoBase<AccountVO, Long> implements A
5757

5858
public AccountDaoImpl() {
5959
AllFieldsSearch = createSearchBuilder();
60+
AllFieldsSearch.and("id", AllFieldsSearch.entity().getId(), SearchCriteria.Op.EQ);
6061
AllFieldsSearch.and("accountName", AllFieldsSearch.entity().getAccountName(), SearchCriteria.Op.EQ);
6162
AllFieldsSearch.and("domainId", AllFieldsSearch.entity().getDomainId(), SearchCriteria.Op.EQ);
6263
AllFieldsSearch.and("state", AllFieldsSearch.entity().getState(), SearchCriteria.Op.EQ);

0 commit comments

Comments
 (0)