|
@@ -12,6 +12,7 @@
|
|
|
<result column="avatar" jdbcType="VARCHAR" property="avatar" />
|
|
|
<result column="gender" jdbcType="INTEGER" property="gender" />
|
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
|
+ <result column="group_msg_disabled" jdbcType="TINYINT" property="groupMsgDisabled" />
|
|
|
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
|
|
|
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
|
|
|
<result column="deleted_at" jdbcType="BIGINT" property="deletedAt" />
|
|
@@ -78,7 +79,8 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, corp_id, external_user_id, union_id, external_user_id_3rd_party, `type`, `name`,
|
|
|
- avatar, gender, is_delete, created_at, updated_at, deleted_at, create_time, update_time
|
|
|
+ avatar, gender, is_delete, group_msg_disabled, created_at, updated_at, deleted_at,
|
|
|
+ create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.WeComUserExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -117,15 +119,15 @@
|
|
|
insert into we_com_user (id, corp_id, external_user_id,
|
|
|
union_id, external_user_id_3rd_party, `type`,
|
|
|
`name`, avatar, gender,
|
|
|
- created_at, updated_at,
|
|
|
- deleted_at, create_time, update_time
|
|
|
- )
|
|
|
+ is_delete, group_msg_disabled, created_at,
|
|
|
+ updated_at, deleted_at, create_time,
|
|
|
+ update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{corpId,jdbcType=BIGINT}, #{externalUserId,jdbcType=VARCHAR},
|
|
|
#{unionId,jdbcType=VARCHAR}, #{externalUserId3rdParty,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
|
#{name,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER},
|
|
|
- #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT},
|
|
|
- #{deletedAt,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ #{isDelete,jdbcType=INTEGER}, #{groupMsgDisabled,jdbcType=TINYINT}, #{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>
|
|
@@ -163,6 +165,9 @@
|
|
|
<if test="isDelete != null">
|
|
|
is_delete,
|
|
|
</if>
|
|
|
+ <if test="groupMsgDisabled != null">
|
|
|
+ group_msg_disabled,
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
|
created_at,
|
|
|
</if>
|
|
@@ -210,6 +215,9 @@
|
|
|
<if test="isDelete != null">
|
|
|
#{isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="groupMsgDisabled != null">
|
|
|
+ #{groupMsgDisabled,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
|
#{createdAt,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -266,6 +274,9 @@
|
|
|
<if test="record.isDelete != null">
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.groupMsgDisabled != null">
|
|
|
+ group_msg_disabled = #{record.groupMsgDisabled,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
<if test="record.createdAt != null">
|
|
|
created_at = #{record.createdAt,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -298,6 +309,7 @@
|
|
|
avatar = #{record.avatar,jdbcType=VARCHAR},
|
|
|
gender = #{record.gender,jdbcType=INTEGER},
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
+ group_msg_disabled = #{record.groupMsgDisabled,jdbcType=TINYINT},
|
|
|
created_at = #{record.createdAt,jdbcType=BIGINT},
|
|
|
updated_at = #{record.updatedAt,jdbcType=BIGINT},
|
|
|
deleted_at = #{record.deletedAt,jdbcType=BIGINT},
|
|
@@ -337,6 +349,9 @@
|
|
|
<if test="isDelete != null">
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="groupMsgDisabled != null">
|
|
|
+ group_msg_disabled = #{groupMsgDisabled,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
<if test="createdAt != null">
|
|
|
created_at = #{createdAt,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -366,6 +381,7 @@
|
|
|
avatar = #{avatar,jdbcType=VARCHAR},
|
|
|
gender = #{gender,jdbcType=INTEGER},
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
+ group_msg_disabled = #{groupMsgDisabled,jdbcType=TINYINT},
|
|
|
created_at = #{createdAt,jdbcType=BIGINT},
|
|
|
updated_at = #{updatedAt,jdbcType=BIGINT},
|
|
|
deleted_at = #{deletedAt,jdbcType=BIGINT},
|