feat(REQ-2545): 查询页面元素接口调整

This commit is contained in:
李昆鹏 2024-07-04 17:20:16 +08:00
parent 8e85410f05
commit 85b7af5e04

View File

@ -174,7 +174,7 @@ public class SaasPageElementServiceImpl implements SaasPageElementService {
IPage<SaasPageElement> page = saasPageElementDao.lambdaQuery()
.eq(SaasPageElement::getTerminal, request.getTerminal())
.in(CollectionUtils.isNotEmpty(request.getElementTypes()), SaasPageElement::getType, request.getElementTypes())
.and(StringUtils.isNotBlank(request.getSearchKey()), w -> w.eq(BaseEntity::getId, request.getSearchKey())
.and(StringUtils.isNotBlank(request.getSearchKey()), w -> w.like(SaasPageElement::getCode, request.getSearchKey())
.or().like(SaasPageElement::getName, request.getSearchKey())
.or().like(SaasPageElement::getLinkUrl, request.getSearchKey()))
.page(new Page<>(request.getPage(), request.getPageSize()));