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