|
@@ -5,28 +5,31 @@
|
|
<mapper namespace="com.zhentao.user.mapper.UserMapper">
|
|
<mapper namespace="com.zhentao.user.mapper.UserMapper">
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.zhentao.user.domain.User">
|
|
<resultMap id="BaseResultMap" type="com.zhentao.user.domain.User">
|
|
- <id property="id" column="id" jdbcType="BIGINT"/>
|
|
|
|
- <result property="username" column="username" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="password" column="password" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="realName" column="real_name" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="phone" column="phone" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="email" column="email" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="avatar" column="avatar" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="gender" column="gender" jdbcType="TINYINT"/>
|
|
|
|
- <result property="birthDate" column="birth_date" jdbcType="DATE"/>
|
|
|
|
- <result property="status" column="status" jdbcType="TINYINT"/>
|
|
|
|
- <result property="lastLoginTime" column="last_login_time" jdbcType="TIMESTAMP"/>
|
|
|
|
- <result property="lastLoginIp" column="last_login_ip" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="lastLoginDevice" column="last_login_device" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="faceDataId" column="face_data_id" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="faceImageUrl" column="face_image_url" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="faceLoginEnabled" column="face_login_enabled" jdbcType="TINYINT"/>
|
|
|
|
- <result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
|
|
|
|
- <result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
|
|
|
|
- <result property="deleted" column="deleted" jdbcType="TINYINT"/>
|
|
|
|
- <result property="salt" column="salt" jdbcType="VARCHAR"/>
|
|
|
|
- <result property="grade" column="grade" javaType="int"/>
|
|
|
|
- <result property="attention" column="attention" javaType="int"/>
|
|
|
|
|
|
+ <id property="id" column="id" jdbcType="BIGINT"/>
|
|
|
|
+ <result property="username" column="username" jdbcType="VARCHAR"/> <!-- 保持不变,MyBatis支持VARCHAR -->
|
|
|
|
+ <result property="password" column="password" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="realName" column="real_name" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="phone" column="phone" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="email" column="email" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="avatar" column="avatar" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="gender" column="gender" jdbcType="TINYINT"/>
|
|
|
|
+ <result property="birthDate" column="birth_date" jdbcType="DATE"/>
|
|
|
|
+ <result property="status" column="status" jdbcType="TINYINT"/>
|
|
|
|
+ <result property="lastLoginTime" column="last_login_time" jdbcType="TIMESTAMP"/>
|
|
|
|
+ <result property="lastLoginIp" column="last_login_ip" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="lastLoginDevice" column="last_login_device" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="faceDataId" column="face_data_id" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="faceImageUrl" column="face_image_url" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="faceLoginEnabled" column="face_login_enabled" jdbcType="TINYINT"/>
|
|
|
|
+ <result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
|
|
|
|
+ <result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
|
|
|
|
+ <result property="deleted" column="deleted" jdbcType="TINYINT"/>
|
|
|
|
+ <result property="salt" column="salt" jdbcType="VARCHAR"/>
|
|
|
|
+ <result property="grade" column="grade" javaType="int" jdbcType="INTEGER"/> <!-- 添加jdbcType -->
|
|
|
|
+ <result property="attention" column="attention" javaType="int" jdbcType="INTEGER"/> <!-- 添加jdbcType -->
|
|
|
|
+ <result property="jingdu" column="jingdu" javaType="java.lang.String"/> <!-- 修正为全限定类名 -->
|
|
|
|
+ <result property="weidu" column="weidu" javaType="java.lang.String"/> <!-- 修正为全限定类名 -->
|
|
|
|
+
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
@@ -36,6 +39,6 @@
|
|
status,last_login_time,last_login_ip,
|
|
status,last_login_time,last_login_ip,
|
|
last_login_device,face_data_id,face_image_url,
|
|
last_login_device,face_data_id,face_image_url,
|
|
face_login_enabled,created_at,updated_at,
|
|
face_login_enabled,created_at,updated_at,
|
|
- deleted,salt,grade,attention
|
|
|
|
|
|
+ deleted,salt,grade,attention,jingdu,weidu
|
|
</sql>
|
|
</sql>
|
|
</mapper>
|
|
</mapper>
|