<select id="listServerRole" parameterType="JfreeCharEntity" resultMap="jfreeCharEntityResultMap">
select count(id) as count,level from role
where level group by level
</select>
我要条件 level <= 30 这应该怎么写
...全文
4023打赏收藏
求助!mybatis between查询
select count(id) as count,level from role where level group by level 我要条件 level <= 30 这应该怎么写
<select id="listServerRole" parameterType="JfreeCharEntity" resultMap="jfreeCharEntityResultMap">
<![CDATA[
select count(id) as count,level from role
where level <= 30 group by level
]]>
</select>