大赛管理功能

This commit is contained in:
tiger_zhou 2024-02-27 15:51:13 +08:00
parent e647d54762
commit 6e19d7acb1

View File

@ -5,7 +5,6 @@
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="desc" jdbcType="VARCHAR" property="desc" />
<result column="support_copy" jdbcType="BIT" property="supportCopy" />
<result column="season_id" jdbcType="BIGINT" property="seasonId" />
<result column="creator_id" jdbcType="BIGINT" property="creatorId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
@ -74,8 +73,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, `name`, `desc`, support_copy, season_id, creator_id, create_time, updater_id,
update_time
id, `name`, `desc`, season_id, creator_id, create_time, updater_id, update_time
</sql>
<sql id="Blob_Column_List">
configs
@ -145,14 +143,12 @@
</if>
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="club.joylink.rtss.entity.racetr.RacetrPaper" useGeneratedKeys="true">
insert into racetr_paper (`name`, `desc`, support_copy,
season_id, creator_id, create_time,
updater_id, update_time, configs
)
values (#{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{supportCopy,jdbcType=BIT},
#{seasonId,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{updaterId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{configs,jdbcType=LONGVARBINARY}
)
insert into racetr_paper (`name`, `desc`, season_id,
creator_id, create_time, updater_id,
update_time, configs)
values (#{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{seasonId,jdbcType=BIGINT},
#{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updaterId,jdbcType=BIGINT},
#{updateTime,jdbcType=TIMESTAMP}, #{configs,jdbcType=LONGVARBINARY})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="club.joylink.rtss.entity.racetr.RacetrPaper" useGeneratedKeys="true">
insert into racetr_paper
@ -163,9 +159,6 @@
<if test="desc != null">
`desc`,
</if>
<if test="supportCopy != null">
support_copy,
</if>
<if test="seasonId != null">
season_id,
</if>
@ -192,9 +185,6 @@
<if test="desc != null">
#{desc,jdbcType=VARCHAR},
</if>
<if test="supportCopy != null">
#{supportCopy,jdbcType=BIT},
</if>
<if test="seasonId != null">
#{seasonId,jdbcType=BIGINT},
</if>
@ -233,9 +223,6 @@
<if test="record.desc != null">
`desc` = #{record.desc,jdbcType=VARCHAR},
</if>
<if test="record.supportCopy != null">
support_copy = #{record.supportCopy,jdbcType=BIT},
</if>
<if test="record.seasonId != null">
season_id = #{record.seasonId,jdbcType=BIGINT},
</if>
@ -264,7 +251,6 @@
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
`desc` = #{record.desc,jdbcType=VARCHAR},
support_copy = #{record.supportCopy,jdbcType=BIT},
season_id = #{record.seasonId,jdbcType=BIGINT},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
@ -280,7 +266,6 @@
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
`desc` = #{record.desc,jdbcType=VARCHAR},
support_copy = #{record.supportCopy,jdbcType=BIT},
season_id = #{record.seasonId,jdbcType=BIGINT},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
@ -299,9 +284,6 @@
<if test="desc != null">
`desc` = #{desc,jdbcType=VARCHAR},
</if>
<if test="supportCopy != null">
support_copy = #{supportCopy,jdbcType=BIT},
</if>
<if test="seasonId != null">
season_id = #{seasonId,jdbcType=BIGINT},
</if>
@ -327,7 +309,6 @@
update racetr_paper
set `name` = #{name,jdbcType=VARCHAR},
`desc` = #{desc,jdbcType=VARCHAR},
support_copy = #{supportCopy,jdbcType=BIT},
season_id = #{seasonId,jdbcType=BIGINT},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
@ -340,7 +321,6 @@
update racetr_paper
set `name` = #{name,jdbcType=VARCHAR},
`desc` = #{desc,jdbcType=VARCHAR},
support_copy = #{supportCopy,jdbcType=BIT},
season_id = #{seasonId,jdbcType=BIGINT},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},