码迷,mamicode.com
首页 > 其他好文 > 详细

mybayis 之resultType="map"

时间:2017-08-03 16:05:40      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:let   har   blog   mapper   for   rem   mem   logs   inf   

                    List<Map> publishInfos = memberShareMapper.shareToCouponCountGroupByPublishId(memberShare.getActivityId());
 <select id="shareToCouponCountGroupByPublishId" parameterType="java.lang.Long" resultType="map">
    select count(msc.coupon_publish_id) COUPONCOUNT, msc.coupon_publish_id COUPONPUBLISHID from member_share_coupon msc, MEMBER_SHARE_ACTIVITY msa
    where activity_id = #{activityId} and for_share_to_user = Y
    and msc.IS_DELETE = N
    and msc.ACTIVITY_ID = msa.ID
    and msa.IS_DELETE = N and msa.SHARE_STATUS = 1
    group by coupon_publish_id
  </select>

 

mybayis 之resultType="map"

标签:let   har   blog   mapper   for   rem   mem   logs   inf   

原文地址:http://www.cnblogs.com/wangchuanfu/p/7280134.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!