mirror of
https://gitee.com/coder-xiaomo/flashsale
synced 2025-09-13 23:41:39 +08:00
添加用户注册功能;Encrpt修改为Encrypt;添加填充测试数据
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
This element was generated on Tue Mar 01 14:58:29 CST 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="encrpt_password" jdbcType="VARCHAR" property="encrptPassword" />
|
||||
<result column="encrypt_password" jdbcType="VARCHAR" property="encryptPassword" />
|
||||
<result column="user_id" jdbcType="INTEGER" property="userId" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
@@ -17,7 +17,7 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Tue Mar 01 14:58:29 CST 2022.
|
||||
-->
|
||||
id, encrpt_password, user_id
|
||||
id, encrypt_password, user_id
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -51,9 +51,9 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Tue Mar 01 14:58:29 CST 2022.
|
||||
-->
|
||||
insert into user_password (id, encrpt_password, user_id
|
||||
insert into user_password (id, encrypt_password, user_id
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{encrptPassword,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}
|
||||
values (#{id,jdbcType=INTEGER}, #{encryptPassword,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.cxyxiaomo.flashsale.dataobject.UserPasswordDO">
|
||||
@@ -67,8 +67,8 @@
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="encrptPassword != null">
|
||||
encrpt_password,
|
||||
<if test="encryptPassword != null">
|
||||
encrypt_password,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
@@ -78,8 +78,8 @@
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="encrptPassword != null">
|
||||
#{encrptPassword,jdbcType=VARCHAR},
|
||||
<if test="encryptPassword != null">
|
||||
#{encryptPassword,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=INTEGER},
|
||||
@@ -94,8 +94,8 @@
|
||||
-->
|
||||
update user_password
|
||||
<set>
|
||||
<if test="encrptPassword != null">
|
||||
encrpt_password = #{encrptPassword,jdbcType=VARCHAR},
|
||||
<if test="encryptPassword != null">
|
||||
encrypt_password = #{encryptPassword,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=INTEGER},
|
||||
@@ -110,7 +110,7 @@
|
||||
This element was generated on Tue Mar 01 14:58:29 CST 2022.
|
||||
-->
|
||||
update user_password
|
||||
set encrpt_password = #{encrptPassword,jdbcType=VARCHAR},
|
||||
set encrypt_password = #{encryptPassword,jdbcType=VARCHAR},
|
||||
user_id = #{userId,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
Reference in New Issue
Block a user