<?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.bjsxt.mapper.AdminMapper">

    <select id="selectOne" resultType="admin">

      SELECT   *  from  admin  where  username =#{param1}  and  password =#{param2}

    </select>
<select id="selectPwd" resultMap="admin">
    SELECT   *  from  admin  where  username =#{param1}
</select>
</mapper>