This commit is contained in:
freeebird
2018-10-14 13:40:39 +08:00
parent 132506deef
commit ebbc2671b2
5 changed files with 72 additions and 4 deletions

View File

@@ -86,7 +86,7 @@
select * from admin
where user_name = #{userName,jdbcType=VARCHAR}
</select>
<select id="selectByUserNameAndPassword" parameterType="cn.mafangui.hotel.entity.Admin">
<select id="selectByUserNameAndPassword" parameterType="cn.mafangui.hotel.entity.Admin" resultMap="BaseResultMap">
select * from admin
where user_name = #{userName,jdbcType=VARCHAR} and password = #{password,jdbcType=VARCHAR}
</select>