【保存实训最后运行状态】

This commit is contained in:
weizhihong 2022-08-31 17:10:32 +08:00
parent da9355b9a7
commit 11095aa217
2 changed files with 533 additions and 501 deletions

View File

@ -3,8 +3,8 @@
<mapper namespace="club.joylink.rtss.dao.DraftTraining2DAO">
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.training2.DraftTraining2">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="map_id" jdbcType="BIGINT" property="mapId"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="map_id" jdbcType="BIGINT" property="mapId"/>
<result column="description" jdbcType="VARCHAR" property="description"/>
<result column="type" jdbcType="VARCHAR" property="type"/>
<result column="label_json" jdbcType="VARCHAR" property="labelJson"/>
@ -18,6 +18,7 @@
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs"
type="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
<result column="bg_scene_json" jdbcType="LONGVARCHAR" property="bgSceneJson"/>
<result column="final_scenes_json" jdbcType="LONGVARCHAR" property="finalScenesJson"/>
<result column="opera_json" jdbcType="LONGVARCHAR" property="operaJson"/>
<result column="step_json" jdbcType="LONGVARCHAR" property="stepJson"/>
<result column="scoring_rule_json" jdbcType="LONGVARCHAR" property="scoringRuleJson"/>
@ -85,11 +86,12 @@
</where>
</sql>
<sql id="Base_Column_List">
id, map_id, `name`, description, `type`, label_json, map_location_json, run_plan_id,
id, `name`, map_id, description, `type`, label_json, map_location_json, run_plan_id,
failure_condition_json, creator_id, create_time, update_time
</sql>
<sql id="Blob_Column_List">
bg_scene_json, opera_json, step_json, scoring_rule_json, member_json, player_id_json
bg_scene_json, final_scenes_json, opera_json, step_json, scoring_rule_json, member_json,
player_id_json
</sql>
<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.training2.DraftTraining2Example"
resultMap="ResultMapWithBLOBs">
@ -158,21 +160,20 @@
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
insert into draft_training2 (id, map_id, `name`,
insert into draft_training2 (id, `name`, map_id,
description, `type`, label_json,
map_location_json, run_plan_id, failure_condition_json,
creator_id, create_time, update_time,
bg_scene_json, opera_json, step_json,
scoring_rule_json, member_json, player_id_json
)
values (#{id,jdbcType=BIGINT}, #{mapId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
bg_scene_json, final_scenes_json, opera_json,
step_json, scoring_rule_json, member_json,
player_id_json)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{mapId,jdbcType=BIGINT},
#{description,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{labelJson,jdbcType=VARCHAR},
#{mapLocationJson,jdbcType=VARCHAR}, #{runPlanId,jdbcType=BIGINT}, #{failureConditionJson,jdbcType=VARCHAR},
#{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{bgSceneJson,jdbcType=LONGVARCHAR}, #{operaJson,jdbcType=LONGVARCHAR}, #{stepJson,jdbcType=LONGVARCHAR},
#{scoringRuleJson,jdbcType=LONGVARCHAR}, #{memberJson,jdbcType=LONGVARCHAR},
#{playerIdJson,jdbcType=LONGVARCHAR}
)
#{bgSceneJson,jdbcType=LONGVARCHAR}, #{finalScenesJson,jdbcType=LONGVARCHAR}, #{operaJson,jdbcType=LONGVARCHAR},
#{stepJson,jdbcType=LONGVARCHAR}, #{scoringRuleJson,jdbcType=LONGVARCHAR}, #{memberJson,jdbcType=LONGVARCHAR},
#{playerIdJson,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
insert into draft_training2
@ -180,12 +181,12 @@
<if test="id != null">
id,
</if>
<if test="mapId != null">
map_id,
</if>
<if test="name != null">
`name`,
</if>
<if test="mapId != null">
map_id,
</if>
<if test="description != null">
description,
</if>
@ -216,6 +217,9 @@
<if test="bgSceneJson != null">
bg_scene_json,
</if>
<if test="finalScenesJson != null">
final_scenes_json,
</if>
<if test="operaJson != null">
opera_json,
</if>
@ -236,12 +240,12 @@
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="mapId != null">
#{mapId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="mapId != null">
#{mapId,jdbcType=BIGINT},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
@ -272,6 +276,9 @@
<if test="bgSceneJson != null">
#{bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="finalScenesJson != null">
#{finalScenesJson,jdbcType=LONGVARCHAR},
</if>
<if test="operaJson != null">
#{operaJson,jdbcType=LONGVARCHAR},
</if>
@ -302,12 +309,12 @@
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.mapId != null">
map_id = #{record.mapId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.mapId != null">
map_id = #{record.mapId,jdbcType=BIGINT},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
@ -338,6 +345,9 @@
<if test="record.bgSceneJson != null">
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.finalScenesJson != null">
final_scenes_json = #{record.finalScenesJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.operaJson != null">
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
</if>
@ -361,8 +371,8 @@
<update id="updateByExampleWithBLOBs" parameterType="map">
update draft_training2
set id = #{record.id,jdbcType=BIGINT},
map_id = #{record.mapId,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
map_id = #{record.mapId,jdbcType=BIGINT},
description = #{record.description,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
label_json = #{record.labelJson,jdbcType=VARCHAR},
@ -373,6 +383,7 @@
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
final_scenes_json = #{record.finalScenesJson,jdbcType=LONGVARCHAR},
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
@ -385,8 +396,8 @@
<update id="updateByExample" parameterType="map">
update draft_training2
set id = #{record.id,jdbcType=BIGINT},
map_id = #{record.mapId,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
map_id = #{record.mapId,jdbcType=BIGINT},
description = #{record.description,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
label_json = #{record.labelJson,jdbcType=VARCHAR},
@ -403,12 +414,12 @@
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
update draft_training2
<set>
<if test="mapId != null">
map_id = #{mapId,jdbcType=BIGINT},
</if>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="mapId != null">
map_id = #{mapId,jdbcType=BIGINT},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
@ -439,6 +450,9 @@
<if test="bgSceneJson != null">
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="finalScenesJson != null">
final_scenes_json = #{finalScenesJson,jdbcType=LONGVARCHAR},
</if>
<if test="operaJson != null">
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
</if>
@ -459,8 +473,8 @@
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="club.joylink.rtss.entity.training2.DraftTraining2WithBLOBs">
update draft_training2
set map_id = #{mapId,jdbcType=BIGINT},
`name` = #{name,jdbcType=VARCHAR},
set `name` = #{name,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
label_json = #{labelJson,jdbcType=VARCHAR},
@ -471,6 +485,7 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
final_scenes_json = #{finalScenesJson,jdbcType=LONGVARCHAR},
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
step_json = #{stepJson,jdbcType=LONGVARCHAR},
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
@ -480,8 +495,8 @@
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.DraftTraining2">
update draft_training2
set map_id = #{mapId,jdbcType=BIGINT},
`name` = #{name,jdbcType=VARCHAR},
set `name` = #{name,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
label_json = #{labelJson,jdbcType=VARCHAR},
@ -493,11 +508,4 @@
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateStepJson" parameterType="map">
update draft_training2
set step_json = #{stepJson,jdbcType=LONGVARCHAR},
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -1,506 +1,530 @@
<?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.PublishedTraining2DAO">
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.training2.PublishedTraining2">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="map_id" jdbcType="BIGINT" property="mapId" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="label_json" jdbcType="VARCHAR" property="labelJson" />
<result column="map_location_json" jdbcType="VARCHAR" property="mapLocationJson" />
<result column="run_plan_id" jdbcType="BIGINT" property="runPlanId" />
<result column="failure_condition_json" jdbcType="VARCHAR" property="failureConditionJson" />
<result column="creator_id" jdbcType="BIGINT" property="creatorId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="state" jdbcType="INTEGER" property="state" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
<result column="bg_scene_json" jdbcType="LONGVARCHAR" property="bgSceneJson" />
<result column="opera_json" jdbcType="LONGVARCHAR" property="operaJson" />
<result column="step_json" jdbcType="LONGVARCHAR" property="stepJson" />
<result column="scoring_rule_json" jdbcType="LONGVARCHAR" property="scoringRuleJson" />
<result column="member_json" jdbcType="LONGVARCHAR" property="memberJson" />
<result column="player_id_json" jdbcType="LONGVARCHAR" property="playerIdJson" />
</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.PublishedTraining2">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="map_id" jdbcType="BIGINT" property="mapId"/>
<result column="description" jdbcType="VARCHAR" property="description"/>
<result column="type" jdbcType="VARCHAR" property="type"/>
<result column="label_json" jdbcType="VARCHAR" property="labelJson"/>
<result column="map_location_json" jdbcType="VARCHAR" property="mapLocationJson"/>
<result column="run_plan_id" jdbcType="BIGINT" property="runPlanId"/>
<result column="failure_condition_json" jdbcType="VARCHAR" property="failureConditionJson"/>
<result column="creator_id" jdbcType="BIGINT" property="creatorId"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="state" jdbcType="INTEGER" property="state"/>
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs"
type="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
<result column="bg_scene_json" jdbcType="LONGVARCHAR" property="bgSceneJson"/>
<result column="opera_json" jdbcType="LONGVARCHAR" property="operaJson"/>
<result column="step_json" jdbcType="LONGVARCHAR" property="stepJson"/>
<result column="scoring_rule_json" jdbcType="LONGVARCHAR" property="scoringRuleJson"/>
<result column="member_json" jdbcType="LONGVARCHAR" property="memberJson"/>
<result column="player_id_json" jdbcType="LONGVARCHAR" property="playerIdJson"/>
<result column="final_scenes_json" jdbcType="LONGVARCHAR" property="finalScenesJson"/>
</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, `name`, map_id, description, `type`, label_json, map_location_json, run_plan_id,
failure_condition_json, creator_id, create_time, update_time, `state`
</sql>
<sql id="Blob_Column_List">
bg_scene_json, opera_json, step_json, scoring_rule_json, member_json, player_id_json,
final_scenes_json
</sql>
<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example"
resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, `name`, map_id, description, `type`, label_json, map_location_json, run_plan_id,
failure_condition_json, creator_id, create_time, update_time, `state`
</sql>
<sql id="Blob_Column_List">
bg_scene_json, opera_json, step_json, scoring_rule_json, member_json, player_id_json
</sql>
<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from published_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="selectByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from published_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="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from published_training2
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from published_training2
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example">
delete from published_training2
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
insert into published_training2 (id, `name`, map_id,
description, `type`, label_json,
map_location_json, run_plan_id, failure_condition_json,
creator_id, create_time, update_time,
`state`, bg_scene_json, opera_json,
step_json, scoring_rule_json, member_json,
player_id_json)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{mapId,jdbcType=BIGINT},
#{description,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{labelJson,jdbcType=VARCHAR},
#{mapLocationJson,jdbcType=VARCHAR}, #{runPlanId,jdbcType=BIGINT}, #{failureConditionJson,jdbcType=VARCHAR},
#{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{state,jdbcType=INTEGER}, #{bgSceneJson,jdbcType=LONGVARCHAR}, #{operaJson,jdbcType=LONGVARCHAR},
#{stepJson,jdbcType=LONGVARCHAR}, #{scoringRuleJson,jdbcType=LONGVARCHAR}, #{memberJson,jdbcType=LONGVARCHAR},
#{playerIdJson,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
insert into published_training2
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
`name`,
</if>
<if test="mapId != null">
map_id,
</if>
<if test="description != null">
description,
</if>
<if test="type != null">
`type`,
</if>
<if test="labelJson != null">
label_json,
</if>
<if test="mapLocationJson != null">
map_location_json,
</if>
<if test="runPlanId != null">
run_plan_id,
</if>
<if test="failureConditionJson != null">
failure_condition_json,
</if>
<if test="creatorId != null">
creator_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="state != null">
`state`,
</if>
<if test="bgSceneJson != null">
bg_scene_json,
</if>
<if test="operaJson != null">
opera_json,
</if>
<if test="stepJson != null">
step_json,
</if>
<if test="scoringRuleJson != null">
scoring_rule_json,
</if>
<if test="memberJson != null">
member_json,
</if>
<if test="playerIdJson != null">
player_id_json,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="mapId != null">
#{mapId,jdbcType=BIGINT},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="labelJson != null">
#{labelJson,jdbcType=VARCHAR},
</if>
<if test="mapLocationJson != null">
#{mapLocationJson,jdbcType=VARCHAR},
</if>
<if test="runPlanId != null">
#{runPlanId,jdbcType=BIGINT},
</if>
<if test="failureConditionJson != null">
#{failureConditionJson,jdbcType=VARCHAR},
</if>
<if test="creatorId != null">
#{creatorId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="state != null">
#{state,jdbcType=INTEGER},
</if>
<if test="bgSceneJson != null">
#{bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="operaJson != null">
#{operaJson,jdbcType=LONGVARCHAR},
</if>
<if test="stepJson != null">
#{stepJson,jdbcType=LONGVARCHAR},
</if>
<if test="scoringRuleJson != null">
#{scoringRuleJson,jdbcType=LONGVARCHAR},
</if>
<if test="memberJson != null">
#{memberJson,jdbcType=LONGVARCHAR},
</if>
<if test="playerIdJson != null">
#{playerIdJson,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example" resultType="java.lang.Long">
select count(*) from published_training2
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update published_training2
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
<include refid="Base_Column_List"/>
,
<include refid="Blob_Column_List"/>
from published_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="selectByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example"
resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List"/>
from published_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="ResultMapWithBLOBs">
select
<include refid="Base_Column_List"/>
,
<include refid="Blob_Column_List"/>
from published_training2
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from published_training2
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example">
delete from published_training2
<if test="_parameter != null">
<include refid="Example_Where_Clause"/>
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
insert into published_training2 (id, `name`, map_id,
description, `type`, label_json,
map_location_json, run_plan_id, failure_condition_json,
creator_id, create_time, update_time,
`state`, bg_scene_json, opera_json,
step_json, scoring_rule_json, member_json,
player_id_json, final_scenes_json)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{mapId,jdbcType=BIGINT},
#{description,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{labelJson,jdbcType=VARCHAR},
#{mapLocationJson,jdbcType=VARCHAR}, #{runPlanId,jdbcType=BIGINT}, #{failureConditionJson,jdbcType=VARCHAR},
#{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{state,jdbcType=INTEGER}, #{bgSceneJson,jdbcType=LONGVARCHAR}, #{operaJson,jdbcType=LONGVARCHAR},
#{stepJson,jdbcType=LONGVARCHAR}, #{scoringRuleJson,jdbcType=LONGVARCHAR}, #{memberJson,jdbcType=LONGVARCHAR},
#{playerIdJson,jdbcType=LONGVARCHAR}, #{finalScenesJson,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
insert into published_training2
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
`name`,
</if>
<if test="mapId != null">
map_id,
</if>
<if test="description != null">
description,
</if>
<if test="type != null">
`type`,
</if>
<if test="labelJson != null">
label_json,
</if>
<if test="mapLocationJson != null">
map_location_json,
</if>
<if test="runPlanId != null">
run_plan_id,
</if>
<if test="failureConditionJson != null">
failure_condition_json,
</if>
<if test="creatorId != null">
creator_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="state != null">
`state`,
</if>
<if test="bgSceneJson != null">
bg_scene_json,
</if>
<if test="operaJson != null">
opera_json,
</if>
<if test="stepJson != null">
step_json,
</if>
<if test="scoringRuleJson != null">
scoring_rule_json,
</if>
<if test="memberJson != null">
member_json,
</if>
<if test="playerIdJson != null">
player_id_json,
</if>
<if test="finalScenesJson != null">
final_scenes_json,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="mapId != null">
#{mapId,jdbcType=BIGINT},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="labelJson != null">
#{labelJson,jdbcType=VARCHAR},
</if>
<if test="mapLocationJson != null">
#{mapLocationJson,jdbcType=VARCHAR},
</if>
<if test="runPlanId != null">
#{runPlanId,jdbcType=BIGINT},
</if>
<if test="failureConditionJson != null">
#{failureConditionJson,jdbcType=VARCHAR},
</if>
<if test="creatorId != null">
#{creatorId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="state != null">
#{state,jdbcType=INTEGER},
</if>
<if test="bgSceneJson != null">
#{bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="operaJson != null">
#{operaJson,jdbcType=LONGVARCHAR},
</if>
<if test="stepJson != null">
#{stepJson,jdbcType=LONGVARCHAR},
</if>
<if test="scoringRuleJson != null">
#{scoringRuleJson,jdbcType=LONGVARCHAR},
</if>
<if test="memberJson != null">
#{memberJson,jdbcType=LONGVARCHAR},
</if>
<if test="playerIdJson != null">
#{playerIdJson,jdbcType=LONGVARCHAR},
</if>
<if test="finalScenesJson != null">
#{finalScenesJson,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example"
resultType="java.lang.Long">
select count(*) from published_training2
<if test="_parameter != null">
<include refid="Example_Where_Clause"/>
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update published_training2
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.mapId != null">
map_id = #{record.mapId,jdbcType=BIGINT},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
`type` = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.labelJson != null">
label_json = #{record.labelJson,jdbcType=VARCHAR},
</if>
<if test="record.mapLocationJson != null">
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
</if>
<if test="record.runPlanId != null">
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
</if>
<if test="record.failureConditionJson != null">
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
</if>
<if test="record.creatorId != null">
creator_id = #{record.creatorId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.state != null">
`state` = #{record.state,jdbcType=INTEGER},
</if>
<if test="record.bgSceneJson != null">
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.operaJson != null">
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.stepJson != null">
step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.scoringRuleJson != null">
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.memberJson != null">
member_json = #{record.memberJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.playerIdJson != null">
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.finalScenesJson != null">
final_scenes_json = #{record.finalScenesJson,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update published_training2
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.mapId != null">
map_id = #{record.mapId,jdbcType=BIGINT},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
`type` = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.labelJson != null">
label_json = #{record.labelJson,jdbcType=VARCHAR},
</if>
<if test="record.mapLocationJson != null">
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
</if>
<if test="record.runPlanId != null">
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
</if>
<if test="record.failureConditionJson != null">
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
</if>
<if test="record.creatorId != null">
creator_id = #{record.creatorId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.state != null">
`state` = #{record.state,jdbcType=INTEGER},
</if>
<if test="record.bgSceneJson != null">
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.operaJson != null">
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.stepJson != null">
step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.scoringRuleJson != null">
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.memberJson != null">
member_json = #{record.memberJson,jdbcType=LONGVARCHAR},
</if>
<if test="record.playerIdJson != null">
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update published_training2
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
map_id = #{record.mapId,jdbcType=BIGINT},
description = #{record.description,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
label_json = #{record.labelJson,jdbcType=VARCHAR},
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
`state` = #{record.state,jdbcType=INTEGER},
bg_scene_json = #{record.bgSceneJson,jdbcType=LONGVARCHAR},
opera_json = #{record.operaJson,jdbcType=LONGVARCHAR},
step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
member_json = #{record.memberJson,jdbcType=LONGVARCHAR},
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update published_training2
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
map_id = #{record.mapId,jdbcType=BIGINT},
description = #{record.description,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
label_json = #{record.labelJson,jdbcType=VARCHAR},
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
`state` = #{record.state,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
update published_training2
<set>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="mapId != null">
final_scenes_json = #{record.finalScenesJson,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByExample" parameterType="map">
update published_training2
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
map_id = #{record.mapId,jdbcType=BIGINT},
description = #{record.description,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
label_json = #{record.labelJson,jdbcType=VARCHAR},
map_location_json = #{record.mapLocationJson,jdbcType=VARCHAR},
run_plan_id = #{record.runPlanId,jdbcType=BIGINT},
failure_condition_json = #{record.failureConditionJson,jdbcType=VARCHAR},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
`state` = #{record.state,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByPrimaryKeySelective"
parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
update published_training2
<set>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="mapId != null">
map_id = #{mapId,jdbcType=BIGINT},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="type != null">
`type` = #{type,jdbcType=VARCHAR},
</if>
<if test="labelJson != null">
label_json = #{labelJson,jdbcType=VARCHAR},
</if>
<if test="mapLocationJson != null">
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
</if>
<if test="runPlanId != null">
run_plan_id = #{runPlanId,jdbcType=BIGINT},
</if>
<if test="failureConditionJson != null">
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
</if>
<if test="creatorId != null">
creator_id = #{creatorId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="state != null">
`state` = #{state,jdbcType=INTEGER},
</if>
<if test="bgSceneJson != null">
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="operaJson != null">
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
</if>
<if test="stepJson != null">
step_json = #{stepJson,jdbcType=LONGVARCHAR},
</if>
<if test="scoringRuleJson != null">
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
</if>
<if test="memberJson != null">
member_json = #{memberJson,jdbcType=LONGVARCHAR},
</if>
<if test="playerIdJson != null">
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR},
</if>
<if test="finalScenesJson != null">
final_scenes_json = #{finalScenesJson,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs"
parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
update published_training2
set `name` = #{name,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="type != null">
`type` = #{type,jdbcType=VARCHAR},
</if>
<if test="labelJson != null">
label_json = #{labelJson,jdbcType=VARCHAR},
</if>
<if test="mapLocationJson != null">
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
</if>
<if test="runPlanId != null">
run_plan_id = #{runPlanId,jdbcType=BIGINT},
</if>
<if test="failureConditionJson != null">
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
</if>
<if test="creatorId != null">
creator_id = #{creatorId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="state != null">
`state` = #{state,jdbcType=INTEGER},
</if>
<if test="bgSceneJson != null">
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
</if>
<if test="operaJson != null">
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
</if>
<if test="stepJson != null">
step_json = #{stepJson,jdbcType=LONGVARCHAR},
</if>
<if test="scoringRuleJson != null">
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
</if>
<if test="memberJson != null">
member_json = #{memberJson,jdbcType=LONGVARCHAR},
</if>
<if test="playerIdJson != null">
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
update published_training2
set `name` = #{name,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
label_json = #{labelJson,jdbcType=VARCHAR},
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
run_plan_id = #{runPlanId,jdbcType=BIGINT},
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
`state` = #{state,jdbcType=INTEGER},
bg_scene_json = #{bgSceneJson,jdbcType=LONGVARCHAR},
opera_json = #{operaJson,jdbcType=LONGVARCHAR},
step_json = #{stepJson,jdbcType=LONGVARCHAR},
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
member_json = #{memberJson,jdbcType=LONGVARCHAR},
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2">
update published_training2
set `name` = #{name,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
label_json = #{labelJson,jdbcType=VARCHAR},
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
run_plan_id = #{runPlanId,jdbcType=BIGINT},
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
`state` = #{state,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
final_scenes_json = #{finalScenesJson,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2">
update published_training2
set `name` = #{name,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
label_json = #{labelJson,jdbcType=VARCHAR},
map_location_json = #{mapLocationJson,jdbcType=VARCHAR},
run_plan_id = #{runPlanId,jdbcType=BIGINT},
failure_condition_json = #{failureConditionJson,jdbcType=VARCHAR},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
`state` = #{state,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>