work-10.01/src/main/resources/mapper/UserMapper.xml

11 lines
382 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bwie.mapper.UserMapper">
<select id="login" resultType="com.bwie.common.LoginRequest">
select *from t_user where user_name=#{userName} and user_pwd=#{userPwd}
</select>
</mapper>