摘要: 方法一 连接表查询 案例:查询所有订单信息及订单下的订单明细信息。 订单信息与订单明细为一对多关系。 使用resultMap实现如下: Sql语句: 定义po类 在Orders类中加入User属性。 在Orders类中加入List orderdetails属性 Mapper.xml 定义result 阅读全文
posted @ 2016-12-04 16:49 huangmp 阅读(277) 评论(0) 推荐(0) 编辑