随笔分类 -  Mybatis

摘要:文章目录 通过limit分页查询 通过Rowbounds 通过分页插件pagehelper 通过limit分页查询mapper接口 1 List<User> getUserByLimit(Map<String,Integer> map); mapper.xml 1 <select id="getUs 阅读全文
posted @ 2022-10-12 08:39 我来偷家了 阅读(5794) 评论(0) 推荐(0) 编辑
摘要:1、顺序传参法 public User selectUser(String name, int deptId); <select id="selectUser" resultMap="UserResultMap"> select * from user where user_name = #{0} 阅读全文
posted @ 2022-10-12 08:32 我来偷家了 阅读(120) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示