Prechádzať zdrojové kódy

feat(business): 添加延迟卡和行动时间相关字段新增 delayCardTime、delayCardNum 和 actionTime 字段到赛事模板相关类和映射配置中,用于支持赛事中的延迟卡功能及行动时间设置。

fugui001 3 mesiacov pred
rodič
commit
99a351cd63

+ 14 - 0
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/business/domain/bo/TournamentsBo.java

@@ -135,4 +135,18 @@ public class TournamentsBo extends BaseEntity {
 
     Boolean isAsc;   // true = asc, false = desc
 
+
+    /**
+     * 延迟卡时间
+     */
+    private Integer delayCardTime;
+    /**
+     * 延迟卡数量
+     */
+    private Integer delayCardNum;
+    /**
+     * 行动时间(使用卡延时)
+     */
+    private Integer actionTime;
+
 }

+ 13 - 0
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/business/domain/vo/TournamentsVo.java

@@ -201,4 +201,17 @@ public class TournamentsVo implements Serializable {
 
     private Boolean isDelete;
 
+    /**
+     * 延迟卡时间
+     */
+    private Integer delayCardTime;
+    /**
+     * 延迟卡数量
+     */
+    private Integer delayCardNum;
+    /**
+     * 行动时间(使用卡延时)
+     */
+    private Integer actionTime;
+
 }

+ 5 - 0
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/job/business/ScheduleTask.java

@@ -243,6 +243,11 @@ public class ScheduleTask {
                 bo.setRewardPlayers(tournamentsVo.getRewardPlayers());
                 bo.setSignTime(tournamentsVo.getSignTime());
                 bo.setRobotCount(tournamentsVo.getRobotCount());
+
+                bo.setDelayCardNum(tournamentsVo.getDelayCardNum());
+                bo.setDelayCardTime(tournamentsVo.getDelayCardTime());
+                bo.setActionTime(tournamentsVo.getActionTime());
+
                 //查询模版 赛事对应盲注
                 TournamentBlindStructuresVo tournamentBlindStructuresVo = tournamentBlindStructuresMapper.selectTournamentBlindStructureByTournamentIdTemplate(tournamentsVo.getId());
 

+ 11 - 2
ruoyi-modules/ruoyi-system/src/main/resources/mapper/business/TournamentsTemplateMapper.xml

@@ -10,11 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 
     <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 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>
 
 
@@ -36,6 +36,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <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="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>
         </set>
         WHERE id = #{id}
@@ -59,6 +62,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="endTime != null">end_time,</if>
             <if test="tournamentsBiId != null">tournaments_bi_id,</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>
         VALUES
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -76,6 +82,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="endTime != null">#{endTime},</if>
             <if test="tournamentsBiId != null">#{tournamentsBiId},</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>
     </insert>