【修改实训发布轨迹表名】
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;
|
@ -2,14 +2,14 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="club.joylink.rtss.dao.TraceTraining2DAO">
|
||||
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="draft_id" jdbcType="BIGINT" property="draftId" />
|
||||
<result column="draft_name" jdbcType="VARCHAR" property="draftName" />
|
||||
<result column="draft_map_id" jdbcType="BIGINT" property="draftMapId" />
|
||||
<result column="pub_id" jdbcType="BIGINT" property="pubId" />
|
||||
<result column="pub_name" jdbcType="VARCHAR" property="pubName" />
|
||||
<result column="trace_creator_id" jdbcType="BIGINT" property="traceCreatorId" />
|
||||
<result column="trace_time" jdbcType="TIMESTAMP" property="traceTime" />
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="draft_id" jdbcType="BIGINT" property="draftId"/>
|
||||
<result column="draft_name" jdbcType="VARCHAR" property="draftName"/>
|
||||
<result column="draft_map_id" jdbcType="BIGINT" property="draftMapId"/>
|
||||
<result column="pub_id" jdbcType="BIGINT" property="pubId"/>
|
||||
<result column="pub_name" jdbcType="VARCHAR" property="pubName"/>
|
||||
<result column="trace_creator_id" jdbcType="BIGINT" property="traceCreatorId"/>
|
||||
<result column="trace_time" jdbcType="TIMESTAMP" property="traceTime"/>
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
@ -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,15 +74,16 @@
|
||||
<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
|
||||
<include refid="Base_Column_List"/>
|
||||
from rts_trace_training2
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
@ -96,22 +99,22 @@
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from trace_training2
|
||||
<include refid="Base_Column_List"/>
|
||||
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">
|
||||
delete from trace_training2
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</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" />
|
||||
<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},
|
||||
@ -208,11 +212,11 @@
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</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},
|
||||
@ -222,11 +226,11 @@
|
||||
trace_creator_id = #{record.traceCreatorId,jdbcType=BIGINT},
|
||||
trace_time = #{record.traceTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</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