<select id="selectUser" resultType="user" parameterType="user">
<bind name="pattern" value="'%' + username + '%'" />
select id,sex,age,username,password
from user
where username LIKE #{pattern}
</select>
<select id="selectUser" resultType="user" parameterType="user">
<bind name="pattern" value="'%' + username + '%'" />
select id,sex,age,username,password
from user
where username LIKE #{pattern}
</select>