Skip to content

Commit

Permalink
[Fix][Server] fix CatalogEntityInstance page method queryWrapper error (
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexChen68 authored Jan 10, 2024
1 parent d30dd3d commit bcc5b1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ private IPage<CatalogEntityInstance> getCatalogEntityInstancePage(String upstrea
queryWrapper.lambda()
.in(CatalogEntityInstance::getUuid, uuidList)
.eq(CatalogEntityInstance::getStatus, CommonConstants.CATALOG_ENTITY_INSTANCE_STATUS_ACTIVE)
.and(qw -> qw.like(StringUtils.isNotEmpty(name), CatalogEntityInstance::getDisplayName, name)
.and(StringUtils.isNotEmpty(name), qw -> qw.like(CatalogEntityInstance::getDisplayName, name)
.or()
.like(StringUtils.isNotEmpty(name), CatalogEntityInstance::getDescription, name))
.like(CatalogEntityInstance::getDescription, name))
.orderBy(true, true, CatalogEntityInstance::getId);
return page(page, queryWrapper);
}
Expand Down

0 comments on commit bcc5b1c

Please sign in to comment.