|
@@ -5,6 +5,7 @@
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
|
|
<result column="tag_id" jdbcType="BIGINT" property="tagId" />
|
|
<result column="tag_id" jdbcType="BIGINT" property="tagId" />
|
|
|
|
|
+ <result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
@@ -68,7 +69,7 @@
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- id, user_id, tag_id, is_delete, create_time, update_time
|
|
|
|
|
|
|
+ id, user_id, tag_id, `status`, is_delete, create_time, update_time
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.UserWithTagExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.UserWithTagExample" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -105,11 +106,11 @@
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.UserWithTag">
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.UserWithTag">
|
|
|
insert into we_com_user_with_tag (id, user_id, tag_id,
|
|
insert into we_com_user_with_tag (id, user_id, tag_id,
|
|
|
- is_delete, create_time, update_time
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ `status`, is_delete, create_time,
|
|
|
|
|
+ update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT},
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT},
|
|
|
- #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{status,jdbcType=INTEGER}, #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.UserWithTag">
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.UserWithTag">
|
|
|
insert into we_com_user_with_tag
|
|
insert into we_com_user_with_tag
|
|
@@ -123,6 +124,9 @@
|
|
|
<if test="tagId != null">
|
|
<if test="tagId != null">
|
|
|
tag_id,
|
|
tag_id,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
|
+ `status`,
|
|
|
|
|
+ </if>
|
|
|
<if test="isDelete != null">
|
|
<if test="isDelete != null">
|
|
|
is_delete,
|
|
is_delete,
|
|
|
</if>
|
|
</if>
|
|
@@ -143,6 +147,9 @@
|
|
|
<if test="tagId != null">
|
|
<if test="tagId != null">
|
|
|
#{tagId,jdbcType=BIGINT},
|
|
#{tagId,jdbcType=BIGINT},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
|
+ #{status,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="isDelete != null">
|
|
<if test="isDelete != null">
|
|
|
#{isDelete,jdbcType=INTEGER},
|
|
#{isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
@@ -172,6 +179,9 @@
|
|
|
<if test="record.tagId != null">
|
|
<if test="record.tagId != null">
|
|
|
tag_id = #{record.tagId,jdbcType=BIGINT},
|
|
tag_id = #{record.tagId,jdbcType=BIGINT},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.status != null">
|
|
|
|
|
+ `status` = #{record.status,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="record.isDelete != null">
|
|
<if test="record.isDelete != null">
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
@@ -191,6 +201,7 @@
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
user_id = #{record.userId,jdbcType=BIGINT},
|
|
user_id = #{record.userId,jdbcType=BIGINT},
|
|
|
tag_id = #{record.tagId,jdbcType=BIGINT},
|
|
tag_id = #{record.tagId,jdbcType=BIGINT},
|
|
|
|
|
+ `status` = #{record.status,jdbcType=INTEGER},
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
@@ -207,6 +218,9 @@
|
|
|
<if test="tagId != null">
|
|
<if test="tagId != null">
|
|
|
tag_id = #{tagId,jdbcType=BIGINT},
|
|
tag_id = #{tagId,jdbcType=BIGINT},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
|
+ `status` = #{status,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="isDelete != null">
|
|
<if test="isDelete != null">
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
@@ -223,6 +237,7 @@
|
|
|
update we_com_user_with_tag
|
|
update we_com_user_with_tag
|
|
|
set user_id = #{userId,jdbcType=BIGINT},
|
|
set user_id = #{userId,jdbcType=BIGINT},
|
|
|
tag_id = #{tagId,jdbcType=BIGINT},
|
|
tag_id = #{tagId,jdbcType=BIGINT},
|
|
|
|
|
+ `status` = #{status,jdbcType=INTEGER},
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|