|
@@ -10,11 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTournamentsVoListTemplate" resultType="org.dromara.business.domain.vo.TournamentsVo">
|
|
<select id="selectTournamentsVoListTemplate" 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,reward_players,total_signup,robot_count FROM tournaments_template ${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,reward_players,total_signup,robot_count,delay_card_time,delay_card_num,action_time FROM tournaments_template ${ew.customSqlSegment}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectVoByIdInfoTemplate" resultType="org.dromara.business.domain.vo.TournamentsVo">
|
|
<select id="selectVoByIdInfoTemplate" 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,reward_players,total_signup,robot_count FROM tournaments_template 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,reward_players,total_signup,robot_count,delay_card_time,delay_card_num,action_time FROM tournaments_template WHERE id = #{id}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -36,6 +36,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="competitionIcon != null">competition_icon = #{competitionIcon},</if>
|
|
<if test="competitionIcon != null">competition_icon = #{competitionIcon},</if>
|
|
|
<if test="updateUserId != null">update_user_id = #{updateUserId},</if>
|
|
<if test="updateUserId != null">update_user_id = #{updateUserId},</if>
|
|
|
<if test="tournamentsBiId != null">tournaments_bi_id = #{tournamentsBiId},</if>
|
|
<if test="tournamentsBiId != null">tournaments_bi_id = #{tournamentsBiId},</if>
|
|
|
|
|
+ <if test="delayCardTime != null">delay_card_time = #{delayCardTime},</if>
|
|
|
|
|
+ <if test="delayCardNum != null">delay_card_num = #{delayCardNum},</if>
|
|
|
|
|
+ <if test="actionTime != null">action_time = #{actionTime},</if>
|
|
|
<if test="robotCount != null">robot_count = #{robotCount}</if>
|
|
<if test="robotCount != null">robot_count = #{robotCount}</if>
|
|
|
</set>
|
|
</set>
|
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
@@ -59,6 +62,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="endTime != null">end_time,</if>
|
|
<if test="endTime != null">end_time,</if>
|
|
|
<if test="tournamentsBiId != null">tournaments_bi_id,</if>
|
|
<if test="tournamentsBiId != null">tournaments_bi_id,</if>
|
|
|
<if test="robotCount != null">robot_count,</if>
|
|
<if test="robotCount != null">robot_count,</if>
|
|
|
|
|
+ <if test="delayCardTime != null">delay_card_time,</if>
|
|
|
|
|
+ <if test="delayCardNum != null">delay_card_num,</if>
|
|
|
|
|
+ <if test="actionTime != null">action_time,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
VALUES
|
|
VALUES
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -76,6 +82,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="endTime != null">#{endTime},</if>
|
|
<if test="endTime != null">#{endTime},</if>
|
|
|
<if test="tournamentsBiId != null">#{tournamentsBiId},</if>
|
|
<if test="tournamentsBiId != null">#{tournamentsBiId},</if>
|
|
|
<if test="robotCount != null">#{robotCount},</if>
|
|
<if test="robotCount != null">#{robotCount},</if>
|
|
|
|
|
+ <if test="delayCardTime != null">#{delayCardTime},</if>
|
|
|
|
|
+ <if test="delayCardNum != null">#{delayCardNum},</if>
|
|
|
|
|
+ <if test="actionTime != null">#{actionTime},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|