|
|
@ -1,9 +1,6 @@
|
|
|
|
package cokr.xit.ntri.api.recv.presentation;
|
|
|
|
package cokr.xit.ntri.api.recv.presentation;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.ntri.api.recv.entity.repository.RecvLevyCancelRepository;
|
|
|
|
import cokr.xit.ntri.api.recv.entity.repository.*;
|
|
|
|
import cokr.xit.ntri.api.recv.entity.repository.RecvLevyResultRepository;
|
|
|
|
|
|
|
|
import cokr.xit.ntri.api.recv.entity.repository.RecvRcivInfoRepository;
|
|
|
|
|
|
|
|
import cokr.xit.ntri.api.recv.entity.repository.RecvRdcamtInfoRepository;
|
|
|
|
|
|
|
|
import cokr.xit.ntri.api.recv.service.RecvApiSpec;
|
|
|
|
import cokr.xit.ntri.api.recv.service.RecvApiSpec;
|
|
|
|
import cokr.xit.ntri.api.recv.service.impl.LevyCancel;
|
|
|
|
import cokr.xit.ntri.api.recv.service.impl.LevyCancel;
|
|
|
|
import cokr.xit.ntri.api.recv.service.impl.LevyResult;
|
|
|
|
import cokr.xit.ntri.api.recv.service.impl.LevyResult;
|
|
|
@ -31,6 +28,7 @@ import java.util.Map;
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@Tag(name = "NtriRecvApi", description = "차세대 세외수입 개별시스템 연계")
|
|
|
|
@Tag(name = "NtriRecvApi", description = "차세대 세외수입 개별시스템 연계")
|
|
|
|
public class NtriRecvApi {
|
|
|
|
public class NtriRecvApi {
|
|
|
|
|
|
|
|
private final RecvErrorRepository recvErrorRepository;
|
|
|
|
|
|
|
|
|
|
|
|
private final RecvLevyCancelRepository recvLevyCancelRepository;
|
|
|
|
private final RecvLevyCancelRepository recvLevyCancelRepository;
|
|
|
|
private final RecvLevyResultRepository recvLevyResultRepository;
|
|
|
|
private final RecvLevyResultRepository recvLevyResultRepository;
|
|
|
@ -44,7 +42,7 @@ public class NtriRecvApi {
|
|
|
|
@Content(mediaType = "application/json", examples = {
|
|
|
|
@Content(mediaType = "application/json", examples = {
|
|
|
|
@ExampleObject(name = "Example..."
|
|
|
|
@ExampleObject(name = "Example..."
|
|
|
|
, summary = "부과결과정보 전송", description = "세외수입시스템 -> 개별시스템을 호출하여 데이터를 전송 한다."
|
|
|
|
, summary = "부과결과정보 전송", description = "세외수입시스템 -> 개별시스템을 호출하여 데이터를 전송 한다."
|
|
|
|
, value = "{\"header\":{\"ifDate\":\"20210412103022\",\"ifMsgKey\":\"Z211103155123435-e7def4c1652a478e9c77525ab5b3ebda\",\"ifId\":\"ERR_Z000001DCP_1741000NIS_0001\",\"source\":\"3820000DCP\",\"target\":\"1741000NIS\",\"ifType\":\"S\",\"ifFormat\":\"J\",\"retName\":\"\",\"retCode\":\"200\"},\"body\":{\"reqVo\":{\"registDt\":null,\"lastUpdtDt\":null,\"rspSgbCd\":null,\"rspLinkTrgtCd\":null,\"rspLinkMngKey\":null,\"rspLinkRstCd\":null,\"rspLinkRstMsg\":null,\"id\":null,\"sgbCd\":null,\"linkMngKey\":null,\"taxnNo\":null,\"untyTaxnNo\":null,\"dptCd\":null,\"spclFisBizCd\":null,\"fyr\":null,\"actSeCd\":null,\"rprsTxmCd\":null,\"operItemCd\":null,\"lvyNo\":null,\"itmNo\":null,\"epayNo\":null,\"vtlacBankNm1\":null,\"vtlacBankNm2\":null,\"vtlacBankNm3\":null,\"vtlacBankNm4\":null,\"vtlacBankNm5\":null,\"vtlacBankNm6\":null,\"vtlacBankNm7\":null,\"vtlacBankNm8\":null,\"vtlacBankNm9\":null,\"vtlacBankNm10\":null,\"vtlacBankNm11\":null,\"vtlacBankNm12\":null,\"vtlacBankNm13\":null,\"vtlacBankNm14\":null,\"vtlacBankNm15\":null,\"vtlacBankNm16\":null,\"vtlacBankNm17\":null,\"vtlacBankNm18\":null,\"vtlacBankNm19\":null,\"vtlacBankNm20\":null,\"vrActno1\":null,\"vrActno2\":null,\"vrActno3\":null,\"vrActno4\":null,\"vrActno5\":null,\"vrActno6\":null,\"vrActno7\":null,\"vrActno8\":null,\"vrActno9\":null,\"vrActno10\":null,\"vrActno11\":null,\"vrActno12\":null,\"vrActno13\":null,\"vrActno14\":null,\"vrActno15\":null,\"vrActno16\":null,\"vrActno17\":null,\"vrActno18\":null,\"vrActno19\":null,\"vrActno20\":null,\"rsveItem1\":null,\"rsveItem2\":null,\"rsveItem3\":null,\"rsveItem4\":null,\"rsveItem5\":null}}}")
|
|
|
|
, value = "{\"header\":{\"ifDate\":\"20210412103022\",\"ifMsgKey\":\"Z211103155123435-e7def4c1652a478e9c77525ab5b3ebda\",\"ifId\":\"ERR_Z000001DCP_1741000NIS_0001\",\"source\":\"3820000DCP\",\"target\":\"1741000NIS\",\"ifType\":\"S\",\"ifFormat\":\"J\",\"retName\":\"\",\"retCode\":\"200\"},\"body\":{\"reqVo\":[{\"registDt\":null,\"lastUpdtDt\":null,\"rspSgbCd\":null,\"rspLinkTrgtCd\":null,\"rspLinkMngKey\":null,\"rspLinkRstCd\":null,\"rspLinkRstMsg\":null,\"id\":null,\"sgbCd\":null,\"linkMngKey\":null,\"taxnNo\":null,\"untyTaxnNo\":null,\"dptCd\":null,\"spclFisBizCd\":null,\"fyr\":null,\"actSeCd\":null,\"rprsTxmCd\":null,\"operItemCd\":null,\"lvyNo\":null,\"itmNo\":null,\"epayNo\":null,\"vtlacBankNm1\":null,\"vtlacBankNm2\":null,\"vtlacBankNm3\":null,\"vtlacBankNm4\":null,\"vtlacBankNm5\":null,\"vtlacBankNm6\":null,\"vtlacBankNm7\":null,\"vtlacBankNm8\":null,\"vtlacBankNm9\":null,\"vtlacBankNm10\":null,\"vtlacBankNm11\":null,\"vtlacBankNm12\":null,\"vtlacBankNm13\":null,\"vtlacBankNm14\":null,\"vtlacBankNm15\":null,\"vtlacBankNm16\":null,\"vtlacBankNm17\":null,\"vtlacBankNm18\":null,\"vtlacBankNm19\":null,\"vtlacBankNm20\":null,\"vrActno1\":null,\"vrActno2\":null,\"vrActno3\":null,\"vrActno4\":null,\"vrActno5\":null,\"vrActno6\":null,\"vrActno7\":null,\"vrActno8\":null,\"vrActno9\":null,\"vrActno10\":null,\"vrActno11\":null,\"vrActno12\":null,\"vrActno13\":null,\"vrActno14\":null,\"vrActno15\":null,\"vrActno16\":null,\"vrActno17\":null,\"vrActno18\":null,\"vrActno19\":null,\"vrActno20\":null,\"rsveItem1\":null,\"rsveItem2\":null,\"rsveItem3\":null,\"rsveItem4\":null,\"rsveItem5\":null}]}}")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@PostMapping(value = "/recv/levy/result", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@PostMapping(value = "/recv/levy/result", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
@ -54,6 +52,7 @@ public class NtriRecvApi {
|
|
|
|
RecvApiSpec recv = LevyResult.builder()
|
|
|
|
RecvApiSpec recv = LevyResult.builder()
|
|
|
|
.jpaRepository(recvLevyResultRepository)
|
|
|
|
.jpaRepository(recvLevyResultRepository)
|
|
|
|
.jParam(jParam)
|
|
|
|
.jParam(jParam)
|
|
|
|
|
|
|
|
.recvErrorRepository(recvErrorRepository)
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
Map<String, Object> resultInfo = this.execute(recv, jParam);
|
|
|
|
Map<String, Object> resultInfo = this.execute(recv, jParam);
|
|
|
|
|
|
|
|
|
|
|
@ -64,7 +63,7 @@ public class NtriRecvApi {
|
|
|
|
@Content(mediaType = "application/json", examples = {
|
|
|
|
@Content(mediaType = "application/json", examples = {
|
|
|
|
@ExampleObject(name = "Example..."
|
|
|
|
@ExampleObject(name = "Example..."
|
|
|
|
, summary = "부과취소정보 전송", description = "세외수입시스템 -> 개별시스템을 호출하여 데이터를 전송 한다."
|
|
|
|
, summary = "부과취소정보 전송", description = "세외수입시스템 -> 개별시스템을 호출하여 데이터를 전송 한다."
|
|
|
|
, value = "{\"header\":{\"ifDate\":\"20210412103022\",\"ifMsgKey\":\"Z211103155123435-e7def4c1652a478e9c77525ab5b3ebda\",\"ifId\":\"ERR_Z000001DCP_1741000NIS_0002\",\"source\":\"3820000DCP\",\"target\":\"1741000NIS\",\"ifType\":\"S\",\"ifFormat\":\"J\",\"retName\":\"\",\"retCode\":\"200\"},\"body\":{\"reqVo\":{\"registDt\":null,\"lastUpdtDt\":null,\"rspSgbCd\":null,\"rspLinkTrgtCd\":null,\"rspLinkMngKey\":null,\"rspLinkRstCd\":null,\"rspLinkRstMsg\":null,\"id\":null,\"sgbCd\":null,\"linkMngKey\":null,\"taxnNo\":null,\"lvyRtrcnYmd\":null,\"delRsnCn\":null,\"rsveItem1\":null,\"rsveItem2\":null,\"rsveItem3\":null,\"rsveItem4\":null,\"rsveItem5\":null}}}")
|
|
|
|
, value = "{\"header\":{\"ifDate\":\"20210412103022\",\"ifMsgKey\":\"Z211103155123435-e7def4c1652a478e9c77525ab5b3ebda\",\"ifId\":\"ERR_Z000001DCP_1741000NIS_0002\",\"source\":\"3820000DCP\",\"target\":\"1741000NIS\",\"ifType\":\"S\",\"ifFormat\":\"J\",\"retName\":\"\",\"retCode\":\"200\"},\"body\":{\"reqVo\":[{\"registDt\":null,\"lastUpdtDt\":null,\"rspSgbCd\":null,\"rspLinkTrgtCd\":null,\"rspLinkMngKey\":null,\"rspLinkRstCd\":null,\"rspLinkRstMsg\":null,\"id\":null,\"sgbCd\":null,\"linkMngKey\":null,\"taxnNo\":null,\"lvyRtrcnYmd\":null,\"delRsnCn\":null,\"rsveItem1\":null,\"rsveItem2\":null,\"rsveItem3\":null,\"rsveItem4\":null,\"rsveItem5\":null}]}}")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@PostMapping(value = "/recv/levy/cancel", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@PostMapping(value = "/recv/levy/cancel", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
@ -74,6 +73,7 @@ public class NtriRecvApi {
|
|
|
|
RecvApiSpec recv = LevyCancel.builder()
|
|
|
|
RecvApiSpec recv = LevyCancel.builder()
|
|
|
|
.jpaRepository(recvLevyCancelRepository)
|
|
|
|
.jpaRepository(recvLevyCancelRepository)
|
|
|
|
.jParam(jParam)
|
|
|
|
.jParam(jParam)
|
|
|
|
|
|
|
|
.recvErrorRepository(recvErrorRepository)
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
Map<String, Object> resultInfo = this.execute(recv, jParam);
|
|
|
|
Map<String, Object> resultInfo = this.execute(recv, jParam);
|
|
|
|
|
|
|
|
|
|
|
@ -85,7 +85,7 @@ public class NtriRecvApi {
|
|
|
|
@Content(mediaType = "application/json", examples = {
|
|
|
|
@Content(mediaType = "application/json", examples = {
|
|
|
|
@ExampleObject(name = "Example..."
|
|
|
|
@ExampleObject(name = "Example..."
|
|
|
|
, summary = "수납정보 전송", description = "세외수입시스템 -> 개별시스템을 호출하여 데이터를 전송 한다."
|
|
|
|
, summary = "수납정보 전송", description = "세외수입시스템 -> 개별시스템을 호출하여 데이터를 전송 한다."
|
|
|
|
, value = "{\"header\":{\"ifDate\":\"20210412103022\",\"ifMsgKey\":\"Z211103155123435-e7def4c1652a478e9c77525ab5b3ebda\",\"ifId\":\"ERR_Z000001DCP_1741000NIS_0003\",\"source\":\"3820000DCP\",\"target\":\"1741000NIS\",\"ifType\":\"S\",\"ifFormat\":\"J\",\"retName\":\"\",\"retCode\":\"200\"},\"body\":{\"reqVo\":{\"registDt\":null,\"lastUpdtDt\":null,\"rspSgbCd\":null,\"rspLinkTrgtCd\":null,\"rspLinkMngKey\":null,\"rspLinkRstCd\":null,\"rspLinkRstMsg\":null,\"id\":null,\"sgbCd\":null,\"sgbNm\":null,\"linkMngKey\":null,\"taxnNo\":null,\"untyTaxnNo\":null,\"dptCd\":null,\"dptNm\":null,\"spclFisBizCd\":null,\"spclFisBizNm\":null,\"fyr\":null,\"actSeCd\":null,\"actSeNm\":null,\"rprsTxmCd\":null,\"rprsTxmNm\":null,\"operItemCd\":null,\"operItemNm\":null,\"lvyNo\":null,\"itmNo\":null,\"epayNo\":null,\"rcvmtNo\":null,\"rcvmtSeCd\":null,\"rcvmtSeNm\":null,\"rcvmtYmd\":null,\"actYmd\":null,\"tsfYmd\":null,\"rcvmtPctAmt\":null,\"rcvmtAdtnAmt\":null,\"rcvmtIntrAmt\":null,\"bankNm\":null,\"rcvmtTyCd\":null,\"rcvmtTy\":null,\"rsveItem1\":null,\"rsveItem2\":null,\"rsveItem3\":null,\"rsveItem4\":null,\"rsveItem5\":null}}}")
|
|
|
|
, value = "{\"header\":{\"ifDate\":\"20210412103022\",\"ifMsgKey\":\"Z211103155123435-e7def4c1652a478e9c77525ab5b3ebda\",\"ifId\":\"ERR_Z000001DCP_1741000NIS_0003\",\"source\":\"3820000DCP\",\"target\":\"1741000NIS\",\"ifType\":\"S\",\"ifFormat\":\"J\",\"retName\":\"\",\"retCode\":\"200\"},\"body\":{\"reqVo\":[{\"registDt\":null,\"lastUpdtDt\":null,\"rspSgbCd\":null,\"rspLinkTrgtCd\":null,\"rspLinkMngKey\":null,\"rspLinkRstCd\":null,\"rspLinkRstMsg\":null,\"id\":null,\"sgbCd\":null,\"sgbNm\":null,\"linkMngKey\":null,\"taxnNo\":null,\"untyTaxnNo\":null,\"dptCd\":null,\"dptNm\":null,\"spclFisBizCd\":null,\"spclFisBizNm\":null,\"fyr\":null,\"actSeCd\":null,\"actSeNm\":null,\"rprsTxmCd\":null,\"rprsTxmNm\":null,\"operItemCd\":null,\"operItemNm\":null,\"lvyNo\":null,\"itmNo\":null,\"epayNo\":null,\"rcvmtNo\":null,\"rcvmtSeCd\":null,\"rcvmtSeNm\":null,\"rcvmtYmd\":null,\"actYmd\":null,\"tsfYmd\":null,\"rcvmtPctAmt\":null,\"rcvmtAdtnAmt\":null,\"rcvmtIntrAmt\":null,\"bankNm\":null,\"rcvmtTyCd\":null,\"rcvmtTy\":null,\"rsveItem1\":null,\"rsveItem2\":null,\"rsveItem3\":null,\"rsveItem4\":null,\"rsveItem5\":null}]}}")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@PostMapping(value = "/recv/rciv/info", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@PostMapping(value = "/recv/rciv/info", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
@ -95,6 +95,7 @@ public class NtriRecvApi {
|
|
|
|
RecvApiSpec recv = RcivInfo.builder()
|
|
|
|
RecvApiSpec recv = RcivInfo.builder()
|
|
|
|
.jpaRepository(recvRcivInfoRepository)
|
|
|
|
.jpaRepository(recvRcivInfoRepository)
|
|
|
|
.jParam(jParam)
|
|
|
|
.jParam(jParam)
|
|
|
|
|
|
|
|
.recvErrorRepository(recvErrorRepository)
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
Map<String, Object> resultInfo = this.execute(recv, jParam);
|
|
|
|
Map<String, Object> resultInfo = this.execute(recv, jParam);
|
|
|
|
|
|
|
|
|
|
|
@ -106,7 +107,7 @@ public class NtriRecvApi {
|
|
|
|
@Content(mediaType = "application/json", examples = {
|
|
|
|
@Content(mediaType = "application/json", examples = {
|
|
|
|
@ExampleObject(name = "Example..."
|
|
|
|
@ExampleObject(name = "Example..."
|
|
|
|
, summary = "감액정보 전송", description = "세외수입시스템 -> 개별시스템을 호출하여 데이터를 전송 한다."
|
|
|
|
, summary = "감액정보 전송", description = "세외수입시스템 -> 개별시스템을 호출하여 데이터를 전송 한다."
|
|
|
|
, value = "{\"header\":{\"ifDate\":\"20210412103022\",\"ifMsgKey\":\"Z211103155123435-e7def4c1652a478e9c77525ab5b3ebda\",\"ifId\":\"ERR_Z000001DCP_1741000NIS_0004\",\"source\":\"3820000DCP\",\"target\":\"1741000NIS\",\"ifType\":\"S\",\"ifFormat\":\"J\",\"retName\":\"\",\"retCode\":\"200\"},\"body\":{\"reqVo\":{\"registDt\":null,\"lastUpdtDt\":null,\"rspSgbCd\":null,\"rspLinkTrgtCd\":null,\"rspLinkMngKey\":null,\"rspLinkRstCd\":null,\"rspLinkRstMsg\":null,\"id\":null,\"sgbCd\":null,\"sgbNm\":null,\"linkMngKey\":null,\"taxnNo\":null,\"untyTaxnNo\":null,\"dptCd\":null,\"dptNm\":null,\"spclFisBizCd\":null,\"spclFisBizNm\":null,\"fyr\":null,\"actSeCd\":null,\"actSeNm\":null,\"rprsTxmCd\":null,\"rprsTxmNm\":null,\"operItemCd\":null,\"operItemNm\":null,\"lvyNo\":null,\"itmNo\":null,\"rdcYmd\":null,\"rdcPctAmt\":null,\"rdcAdtnAmt\":null,\"rdcIntrAmt\":null,\"rdcAmt\":null,\"rdcRsnCn\":null,\"rsveItem1\":null,\"rsveItem2\":null,\"rsveItem3\":null,\"rsveItem4\":null,\"rsveItem5\":null}}}")
|
|
|
|
, value = "{\"header\":{\"ifDate\":\"20210412103022\",\"ifMsgKey\":\"Z211103155123435-e7def4c1652a478e9c77525ab5b3ebda\",\"ifId\":\"ERR_Z000001DCP_1741000NIS_0004\",\"source\":\"3820000DCP\",\"target\":\"1741000NIS\",\"ifType\":\"S\",\"ifFormat\":\"J\",\"retName\":\"\",\"retCode\":\"200\"},\"body\":{\"reqVo\":[{\"registDt\":null,\"lastUpdtDt\":null,\"rspSgbCd\":null,\"rspLinkTrgtCd\":null,\"rspLinkMngKey\":null,\"rspLinkRstCd\":null,\"rspLinkRstMsg\":null,\"id\":null,\"sgbCd\":null,\"sgbNm\":null,\"linkMngKey\":null,\"taxnNo\":null,\"untyTaxnNo\":null,\"dptCd\":null,\"dptNm\":null,\"spclFisBizCd\":null,\"spclFisBizNm\":null,\"fyr\":null,\"actSeCd\":null,\"actSeNm\":null,\"rprsTxmCd\":null,\"rprsTxmNm\":null,\"operItemCd\":null,\"operItemNm\":null,\"lvyNo\":null,\"itmNo\":null,\"rdcYmd\":null,\"rdcPctAmt\":null,\"rdcAdtnAmt\":null,\"rdcIntrAmt\":null,\"rdcAmt\":null,\"rdcRsnCn\":null,\"rsveItem1\":null,\"rsveItem2\":null,\"rsveItem3\":null,\"rsveItem4\":null,\"rsveItem5\":null}]}}")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@PostMapping(value = "/recv/rdcamt/info", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@PostMapping(value = "/recv/rdcamt/info", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
@ -116,6 +117,7 @@ public class NtriRecvApi {
|
|
|
|
RecvApiSpec recv = RdcamtInfo.builder()
|
|
|
|
RecvApiSpec recv = RdcamtInfo.builder()
|
|
|
|
.jpaRepository(recvRdcamtInfoRepository)
|
|
|
|
.jpaRepository(recvRdcamtInfoRepository)
|
|
|
|
.jParam(jParam)
|
|
|
|
.jParam(jParam)
|
|
|
|
|
|
|
|
.recvErrorRepository(recvErrorRepository)
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
Map<String, Object> resultInfo = this.execute(recv, jParam);
|
|
|
|
Map<String, Object> resultInfo = this.execute(recv, jParam);
|
|
|
|
|
|
|
|
|
|
|
@ -136,7 +138,7 @@ public class NtriRecvApi {
|
|
|
|
//result SET
|
|
|
|
//result SET
|
|
|
|
header.put("retCode", "200");
|
|
|
|
header.put("retCode", "200");
|
|
|
|
header.put("retName", "성공");
|
|
|
|
header.put("retName", "성공");
|
|
|
|
body.put("resVo", recv.getResult());
|
|
|
|
body.put("resVo", recv.getResponse());
|
|
|
|
resultInfo.put("header", header);
|
|
|
|
resultInfo.put("header", header);
|
|
|
|
resultInfo.put("body", body);
|
|
|
|
resultInfo.put("body", body);
|
|
|
|
} catch (JsonProcessingException e) {
|
|
|
|
} catch (JsonProcessingException e) {
|
|
|
|