From 4a44821e93deeb44f08667392a1fa80a6baa3633 Mon Sep 17 00:00:00 2001 From: kjh Date: Wed, 20 Dec 2023 18:23:40 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=B0=B0=EC=B9=98=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EB=A9=94=EC=8B=9C=EC=A7=80=20=EC=B4=88=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/kr/xit/batch/ens/task/EnsCctvAcceptTasklet.java | 2 ++ .../src/main/java/kr/xit/batch/ens/task/EnsCctvFileTasklet.java | 2 ++ .../main/java/kr/xit/batch/ens/task/PniCctvAcceptTasklet.java | 2 ++ .../src/main/java/kr/xit/batch/ens/task/PniCctvFileTasklet.java | 2 ++ .../src/main/java/kr/xit/batch/ens/task/SndngAcceptTasklet.java | 2 ++ .../src/main/java/kr/xit/batch/ens/task/SndngCloseTasklet.java | 2 ++ .../src/main/java/kr/xit/batch/ens/task/SndngMakeTasklet.java | 2 ++ .../main/java/kr/xit/batch/ens/task/SndngSendBulksTasklet.java | 1 + .../java/kr/xit/batch/ens/task/SndngStatusBulksTasklet.java | 1 + 9 files changed, 16 insertions(+) diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/EnsCctvAcceptTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/EnsCctvAcceptTasklet.java index e8a0ddd..2e26baa 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/EnsCctvAcceptTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/EnsCctvAcceptTasklet.java @@ -38,6 +38,8 @@ public class EnsCctvAcceptTasklet implements Tasklet { final String isSlackEnabled = contribution.getStepExecution().getJobParameters().getString("isSlackEnabled"); try { + MDC.put("service_error_msg", ""); + service.acceptEnsNtnccntcSndng(); }catch(Exception e){ String errMsg = ErrorParse.extractError(e).getMessage(); diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/EnsCctvFileTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/EnsCctvFileTasklet.java index 7a38d35..a4c9f45 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/EnsCctvFileTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/EnsCctvFileTasklet.java @@ -38,6 +38,8 @@ public class EnsCctvFileTasklet implements Tasklet { final String isSlackEnabled = contribution.getStepExecution().getJobParameters().getString("isSlackEnabled"); try { + MDC.put("service_error_msg", ""); + service.createCctvFileOfSg(); }catch(Exception e){ String errMsg = ErrorParse.extractError(e).getMessage(); diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/PniCctvAcceptTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/PniCctvAcceptTasklet.java index 45eb1ee..513d955 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/PniCctvAcceptTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/PniCctvAcceptTasklet.java @@ -38,6 +38,8 @@ public class PniCctvAcceptTasklet implements Tasklet { final String isSlackEnabled = contribution.getStepExecution().getJobParameters().getString("isSlackEnabled"); try { + MDC.put("service_error_msg", ""); + service.acceptPniNtnccntcSndng(); }catch(Exception e){ String errMsg = ErrorParse.extractError(e).getMessage(); diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/PniCctvFileTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/PniCctvFileTasklet.java index ed2ac57..eaa3be1 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/PniCctvFileTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/PniCctvFileTasklet.java @@ -38,6 +38,8 @@ public class PniCctvFileTasklet implements Tasklet { final String isSlackEnabled = contribution.getStepExecution().getJobParameters().getString("isSlackEnabled"); try { + MDC.put("service_error_msg", ""); + service.createCctvFileOfSg(); }catch(Exception e){ String errMsg = ErrorParse.extractError(e).getMessage(); diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngAcceptTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngAcceptTasklet.java index 23e61fe..19283bd 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngAcceptTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngAcceptTasklet.java @@ -39,6 +39,8 @@ public class SndngAcceptTasklet implements Tasklet { final String isSlackEnabled = contribution.getStepExecution().getJobParameters().getString("isSlackEnabled"); try { + MDC.put("service_error_msg", ""); + service.accept( EnsDTO.BatchEnsRequest.builder() .signguCode(contribution.getStepExecution().getJobParameters().getString("signguCode")) diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngCloseTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngCloseTasklet.java index 9e0bf57..06923c7 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngCloseTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngCloseTasklet.java @@ -40,6 +40,8 @@ public class SndngCloseTasklet implements Tasklet { final String isSlackEnabled = contribution.getStepExecution().getJobParameters().getString("isSlackEnabled"); try { + MDC.put("service_error_msg", ""); + service.close( EnsDTO.BatchEnsRequest.builder() .signguCode(contribution.getStepExecution().getJobParameters().getString("signguCode")) diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngMakeTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngMakeTasklet.java index f17503e..6af310f 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngMakeTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngMakeTasklet.java @@ -47,6 +47,8 @@ public class SndngMakeTasklet implements Tasklet { try { + MDC.put("service_error_msg", ""); + Map> tgtMap = service.findMakes( EnsDTO.BatchEnsRequest.builder() .signguCode(contribution.getStepExecution().getJobParameters().getString("signguCode")) diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngSendBulksTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngSendBulksTasklet.java index e01133d..5c7b565 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngSendBulksTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngSendBulksTasklet.java @@ -45,6 +45,7 @@ public class SndngSendBulksTasklet implements Tasklet { try { MDC.put("request_trace_batch_id", UUID.randomUUID().toString().replace("-", "")); MDC.put("method", "POST"); + MDC.put("service_error_msg", ""); List tgtList = service.findBulks( EnsDTO.BatchEnsRequest.builder() diff --git a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngStatusBulksTasklet.java b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngStatusBulksTasklet.java index 96b32d2..e5c6609 100644 --- a/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngStatusBulksTasklet.java +++ b/mens-batch/src/main/java/kr/xit/batch/ens/task/SndngStatusBulksTasklet.java @@ -43,6 +43,7 @@ public class SndngStatusBulksTasklet implements Tasklet { MDC.put("request_trace_batch_id", UUID.randomUUID().toString().replace("-", "")); //MDC.put("uri", "/v1/documents/bulk/status"); MDC.put("method", "POST"); + MDC.put("service_error_msg", ""); service.statusBulks( EnsDTO.BatchEnsRequest.builder()