|
|
@ -1,27 +1,21 @@
|
|
|
|
package cokr.xit.ens.modules.kkotalk.web;
|
|
|
|
package cokr.xit.ens.modules.kkotalk.web;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
import org.springframework.http.*;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import cokr.xit.ens.core.aop.*;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import cokr.xit.ens.core.exception.*;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import cokr.xit.ens.core.exception.code.*;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import cokr.xit.ens.modules.kkotalk.mapper.*;
|
|
|
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.model.*;
|
|
|
|
import cokr.xit.ens.core.aop.EnsResponseVO;
|
|
|
|
import cokr.xit.ens.modules.kkotalk.service.*;
|
|
|
|
import cokr.xit.ens.core.exception.EnsException;
|
|
|
|
import io.swagger.v3.oas.annotations.*;
|
|
|
|
import cokr.xit.ens.core.exception.code.EnsErrCd;
|
|
|
|
import io.swagger.v3.oas.annotations.media.*;
|
|
|
|
import cokr.xit.ens.modules.kkotalk.mapper.IKkoTalkMapper;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.*;
|
|
|
|
import cokr.xit.ens.modules.kkotalk.model.KkotalkDTO;
|
|
|
|
import lombok.*;
|
|
|
|
import cokr.xit.ens.modules.kkotalk.service.KkoTalkService;
|
|
|
|
import lombok.extern.slf4j.*;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Content;
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.ExampleObject;
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <pre>
|
|
|
|
* <pre>
|
|
|
@ -149,7 +143,10 @@ public class KkotalkController {
|
|
|
|
final String externalId = mParam.get("externalId");
|
|
|
|
final String externalId = mParam.get("externalId");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KkotalkDTO.SendDetailKkoTalkDTO sendDetail = talkMapper.findFetchByExternalIdAndEnvelopeId(externalId, envelopeId)
|
|
|
|
Map<String, String> paramMap = new HashMap<>();
|
|
|
|
|
|
|
|
paramMap.put("envelopeId", envelopeId);
|
|
|
|
|
|
|
|
paramMap.put("externalId", externalId);
|
|
|
|
|
|
|
|
KkotalkDTO.SendDetailKkoTalkDTO sendDetail = talkMapper.findFetchByExternalIdAndEnvelopeId(paramMap)
|
|
|
|
.orElseThrow(() -> new EnsException(EnsErrCd.ERR404, "문서를 찾을 수 없습니다."));
|
|
|
|
.orElseThrow(() -> new EnsException(EnsErrCd.ERR404, "문서를 찾을 수 없습니다."));
|
|
|
|
|
|
|
|
|
|
|
|
EnsResponseVO<?> responseVO = service.tokenVerify("getOrgCd()", envelopeId, token, externalId);
|
|
|
|
EnsResponseVO<?> responseVO = service.tokenVerify("getOrgCd()", envelopeId, token, externalId);
|
|
|
@ -170,7 +167,10 @@ public class KkotalkController {
|
|
|
|
|
|
|
|
|
|
|
|
final String envelopeId = mParam.get("envelopeId");
|
|
|
|
final String envelopeId = mParam.get("envelopeId");
|
|
|
|
|
|
|
|
|
|
|
|
KkotalkDTO.SendDetailKkoTalkDTO sendDetail = talkMapper.findFetchByExternalIdAndEnvelopeId(null, envelopeId)
|
|
|
|
Map<String, String> paramMap = new HashMap<>();
|
|
|
|
|
|
|
|
paramMap.put("envelopeId", envelopeId);
|
|
|
|
|
|
|
|
paramMap.put("externalId", null);
|
|
|
|
|
|
|
|
KkotalkDTO.SendDetailKkoTalkDTO sendDetail = talkMapper.findFetchByExternalIdAndEnvelopeId(paramMap)
|
|
|
|
.orElseThrow(() -> new EnsException(EnsErrCd.ERR404, "문서를 찾을 수 없습니다."));
|
|
|
|
.orElseThrow(() -> new EnsException(EnsErrCd.ERR404, "문서를 찾을 수 없습니다."));
|
|
|
|
|
|
|
|
|
|
|
|
EnsResponseVO<?> responseVO = service.readCmplt("getOrgCd()", envelopeId);
|
|
|
|
EnsResponseVO<?> responseVO = service.readCmplt("getOrgCd()", envelopeId);
|
|
|
|