전투시스템 종료시간 추가

This commit is contained in:
2025-06-27 09:32:29 +09:00
parent a06e625cbd
commit abd99cd1a5

View File

@@ -11,12 +11,14 @@
<result property="eventOperationTime" column="event_operation_time"/>
<result property="status" column="status"/>
<result property="eventStartDt" column="event_start_dt"/>
<result property="eventEndTime" column="event_end_time"/>
<result property="eventEndDt" column="event_end_dt"/>
<result property="roundTime" column="round_time"/>
<result property="roundCount" column="round_count"/>
<result property="hotTime" column="hot_time"/>
<result property="configId" column="config_id"/>
<result property="instanceId" column="instance_id"/>
<result property="gameModeId" column="game_mode_id"/>
<result property="rewardGroupId" column="reward_group_id"/>
<result property="createBy" column="create_by"/>
<result property="createDt" column="create_dt"/>
@@ -39,12 +41,14 @@
, a.event_operation_time
, a.status
, a.event_start_dt
, a.event_end_time
, a.event_end_dt
, a.round_time
, a.round_count
, a.hot_time
, a.config_id
, a.reward_group_id
, a.game_mode_id
, (SELECT email FROM admin WHERE id = a.create_by ) AS create_by
, a.create_dt
, (SELECT email FROM admin WHERE id = a.update_by ) AS update_by
@@ -142,7 +146,7 @@
</when>
<otherwise>
<if test="search_data != null and search_data != ''">
AND a.event_id = #{search_data}
AND a.id = #{search_data}
</if>
</otherwise>
</choose>
@@ -286,12 +290,14 @@
, a.event_operation_time
, a.status
, a.event_start_dt
, a.event_end_time
, a.event_end_dt
, a.round_time
, a.round_count
, a.hot_time
, a.config_id
, a.reward_group_id
, a.game_mode_id
, (SELECT email FROM admin WHERE id = a.create_by ) AS create_by
, a.create_dt
, (SELECT email FROM admin WHERE id = a.update_by ) AS update_by
@@ -302,8 +308,8 @@
<!--저장-->
<insert id="postBattleEvent" parameterType="com.caliverse.admin.domain.request.BattleEventRequest" useGeneratedKeys="true" keyProperty="id">
INSERT INTO battle_event (group_id, event_id, event_name, repeat_type, event_operation_time, event_start_dt, event_end_dt, config_id, reward_group_id, round_time, round_count, hot_time, instance_id, create_by, update_by)
VALUES (#{groupId}, #{eventId}, #{eventName}, #{repeatType}, #{eventOperationTime}, #{eventStartDt}, #{eventEndDt}, #{configId}, #{rewardGroupId}, #{roundTime}, #{roundCount}, #{hotTime}, #{instanceId}, #{createBy}, #{updateBy})
INSERT INTO battle_event (group_id, event_name, repeat_type, event_operation_time, event_start_dt, event_end_time, event_end_dt, config_id, reward_group_id, round_time, round_count, hot_time, instance_id, game_mode_id, create_by, update_by)
VALUES (#{groupId}, #{eventName}, #{repeatType}, #{eventOperationTime}, #{eventStartDt}, #{eventEndTime}, #{eventEndDt}, #{configId}, #{rewardGroupId}, #{roundTime}, #{roundCount}, #{hotTime}, #{instanceId}, #{gameModeId}, #{createBy}, #{updateBy})
</insert>
<!--수정-->
@@ -313,11 +319,13 @@
, event_operation_time = #{eventOperationTime}
, config_id = #{configId}
, event_start_dt = #{eventStartDt}
, event_end_time = #{eventEndTime}
, event_end_dt = #{eventEndDt}
, reward_group_id = #{rewardGroupId}
, round_time = #{roundTime}
, round_count = #{roundCount}
, hot_time = #{hotTime}
, game_mode_id = #{gameModeId}
, status = 'WAIT'
, update_by = #{updateBy}
, update_dt = NOW()
@@ -353,12 +361,14 @@
, event_operation_time
, status
, event_start_dt
, event_end_time
, event_end_dt
, round_time
, round_count
, hot_time
, config_id
, reward_group_id
, game_mode_id
FROM battle_event
WHERE (status = 'WAIT' or status = 'RUNNING' or status = 'REGISTER' or status = 'STOP')
AND deleted = 0