전투시스템 중지 처리
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getCheckBattleEventList" resultMap="BattleEventResultMap">
|
||||
<select id="getCheckBattleEventList" parameterType="com.caliverse.admin.domain.request.BattleEventRequest" resultMap="BattleEventResultMap">
|
||||
SELECT id
|
||||
, event_id
|
||||
, repeat_type
|
||||
@@ -164,6 +164,9 @@
|
||||
, event_end_dt
|
||||
FROM battle_event
|
||||
WHERE status NOT IN ('END', 'FAIL')
|
||||
<if test="id != null and id != ''">
|
||||
AND id <> #{id}
|
||||
</if>
|
||||
AND (
|
||||
/* NONE 타입인 경우 */
|
||||
(repeat_type = 'NONE' AND DATE (event_start_dt) BETWEEN
|
||||
@@ -253,11 +256,15 @@
|
||||
<!--수정-->
|
||||
<update id="updateBattleEvent" parameterType="com.caliverse.admin.domain.request.BattleEventRequest">
|
||||
UPDATE battle_event SET group_id = #{groupId}
|
||||
, resv_end_dt = #{resvEndDt}
|
||||
, auction_start_dt = #{auctionStartDt}
|
||||
, auction_end_dt = #{auctionEndDt}
|
||||
, currency_type = #{currencyType}
|
||||
, start_price = #{startPrice}
|
||||
, event_name = #{eventName}
|
||||
, config_id = #{configId}
|
||||
, event_start_dt = #{eventStartDt}
|
||||
, event_end_dt = #{eventEndDt}
|
||||
, reward_group_id = #{rewardGroupId}
|
||||
, round_time = #{roundTime}
|
||||
, round_count = #{roundCount}
|
||||
, hot_time = #{hotTime}
|
||||
, status = 'WAIT'
|
||||
, update_by = #{updateBy}
|
||||
, update_dt = NOW()
|
||||
WHERE id = #{id}
|
||||
@@ -276,6 +283,10 @@
|
||||
<update id="updateStatusBattleEvent" parameterType="map">
|
||||
UPDATE battle_event
|
||||
SET status = #{status}
|
||||
<if test="updateBy != null and updateBy != ''">
|
||||
, update_by = #{updateBy}
|
||||
, update_dt = NOW()
|
||||
</if>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
@@ -295,7 +306,7 @@
|
||||
, a.config_id
|
||||
, a.reward_group_id
|
||||
FROM battle_event
|
||||
WHERE (status = 'WAIT' or status = 'AUCTION_START' or status = 'RESV_START')
|
||||
WHERE (status = 'WAIT' or status = 'RUNNING' or status = 'REGISTER')
|
||||
AND deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user