1
0
mirror of https://gitee.com/coder-xiaomo/flashsale synced 2025-09-13 15:31:38 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

商品模型4-添加 keyProperty="id" useGeneratedKeys="true"

This commit is contained in:
2022-03-03 13:20:13 +08:00
parent add4aa6996
commit 65a5688804
5 changed files with 20 additions and 20 deletions

View File

@@ -43,7 +43,7 @@
delete from user_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.cxyxiaomo.flashsale.dataobject.UserDO">
<insert id="insert" parameterType="com.cxyxiaomo.flashsale.dataobject.UserDO" keyProperty="id" useGeneratedKeys="true">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@@ -56,7 +56,7 @@
#{age,jdbcType=INTEGER}, #{telephone,jdbcType=VARCHAR}, #{registerMode,jdbcType=VARCHAR},
#{thirdPartyId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.cxyxiaomo.flashsale.dataobject.UserDO">
<insert id="insertSelective" parameterType="com.cxyxiaomo.flashsale.dataobject.UserDO" keyProperty="id" useGeneratedKeys="true">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.