1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-10-17 21:16:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

用户注册功能实现;用户表添加email字段

This commit is contained in:
2022-04-04 14:36:56 +08:00
parent 3af1b80d2a
commit 71feaffeb9
16 changed files with 581 additions and 219 deletions

View File

@@ -12,6 +12,7 @@
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
<result column="group" jdbcType="VARCHAR" property="group" />
<result column="avatar" jdbcType="VARCHAR" property="avatar" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="weixin_third_party_auth_code" jdbcType="VARCHAR" property="weixinThirdPartyAuthCode" />
<result column="qq_third_party_auth_code" jdbcType="VARCHAR" property="qqThirdPartyAuthCode" />
@@ -21,7 +22,7 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, username, encript_pwd, nickname, `group`, avatar, phone, weixin_third_party_auth_code,
id, username, encript_pwd, nickname, `group`, avatar, email, phone, weixin_third_party_auth_code,
qq_third_party_auth_code
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
@@ -49,12 +50,12 @@
-->
insert into user_info (id, username, encript_pwd,
nickname, `group`, avatar,
phone, weixin_third_party_auth_code, qq_third_party_auth_code
)
email, phone, weixin_third_party_auth_code,
qq_third_party_auth_code)
values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{encriptPwd,jdbcType=VARCHAR},
#{nickname,jdbcType=VARCHAR}, #{group,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{weixinThirdPartyAuthCode,jdbcType=VARCHAR}, #{qqThirdPartyAuthCode,jdbcType=VARCHAR}
)
#{email,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{weixinThirdPartyAuthCode,jdbcType=VARCHAR},
#{qqThirdPartyAuthCode,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.UserDO">
<!--
@@ -81,6 +82,9 @@
<if test="avatar != null">
avatar,
</if>
<if test="email != null">
email,
</if>
<if test="phone != null">
phone,
</if>
@@ -110,6 +114,9 @@
<if test="avatar != null">
#{avatar,jdbcType=VARCHAR},
</if>
<if test="email != null">
#{email,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
@@ -143,6 +150,9 @@
<if test="avatar != null">
avatar = #{avatar,jdbcType=VARCHAR},
</if>
<if test="email != null">
email = #{email,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
@@ -166,6 +176,7 @@
nickname = #{nickname,jdbcType=VARCHAR},
`group` = #{group,jdbcType=VARCHAR},
avatar = #{avatar,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
weixin_third_party_auth_code = #{weixinThirdPartyAuthCode,jdbcType=VARCHAR},
qq_third_party_auth_code = #{qqThirdPartyAuthCode,jdbcType=VARCHAR}
@@ -177,4 +188,10 @@
from user_info
where username = #{username} and encript_pwd = #{encryptPwd}
</select>
<select id="selectCountByUsername" resultType="java.lang.Integer">
select
count(*)
from user_info
where username = #{username}
</select>
</mapper>