|
|
|
@ -1,27 +1,21 @@
|
|
|
|
|
package cokr.xit.ens.modules.kkotalk.web;
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.ens.core.aop.EnsResponseVO;
|
|
|
|
|
import cokr.xit.ens.core.exception.EnsException;
|
|
|
|
|
import cokr.xit.ens.core.exception.code.EnsErrCd;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.mapper.IKkoTalkMapper;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.model.KkotalkDTO;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.service.KkoTalkService;
|
|
|
|
|
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;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
import org.springframework.http.*;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.ens.core.aop.*;
|
|
|
|
|
import cokr.xit.ens.core.exception.*;
|
|
|
|
|
import cokr.xit.ens.core.exception.code.*;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.mapper.*;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.model.*;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.service.*;
|
|
|
|
|
import io.swagger.v3.oas.annotations.*;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.*;
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.*;
|
|
|
|
|
import lombok.*;
|
|
|
|
|
import lombok.extern.slf4j.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
@ -149,7 +143,10 @@ public class KkotalkController {
|
|
|
|
|
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, "문서를 찾을 수 없습니다."));
|
|
|
|
|
|
|
|
|
|
EnsResponseVO<?> responseVO = service.tokenVerify("getOrgCd()", envelopeId, token, externalId);
|
|
|
|
@ -170,7 +167,10 @@ public class KkotalkController {
|
|
|
|
|
|
|
|
|
|
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, "문서를 찾을 수 없습니다."));
|
|
|
|
|
|
|
|
|
|
EnsResponseVO<?> responseVO = service.readCmplt("getOrgCd()", envelopeId);
|
|
|
|
|