mybayis 之resultType="map"
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mybayis 之resultType="map"相关的知识,希望对你有一定的参考价值。
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"的主要内容,如果未能解决你的问题,请参考以下文章
logback如何配置来打印出mybayis中 sql执行后返回的结果 我已经配置了<logger
mybatis 之 resultType="Integer"