摘要: Mybatis多表查询总结 1多表查询的主要实现方式 join查询 <select id="#" resultMap="#"> select <include refid="#" /> from # left join # on # = # </select> 核心特点: 使用join语句可以一次性 阅读全文
posted @ 2026-01-28 18:41 瑞瑞子 阅读(1) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2026-01-28 08:51 瑞瑞子 阅读(4) 评论(0) 推荐(0)
摘要: 乔译宣,牛马 阅读全文
posted @ 2026-01-28 08:43 瑞瑞子 阅读(6) 评论(0) 推荐(0)
摘要: 批量增加 测试类 public void test7() throws IOException { List<Employee> list = List.of(new Employee(15L, "张三", 1000.0, true), new Employee(16L, "李四", 2000.0, 阅读全文
posted @ 2026-01-27 19:47 瑞瑞子 阅读(6) 评论(0) 推荐(0)
摘要: 删除 实现 @Override public int deleteByIds(Long[] ids) { SqlSession sqlSession = MyBatisTool.getSqlSession(); int m = sqlSession.delete("cn.wolfcode.mappe 阅读全文
posted @ 2026-01-27 13:55 瑞瑞子 阅读(7) 评论(0) 推荐(0)