|
|
@@ -10,11 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectTournamentsVoList" resultType="org.dromara.business.domain.vo.TournamentsVo">
|
|
|
- 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,tournaments_bi_id 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,tournaments_bi_id,robot_count FROM tournaments ${ew.customSqlSegment}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectVoByIdInfo" resultType="org.dromara.business.domain.vo.TournamentsVo">
|
|
|
- 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,tournaments_bi_id 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,tournaments_bi_id,robot_count FROM tournaments WHERE id = #{id}
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@@ -34,8 +34,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
|
|
|
<if test="signTime != null">sign_time = #{signTime},</if>
|
|
|
<if test="competitionIcon != null">competition_icon = #{competitionIcon},</if>
|
|
|
- <if test="updateUserId != null">update_user_id = #{updateUserId}</if>
|
|
|
- <if test="tournamentsBiId != null">tournaments_bi_id = #{tournamentsBiId}</if>
|
|
|
+ <if test="updateUserId != null">update_user_id = #{updateUserId},</if>
|
|
|
+ <if test="tournamentsBiId != null">tournaments_bi_id = #{tournamentsBiId},</if>
|
|
|
+ <if test="robotCount != null">robot_count = #{robotCount}</if>
|
|
|
+
|
|
|
</set>
|
|
|
WHERE id = #{id}
|
|
|
</update>
|
|
|
@@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createUserId != null">create_user_id,</if>
|
|
|
<if test="endTime != null">end_time,</if>
|
|
|
<if test="tournamentsBiId != null">tournaments_bi_id,</if>
|
|
|
+ <if test="robotCount != null">robot_count,</if>
|
|
|
</trim>
|
|
|
VALUES
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -73,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createUserId != null">#{createUserId},</if>
|
|
|
<if test="endTime != null">#{endTime},</if>
|
|
|
<if test="tournamentsBiId != null">#{tournamentsBiId},</if>
|
|
|
+ <if test="robotCount != null">#{robotCount},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|