mybatis 返回List
1.直接通过mapper接口返回,不经过mapper.xml
@Select(
“select road_type,count(*) from amap_main_channel WHERE pcode = #{pcode} group by road_type”
)
List
2.通过mapper.xml返回
mapper定义
List<map> queryAmapCount(@Param("record") ReqRoadInfoQo record);
mapper.xml定义
<select id="queryAmapCount" resultType="java.util.Map">