battleevent instance_id 추가
This commit is contained in:
@@ -47,6 +47,8 @@ public class BattleEvent {
|
||||
private Integer configId;
|
||||
@JsonProperty("reward_group_id")
|
||||
private Integer rewardGroupId;
|
||||
@JsonProperty("instance_id")
|
||||
private Integer instanceId;
|
||||
|
||||
private boolean deleted;
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ public class BattleEventRequest {
|
||||
private Integer configId;
|
||||
@JsonProperty("reward_group_id")
|
||||
private Integer rewardGroupId;
|
||||
@JsonProperty("instance_id")
|
||||
private Integer instanceId;
|
||||
|
||||
@JsonProperty("create_by")
|
||||
private Long createBy;
|
||||
|
||||
@@ -117,6 +117,7 @@ public class BattleEventService {
|
||||
LocalDateTime end_dt = start_dt.plusHours(12);
|
||||
battleEventRequest.setEventEndDt(end_dt);
|
||||
}
|
||||
battleEventRequest.setInstanceId(CommonConstants.BATTLE_INSTANCE_ID); //고정값으로 넣고 추후 맵정보가 늘어나면 선택하는 걸로
|
||||
|
||||
int operation_time = calcEndTime(battleEventRequest);
|
||||
battleEventRequest.setEventOperationTime(operation_time);
|
||||
|
||||
@@ -4,6 +4,7 @@ public class CommonConstants {
|
||||
public static final String TRUE = "True";
|
||||
public static final String FALSE = "False";
|
||||
public static final String NONE = "None";
|
||||
public static final int BATTLE_SERVER_WAIT_TIME = 600; // (seconds) 이벤트 홍보시간이 300초인데 여유있게 처리하게 하기위해 600으로 준다.
|
||||
public static final String SCHEDULE = "Schedule";
|
||||
public static final int BATTLE_SERVER_WAIT_TIME = 600; // (seconds) 이벤트 홍보시간이 300초인데 여유있게 처리하게 하기위해 600으로 준다.
|
||||
public static final int BATTLE_INSTANCE_ID = 1017007;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<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="rewardGroupId" column="reward_group_id"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createDt" column="create_dt"/>
|
||||
@@ -178,8 +179,8 @@
|
||||
|
||||
<!--저장-->
|
||||
<insert id="postBattleEvent" parameterType="com.caliverse.admin.domain.request.BattleEventRequest" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO battle_event (group_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, create_by, update_by)
|
||||
VALUES (#{groupId}, #{eventName}, #{repeatType}, #{eventOperationTime}, #{eventStartDt}, #{eventEndDt}, #{configId}, #{rewardGroupId}, #{roundTime}, #{roundCount}, #{hotTime}, #{createBy}, #{updateBy})
|
||||
INSERT INTO battle_event (group_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}, #{eventName}, #{repeatType}, #{eventOperationTime}, #{eventStartDt}, #{eventEndDt}, #{configId}, #{rewardGroupId}, #{roundTime}, #{roundCount}, #{hotTime}, #{instanceId} #{createBy}, #{updateBy})
|
||||
</insert>
|
||||
|
||||
<!--수정-->
|
||||
|
||||
Reference in New Issue
Block a user