我想把这4列的结果集分别映射到4个List里面,接收应该这样Map<String,List<String>>,
请问mybatis的mapper.xml怎么写?
我想把这4列的结果集分别映射到4个List里面,接收应该这样Map<String,List<String>>,
请问mybatis的mapper.xml怎么写?
用collection
<resultMap type="user" id="usersOrdersResultMap">
<collection property="cityList" javaType="List" ofType="Integer">
<id column="city_code" property="number"/>
</collection>
</resultMap>