|
|
@@ -37,15 +37,13 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
for (CodeValueDto code : codes) {
|
|
|
this.mapData.put(code.getMainCode()+code.getSubCode(), code);
|
|
|
}
|
|
|
- }
|
|
|
- catch (Exception e) {
|
|
|
+ } catch (Exception e) {
|
|
|
log.error("[05MIN...] (SEL) {}: Exception: {}", LogUtils.elapsedLog("initialize.findAllCodeValue"), e.getMessage());
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
return this.dwdbJobMapper.findStatTime();
|
|
|
- }
|
|
|
- catch (Exception e) {
|
|
|
+ } catch (Exception e) {
|
|
|
log.error("[05MIN...] (SEL) {}: Exception: {}", LogUtils.elapsedLog("initialize.findStatTime"), e.getMessage());
|
|
|
return null;
|
|
|
}
|
|
|
@@ -76,28 +74,28 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
result = this.prcs05MMapper.truncateStatLocal();
|
|
|
log.info("[05MIN...] (DEL) {}", LogUtils.elapsedLog("STAT_LOCAL(TRUNCATE)", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (DEL) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL(TRUNCATE)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (DEL) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL(TRUNCATE)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
try {
|
|
|
tmpelapsed.reset();
|
|
|
result = this.prcs05MMapper.insertStatLocal12Loc(prcsPast25Min, prcsPast30Min);
|
|
|
log.info("[05MIN...] (INS) {}", LogUtils.elapsedLog("STAT_LOCAL(12개지자체)", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL(12개지자체)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL(12개지자체)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
try {
|
|
|
tmpelapsed.reset();
|
|
|
result = this.prcs05MMapper.insertStatLocalCapital(prcsPast25Min, prcsPast30Min);
|
|
|
log.info("[05MIN...] (INS) {}", LogUtils.elapsedLog("STAT_LOCAL(수도권 지역센터)", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL(수도권 지역센터)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL(수도권 지역센터)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
try {
|
|
|
tmpelapsed.reset();
|
|
|
result = this.prcs05MMapper.insertStatLocal12Loc(prcsPast25Min, prcsPast30Min);
|
|
|
log.info("[05MIN...] (INS) {}", LogUtils.elapsedLog("STAT_LOCAL(통합배포시스템)", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL(통합배포시스템)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL(통합배포시스템)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
|
|
|
// LINK_FILTER 데이터 입력
|
|
|
@@ -118,7 +116,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
result = this.prcs05MMapper.truncateLinkFilter();
|
|
|
log.info("[05MIN...] (DEL) {}", LogUtils.elapsedLog("LINK_FILTER(TRUNCATE)", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (DEL) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(TRUNCATE)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (DEL) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(TRUNCATE)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
@@ -127,7 +125,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
result = this.prcs05MMapper.insertLinkFilter(prcsPast25Min, codeValue0.getCodeValue(), codeValue5.getCodeValue());
|
|
|
log.info("[05MIN...] (INS) {}", LogUtils.elapsedLog("LINK_FILTER(표준편차값)", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(표준편차값)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(표준편차값)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
|
|
|
// 패턴 최대최소값 UPDATE
|
|
|
@@ -141,7 +139,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
|
|
|
runLinkFilterPatternUpdate(prcsPast30Min, holiday, codeValue2);
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (SEL) {}, Exception: {}", LogUtils.elapsedLog("HOLIDAY", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (SEL) {}, Exception: {}", LogUtils.elapsedLog("HOLIDAY", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -155,9 +153,8 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
tmpelapsed.reset();
|
|
|
result = this.prcs05MMapper.updateLinkFilterRoadRank();
|
|
|
log.info("[05MIN...] (UPD) {}", LogUtils.elapsedLog("LINK_FILTER(도로등급 변경)", result, tmpelapsed.milliSeconds()));
|
|
|
- }
|
|
|
- catch (Exception e) {
|
|
|
- log.info("[05MIN...] (UPD) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(도로등급 변경)", elapsed.milliSeconds()), e.getMessage());
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("[05MIN...] (UPD) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(도로등급 변경)", elapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
|
|
|
// LINK_FILTER 최대최소 속도 입력
|
|
|
@@ -172,7 +169,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
codeValue9.getMinValue(), codeValue9.getMaxValue());
|
|
|
log.info("[05MIN...] (UPD) {}", LogUtils.elapsedLog("LINK_FILTER(도로등급 필터링)", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (UPD) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(도로등급 필터링)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (UPD) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(도로등급 필터링)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
@@ -186,7 +183,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
result = this.prcs05MMapper.insertStatLocalLog();
|
|
|
log.info("[05MIN...] (INS) {}", LogUtils.elapsedLog("STAT_LOCAL_LOG", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL_LOG", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("STAT_LOCAL_LOG", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
|
|
|
// statDwd05MEXE
|
|
|
@@ -196,7 +193,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
regDate = this.prcs05MMapper.findLinkFilterMakeDate();
|
|
|
log.info("[05MIN...] (SEL) {}", LogUtils.elapsedLog("LINK_FILTER(생성일자)", 1, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (SEL) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(생성일자)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (SEL) {}, Exception: {}", LogUtils.elapsedLog("LINK_FILTER(생성일자)", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
if (StringUtils.isEmpty(regDate)) {
|
|
|
regDate = prcsPast25Min; // LINK_FILTER 생성일자(MAK_DATE) 없을 경우
|
|
|
@@ -207,7 +204,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
result = this.prcs05MMapper.insertCenterLog(regDate);
|
|
|
log.info("[05MIN...] (INS) {}", LogUtils.elapsedLog("CENTER_LOG", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("CENTER_LOG", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("CENTER_LOG", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
@@ -215,7 +212,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
result = this.prcs05MMapper.insertUtisLog(regDate);
|
|
|
log.info("[05MIN...] (INS) {}", LogUtils.elapsedLog("UTIS_LOG", result, tmpelapsed.milliSeconds()));
|
|
|
} catch (Exception e) {
|
|
|
- log.info("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("UTIS_LOG", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
+ log.error("[05MIN...] (INS) {}, Exception: {}", LogUtils.elapsedLog("UTIS_LOG", tmpelapsed.milliSeconds()), e.getMessage());
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
@@ -388,7 +385,7 @@ public class DwdbJobPrcs05MService implements AbstractProcessService {
|
|
|
log.info("[05MIN...] (SEL) {}", LogUtils.elapsedLog("HOLIDAY", 1, tmpElapsed.milliSeconds()));
|
|
|
}
|
|
|
catch (Exception e) {
|
|
|
- log.info("[05MIN...] (SEL) {}, patternUpdate[{}], Exception: {}", LogUtils.elapsedLog("HOLIDAY", tmpElapsed.milliSeconds()), patternTime, e.getMessage());
|
|
|
+ log.error("[05MIN...] (SEL) {}, patternUpdate[{}], Exception: {}", LogUtils.elapsedLog("HOLIDAY", tmpElapsed.milliSeconds()), patternTime, e.getMessage());
|
|
|
return;
|
|
|
}
|
|
|
|