mybayis 之resultType="map"
阿新 • • 發佈:2017-08-03
rom user pan myba ember cti log class from
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 frommember_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"