<select id="findList" parameterType="Map" resultType="User">
select *from user where username like #{username} limit #{offset},#{pageSize}
</select>
<select id="findList" parameterType="Map" resultType="Menu">
select *from menu
<if test="name!=null">
where name like '%${name}%'
</if>
<if test="offset!=null and pageSize !=null">
limit #{offset},#{pageSize}
</if>
</select>