Mybatis 使用聚合比较容易用 left join 就可以解决; ibatis 中如果想使用的话, 可以用 select 的形式如下: <resultMap class="BasicLineAttr" id="BasicLineAttrMap……