|
|
@ -116,7 +116,7 @@ public class KkoTalkSender extends SendProcTemplate {
|
|
|
|
|
|
|
|
|
|
|
|
list.stream()
|
|
|
|
list.stream()
|
|
|
|
.forEach(row -> {
|
|
|
|
.forEach(row -> {
|
|
|
|
row.setStatus(KkoTalkStatusCd.SENT_FAIL.getCode());
|
|
|
|
row.setStatus(KkoTalkStatusCd.SENT_FAIL);
|
|
|
|
row.setError(
|
|
|
|
row.setError(
|
|
|
|
FieldError.initBuilder()
|
|
|
|
FieldError.initBuilder()
|
|
|
|
.errorCode(e.getErrCd().getCode())
|
|
|
|
.errorCode(e.getErrCd().getCode())
|
|
|
@ -130,7 +130,7 @@ public class KkoTalkSender extends SendProcTemplate {
|
|
|
|
|
|
|
|
|
|
|
|
list.stream()
|
|
|
|
list.stream()
|
|
|
|
.forEach(row -> {
|
|
|
|
.forEach(row -> {
|
|
|
|
row.setStatus(KkoTalkStatusCd.SENT_FAIL.getCode());
|
|
|
|
row.setStatus(KkoTalkStatusCd.SENT_FAIL);
|
|
|
|
row.setError(
|
|
|
|
row.setError(
|
|
|
|
FieldError.initBuilder()
|
|
|
|
FieldError.initBuilder()
|
|
|
|
.errorCode(EnsErrCd.SEND500.getCode())
|
|
|
|
.errorCode(EnsErrCd.SEND500.getCode())
|
|
|
@ -282,11 +282,11 @@ public class KkoTalkSender extends SendProcTemplate {
|
|
|
|
private void modifyTalkSendRsltByExtDocUuid(SendDetailKkoTalkDTO row, Map<String, KkoTalkApiRespVO> map) {
|
|
|
|
private void modifyTalkSendRsltByExtDocUuid(SendDetailKkoTalkDTO row, Map<String, KkoTalkApiRespVO> map) {
|
|
|
|
KkoTalkApiRespVO apiRespVO = map.get(row.getExternalId());
|
|
|
|
KkoTalkApiRespVO apiRespVO = map.get(row.getExternalId());
|
|
|
|
if (CmmnUtil.isEmpty(apiRespVO.getErrorCode())) {
|
|
|
|
if (CmmnUtil.isEmpty(apiRespVO.getErrorCode())) {
|
|
|
|
row.setStatus(KkoTalkStatusCd.SENT.getCode());
|
|
|
|
row.setStatus(KkoTalkStatusCd.SENT);
|
|
|
|
row.setEnvelopeId(String.valueOf(apiRespVO.getData()));
|
|
|
|
row.setEnvelopeId(String.valueOf(apiRespVO.getData()));
|
|
|
|
row.setError(FieldError.initBuilder().build());
|
|
|
|
row.setError(FieldError.initBuilder().build());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
row.setStatus(KkoTalkStatusCd.valueOfEnum(apiRespVO.getErrorCode()).getCode());
|
|
|
|
row.setStatus(KkoTalkStatusCd.valueOfEnum(apiRespVO.getErrorCode()));
|
|
|
|
row.setError(FieldError.initBuilder()
|
|
|
|
row.setError(FieldError.initBuilder()
|
|
|
|
.errorCode(EnsErrCd.SEND630.getCode())
|
|
|
|
.errorCode(EnsErrCd.SEND630.getCode())
|
|
|
|
.errorMessage(String.format("%s %s", apiRespVO.getErrorCode(), apiRespVO.getErrorMessage()))
|
|
|
|
.errorMessage(String.format("%s %s", apiRespVO.getErrorCode(), apiRespVO.getErrorMessage()))
|
|
|
|