<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