|
|
@@ -61,7 +61,8 @@ public class UticStat05MinFltrService implements AbstractProcessService {
|
|
|
|
|
|
// LINK_FILTER 표준편차 입력
|
|
|
// log.info("[INF] {}: {}, {}", LogUtils.elapsedLog("LINK_FILTER(표준편차 필터링)"), code0, code5);
|
|
|
- if (this.fltrRepo.insertLinkFilterStdDev(past25Min, code0.getCodeValue(), code5.getCodeValue()) < 0) {
|
|
|
+ int result = this.fltrRepo.insertLinkFilterStdDev(past25Min, code0.getCodeValue(), code5.getCodeValue());
|
|
|
+ if (result < 0) {
|
|
|
ApplicationRepository.processState.setError("insertLinkFilterStdDev failed.");
|
|
|
}
|
|
|
SleepUtils.safeSleep(200); // FOR Database
|
|
|
@@ -92,7 +93,7 @@ public class UticStat05MinFltrService implements AbstractProcessService {
|
|
|
// LINK_FILTER 도로등급별 최대최소 속도 입력
|
|
|
if ("Y".equals(code2.getCodeValue())) {
|
|
|
log.info("[INF] {}: LINK_FILTER 도로등급 최대최소 필터링 사용", LogUtils.elapsedLog("LINK_FILTER(도로등급 필터링)"));
|
|
|
- int result = this.fltrRepo.updateLinkFilterMinMax(
|
|
|
+ result = this.fltrRepo.updateLinkFilterMinMax(
|
|
|
code6.getMinValue(), code6.getMaxValue(),
|
|
|
code7.getMinValue(), code7.getMaxValue(),
|
|
|
code8.getMinValue(), code8.getMaxValue(),
|
|
|
@@ -107,10 +108,13 @@ public class UticStat05MinFltrService implements AbstractProcessService {
|
|
|
}
|
|
|
|
|
|
// 전국 이력저장
|
|
|
- if (this.fltrRepo.insertStatLocalLog(yyMm) < 0) {
|
|
|
+ result = this.fltrRepo.insertStatLocalLog(yyMm);
|
|
|
+ if (result < 0) {
|
|
|
ApplicationRepository.processState.setError("insertStatLocalLog failed.");
|
|
|
}
|
|
|
- SleepUtils.safeSleep(200); // FOR Database
|
|
|
+
|
|
|
+ ApplicationRepository.processState.setRcvCnt(result);
|
|
|
+ SleepUtils.safeSleep(100); // FOR Database
|
|
|
|
|
|
return true;
|
|
|
}
|