修复分组搜索bug

pull/22/head
rays 2021-06-21 10:41:31 +08:00
parent 93deb10413
commit e5f731c484
1 changed files with 4 additions and 1 deletions

View File

@ -205,7 +205,10 @@ public class SysResourceServiceImpl extends ServiceImpl<SysResourceMapper, SysRe
// 查询条件
if (ObjectUtil.isNotEmpty(resourceRequest.getResourceName())) {
sysResourceLambdaQueryWrapper.like(SysResource::getUrl, resourceRequest.getUrl()).or().like(SysResource::getResourceName, resourceRequest.getResourceName());
sysResourceLambdaQueryWrapper
.like(SysResource::getUrl, resourceRequest.getResourceName())
.or()
.like(SysResource::getResourceName, resourceRequest.getResourceName());
}
List<SysResource> allResource = this.list(sysResourceLambdaQueryWrapper);