<select id="countForList" resultClass="java.lang.Long" parameterClass="java.util.Map">
select count(*) from (select t.*,from UTAA_USER t
<isParameterPresent>
<include refid="User-Where" />
</isParameterPresent>
)
</select>多余的都删了
没有查询条件就是说Map参数为null
调试欢乐多
</isParameterPresent>
)
</select>关键是上面的代码中的括号没了,SQL语句不完整报错的