【保存实训最后运行状态】
This commit is contained in:
parent
da9355b9a7
commit
11095aa217
@ -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>
|
@ -16,13 +16,15 @@
|
||||
<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">
|
||||
<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>
|
||||
@ -42,7 +44,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>
|
||||
@ -71,7 +74,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>
|
||||
@ -87,9 +91,11 @@
|
||||
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
|
||||
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 id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2Example"
|
||||
resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
@ -113,7 +119,8 @@
|
||||
</if>
|
||||
</if>
|
||||
</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
|
||||
<if test="distinct">
|
||||
distinct
|
||||
@ -160,14 +167,14 @@
|
||||
creator_id, create_time, update_time,
|
||||
`state`, bg_scene_json, opera_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},
|
||||
#{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})
|
||||
#{playerIdJson,jdbcType=LONGVARCHAR}, #{finalScenesJson,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
|
||||
insert into published_training2
|
||||
@ -229,6 +236,9 @@
|
||||
<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">
|
||||
@ -288,9 +298,13 @@
|
||||
<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 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"/>
|
||||
@ -356,6 +370,9 @@
|
||||
<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"/>
|
||||
@ -381,7 +398,8 @@
|
||||
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}
|
||||
player_id_json = #{record.playerIdJson,jdbcType=LONGVARCHAR},
|
||||
final_scenes_json = #{record.finalScenesJson,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
@ -405,7 +423,8 @@
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
|
||||
<update id="updateByPrimaryKeySelective"
|
||||
parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
|
||||
update published_training2
|
||||
<set>
|
||||
<if test="name != null">
|
||||
@ -462,10 +481,14 @@
|
||||
<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 id="updateByPrimaryKeyWithBLOBs"
|
||||
parameterType="club.joylink.rtss.entity.training2.PublishedTraining2WithBLOBs">
|
||||
update published_training2
|
||||
set `name` = #{name,jdbcType=VARCHAR},
|
||||
map_id = #{mapId,jdbcType=BIGINT},
|
||||
@ -484,7 +507,8 @@
|
||||
step_json = #{stepJson,jdbcType=LONGVARCHAR},
|
||||
scoring_rule_json = #{scoringRuleJson,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}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.training2.PublishedTraining2">
|
||||
|
Loading…
Reference in New Issue
Block a user