参考链接:https://www.jianshu.com/p/0a21569f1e06
单表的分页查询用mybatisplus的selectPage就可以实现
联表的分页查询需要自己写sql语句,因为老哥不让写sql语句在DAO层(难看),所以写在了xml中
配置 百度一下很多
单表分页查询:
Bean:
private Integer userId;
private String userName;
private String userPassword;
private String userPhone;
private Integer userStatus;
private Integer createId;
private Date createTime;
private Integer updateId;
private Date updateTime; //省略了get、set
Controller:
@RequestMapping(value = "userSelectPage")
@ApiOperation(value=