|
@@ -113,7 +113,7 @@
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.tzld.piaoquan.wecom.model.po.User">
|
|
|
+ <insert id="insert" parameterType="com.tzld.piaoquan.wecom.model.po.User" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into we_com_user (id, corp_id, external_user_id,
|
|
|
union_id, external_user_id_3rd_party, `type`,
|
|
|
`name`, avatar, gender,
|
|
@@ -126,6 +126,9 @@
|
|
|
#{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT},
|
|
|
#{deletedAt,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
)
|
|
|
+ <selectKey resultType="java.lang.Long" order="AFTER" keyProperty="id">
|
|
|
+ select LAST_INSERT_ID()
|
|
|
+ </selectKey>
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.wecom.model.po.User">
|
|
|
insert into we_com_user
|