首页 > 其他 > 详细

Mybatis返回map集合

时间:2017-09-28 12:08:58      阅读:496      评论:0      收藏:0      [点我收藏+]
<resultMap id="pieMap"   type="HashMap">  
    <result property="value" column="VALUE" />  
    <result property="name" column="NAME" />  
</resultMap>
<select id="queryPieParam" parameterType="String" resultMap="pieMap"> SELECT   PLAT_NAME NAME, <if test=‘_parameter == "总量"‘> AMOUNT VALUE </if> <if test=‘_parameter == "总额"‘> TOTALS VALUE </if> FROM DOMAIN_PLAT_DEAL_PIE ORDER BY <if test=‘_parameter == "总量"‘> AMOUNT </if> <if test=‘_parameter == "总额"‘> TOTALS </if> ASC </select>

 

Mybatis返回map集合

原文:http://www.cnblogs.com/lxcmyf/p/7606018.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!