mapper没有写对:如
<sql id="getRedCommentsCount">
select sum(like_num ) as like_num , sum(reply_num) as reply_num,count(*) as commntsCount
from hsm_comment hc
where group_id = #{groupId} and username like 'R%'
</sql>
mapper没有写对:如
<sql id="getRedCommentsCount">
select sum(like_num ) as like_num , sum(reply_num) as reply_num,count(*) as commntsCount
from hsm_comment hc
where group_id = #{groupId} and username like 'R%'
</sql>