1.xml设置
resultMap="cateNameMapping"> select id,name from info where id=#{id}
2.dao设置
HashMap getMap(Long id);
3.使用
userMapper.getMap(12L).get("value")
1.xml设置
resultMap="cateNameMapping"> select id,name from info where id=#{id}
2.dao设置
HashMap getMap(Long id);
3.使用
userMapper.getMap(12L).get("value")