代码示例: 注意Service中的返回值必须要和mapper中的返回值类型的
@Override public PageInfo<UserDO> test(ReqQueryDTO req) { PageHelper.startPage(req.getPageNumber(), req.getPageSize()); List<UserDO> userDOS = mapper.pageAllSpaces(req); return new PageInfo<>(userDOS); }
标签:mapper,插件,示例,userDOS,req,mybatis From: https://www.cnblogs.com/zhangshiwen/p/17476055.html