|
@@ -7,6 +7,8 @@
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
|
|
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
|
|
<result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
|
|
|
+ <result column="new_is_delete" jdbcType="INTEGER" property="newIsDelete" />
|
|
|
+ <result column="new_delete_time" jdbcType="TIMESTAMP" property="newDeleteTime" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
</resultMap>
|
|
@@ -69,7 +71,8 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, staff_id, user_id, is_delete, delete_time, create_time, update_time
|
|
|
+ id, staff_id, user_id, is_delete, delete_time, new_is_delete, new_delete_time, create_time,
|
|
|
+ update_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.growth.common.model.po.StaffWithUserExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -89,7 +92,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from we_com_staff_with_user
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -105,11 +108,14 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.StaffWithUser">
|
|
|
- insert into we_com_staff_with_user (id, staff_id, user_id, delete_time, create_time,
|
|
|
- update_time)
|
|
|
- values (#{id,jdbcType=BIGINT}, #{staffId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
|
|
|
- #{deleteTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ insert into we_com_staff_with_user (id, staff_id, user_id,
|
|
|
+ is_delete, delete_time, new_is_delete,
|
|
|
+ new_delete_time, create_time, update_time
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{staffId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
|
|
|
+ #{isDelete,jdbcType=INTEGER}, #{deleteTime,jdbcType=TIMESTAMP}, #{newIsDelete,jdbcType=INTEGER},
|
|
|
+ #{newDeleteTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.StaffWithUser">
|
|
|
insert into we_com_staff_with_user
|
|
@@ -129,6 +135,12 @@
|
|
|
<if test="deleteTime != null">
|
|
|
delete_time,
|
|
|
</if>
|
|
|
+ <if test="newIsDelete != null">
|
|
|
+ new_is_delete,
|
|
|
+ </if>
|
|
|
+ <if test="newDeleteTime != null">
|
|
|
+ new_delete_time,
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
@@ -152,6 +164,12 @@
|
|
|
<if test="deleteTime != null">
|
|
|
#{deleteTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="newIsDelete != null">
|
|
|
+ #{newIsDelete,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="newDeleteTime != null">
|
|
|
+ #{newDeleteTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -184,6 +202,12 @@
|
|
|
<if test="record.deleteTime != null">
|
|
|
delete_time = #{record.deleteTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="record.newIsDelete != null">
|
|
|
+ new_is_delete = #{record.newIsDelete,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.newDeleteTime != null">
|
|
|
+ new_delete_time = #{record.newDeleteTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
<if test="record.createTime != null">
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -202,6 +226,8 @@
|
|
|
user_id = #{record.userId,jdbcType=BIGINT},
|
|
|
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
|
|
delete_time = #{record.deleteTime,jdbcType=TIMESTAMP},
|
|
|
+ new_is_delete = #{record.newIsDelete,jdbcType=INTEGER},
|
|
|
+ new_delete_time = #{record.newDeleteTime,jdbcType=TIMESTAMP},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
@@ -223,6 +249,12 @@
|
|
|
<if test="deleteTime != null">
|
|
|
delete_time = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="newIsDelete != null">
|
|
|
+ new_is_delete = #{newIsDelete,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="newDeleteTime != null">
|
|
|
+ new_delete_time = #{newDeleteTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -238,6 +270,8 @@
|
|
|
user_id = #{userId,jdbcType=BIGINT},
|
|
|
is_delete = #{isDelete,jdbcType=INTEGER},
|
|
|
delete_time = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
+ new_is_delete = #{newIsDelete,jdbcType=INTEGER},
|
|
|
+ new_delete_time = #{newDeleteTime,jdbcType=TIMESTAMP},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -250,6 +284,8 @@
|
|
|
user_id,
|
|
|
is_delete,
|
|
|
delete_time,
|
|
|
+ new_is_delete,
|
|
|
+ new_delete_time,
|
|
|
create_time,
|
|
|
update_time
|
|
|
)
|
|
@@ -260,6 +296,8 @@
|
|
|
#{item.userId,jdbcType=BIGINT},
|
|
|
#{item.isDelete,jdbcType=INTEGER},
|
|
|
#{item.deleteTime,jdbcType=TIMESTAMP},
|
|
|
+ #{newIsDelete,jdbcType=INTEGER},
|
|
|
+ #{newDeleteTime,jdbcType=TIMESTAMP},
|
|
|
#{item.createTime,jdbcType=TIMESTAMP},
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
)
|