fix: correct Onnba3011ReqDto fields from new API spec and fix OnnbaMciToolService compile error
This commit is contained in:
@@ -10,42 +10,110 @@ import lombok.Data;
|
|||||||
* @description 보종By가입설계한도계산조회 MCI 요청 전문 (ONNBA3011_I)
|
* @description 보종By가입설계한도계산조회 MCI 요청 전문 (ONNBA3011_I)
|
||||||
* @author 김형식
|
* @author 김형식
|
||||||
* @create 2026.09.01
|
* @create 2026.09.01
|
||||||
* <pre>
|
|
||||||
* ---------- 개정이력 ----------
|
|
||||||
* 수정일 수정자 수정내용
|
|
||||||
* ---------- -------- ---------------------------
|
|
||||||
* 2026.09.01 김형식 최초생성 (전문 명세 기반 파라미터 추가)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class Onnba3011ReqDto {
|
public class Onnba3011ReqDto {
|
||||||
|
|
||||||
@JsonPropertyDescription("통합기계약반영여부 (길이: 1)")
|
@JsonPropertyDescription("통합기계약보험 (유형: gs, 길이: 72)")
|
||||||
@JsonProperty("untgKcntRflYn")
|
@JsonProperty("unfcPrbuIrcoAddu")
|
||||||
private String untgKcntRflYn;
|
private UnfcPrbuIrcoAdduDto unfcPrbuIrcoAddu;
|
||||||
|
|
||||||
@JsonPropertyDescription("처리구분코드 (길이: 2)")
|
@JsonPropertyDescription("처리구분코드 (길이: 1)")
|
||||||
@JsonProperty("prcsDscd")
|
@JsonProperty("dalScCd")
|
||||||
private String prcsDscd;
|
private String dalScCd;
|
||||||
|
|
||||||
@JsonPropertyDescription("고객식별번호 (길이: 13)")
|
@JsonPropertyDescription("고객청약관계 (길이: 2)")
|
||||||
@JsonProperty("cstIdntNo")
|
@JsonProperty("cstSucoRltyCd")
|
||||||
private String cstIdntNo;
|
private String cstSucoRltyCd;
|
||||||
|
|
||||||
@JsonPropertyDescription("고객번호 (길이: 10)")
|
@JsonPropertyDescription("고객번호 (길이: 12)")
|
||||||
@JsonProperty("cstNo")
|
@JsonProperty("csNo")
|
||||||
private String cstNo;
|
private String csNo;
|
||||||
|
|
||||||
@JsonPropertyDescription("주민등록번호 (길이: 13)")
|
@JsonPropertyDescription("주민등록번호 (길이: 50)")
|
||||||
@JsonProperty("rrnNo")
|
@JsonProperty("rdreNo")
|
||||||
private String rrnNo;
|
private String rdreNo;
|
||||||
|
|
||||||
@JsonPropertyDescription("불량고객여부 (길이: 1)")
|
@JsonPropertyDescription("통합급부계산 (길이: 1)")
|
||||||
@JsonProperty("badCstYn")
|
@JsonProperty("unfcPvsCalReqYn")
|
||||||
private String badCstYn;
|
private String unfcPvsCalReqYn;
|
||||||
|
|
||||||
@JsonPropertyDescription("집중심사여부 (길이: 1)")
|
@JsonPropertyDescription("한국신용정보 (길이: 1)")
|
||||||
@JsonProperty("cnsJdgYn")
|
@JsonProperty("kcisPymmTnnrReq")
|
||||||
private String cnsJdgYn;
|
private String kcisPymmTnnrReq;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("한도초과여부 (길이: 1)")
|
||||||
|
@JsonProperty("lmovYn")
|
||||||
|
private String lmovYn;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("일반경유승인 (길이: 1)")
|
||||||
|
@JsonProperty("genPsthApvTrgtYn")
|
||||||
|
private String genPsthApvTrgtYn;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("보험사한도초과 (길이: 1)")
|
||||||
|
@JsonProperty("ircoLmovEcpbTrgtYn")
|
||||||
|
private String ircoLmovEcpbTrgtYn;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("진단계산여부 (길이: 1)")
|
||||||
|
@JsonProperty("digCalYn")
|
||||||
|
private String digCalYn;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("기계약포함진단 (길이: 1)")
|
||||||
|
@JsonProperty("prbuIciDigCalYn")
|
||||||
|
private String prbuIciDigCalYn;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("청약심사기본Dto (유형: gs, 길이: 2532)")
|
||||||
|
@JsonProperty("sucoIspaBasDto")
|
||||||
|
private SucoIspaBasDto sucoIspaBasDto;
|
||||||
|
|
||||||
|
// ----- Nested DTO Classes -----
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class UnfcPrbuIrcoAdduDto {
|
||||||
|
// 실제 필요한 하위 필드들 추가 (사진 생략부분)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class SucoIspaBasDto {
|
||||||
|
|
||||||
|
@JsonPropertyDescription("계약처리유형 (길이: 2)")
|
||||||
|
@JsonProperty("ccnDalTypCd")
|
||||||
|
private String ccnDalTypCd;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("신계약입력경로 (길이: 2)")
|
||||||
|
@JsonProperty("nwcnptCursCd")
|
||||||
|
private String nwcnptCursCd;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("개인단체계약 (길이: 2)")
|
||||||
|
@JsonProperty("induAsctScCd")
|
||||||
|
private String induAsctScCd;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("모집조직번호 (길이: 7)")
|
||||||
|
@JsonProperty("cepeOgnzNo")
|
||||||
|
private String cepeOgnzNo;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("모집자사번번호 (길이: 8)")
|
||||||
|
@JsonProperty("cepePrafNo")
|
||||||
|
private String cepePrafNo;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("수금조직번호 (길이: 7)")
|
||||||
|
@JsonProperty("clmoOgnzNo")
|
||||||
|
private String clmoOgnzNo;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("수금자사번번호 (길이: 8)")
|
||||||
|
@JsonProperty("clmoPrafNo")
|
||||||
|
private String clmoPrafNo;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("청약일자 (길이: 20)")
|
||||||
|
@JsonProperty("sucoYmd")
|
||||||
|
private String sucoYmd;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("발행일자 (길이: 20)")
|
||||||
|
@JsonProperty("ispDt")
|
||||||
|
private String ispDt;
|
||||||
|
|
||||||
|
@JsonPropertyDescription("계약일자 (길이: 20)")
|
||||||
|
@JsonProperty("contYmd")
|
||||||
|
private String contYmd;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public class OnnbaMciToolService {
|
|||||||
mappingId = "CLCNNB00001"
|
mappingId = "CLCNNB00001"
|
||||||
)
|
)
|
||||||
public Object callOnnba3011(Onnba3011ReqDto req) {
|
public Object callOnnba3011(Onnba3011ReqDto req) {
|
||||||
log.info("[MCI Tool] 보종By가입설계한도계산조회 요청 수신. 고객ID: {}", req.getCustomerId());
|
log.info("[MCI Tool] 보종By가입설계한도계산조회 요청 수신.");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 1. MCI 전문 통신을 위한 통합 Wrapper 객체 생성
|
// 1. MCI 전문 통신을 위한 통합 Wrapper 객체 생성
|
||||||
|
|||||||
Reference in New Issue
Block a user