|
|
@ -39,13 +39,10 @@ public class KkoTalkMblPageController extends MblPageControllerSupport {
|
|
|
|
final String envelopeId = mParam.get("envelopeId");
|
|
|
|
final String envelopeId = mParam.get("envelopeId");
|
|
|
|
final String externalId = mParam.get("externalId");
|
|
|
|
final String externalId = mParam.get("externalId");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (CmmnUtil.isEmpty(token) && CmmnUtil.isEmpty(envelopeId) && CmmnUtil.isEmpty(externalId))
|
|
|
|
if (CmmnUtil.isEmpty(token) && CmmnUtil.isEmpty(envelopeId) && CmmnUtil.isEmpty(externalId))
|
|
|
|
throw new EnsException(EnsErrCd.ERR410, "정상적인 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
|
|
|
|
throw new EnsException(EnsErrCd.ERR410, "정상적인 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
|
|
|
|
|
|
|
|
|
|
|
|
// 조직코드값 조회
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> param = new HashMap<>();
|
|
|
|
Map<String, String> param = new HashMap<>();
|
|
|
|
param.put("envelopeId", envelopeId);
|
|
|
|
param.put("envelopeId", envelopeId);
|
|
|
|
param.put("externalId", externalId);
|
|
|
|
param.put("externalId", externalId);
|
|
|
@ -55,8 +52,6 @@ public class KkoTalkMblPageController extends MblPageControllerSupport {
|
|
|
|
SendDetailKkoTalkDTO sendDetailKkoTalkDTO = kkoTalkMapper.findFetchByExternalIdAndEnvelopeId(param)
|
|
|
|
SendDetailKkoTalkDTO sendDetailKkoTalkDTO = kkoTalkMapper.findFetchByExternalIdAndEnvelopeId(param)
|
|
|
|
.orElseThrow(() -> new EnsException(EnsErrCd.ERR404, String.format("일치하는 자료가 없습니다. [ envelopeId %s externalId %s ]", envelopeId, externalId)));
|
|
|
|
.orElseThrow(() -> new EnsException(EnsErrCd.ERR404, String.format("일치하는 자료가 없습니다. [ envelopeId %s externalId %s ]", envelopeId, externalId)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EnsResponseVO<?> responseVO = kkoTalkService.tokenVerify(sendMast.getOrgCd(), envelopeId, token, externalId);
|
|
|
|
EnsResponseVO<?> responseVO = kkoTalkService.tokenVerify(sendMast.getOrgCd(), envelopeId, token, externalId);
|
|
|
|
if (!EnsErrCd.OK.equals(responseVO.getErrCode()))
|
|
|
|
if (!EnsErrCd.OK.equals(responseVO.getErrCode()))
|
|
|
|
throw new EnsException(responseVO.getErrCode(), responseVO.getErrMsg());
|
|
|
|
throw new EnsException(responseVO.getErrCode(), responseVO.getErrMsg());
|
|
|
|