|
@@ -3,44 +3,44 @@
|
|
|
<mapper namespace="com.sky.activate.mapper.VerifysMapper">
|
|
|
|
|
|
|
|
|
- <resultMap id="BaseResultMap" type="com.sky.oauth.entity.User">
|
|
|
- <result column="id" jdbcType="INTEGER" property="id" />
|
|
|
- <result column="guid" jdbcType="VARCHAR" property="guid" />
|
|
|
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
- <result column="archived" jdbcType="INTEGER" property="archived" />
|
|
|
- <result column="archived" jdbcType="VARCHAR" property="archived" />
|
|
|
- <result column="password" jdbcType="VARCHAR" property="password" />
|
|
|
- <result column="phone" jdbcType="VARCHAR" property="phone" />
|
|
|
- <result column="username" jdbcType="VARCHAR" property="username" />
|
|
|
- <result column="default_user" jdbcType="VARCHAR" property="defaultUser" />
|
|
|
- <result column="last_login_time" jdbcType="TIMESTAMP" property="lastLoginTime" />
|
|
|
- <result column="photo" jdbcType="VARCHAR" property="photo" />
|
|
|
- <result column="wechat_id" jdbcType="VARCHAR" property="wechatId" />
|
|
|
- <result column="weibo_id" jdbcType="VARCHAR" property="weiboId" />
|
|
|
- <result column="qq_id" jdbcType="VARCHAR" property="qqId" />
|
|
|
- <result column="wechat_username" jdbcType="VARCHAR" property="wechatUsername" />
|
|
|
- <result column="weibo_username" jdbcType="VARCHAR" property="weiboUsername" />
|
|
|
- <result column="qq_username" jdbcType="VARCHAR" property="qqUsername" />
|
|
|
- <result column="wechat_photo" jdbcType="VARCHAR" property="wechatPhoto" />
|
|
|
- <result column="weibo_photo" jdbcType="VARCHAR" property="weiboPhoto" />
|
|
|
- <result column="qq_photo" jdbcType="VARCHAR" property="qqPhoto" />
|
|
|
- <result column="failure_time" jdbcType="TIMESTAMP" property="failureTime" />
|
|
|
- </resultMap>
|
|
|
- <select id="selectUserByName" resultType="com.sky.oauth.entity.User" resultMap="BaseResultMap">
|
|
|
- select * from p_user where username = #{name};
|
|
|
- </select>
|
|
|
+<!-- <resultMap id="BaseResultMap" type="com.sky.oauth.entity.User">-->
|
|
|
+<!-- <result column="id" jdbcType="INTEGER" property="id" />-->
|
|
|
+<!-- <result column="guid" jdbcType="VARCHAR" property="guid" />-->
|
|
|
+<!-- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />-->
|
|
|
+<!-- <result column="archived" jdbcType="INTEGER" property="archived" />-->
|
|
|
+<!-- <result column="archived" jdbcType="VARCHAR" property="archived" />-->
|
|
|
+<!-- <result column="password" jdbcType="VARCHAR" property="password" />-->
|
|
|
+<!-- <result column="phone" jdbcType="VARCHAR" property="phone" />-->
|
|
|
+<!-- <result column="username" jdbcType="VARCHAR" property="username" />-->
|
|
|
+<!-- <result column="default_user" jdbcType="VARCHAR" property="defaultUser" />-->
|
|
|
+<!-- <result column="last_login_time" jdbcType="TIMESTAMP" property="lastLoginTime" />-->
|
|
|
+<!-- <result column="photo" jdbcType="VARCHAR" property="photo" />-->
|
|
|
+<!-- <result column="wechat_id" jdbcType="VARCHAR" property="wechatId" />-->
|
|
|
+<!-- <result column="weibo_id" jdbcType="VARCHAR" property="weiboId" />-->
|
|
|
+<!-- <result column="qq_id" jdbcType="VARCHAR" property="qqId" />-->
|
|
|
+<!-- <result column="wechat_username" jdbcType="VARCHAR" property="wechatUsername" />-->
|
|
|
+<!-- <result column="weibo_username" jdbcType="VARCHAR" property="weiboUsername" />-->
|
|
|
+<!-- <result column="qq_username" jdbcType="VARCHAR" property="qqUsername" />-->
|
|
|
+<!-- <result column="wechat_photo" jdbcType="VARCHAR" property="wechatPhoto" />-->
|
|
|
+<!-- <result column="weibo_photo" jdbcType="VARCHAR" property="weiboPhoto" />-->
|
|
|
+<!-- <result column="qq_photo" jdbcType="VARCHAR" property="qqPhoto" />-->
|
|
|
+<!-- <result column="failure_time" jdbcType="TIMESTAMP" property="failureTime" />-->
|
|
|
+<!-- </resultMap>-->
|
|
|
+<!-- <select id="selectUserByName" resultType="com.sky.oauth.entity.User" resultMap="BaseResultMap">-->
|
|
|
+<!-- select * from p_user where username = #{name};-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
- <!-- useGeneratedKeys="true" keyProperty="id"-->
|
|
|
- <insert id="addUser" parameterType="com.sky.oauth.entity.User">
|
|
|
- insert into p_user(
|
|
|
- guid,create_time,archived,email,password,phone,username,default_user, last_login_time, photo,
|
|
|
- wechat_id,weibo_id,qq_id,wechat_username,weibo_username,qq_username, wechat_photo,
|
|
|
- weibo_photo,qq_photo, failure_time
|
|
|
- )
|
|
|
- values (
|
|
|
- #{guid},#{createTime},'0',#{email},#{password},#{phone},#{username},#{defaultUser},#{lastLoginTime},#{photo},
|
|
|
- #{wechatId},#{weiboId},#{qqId},#{wechatUsername},#{weiboUsername},#{qqUsername},#{wechatPhoto},
|
|
|
- #{weiboPhoto},#{qqPhoto},#{failureTime}
|
|
|
- );
|
|
|
- </insert>
|
|
|
+<!-- <!– useGeneratedKeys="true" keyProperty="id"–>-->
|
|
|
+<!-- <insert id="addUser" parameterType="com.sky.oauth.entity.User">-->
|
|
|
+<!-- insert into p_user(-->
|
|
|
+<!-- guid,create_time,archived,email,password,phone,username,default_user, last_login_time, photo,-->
|
|
|
+<!-- wechat_id,weibo_id,qq_id,wechat_username,weibo_username,qq_username, wechat_photo,-->
|
|
|
+<!-- weibo_photo,qq_photo, failure_time-->
|
|
|
+<!-- )-->
|
|
|
+<!-- values (-->
|
|
|
+<!-- #{guid},#{createTime},'0',#{email},#{password},#{phone},#{username},#{defaultUser},#{lastLoginTime},#{photo},-->
|
|
|
+<!-- #{wechatId},#{weiboId},#{qqId},#{wechatUsername},#{weiboUsername},#{qqUsername},#{wechatPhoto},-->
|
|
|
+<!-- #{weiboPhoto},#{qqPhoto},#{failureTime}-->
|
|
|
+<!-- );-->
|
|
|
+<!-- </insert>-->
|
|
|
</mapper>
|