关于MyBatis使用collection不能获取所有关联数据问题 xml文件部分配置如下:... ...select语句如下:注意:只需要用上别名就可以解决这个问题了... select c.id,c.name as c_name,s.id as s_id,s.name as s_name