【修改实训发布轨迹表名】
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">
|
<!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">
|
<mapper namespace="club.joylink.rtss.dao.TraceTraining2DAO">
|
||||||
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.training2.TraceTraining2">
|
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||||
<result column="draft_id" jdbcType="BIGINT" property="draftId" />
|
<result column="draft_id" jdbcType="BIGINT" property="draftId"/>
|
||||||
<result column="draft_name" jdbcType="VARCHAR" property="draftName" />
|
<result column="draft_name" jdbcType="VARCHAR" property="draftName"/>
|
||||||
<result column="draft_map_id" jdbcType="BIGINT" property="draftMapId" />
|
<result column="draft_map_id" jdbcType="BIGINT" property="draftMapId"/>
|
||||||
<result column="pub_id" jdbcType="BIGINT" property="pubId" />
|
<result column="pub_id" jdbcType="BIGINT" property="pubId"/>
|
||||||
<result column="pub_name" jdbcType="VARCHAR" property="pubName" />
|
<result column="pub_name" jdbcType="VARCHAR" property="pubName"/>
|
||||||
<result column="trace_creator_id" jdbcType="BIGINT" property="traceCreatorId" />
|
<result column="trace_creator_id" jdbcType="BIGINT" property="traceCreatorId"/>
|
||||||
<result column="trace_time" jdbcType="TIMESTAMP" property="traceTime" />
|
<result column="trace_time" jdbcType="TIMESTAMP" property="traceTime"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
<where>
|
<where>
|
||||||
@ -29,7 +29,8 @@
|
|||||||
</when>
|
</when>
|
||||||
<when test="criterion.listValue">
|
<when test="criterion.listValue">
|
||||||
and ${criterion.condition}
|
and ${criterion.condition}
|
||||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||||
|
separator=",">
|
||||||
#{listItem}
|
#{listItem}
|
||||||
</foreach>
|
</foreach>
|
||||||
</when>
|
</when>
|
||||||
@ -58,7 +59,8 @@
|
|||||||
</when>
|
</when>
|
||||||
<when test="criterion.listValue">
|
<when test="criterion.listValue">
|
||||||
and ${criterion.condition}
|
and ${criterion.condition}
|
||||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||||
|
separator=",">
|
||||||
#{listItem}
|
#{listItem}
|
||||||
</foreach>
|
</foreach>
|
||||||
</when>
|
</when>
|
||||||
@ -72,15 +74,16 @@
|
|||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, draft_id, draft_name, draft_map_id, pub_id, pub_name, trace_creator_id, trace_time
|
id, draft_id, draft_name, draft_map_id, pub_id, pub_name, trace_creator_id, trace_time
|
||||||
</sql>
|
</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
|
select
|
||||||
<if test="distinct">
|
<if test="distinct">
|
||||||
distinct
|
distinct
|
||||||
</if>
|
</if>
|
||||||
<include refid="Base_Column_List" />
|
<include refid="Base_Column_List"/>
|
||||||
from trace_training2
|
from rts_trace_training2
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Example_Where_Clause" />
|
<include refid="Example_Where_Clause"/>
|
||||||
</if>
|
</if>
|
||||||
<if test="orderByClause != null">
|
<if test="orderByClause != null">
|
||||||
order by ${orderByClause}
|
order by ${orderByClause}
|
||||||
@ -96,22 +99,22 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
<include refid="Base_Column_List" />
|
<include refid="Base_Column_List"/>
|
||||||
from trace_training2
|
from rts_trace_training2
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</select>
|
</select>
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
delete from trace_training2
|
delete from rts_trace_training2
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</delete>
|
</delete>
|
||||||
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example">
|
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example">
|
||||||
delete from trace_training2
|
delete from trace_training2
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Example_Where_Clause" />
|
<include refid="Example_Where_Clause"/>
|
||||||
</if>
|
</if>
|
||||||
</delete>
|
</delete>
|
||||||
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
<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,
|
draft_map_id, pub_id, pub_name,
|
||||||
trace_creator_id, trace_time)
|
trace_creator_id, trace_time)
|
||||||
values (#{id,jdbcType=BIGINT}, #{draftId,jdbcType=BIGINT}, #{draftName,jdbcType=VARCHAR},
|
values (#{id,jdbcType=BIGINT}, #{draftId,jdbcType=BIGINT}, #{draftName,jdbcType=VARCHAR},
|
||||||
@ -119,7 +122,7 @@
|
|||||||
#{traceCreatorId,jdbcType=BIGINT}, #{traceTime,jdbcType=TIMESTAMP})
|
#{traceCreatorId,jdbcType=BIGINT}, #{traceTime,jdbcType=TIMESTAMP})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||||
insert into trace_training2
|
insert into rts_trace_training2
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
id,
|
id,
|
||||||
@ -173,14 +176,15 @@
|
|||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example" resultType="java.lang.Long">
|
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example"
|
||||||
select count(*) from trace_training2
|
resultType="java.lang.Long">
|
||||||
|
select count(*) from rts_trace_training2
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Example_Where_Clause" />
|
<include refid="Example_Where_Clause"/>
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<update id="updateByExampleSelective" parameterType="map">
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
update trace_training2
|
update rts_trace_training2
|
||||||
<set>
|
<set>
|
||||||
<if test="record.id != null">
|
<if test="record.id != null">
|
||||||
id = #{record.id,jdbcType=BIGINT},
|
id = #{record.id,jdbcType=BIGINT},
|
||||||
@ -208,11 +212,11 @@
|
|||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause"/>
|
||||||
</if>
|
</if>
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByExample" parameterType="map">
|
<update id="updateByExample" parameterType="map">
|
||||||
update trace_training2
|
update rts_trace_training2
|
||||||
set id = #{record.id,jdbcType=BIGINT},
|
set id = #{record.id,jdbcType=BIGINT},
|
||||||
draft_id = #{record.draftId,jdbcType=BIGINT},
|
draft_id = #{record.draftId,jdbcType=BIGINT},
|
||||||
draft_name = #{record.draftName,jdbcType=VARCHAR},
|
draft_name = #{record.draftName,jdbcType=VARCHAR},
|
||||||
@ -222,11 +226,11 @@
|
|||||||
trace_creator_id = #{record.traceCreatorId,jdbcType=BIGINT},
|
trace_creator_id = #{record.traceCreatorId,jdbcType=BIGINT},
|
||||||
trace_time = #{record.traceTime,jdbcType=TIMESTAMP}
|
trace_time = #{record.traceTime,jdbcType=TIMESTAMP}
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause"/>
|
||||||
</if>
|
</if>
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||||
update trace_training2
|
update rts_trace_training2
|
||||||
<set>
|
<set>
|
||||||
<if test="draftId != null">
|
<if test="draftId != null">
|
||||||
draft_id = #{draftId,jdbcType=BIGINT},
|
draft_id = #{draftId,jdbcType=BIGINT},
|
||||||
@ -253,7 +257,7 @@
|
|||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
|
||||||
update trace_training2
|
update rts_trace_training2
|
||||||
set draft_id = #{draftId,jdbcType=BIGINT},
|
set draft_id = #{draftId,jdbcType=BIGINT},
|
||||||
draft_name = #{draftName,jdbcType=VARCHAR},
|
draft_name = #{draftName,jdbcType=VARCHAR},
|
||||||
draft_map_id = #{draftMapId,jdbcType=BIGINT},
|
draft_map_id = #{draftMapId,jdbcType=BIGINT},
|
||||||
|
Loading…
Reference in New Issue
Block a user