AdminsMapper.xml 697 B

1234567891011121314151617
  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="BIGINT" />
  9. <result column="name" property="name" jdbcType="VARCHAR" />
  10. <result column="pwd" property="pwd" jdbcType="VARCHAR" />
  11. </resultMap>
  12. <!-- 查询用户信息并登陆 -->
  13. <select id="findexist" resultMap="BaseResultMap">
  14. select * from admins where name = #{0} and pwd = #{1}
  15. </select>
  16. </mapper>