|
@@ -10,20 +10,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTournamentsVoList" resultType="org.dromara.business.domain.vo.TournamentsVo">
|
|
<select id="selectTournamentsVoList" resultType="org.dromara.business.domain.vo.TournamentsVo">
|
|
|
- SELECT id, name, start_time, game_type, starting_chips, level_duration, late_registration_level, max_players, status, created_at, updated_at,sign_time,competition_icon FROM tournaments ${ew.customSqlSegment}
|
|
|
|
|
|
|
+ SELECT id, name, start_time, end_time,game_type, starting_chips, level_duration, late_registration_level, max_players, status, created_at, updated_at,sign_time,competition_icon FROM tournaments ${ew.customSqlSegment}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectVoByIdInfo" resultType="org.dromara.business.domain.vo.TournamentsVo">
|
|
<select id="selectVoByIdInfo" resultType="org.dromara.business.domain.vo.TournamentsVo">
|
|
|
- SELECT id, name, start_time, game_type, starting_chips, level_duration, late_registration_level, max_players, status, created_at, updated_at,sign_time,competition_icon FROM tournaments WHERE id = #{id}
|
|
|
|
|
|
|
+ SELECT id, name, start_time, end_time,game_type, starting_chips, level_duration, late_registration_level, max_players, status, created_at, updated_at,sign_time,competition_icon FROM tournaments WHERE id = #{id}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<update id="updateTournamentsById">
|
|
<update id="updateTournamentsById">
|
|
|
UPDATE tournaments
|
|
UPDATE tournaments
|
|
|
<set>
|
|
<set>
|
|
|
<if test="name != null">name = #{name},</if>
|
|
<if test="name != null">name = #{name},</if>
|
|
|
<if test="startTime != null">start_time = #{startTime},</if>
|
|
<if test="startTime != null">start_time = #{startTime},</if>
|
|
|
|
|
+ <if test="endTime != null">end_time = #{endTime},</if>
|
|
|
<if test="gameType != null">game_type = #{gameType},</if>
|
|
<if test="gameType != null">game_type = #{gameType},</if>
|
|
|
<if test="startingChips != null">starting_chips = #{startingChips},</if>
|
|
<if test="startingChips != null">starting_chips = #{startingChips},</if>
|
|
|
<if test="levelDuration != null">level_duration = #{levelDuration},</if>
|
|
<if test="levelDuration != null">level_duration = #{levelDuration},</if>
|
|
@@ -54,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="signTime != null">sign_time,</if>
|
|
<if test="signTime != null">sign_time,</if>
|
|
|
<if test="competitionIcon != null">competition_icon,</if>
|
|
<if test="competitionIcon != null">competition_icon,</if>
|
|
|
<if test="createUserId != null">create_user_id,</if>
|
|
<if test="createUserId != null">create_user_id,</if>
|
|
|
|
|
+ <if test="endTime != null">end_time,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
VALUES
|
|
VALUES
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -68,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="signTime != null">#{signTime},</if>
|
|
<if test="signTime != null">#{signTime},</if>
|
|
|
<if test="competitionIcon != null">#{competitionIcon},</if>
|
|
<if test="competitionIcon != null">#{competitionIcon},</if>
|
|
|
<if test="createUserId != null">#{createUserId},</if>
|
|
<if test="createUserId != null">#{createUserId},</if>
|
|
|
|
|
+ <if test="endTime != null">#{endTime},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|