feat: 배치 오류 메시지 초기화

dev
kjh 11 months ago
parent 203922a0c2
commit 4a44821e93

@ -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();

@ -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();

@ -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();

@ -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();

@ -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"))

@ -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"))

@ -47,6 +47,8 @@ public class SndngMakeTasklet implements Tasklet {
try {
MDC.put("service_error_msg", "");
Map<String, List<SndngMssageParam>> tgtMap = service.findMakes(
EnsDTO.BatchEnsRequest.builder()
.signguCode(contribution.getStepExecution().getJobParameters().getString("signguCode"))

@ -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<SndngMssageParam> tgtList = service.findBulks(
EnsDTO.BatchEnsRequest.builder()

@ -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()

Loading…
Cancel
Save