로그 방식 변경

This commit is contained in:
2025-08-06 14:39:05 +09:00
parent 78b10e4f3a
commit 78f84bd7b8
33 changed files with 296 additions and 128 deletions

View File

@@ -14,6 +14,7 @@ import com.caliverse.admin.domain.request.BattleEventRequest;
import com.caliverse.admin.domain.response.BattleEventResponse;
import com.caliverse.admin.dynamodb.service.DynamodbBattleEventService;
import com.caliverse.admin.global.common.annotation.BusinessProcess;
import com.caliverse.admin.global.common.annotation.RequestLog;
import com.caliverse.admin.global.common.code.CommonCode;
import com.caliverse.admin.global.common.code.ErrorCode;
import com.caliverse.admin.global.common.code.SuccessCode;
@@ -93,6 +94,7 @@ public class BattleEventService {
}
// 전투시스템 이벤트 조회
@RequestLog
public BattleEventResponse getBattleEventList(@RequestParam Map<String, String> requestParam){
requestParam = CommonUtils.pageSetting(requestParam);
@@ -116,7 +118,10 @@ public class BattleEventService {
}
// 전투시스템 이벤트 상세조회
@RequestLog
public BattleEventResponse getBattleEventDetail(Long id){
String email = CommonUtils.getAdmin() != null ? CommonUtils.getAdmin().getEmail() : "";
log.info("getBattleEventDetail user: {}, id: {}", email, id);
BattleEvent battleEvent = battleMapper.getBattleEventDetail(id);
@@ -132,6 +137,7 @@ public class BattleEventService {
// 전투시스템 이벤트 저장
@BusinessProcess(action = LogAction.BATTLE_EVENT)
@Transactional(transactionManager = "transactionManager")
@RequestLog
public BattleEventResponse postBattleEvent(BattleEventRequest battleEventRequest){
if(battleEventRequest.getRepeatType().equals(BattleEvent.BATTLE_REPEAT_TYPE.NONE)){
LocalDateTime start_dt = battleEventRequest.getEventStartDt();
@@ -194,6 +200,7 @@ public class BattleEventService {
// 전투시스템 이벤트 수정
@BusinessProcess(action = LogAction.BATTLE_EVENT)
@Transactional(transactionManager = "transactionManager")
@RequestLog
public BattleEventResponse updateBattleEvent(Long id, BattleEventRequest battleEventRequest) {
battleEventRequest.setId(id);
battleEventRequest.setUpdateBy(CommonUtils.getAdmin().getId());
@@ -245,6 +252,7 @@ public class BattleEventService {
// 전투시스템 이벤트 중단
@BusinessProcess(action = LogAction.BATTLE_EVENT)
@Transactional(transactionManager = "transactionManager")
@RequestLog
public BattleEventResponse updateStopBattleEvent(Long id){
Map<String,Object> map = new HashMap<>();
@@ -276,6 +284,7 @@ public class BattleEventService {
// 전투시스템 이벤트 삭제(사용안함)
@BusinessProcess(action = LogAction.BATTLE_EVENT)
@Transactional(transactionManager = "transactionManager")
@RequestLog
public BattleEventResponse deleteBattleEvent(BattleEventRequest battleEventRequest){
Map<String,Object> map = new HashMap<>();
AtomicBoolean is_falil = new AtomicBoolean(false);
@@ -293,7 +302,7 @@ public class BattleEventService {
map.put("id", id);
map.put("updateBy", CommonUtils.getAdmin().getId());
int result = battleMapper.deleteBattleEvent(map);
log.info("BattleEvent Delete Complete: {}", item);
log.info("BattleEvent Delete Complete id: {}", id);
// dynamodbLandAuctionService.cancelLandAuction(auction_info);
}
@@ -318,7 +327,6 @@ public class BattleEventService {
return battleMapper.getScheduleBattleEventList();
}
@BusinessProcess(action = LogAction.BATTLE_EVENT)
@Transactional(transactionManager = "transactionManager")
public void updateBattleEventStatus(Map<String,Object> map){
try{