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

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

View File

@ -16,13 +16,15 @@
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="state" jdbcType="INTEGER" property="state"/> <result column="state" jdbcType="INTEGER" property="state"/>
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs"
type="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
<result column="bg_scene_json" jdbcType="LONGVARCHAR" property="bgSceneJson"/> <result column="bg_scene_json" jdbcType="LONGVARCHAR" property="bgSceneJson"/>
<result column="opera_json" jdbcType="LONGVARCHAR" property="operaJson"/> <result column="opera_json" jdbcType="LONGVARCHAR" property="operaJson"/>
<result column="step_json" jdbcType="LONGVARCHAR" property="stepJson"/> <result column="step_json" jdbcType="LONGVARCHAR" property="stepJson"/>
<result column="scoring_rule_json" jdbcType="LONGVARCHAR" property="scoringRuleJson"/> <result column="scoring_rule_json" jdbcType="LONGVARCHAR" property="scoringRuleJson"/>
<result column="member_json" jdbcType="LONGVARCHAR" property="memberJson"/> <result column="member_json" jdbcType="LONGVARCHAR" property="memberJson"/>
<result column="player_id_json" jdbcType="LONGVARCHAR" property="playerIdJson"/> <result column="player_id_json" jdbcType="LONGVARCHAR" property="playerIdJson"/>
<result column="final_scenes_json" jdbcType="LONGVARCHAR" property="finalScenesJson"/>
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
@ -42,7 +44,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>
@ -71,7 +74,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>
@ -87,9 +91,11 @@
failure_condition_json, creator_id, create_time, update_time, `state` failure_condition_json, creator_id, create_time, update_time, `state`
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
bg_scene_json, opera_json, step_json, scoring_rule_json, member_json, player_id_json bg_scene_json, opera_json, step_json, scoring_rule_json, member_json, player_id_json,
final_scenes_json
</sql> </sql>
<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example" resultMap="ResultMapWithBLOBs"> <select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example"
resultMap="ResultMapWithBLOBs">
select select
<if test="distinct"> <if test="distinct">
distinct distinct
@ -113,7 +119,8 @@
</if> </if>
</if> </if>
</select> </select>
<select id="selectByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example"
resultMap="BaseResultMap">
select select
<if test="distinct"> <if test="distinct">
distinct distinct
@ -160,14 +167,14 @@
creator_id, create_time, update_time, creator_id, create_time, update_time,
`state`, bg_scene_json, opera_json, `state`, bg_scene_json, opera_json,
step_json, scoring_rule_json, member_json, step_json, scoring_rule_json, member_json,
player_id_json) player_id_json, final_scenes_json)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{mapId,jdbcType=BIGINT}, values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{mapId,jdbcType=BIGINT},
#{description,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{labelJson,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{labelJson,jdbcType=VARCHAR},
#{mapLocationJson,jdbcType=VARCHAR}, #{runPlanId,jdbcType=BIGINT}, #{failureConditionJson,jdbcType=VARCHAR}, #{mapLocationJson,jdbcType=VARCHAR}, #{runPlanId,jdbcType=BIGINT}, #{failureConditionJson,jdbcType=VARCHAR},
#{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{state,jdbcType=INTEGER}, #{bgSceneJson,jdbcType=LONGVARCHAR}, #{operaJson,jdbcType=LONGVARCHAR}, #{state,jdbcType=INTEGER}, #{bgSceneJson,jdbcType=LONGVARCHAR}, #{operaJson,jdbcType=LONGVARCHAR},
#{stepJson,jdbcType=LONGVARCHAR}, #{scoringRuleJson,jdbcType=LONGVARCHAR}, #{memberJson,jdbcType=LONGVARCHAR}, #{stepJson,jdbcType=LONGVARCHAR}, #{scoringRuleJson,jdbcType=LONGVARCHAR}, #{memberJson,jdbcType=LONGVARCHAR},
#{playerIdJson,jdbcType=LONGVARCHAR}) #{playerIdJson,jdbcType=LONGVARCHAR}, #{finalScenesJson,jdbcType=LONGVARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs"> <insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
insert into published_training2 insert into published_training2
@ -229,6 +236,9 @@
<if test="playerIdJson != null"> <if test="playerIdJson != null">
player_id_json, player_id_json,
</if> </if>
<if test="finalScenesJson != null">
final_scenes_json,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
@ -288,9 +298,13 @@
<if test="playerIdJson != null"> <if test="playerIdJson != null">
#{playerIdJson,jdbcType=LONGVARCHAR}, #{playerIdJson,jdbcType=LONGVARCHAR},
</if> </if>
<if test="finalScenesJson != null">
#{finalScenesJson,jdbcType=LONGVARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example" resultType="java.lang.Long"> <select id="countByExample" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example"
resultType="java.lang.Long">
select count(*) from published_training2 select count(*) from published_training2
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause"/>
@ -356,6 +370,9 @@
<if test="record.playerIdJson != null"> <if test="record.playerIdJson != null">
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR}, player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR},
</if> </if>
<if test="record.finalScenesJson != null">
final_scenes_json = #{record.finalScenesJson,jdbcType=LONGVARCHAR},
</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"/>
@ -381,7 +398,8 @@
step_json = #{record.stepJson,jdbcType=LONGVARCHAR}, step_json = #{record.stepJson,jdbcType=LONGVARCHAR},
scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR}, scoring_rule_json = #{record.scoringRuleJson,jdbcType=LONGVARCHAR},
member_json = #{record.memberJson,jdbcType=LONGVARCHAR}, member_json = #{record.memberJson,jdbcType=LONGVARCHAR},
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR} player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR},
final_scenes_json = #{record.finalScenesJson,jdbcType=LONGVARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/> <include refid="Update_By_Example_Where_Clause"/>
</if> </if>
@ -405,7 +423,8 @@
<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.PublishedTraining2WithBLOBs"> <update id="updateByPrimaryKeySelective"
parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
update published_training2 update published_training2
<set> <set>
<if test="name != null"> <if test="name != null">
@ -462,10 +481,14 @@
<if test="playerIdJson != null"> <if test="playerIdJson != null">
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR}, player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR},
</if> </if>
<if test="finalScenesJson != null">
final_scenes_json = #{finalScenesJson,jdbcType=LONGVARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs"> <update id="updateByPrimaryKeyWithBLOBs"
parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
update published_training2 update published_training2
set `name` = #{name,jdbcType=VARCHAR}, set `name` = #{name,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT}, map_id = #{mapId,jdbcType=BIGINT},
@ -484,7 +507,8 @@
step_json = #{stepJson,jdbcType=LONGVARCHAR}, step_json = #{stepJson,jdbcType=LONGVARCHAR},
scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR}, scoring_rule_json = #{scoringRuleJson,jdbcType=LONGVARCHAR},
member_json = #{memberJson,jdbcType=LONGVARCHAR}, member_json = #{memberJson,jdbcType=LONGVARCHAR},
player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR} player_id_json = #{playerIdJson,jdbcType=LONGVARCHAR},
final_scenes_json = #{finalScenesJson,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2"> <update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2">