【7.6.0】【sys】【menu】修复查询条件

pull/57/head
fengshuonan 2023-06-29 14:03:00 +08:00
parent 1505f5107a
commit 4f4c2b6f34
1 changed files with 4 additions and 2 deletions

View File

@ -170,8 +170,10 @@ public class SysMenuOptionsServiceImpl extends ServiceImpl<SysMenuOptionsMapper,
// 根据查询文本查询
String searchText = sysMenuOptionsRequest.getSearchText();
if (ObjectUtil.isNotEmpty(searchText)) {
queryWrapper.like(SysMenuOptions::getOptionCode, searchText);
queryWrapper.or().like(SysMenuOptions::getOptionName, searchText);
queryWrapper.nested(wrap -> {
wrap.like(SysMenuOptions::getOptionCode, searchText);
wrap.or().like(SysMenuOptions::getOptionName, searchText);
});
}
return queryWrapper;