AdminsMapper.xml 708 B

123456789101112131415
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.yc.education.mapper.AdminsMapper">
  4. <resultMap id="BaseResultMap" type="com.yc.education.model.Admins">
  5. <!--
  6. WARNING - @mbggenerated
  7. -->
  8. <id column="id" property="id" jdbcType="INTEGER"/>
  9. <result column="loginname" property="loginname" jdbcType="VARCHAR"/>
  10. <result column="password" property="password" jdbcType="VARCHAR"/>
  11. </resultMap>
  12. <select id="findadminlogin" resultMap="BaseResultMap">
  13. select * from admins where loginname=#{0} and password=#{1}
  14. </select>
  15. </mapper>