请问Mybatis plus 有类似jpa的ExampleMatcher查询吗
@PostMapping("/list")
public Object list(AdminRole adminRole,
@RequestParam(required = false, defaultValue = "0") int pageNumber,
@RequestParam(required = false, defaultValue = "10") int pageSize) {
//创建匹配器,需要查询条件请修改此处代码
ExampleMatcher matcher = ExampleMatcher.matchingAll();
//创建实例
Example<AdminRole> example = Example.of(adminRole, matcher);
//分页构造
Pageable pageable = PageRequest.of(pageNumber,pageSize);
return adminRoleRepository.findAll(example, pageable);
}
ExampleMatcher Mybatis plus