diff --git a/src/main/java/com/eactive/eai/outbound/DefaultProcess.java b/src/main/java/com/eactive/eai/outbound/DefaultProcess.java index a3f5cb9..71693d3 100644 --- a/src/main/java/com/eactive/eai/outbound/DefaultProcess.java +++ b/src/main/java/com/eactive/eai/outbound/DefaultProcess.java @@ -257,7 +257,9 @@ public abstract class DefaultProcess extends Process { if(isAsyncSyncPattern()){ StandardMessage standardMessage = this.resEaiMsg.getStandardMessage(); standardMessage.setBizData(this.resObject, this.outboundCharset); - if ( StringUtils.isNotBlank(resEaiMsg.getRspErrCd()) ) { + + if ("E".equals(resEaiMsg.getRspErrCd().substring(1, 2)) + || "F".equals(resEaiMsg.getRspErrCd().substring(1, 2))) { this.logPssSno = 900; } else { this.logPssSno = 500; @@ -493,7 +495,8 @@ public abstract class DefaultProcess extends Process { ServiceMessage secondService = this.reqEaiMsg.getSvcMsg(1); if (EAIMessageKeys.ASYNC_SVC.equals(this.reqEaiMsg.getSvcTsmtUsgTp()) && EAIMessageKeys.SYNC_SVC.equals(firstService.getPsvItfTp()) - && EAIMessageKeys.ASYNC_SVC.equals(secondService.getPsvItfTp())){ + && EAIMessageKeys.ASYNC_SVC.equals(secondService.getPsvItfTp()) + && this.reqEaiMsg.getCurrentSvcMsg() == secondService){ return true; } return false;