feat(REQ-2545): 查询页面元素接口调整
This commit is contained in:
parent
8e85410f05
commit
85b7af5e04
@ -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()));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user