【修改实训发布轨迹表名】
This commit is contained in:
parent
e1d431ecb6
commit
8e2d2e6a01
1
sql/20221028-wei-training2.sql
Normal file
1
sql/20221028-wei-training2.sql
Normal file
@ -0,0 +1 @@
|
||||
rename TABLE trace_training2 to rts_trace_training2;
|
@ -29,7 +29,8 @@
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
@ -58,7 +59,8 @@
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
@ -72,13 +74,14 @@
|
||||
<sql id="Base_Column_List">
|
||||
id, draft_id, draft_name, draft_map_id, pub_id, pub_name, trace_creator_id, trace_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example" resultMap="BaseResultMap">
|
||||
<select id="selectByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
from trace_training2
|
||||
from rts_trace_training2
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
@ -97,11 +100,11 @@
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from trace_training2
|
||||
from rts_trace_training2
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from trace_training2
|
||||
delete from rts_trace_training2
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example">
|
||||
@ -111,7 +114,7 @@
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||
insert into trace_training2 (id, draft_id, draft_name,
|
||||
insert into rts_trace_training2 (id, draft_id, draft_name,
|
||||
draft_map_id, pub_id, pub_name,
|
||||
trace_creator_id, trace_time)
|
||||
values (#{id,jdbcType=BIGINT}, #{draftId,jdbcType=BIGINT}, #{draftName,jdbcType=VARCHAR},
|
||||
@ -119,7 +122,7 @@
|
||||
#{traceCreatorId,jdbcType=BIGINT}, #{traceTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||
insert into trace_training2
|
||||
insert into rts_trace_training2
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
@ -173,14 +176,15 @@
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example" resultType="java.lang.Long">
|
||||
select count(*) from trace_training2
|
||||
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example"
|
||||
resultType="java.lang.Long">
|
||||
select count(*) from rts_trace_training2
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update trace_training2
|
||||
update rts_trace_training2
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=BIGINT},
|
||||
@ -212,7 +216,7 @@
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update trace_training2
|
||||
update rts_trace_training2
|
||||
set id = #{record.id,jdbcType=BIGINT},
|
||||
draft_id = #{record.draftId,jdbcType=BIGINT},
|
||||
draft_name = #{record.draftName,jdbcType=VARCHAR},
|
||||
@ -226,7 +230,7 @@
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||
update trace_training2
|
||||
update rts_trace_training2
|
||||
<set>
|
||||
<if test="draftId != null">
|
||||
draft_id = #{draftId,jdbcType=BIGINT},
|
||||
@ -253,7 +257,7 @@
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||
update trace_training2
|
||||
update rts_trace_training2
|
||||
set draft_id = #{draftId,jdbcType=BIGINT},
|
||||
draft_name = #{draftName,jdbcType=VARCHAR},
|
||||
draft_map_id = #{draftMapId,jdbcType=BIGINT},
|
||||
|
Loading…
Reference in New Issue
Block a user