【修改实训发布轨迹表名】

This commit is contained in:
weizhihong 2022-10-28 16:46:11 +08:00
parent e1d431ecb6
commit 8e2d2e6a01
2 changed files with 253 additions and 248 deletions

View File

@ -0,0 +1 @@
rename TABLE trace_training2 to rts_trace_training2;

View File

@ -1,266 +1,270 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
<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"/>
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="("
separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="("
separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</trim>
</where>
</sql>
<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
<if test="distinct">
distinct
</if>
</foreach>
</where>
</sql>
<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
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from trace_training2
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
<if test="limit != null">
<if test="offset != null">
limit ${offset}, ${limit}
</if>
<if test="offset == null">
limit ${limit}
</if>
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from trace_training2
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from 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" />
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
insert into 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},
#{draftMapId,jdbcType=BIGINT}, #{pubId,jdbcType=BIGINT}, #{pubName,jdbcType=VARCHAR},
#{traceCreatorId,jdbcType=BIGINT}, #{traceTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
insert into trace_training2
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="draftId != null">
draft_id,
</if>
<if test="draftName != null">
draft_name,
</if>
<if test="draftMapId != null">
draft_map_id,
</if>
<if test="pubId != null">
pub_id,
</if>
<if test="pubName != null">
pub_name,
</if>
<if test="traceCreatorId != null">
trace_creator_id,
</if>
<if test="traceTime != null">
trace_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="draftId != null">
#{draftId,jdbcType=BIGINT},
</if>
<if test="draftName != null">
#{draftName,jdbcType=VARCHAR},
</if>
<if test="draftMapId != null">
#{draftMapId,jdbcType=BIGINT},
</if>
<if test="pubId != null">
#{pubId,jdbcType=BIGINT},
</if>
<if test="pubName != null">
#{pubName,jdbcType=VARCHAR},
</if>
<if test="traceCreatorId != null">
#{traceCreatorId,jdbcType=BIGINT},
</if>
<if test="traceTime != null">
#{traceTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.TraceTraining2Example" resultType="java.lang.Long">
select count(*) from trace_training2
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update trace_training2
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.draftId != null">
<include refid="Base_Column_List"/>
from rts_trace_training2
<if test="_parameter != null">
<include refid="Example_Where_Clause"/>
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
<if test="limit != null">
<if test="offset != null">
limit ${offset}, ${limit}
</if>
<if test="offset == null">
limit ${limit}
</if>
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from rts_trace_training2
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
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"/>
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
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},
#{draftMapId,jdbcType=BIGINT}, #{pubId,jdbcType=BIGINT}, #{pubName,jdbcType=VARCHAR},
#{traceCreatorId,jdbcType=BIGINT}, #{traceTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
insert into rts_trace_training2
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="draftId != null">
draft_id,
</if>
<if test="draftName != null">
draft_name,
</if>
<if test="draftMapId != null">
draft_map_id,
</if>
<if test="pubId != null">
pub_id,
</if>
<if test="pubName != null">
pub_name,
</if>
<if test="traceCreatorId != null">
trace_creator_id,
</if>
<if test="traceTime != null">
trace_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="draftId != null">
#{draftId,jdbcType=BIGINT},
</if>
<if test="draftName != null">
#{draftName,jdbcType=VARCHAR},
</if>
<if test="draftMapId != null">
#{draftMapId,jdbcType=BIGINT},
</if>
<if test="pubId != null">
#{pubId,jdbcType=BIGINT},
</if>
<if test="pubName != null">
#{pubName,jdbcType=VARCHAR},
</if>
<if test="traceCreatorId != null">
#{traceCreatorId,jdbcType=BIGINT},
</if>
<if test="traceTime != null">
#{traceTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<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 rts_trace_training2
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.draftId != null">
draft_id = #{record.draftId,jdbcType=BIGINT},
</if>
<if test="record.draftName != null">
draft_name = #{record.draftName,jdbcType=VARCHAR},
</if>
<if test="record.draftMapId != null">
draft_map_id = #{record.draftMapId,jdbcType=BIGINT},
</if>
<if test="record.pubId != null">
pub_id = #{record.pubId,jdbcType=BIGINT},
</if>
<if test="record.pubName != null">
pub_name = #{record.pubName,jdbcType=VARCHAR},
</if>
<if test="record.traceCreatorId != null">
trace_creator_id = #{record.traceCreatorId,jdbcType=BIGINT},
</if>
<if test="record.traceTime != null">
trace_time = #{record.traceTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByExample" parameterType="map">
update rts_trace_training2
set id = #{record.id,jdbcType=BIGINT},
draft_id = #{record.draftId,jdbcType=BIGINT},
</if>
<if test="record.draftName != null">
draft_name = #{record.draftName,jdbcType=VARCHAR},
</if>
<if test="record.draftMapId != null">
draft_map_id = #{record.draftMapId,jdbcType=BIGINT},
</if>
<if test="record.pubId != null">
pub_id = #{record.pubId,jdbcType=BIGINT},
</if>
<if test="record.pubName != null">
pub_name = #{record.pubName,jdbcType=VARCHAR},
</if>
<if test="record.traceCreatorId != null">
trace_creator_id = #{record.traceCreatorId,jdbcType=BIGINT},
</if>
<if test="record.traceTime != null">
trace_time = #{record.traceTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update trace_training2
set id = #{record.id,jdbcType=BIGINT},
draft_id = #{record.draftId,jdbcType=BIGINT},
draft_name = #{record.draftName,jdbcType=VARCHAR},
draft_map_id = #{record.draftMapId,jdbcType=BIGINT},
pub_id = #{record.pubId,jdbcType=BIGINT},
pub_name = #{record.pubName,jdbcType=VARCHAR},
trace_creator_id = #{record.traceCreatorId,jdbcType=BIGINT},
trace_time = #{record.traceTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
update trace_training2
<set>
<if test="draftId != null">
draft_id = #{draftId,jdbcType=BIGINT},
</if>
<if test="draftName != null">
trace_time = #{record.traceTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
update rts_trace_training2
<set>
<if test="draftId != null">
draft_id = #{draftId,jdbcType=BIGINT},
</if>
<if test="draftName != null">
draft_name = #{draftName,jdbcType=VARCHAR},
</if>
<if test="draftMapId != null">
draft_map_id = #{draftMapId,jdbcType=BIGINT},
</if>
<if test="pubId != null">
pub_id = #{pubId,jdbcType=BIGINT},
</if>
<if test="pubName != null">
pub_name = #{pubName,jdbcType=VARCHAR},
</if>
<if test="traceCreatorId != null">
trace_creator_id = #{traceCreatorId,jdbcType=BIGINT},
</if>
<if test="traceTime != null">
trace_time = #{traceTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
update rts_trace_training2
set draft_id = #{draftId,jdbcType=BIGINT},
draft_name = #{draftName,jdbcType=VARCHAR},
</if>
<if test="draftMapId != null">
draft_map_id = #{draftMapId,jdbcType=BIGINT},
</if>
<if test="pubId != null">
pub_id = #{pubId,jdbcType=BIGINT},
</if>
<if test="pubName != null">
pub_name = #{pubName,jdbcType=VARCHAR},
</if>
<if test="traceCreatorId != null">
trace_creator_id = #{traceCreatorId,jdbcType=BIGINT},
</if>
<if test="traceTime != null">
trace_time = #{traceTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.TraceTraining2">
update trace_training2
set draft_id = #{draftId,jdbcType=BIGINT},
draft_name = #{draftName,jdbcType=VARCHAR},
draft_map_id = #{draftMapId,jdbcType=BIGINT},
pub_id = #{pubId,jdbcType=BIGINT},
pub_name = #{pubName,jdbcType=VARCHAR},
trace_creator_id = #{traceCreatorId,jdbcType=BIGINT},
trace_time = #{traceTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
trace_time = #{traceTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>