UsersMapper.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.zhentao.mapper.UsersMapper">
  6. <resultMap id="BaseResultMap" type="com.zhentao.pojo.Users">
  7. <id property="userId" column="user_id" jdbcType="INTEGER"/>
  8. <result property="phone" column="phone" jdbcType="VARCHAR"/>
  9. <result property="email" column="email" jdbcType="VARCHAR"/>
  10. <result property="nickname" column="nickname" jdbcType="VARCHAR"/>
  11. <result property="password" column="password" jdbcType="VARCHAR"/>
  12. <result property="gender" column="gender" jdbcType="TINYINT"/>
  13. <result property="birthDate" column="birth_date" jdbcType="DATE"/>
  14. <result property="avatarUrl" column="avatar_url" jdbcType="VARCHAR"/>
  15. <result property="status" column="status" jdbcType="TINYINT"/>
  16. <result property="sourceChannel" column="source_channel" jdbcType="VARCHAR"/>
  17. <result property="isProfileComplete" column="is_profile_complete" jdbcType="TINYINT"/>
  18. <result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
  19. <result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
  20. <result property="consentToCollect" column="consent_to_collect" jdbcType="TINYINT"/>
  21. <result property="lastLoginAt" column="last_login_at" jdbcType="TIMESTAMP"/>
  22. <result property="lastActiveAt" column="last_active_at" jdbcType="TIMESTAMP"/>
  23. <result property="hasWechatLogin" column="has_wechat_login" jdbcType="TINYINT"/>
  24. </resultMap>
  25. <sql id="Base_Column_List">
  26. user_id,phone,email,
  27. nickname,password,gender,
  28. birth_date,avatar_url,status,
  29. source_channel,is_profile_complete,created_at,
  30. updated_at,consent_to_collect,last_login_at,
  31. last_active_at,has_wechat_login
  32. </sql>
  33. </mapper>