fix: 리턴개선

version-jdk1.8
박성영 4 weeks ago
parent d124860d00
commit 13b6e8122e

@ -1,106 +1,107 @@
create table tb_car_bass_matter_inqire create table tb_car_bass_matter_inqire
( (
CAR_BASS_MATTER_INQIRE_ID varchar(20) not null comment '자동차 기본 사항 조회 ID' CAR_BASS_MATTER_INQIRE_ID varchar(20) not null comment '자동차 기본 사항 조회 ID'
primary key, primary key,
INFO_SYS_ID varchar(6) null comment '정보 시스템 ID', INFO_SYS_ID varchar(6) null comment '정보 시스템 ID',
INFO_SYS_IP varchar(23) null comment '정보 시스템 IP', INFO_SYS_IP varchar(23) null comment '정보 시스템 IP',
SIGUNGU_CODE varchar(5) null comment '시군구 코드', SIGUNGU_CODE varchar(5) null comment '시군구 코드',
CNTC_INFO_CODE varchar(15) null comment '연계 정보 코드', CNTC_INFO_CODE varchar(15) null comment '연계 정보 코드',
CHARGER_ID varchar(15) null comment '담당자 ID', CHARGER_ID varchar(15) null comment '담당자 ID',
CHARGER_IP varchar(23) null comment '담당자 IP', CHARGER_IP varchar(23) null comment '담당자 IP',
CHARGER_NM varchar(75) null comment '담당자명', CHARGER_NM varchar(75) null comment '담당자명',
DMND_LEVY_STDDE varchar(8) null comment '요청 부과 기준일', DMND_LEVY_STDDE varchar(8) null comment '요청 부과 기준일',
DMND_INQIRE_SE_CODE varchar(1) null comment '요청 조회 구분 코드', DMND_INQIRE_SE_CODE varchar(1) null comment '요청 조회 구분 코드',
DMND_VHRNO varchar(30) null comment '요청 자동차등록번호', DMND_VHRNO varchar(30) null comment '요청 자동차등록번호',
DMND_VIN varchar(17) null comment '요청 차대번호', DMND_VIN varchar(17) null comment '요청 차대번호',
CNTC_RESULT_CODE varchar(8) null comment '연계 결과 코드', LINK_RSLT_CD varchar(8) null comment '연계 결과 코드',
CNTC_RESULT_DTLS varchar(4000) null comment '연계 결과 상세', LINK_RSLT_DTL varchar(4000) null comment '연계 결과 상세',
PRYE varchar(4) null comment '연식', YRIDNW varchar(4) null comment '연식',
REGIST_DE varchar(8) null comment '등록일', REG_YMD varchar(8) null comment '등록일',
ERSR_REGIST_SE_CODE varchar(4) null comment '말소 등록 구분 코드', ERSR_REG_SE_CD varchar(4) null comment '말소 등록 구분 코드',
ERSR_REGIST_SE_NM varchar(30) null comment '말소 등록 구분명', ERSR_REG_SE_NM varchar(30) null comment '말소 등록 구분명',
ERSR_REGIST_DE varchar(8) null comment '말소 등록일', ERSR_REG_YMD varchar(8) null comment '말소 등록일',
REGIST_DETAIL_CODE varchar(3) null comment '등록 상세 코드', REG_DTL_CD varchar(3) null comment '등록 상세 코드',
DSPLVL varchar(6) null comment '배기량', DSPLVL varchar(6) null comment '배기량',
USE_STRNGHLD_LEGALDONG_CODE varchar(10) null comment '사용 본거지 법정동 코드', USGSRHLD_STDG_CD varchar(10) null comment '사용 본거지 법정동 코드',
USE_STRNGHLD_ADSTRD_CODE varchar(10) null comment '사용 본거지 행정동 코드', USGSRHLD_DONG_CD varchar(10) null comment '사용 본거지 행정동 코드',
USE_STRNGHLD_MNTN varchar(2) null comment '사용 본거지 산', USGSRHLD_MTN_YN varchar(2) null comment '사용 본거지 산',
USE_STRNGHLD_LNBR varchar(4) null comment '사용 본거지 번지', USGSRHLD_LNBR varchar(4) null comment '사용 본거지 번지',
USE_STRNGHLD_HO varchar(4) null comment '사용 본거지 호', USGSRHLD_HO varchar(4) null comment '사용 본거지 호',
USE_STRNGHLD_ADRES_NM varchar(300) null comment '사용 본거지 상세주소', USGSRHLD_ADDR_NM varchar(300) null comment '사용 본거지 상세주소',
USE_STRNGHLD_ROAD_NM_CODE varchar(12) null comment '사용 본거지 도로명 코드', USGSRHLD_ROAD_NM_CD varchar(12) null comment '사용 본거지 도로명 코드',
USGSRHLD_UNDGRND_BULD_SE_CODE varchar(1) null comment '사용 본거지 지하 건물 구분 코드', USGSRHLD_UDGD_BLDG_SE_CD varchar(1) null comment '사용 본거지 지하 건물 구분 코드',
USE_STRNGHLD_BULD_MAIN_NO varchar(5) null comment '사용 본거지 건물 주요 번호', USGSRHLD_BMNO varchar(5) null comment '사용 본거지 건물 주요 번호',
USE_STRNGHLD_BULD_SUB_NO varchar(5) null comment '사용 본거지 건물 부 번호', USGSRHLD_BSNO varchar(5) null comment '사용 본거지 건물 부 번호',
USGSRHLD_ADRES_FULL varchar(750) null comment '사용 본거지 전체주소', USGSRHLD_WHOL_ADDR varchar(750) null comment '사용 본거지 전체주소',
MBER_SE_CODE varchar(2) null comment '대표소유자 회원 구분 코드', RPRS_OWNR_MBR_SE_CD varchar(2) null comment '대표소유자 회원 구분 코드',
MBER_SE_NO varchar(100) null comment '대표소유자 회원 번호', RPRS_OWNR_NM varchar(75) null comment '대표소유자 성명',
TELNO varchar(20) null comment '대표소유자 전화번호', RPRSV_OWNR_IDECNO varchar(100) null comment '대표소유자 회원 번호',
OWNER_LEGALDONG_CODE varchar(10) null comment '소유자 법정동 코드', RPRS_OWNR_TELNO varchar(20) null comment '대표소유자 전화번호',
OWNER_ADSTRD_CODE varchar(10) null comment '소유자 행정동 코드', OWNR_STDG_CD varchar(10) null comment '소유자 법정동 코드',
OWNER_MNTN varchar(2) null comment '소유자 산', OWNR_DONG_CD varchar(10) null comment '소유자 행정동 코드',
OWNER_LNBR varchar(4) null comment '소유자 번지', OWNR_MTN_YN varchar(2) null comment '소유자 산',
OWNER_HO varchar(4) null comment '소유자 호', OWNR_LNBR varchar(4) null comment '소유자 번지',
OWNER_ADRES_NM varchar(300) null comment '소유자 상세주소', OWNR_HO varchar(4) null comment '소유자 호',
OWNER_ROAD_NM_CODE varchar(12) null comment '소유자 도로명 코드', OWNR_ADDR_NM varchar(300) null comment '소유자 상세주소',
OWNER_UNDGRND_BULD_SE_CODE varchar(1) null comment '소유자 지하건물 구분 코드', OWNR_ROAD_NM_CD varchar(12) null comment '소유자 도로명 코드',
OWNER_BULD_MAIN_NO varchar(5) null comment '소유자 건물 주요 번호', OWNR_UDGD_BLDG_SE_CD varchar(1) null comment '소유자 지하건물 구분 코드',
OWNER_BULD_SUB_NO varchar(5) null comment '소유자 건물 부 번호', OWNR_BMNO varchar(5) null comment '소유자 건물 주요 번호',
OWNR_WHOLADDR varchar(750) null comment '소유자 전체주소', OWNR_BSNO varchar(5) null comment '소유자 건물 부 번호',
AFTR_VHRNO varchar(30) null comment '신 차량번호', OWNR_WHOL_ADDR varchar(750) null comment '소유자 전체주소',
USE_FUEL_CODE varchar(1) null comment '사용 연료 코드', REAR_VHRNO varchar(30) null comment '신 차량번호',
PRPOS_SE_CODE varchar(2) null comment '용도 구분 코드', USE_FUEL_CD varchar(1) null comment '사용 연료 코드',
MTRS_FOM_NM varchar(75) null comment '원동기 형식명', USG_SE_CD varchar(2) null comment '용도 구분 코드',
FRNT_VHRNO varchar(30) null comment '이전 차량번호', MTRS_FOM_NM varchar(75) null comment '원동기 형식명',
VHRNO varchar(30) null comment '차량번호', BFR_VHRNO varchar(30) null comment '이전 차량번호',
VIN varchar(17) null comment '차대번호', VHRNO varchar(30) null comment '차량번호',
CNM varchar(75) null comment '차명', VIN varchar(17) null comment '차대번호',
VHCLE_TOT_WT varchar(6) null comment '차량 총 중량', ATMB_NM varchar(75) null comment '차명',
CAAG_ENDDE varchar(8) null comment '차령 만료일자', VHCL_TOTL_WT varchar(6) null comment '차량 총 중량',
CHANGE_DE varchar(8) null comment '차번호 변경시기', VEAG_END_YMD varchar(8) null comment '차령 만료일자',
VHCTY_ASORT_CODE varchar(1) null comment '차종 종별 코드', CHG_YMD varchar(8) null comment '차번호 변경시기',
VHCTY_TY_CODE varchar(1) null comment '차종 유형 코드', CARMDL_ASORT_CD varchar(1) null comment '차종 종별 코드',
VHCTY_SE_CODE varchar(1) null comment '차종 분류 코드', CARMDL_TYPE_CD varchar(1) null comment '차종 유형 코드',
MXMM_LDG varchar(10) null comment '최대 적재량', CARMDL_SE_CD varchar(1) null comment '차종 분류 코드',
VHCTY_ASORT_NM varchar(150) null comment '차종 종별명', MXMM_LDG varchar(10) null comment '최대 적재량',
VHCTY_TY_NM varchar(150) null comment '차종 유형명', CARMDL_ASORT_NM varchar(150) null comment '차종 종별명',
VHCTY_SE_NM varchar(150) null comment '차종 분류명', CARMDL_TYPE_NM varchar(150) null comment '차종 유형명',
FRST_REGIST_DE varchar(8) null comment '최초 등록일', CARMDL_CLSF_NM varchar(150) null comment '차종 분류명',
FOM_NM varchar(75) null comment '형식', FRST_REG_YMD varchar(8) null comment '최초 등록일',
ACQS_DE varchar(8) null comment '취득 일자', FOM_NM varchar(75) null comment '형식',
ACQS_END_DE varchar(8) null comment '취득 종료일자', ACQS_YMD varchar(8) null comment '취득 일자',
YBL_MD varchar(8) null comment '제작 년월일', ACQS_END_YMD varchar(8) null comment '취득 종료일자',
TRANSR_REGIST_DE varchar(8) null comment '이전 등록일', FBCTN_YMD varchar(8) null comment '제작 년월일',
SPCF_REGIST_STTUS_CODE varchar(6) null comment '제원 등록 상태 코드', TRANSR_REG_YMD varchar(8) null comment '이전 등록일',
COLOR_NM varchar(75) null comment '색상명', SPCF_REG_STTS_CD varchar(6) null comment '제원 등록 상태 코드',
MRTG_CO varchar(9) null comment '저당수', COLOR_NM varchar(75) null comment '색상명',
SEIZR_CO varchar(9) null comment '압류건수', MRTG_CNT varchar(9) null comment '저당수',
STMD_CO varchar(9) null comment '구조변경수', SZR_CNT varchar(9) null comment '압류건수',
NMPL_CSDY_AT varchar(1) null comment '번호판 영치 여부', STRCT_CHG_CNT varchar(9) null comment '구조변경수',
NMPL_CSDY_REMNR_DE varchar(8) null comment '번호판 영치 최고일', NOPLT_CSDY_YN varchar(1) null comment '번호판 영치 여부',
ORIGIN_SE_CODE varchar(1) null comment '출처 구분 코드', NOPLT_CSDY_AVTSMT_YMD varchar(8) null comment '번호판 영치 최고일',
NMPL_STNDRD_CODE varchar(1) null comment '번호판 규격 코드', SRC_SE_CD varchar(1) null comment '출처 구분 코드',
ACQS_AMOUNT varchar(18) null comment '취득 금액', NOPLT_SPCFCT_CD varchar(1) null comment '번호판 규격 코드',
INSPT_VALID_PD_BGNDE varchar(8) null comment '검사 유효 기간 시작일', ACQS_AMT varchar(18) null comment '취득 금액',
INSPT_VALID_PD_ENDDE varchar(8) null comment '검사 유효 기간 종료일', INSP_VLD_PD_BGNG_YMD varchar(8) null comment '검사 유효 기간 시작일',
USE_STRNGHLD_GRC_CODE varchar(4) null comment '사용 본거지 관청 코드', INSP_VLD_PD_END_YMD varchar(8) null comment '검사 유효 기간 종료일',
TKCAR_PSCAP_CO varchar(3) null comment '승차정원수', USGSRHLD_GRC_CD varchar(4) null comment '사용 본거지 관청 코드',
SPMNNO varchar(17) null comment '제원관리번호', RDCPCT_CNT varchar(3) null comment '승차정원수',
TRVL_DSTNC varchar(10) null comment '주행거리', SPMNNO varchar(17) null comment '제원관리번호',
FRST_REGIST_RQRCNO varchar(20) null comment '최초 등록 접수번호', DRVNG_DSTNC varchar(10) null comment '주행거리',
VLNT_ERSR_PRVNTC_NTICE_DE varchar(8) null comment '예고통지일', FRST_REG_APLY_RCPT_NO varchar(20) null comment '최초 등록 접수번호',
REGIST_INSTT_NM varchar(150) null comment '등록 기관명', VLNT_ERSR_PRVNTC_AVTSMT_YMD varchar(8) null comment '예고통지일',
PROCESS_IMPRTY_RESN_CODE varchar(2) null comment '처리 불가 사유 코드', OGNZ_NM varchar(150) null comment '등록 기관명',
PROCESS_IMPRTY_RESN_DTLS varchar(75) null comment '처리 불가 사유 명세', PRCS_IMPRTY_RSN_CD varchar(2) null comment '처리 불가 사유 코드',
CBD_LT varchar(10) null comment '차체 길이', PRCS_IMPRTY_RSN_DTLS varchar(75) null comment '처리 불가 사유 명세',
CBD_BT varchar(10) null comment '차체 너비', CBD_LT varchar(10) null comment '차체 길이',
CBD_HG varchar(10) null comment '차체 높이', CBD_BT varchar(10) null comment '차체 너비',
FRST_MXMM_LDG varchar(10) null comment '최초 최대 적재량', CBD_HG varchar(10) null comment '차체 높이',
FUEL_CNSMP_RT varchar(5) null comment '연료 소비율', FRST_MXMM_LDG varchar(10) null comment '최초 최대 적재량',
ELCTY_CMPND_FUEL_CNSMP_RT varchar(5) null comment '전기 복합 연료 소비율', FUEL_CNSMPRT varchar(5) null comment '연료 소비율',
REG_DT datetime null comment '등록 일시', ELCTY_CMPND_FUEL_CNSMPRT varchar(5) null comment '전기 복합 연료 소비율',
RGTR varchar(11) null comment '등록자', CAR_FFNLG_TRGT_ID varchar(20) null comment '자동차 과태료 대상 ID',
MBER_NM varchar(75) null comment '대표소유자 성명' REG_DT datetime null comment '등록 일시',
RGTR varchar(11) null comment '등록자'
) )
comment '자동차 기본 사항 조회'; comment '자동차 기본 사항 조회';

@ -1,87 +1,88 @@
create table tb_car_ledger_frmbk create table tb_car_ledger_frmbk
( (
CAR_LEDGER_FRMBK_ID varchar(20) not null comment '자동차 등록 원부 갑 ID' CAR_LEDGER_FRMBK_ID varchar(20) not null comment '자동차 등록 원부 갑 ID'
primary key, primary key,
INFO_SYS_ID varchar(6) null comment '정보 시스템 ID', INFO_SYS_ID varchar(6) null comment '정보 시스템 ID',
INFO_SYS_IP varchar(23) null comment '정보 시스템 IP', INFO_SYS_IP varchar(23) null comment '정보 시스템 IP',
SIGUNGU_CODE varchar(5) null comment '시군구 코드', SIGUNGU_CODE varchar(5) null comment '시군구 코드',
CNTC_INFO_CODE varchar(15) null comment '연계 정보 코드', CNTC_INFO_CODE varchar(15) null comment '연계 정보 코드',
CHARGER_ID varchar(15) null comment '담당자 ID', CHARGER_ID varchar(15) null comment '담당자 ID',
CHARGER_IP varchar(23) null comment '담당자 IP', CHARGER_IP varchar(23) null comment '담당자 IP',
CHARGER_NM varchar(75) null comment '담당자명', CHARGER_NM varchar(75) null comment '담당자명',
DMND_VHRNO varchar(30) null comment '요청 자동차등록번호', DMND_VHRNO varchar(30) null comment '요청 자동차등록번호',
DMND_ONES_INFORMATION_OPEN varchar(1) null comment '요청 개인 정보 공개', DMND_ONES_INFORMATION_OPEN varchar(1) null comment '요청 개인 정보 공개',
DMND_CPTTR_NM varchar(75) null comment '요청 민원인 성명', DMND_CPTTR_NM varchar(75) null comment '요청 민원인 성명',
DMND_CPTTR_IHIDNUM varchar(100) null comment '요청 민원인 주민번호', DMND_CPTTR_IHIDNUM varchar(100) null comment '요청 민원인 주민번호',
DMND_CPTTR_LEGALDONG_CODE varchar(10) null comment '요청 민원인 법정동 코드', DMND_CPTTR_LEGALDONG_CODE varchar(10) null comment '요청 민원인 법정동 코드',
DMND_ROUTE_SE_CODE varchar(1) null comment '요청 경로 구분 코드', DMND_ROUTE_SE_CODE varchar(1) null comment '요청 경로 구분 코드',
DMND_DETAIL_EXPRESSION varchar(1) null comment '요청 내역 표시', DMND_DETAIL_EXPRESSION varchar(1) null comment '요청 내역 표시',
DMND_INQIRE_SE_CODE varchar(1) null comment '요청 조회 구분 코드', DMND_INQIRE_SE_CODE varchar(1) null comment '요청 조회 구분 코드',
CNTC_RESULT_CODE varchar(8) null comment '연계 결과 코드', CNTC_RESULT_CODE varchar(8) null comment '연계 결과 코드',
CNTC_RESULT_DTLS varchar(4000) null, CNTC_RESULT_DTLS varchar(4000) null comment '연계 결과 상세',
LEDGER_GROUP_NO varchar(6) null comment '원부 그룹 번호', LEDGER_GROUP_NO varchar(6) null comment '원부 그룹 번호',
LEDGER_INDVDLZ_NO varchar(6) null comment '원부 개별 번호', LEDGER_INDIV_NO varchar(6) null comment '원부 개별 번호',
VHMNO varchar(20) null comment '차량관리번호', VHMNO varchar(20) null comment '차량관리번호',
VHRNO varchar(30) null comment '차량등록번호', VHRNO varchar(30) null comment '차량등록번호',
VIN varchar(17) null comment '차대번호', VIN varchar(17) null comment '차대번호',
VHCTY_ASORT_CODE varchar(1) null comment '차종 종별 코드', CARMDL_ASORT_CD varchar(1) null comment '차종 종별 코드',
VHCTY_ASORT_NM varchar(30) null comment '차종 종별명', CARMDL_ASORT_NM varchar(30) null comment '차종 종별명',
CNM varchar(75) null comment '차명', ATMB_NM varchar(75) null comment '차명',
COLOR_CODE varchar(2) null comment '색상 코드', COLOR_CD varchar(2) null comment '색상 코드',
COLOR_NM varchar(30) null comment '색상명', COLOR_NM varchar(30) null comment '색상명',
NMPL_STNDRD_CODE varchar(1) null comment '번호판 규격 코드', NOPLT_SPCFCT_CD varchar(1) null comment '번호판 규격 코드',
NMPL_STNDRD_NM varchar(30) null comment '번호판 규격명', NOPLT_SPCFCT_NM varchar(30) null comment '번호판 규격명',
PRPOS_SE_CODE varchar(2) null comment '용도 구분 코드', USG_SE_CD varchar(2) null comment '용도 구분 코드',
PRPOS_SE_NM varchar(20) null comment '용도 구분명', USG_SE_NM varchar(20) null comment '용도 구분명',
MTRS_FOM_NM varchar(75) null comment '원동기 형식명', MTRS_FOM_NM varchar(75) null comment '원동기 형식명',
FOM_NM varchar(75) null comment '형식명', FOM_NM varchar(75) null comment '형식명',
ACQS_AMOUNT varchar(50) null comment '취득 금액', ACQS_AMT varchar(50) null comment '취득 금액',
REGIST_DETAIL_CODE varchar(8) null comment '등록 상세 코드', REG_DTL_CD varchar(8) null comment '등록 상세 코드',
REGIST_DETAIL_NM varchar(30) null comment '등록 상세명', REG_DTL_NM varchar(30) null comment '등록 상세명',
FRST_REGIST_DE varchar(8) null comment '최초 등록일', FRST_REG_YMD varchar(8) null comment '최초 등록일',
CAAG_ENDDE varchar(8) null comment '차령 종료일', VEAG_END_YMD varchar(8) null comment '차령 종료일',
PRYE varchar(4) null comment '연식', YRIDNW varchar(4) null comment '연식',
SPMNNO1 varchar(3) null comment '제원관리번호1', SPMNNO_1 varchar(3) null comment '제원관리번호1',
SPMNNO2 varchar(14) null comment '제원관리번호2', SPMNNO_2 varchar(14) null comment '제원관리번호2',
YBL_MD varchar(8) null comment '제작 년월일', FBCTN_YMD varchar(8) null comment '제작 년월일',
TRVL_DSTNC varchar(10) null comment '주행 거리', DRVNG_DSTNC varchar(10) null comment '주행 거리',
INSPT_VALID_PD_BGNDE varchar(8) null comment '검사 유효 기간 시작일', INSP_VLD_PD_BGNG_YMD varchar(8) null comment '검사 유효 기간 시작일',
INSPT_VALID_PD_ENDDE varchar(8) null comment '검사 유효 기간 종료일', INSP_VLD_PD_END_YMD varchar(8) null comment '검사 유효 기간 종료일',
CHCK_VALID_PD_BGNDE varchar(8) null comment '점검 유효 기간 시작일', CHCK_VLD_PD_BGNG_YMD varchar(8) null comment '점검 유효 기간 시작일',
CHCK_VALID_PD_ENDDE varchar(8) null comment '점검 유효 기간 종료일', CHCK_VLD_PD_END_YMD varchar(8) null comment '점검 유효 기간 종료일',
REGIST_REQST_SE_NM varchar(75) null comment '등록 신청 구분명', REG_APLY_SE_NM varchar(75) null comment '등록 신청 구분명',
FRST_REGIST_RQRCNO varchar(20) null comment '최초 등록 접수번호', FRST_REG_APLY_RCPT_NO varchar(20) null comment '최초 등록 접수번호',
NMPL_CSDY_REMNR_DE varchar(8) null comment '번호판 영치 최고일', NOPLT_CSDY_AVTSMT_YMD varchar(8) null comment '번호판 영치 최고일',
NMPL_CSDY_AT varchar(1) null comment '번호판 영치 여부', NOPLT_CSDY_YN varchar(1) null comment '번호판 영치 여부',
BSS_USE_PD varchar(30) null comment '사업용 사용 기간', BSS_USE_PD_YMD varchar(30) null comment '사업용 사용 기간',
OCTHT_ERSR_PRVNTC_NTICE_DE varchar(8) null comment '직권 말소 예고 통지일', OCTHT_ERSR_PRVNTC_AVTSMT_YMD varchar(8) null comment '직권 말소 예고 통지일',
ERSR_REGIST_DE varchar(8) null comment '말소 등록일', ERSR_REG_YMD varchar(8) null comment '말소 등록일',
ERSR_REGIST_SE_CODE varchar(4) null comment '말소 등록 구분 코드', ERSR_REG_SE_CD varchar(4) null comment '말소 등록 구분 코드',
ERSR_REGIST_SE_NM varchar(200) null comment '말소 등록 구분명', ERSR_REG_SE_NM varchar(200) null comment '말소 등록 구분명',
MRTGCNT varchar(4) null comment '저당수', MRTG_CNT varchar(4) null comment '저당수',
VHCLECNT varchar(4) null comment '압류건수', SZR_CNT varchar(4) null comment '압류건수',
STMDCNT varchar(4) null comment '구조변경수', STRCT_CHG_CNT varchar(4) null comment '구조변경수',
ADRES1 varchar(750) null comment '사용 본거지 주소', USGSRHLD_ADDR_1 varchar(750) null comment '사용 본거지 주소',
ADRES_NM1 varchar(300) null comment '사용 본거지 주소상세', USGSRHLD_ADDR_DTL_1 varchar(300) null comment '사용 본거지 주소상세',
ADRES varchar(750) null comment '소유자 주소', OWNR_ADDR varchar(750) null comment '소유자 주소',
ADRES_NM varchar(300) null comment '소유자 주소상세', OWNR_ADDR_DTL varchar(300) null comment '소유자 주소상세',
INDVDL_BSNM_AT varchar(1) null comment '개인 사업자 여부', INDVDL_BZMN_YN varchar(1) null comment '개인 사업자 여부',
TELNO varchar(30) null comment '대표소유자 전화번호', RPRS_OWNR_TELNO varchar(30) null comment '대표소유자 전화번호',
MBER_NM varchar(75) null comment '대표소유자 성명', RPRS_OWNR_NM varchar(75) null comment '대표소유자 성명',
MBER_SE_CODE varchar(2) null comment '대표소유자 회원 구분 코드', RPRS_OWNR_MBR_SE_CD varchar(2) null comment '대표소유자 회원 구분 코드',
MBER_SE_NO varchar(100) null comment '대표소유자 회원 번호', RPRSV_OWNR_IDECNO varchar(100) null comment '대표소유자 회원 번호',
TAXXMPT_TRGTER_SE_CODE varchar(2) null comment '비과세 대상 구분 코드', TAXXMPT_TRPR_SE_CD varchar(2) null comment '비과세 대상 구분 코드',
TAXXMPT_TRGTER_SE_CODE_NM varchar(30) null comment '비과세 대상 구분 코드명', TAXXMPT_APLCN_SE_CD varchar(30) null comment '비과세 대상 구분 코드명',
CNT_MATTER varchar(5) null comment '특기사항 건수', SPCABL_MTTR_CNT varchar(5) null comment '특기사항 건수',
EMD_NM varchar(75) null comment '사용 본거지 행정동명', USGSRHLD_DONG_NM varchar(75) null comment '사용 본거지 행정동명',
PRVNTCCNT varchar(4) null comment '예고수', PRVNTC_CNT varchar(4) null comment '예고수',
XPORT_FLFL_AT_STTEMNT_DE varchar(8) null comment '수출 이행 여부 신고일', XPORT_FLFL_YN_DCLR_YMD varchar(8) null comment '수출 이행 여부 신고일',
PARTN_RQRCNO varchar(13) null comment '발급번호', ISSU_NO varchar(13) null comment '발급번호',
FRST_TRNSFR_DE varchar(8) null comment '최초 양도일', FRST_TRNSFR_YMD varchar(8) null comment '최초 양도일',
PROCESS_IMPRTY_RESN_CODE varchar(2) null comment '처리 불가 사유 코드', PROCESS_IMPRTY_RESN_CODE varchar(2) null comment '처리 불가 사유 코드',
PROCESS_IMPRTY_RESN_DTLS varchar(200) null comment '처리 불가 사유 명세', PROCESS_IMPRTY_RESN_DTLS varchar(200) null comment '처리 불가 사유 명세',
REG_DT datetime null comment '등록 일시', CAR_FFNLG_TRGT_ID varchar(20) null comment '자동차 과태료 대상 ID',
RGTR varchar(11) null comment '등록자' REG_DT datetime null comment '등록 일시',
RGTR varchar(11) null comment '등록자'
) )
comment '자동차 등록 원부 갑'; comment '자동차 등록 원부 갑';

@ -3,18 +3,18 @@ create table tb_car_ledger_frmbk_dtl
CAR_LEDGER_FRMBK_DTL_ID varchar(20) not null comment '자동차 등록 원부 갑 상세 ID' CAR_LEDGER_FRMBK_DTL_ID varchar(20) not null comment '자동차 등록 원부 갑 상세 ID'
primary key, primary key,
CAR_LEDGER_FRMBK_ID varchar(20) null comment '자동차 등록 원부 갑 ID', CAR_LEDGER_FRMBK_ID varchar(20) null comment '자동차 등록 원부 갑 ID',
MAINCHK varchar(2) null comment '해제여부', SZR_RMV_DTL_SN varchar(2) null comment '해제여부',
CHANGE_JOB_SE_CODE varchar(2) null comment '변경 업무 구분 코드', CHG_TASK_SE_CD varchar(2) null comment '변경 업무 구분 코드',
MAINNO varchar(4) null comment '주번호', MAIN_NO varchar(4) null comment '주번호',
SUBNO varchar(4) null comment '부번호', SNO varchar(4) null comment '부번호',
DTLS varchar(2000) null comment '사항란', SPCABL_MTTR varchar(2000) null comment '사항란',
RQRCNO varchar(20) null comment '접수번호', APLY_RCPT_NO varchar(20) null comment '접수번호',
VHMNO varchar(20) null comment '차량관리번호', VHMNO varchar(20) null comment '차량관리번호',
LEDGER_GROUP_NO varchar(6) null comment '원부 그룹 번호', LEDGER_GROUP_NO varchar(6) null comment '원부 그룹 번호',
LEDGER_INDVDLZ_NO varchar(6) null comment '원부 개별 번호', LEDGER_INDIV_NO varchar(6) null comment '원부 개별 번호',
GUBUN_NM varchar(75) null comment '변경 업무 구분명', CHG_TASK_SE_NM varchar(75) null comment '변경 업무 구분명',
CHANGE_DE varchar(8) null comment '변경 일자', CHG_YMD varchar(8) null comment '변경 일자',
DETAIL_SN varchar(6) null comment '상세 순번', DTL_SN varchar(6) null comment '상세 순번',
FLAG varchar(3) null comment '표기여부', FLAG varchar(3) null comment '표기여부',
REG_DT datetime null comment '등록 일시', REG_DT datetime null comment '등록 일시',
RGTR varchar(11) null comment '등록자' RGTR varchar(11) null comment '등록자'

@ -10,6 +10,7 @@ import lombok.Setter;
* *
* <pre> * <pre>
* { * {
* "txId": "...",
* "request": { "data": [...] }, * "request": { "data": [...] },
* "response": { "data": [...] } * "response": { "data": [...] }
* } * }
@ -20,6 +21,9 @@ import lombok.Setter;
@Setter @Setter
public class ApiResponse<REQ, RES> { public class ApiResponse<REQ, RES> {
@JsonProperty("txId")
private String txId;
@JsonProperty("request") @JsonProperty("request")
private Envelope<REQ> request; private Envelope<REQ> request;
@ -28,12 +32,13 @@ public class ApiResponse<REQ, RES> {
public ApiResponse() {} public ApiResponse() {}
public ApiResponse(Envelope<REQ> request, Envelope<RES> response) { public ApiResponse(String txId, Envelope<REQ> request, Envelope<RES> response) {
this.txId = txId;
this.request = request; this.request = request;
this.response = response; this.response = response;
} }
public static <REQ, RES> ApiResponse<REQ, RES> of(Envelope<REQ> request, Envelope<RES> response) { public static <REQ, RES> ApiResponse<REQ, RES> of(String txId, Envelope<REQ> request, Envelope<RES> response) {
return new ApiResponse<>(request, response); return new ApiResponse<>(txId, request, response);
} }
} }

@ -16,10 +16,10 @@ import java.util.List;
@Setter @Setter
public class NewLedgerResponse { public class NewLedgerResponse {
@JsonProperty("CNTC_RESULT_CODE") @JsonProperty("LINK_RSLT_CD")
private String cntcResultCode; private String cntcResultCode;
@JsonProperty("CNTC_RESULT_DTLS") @JsonProperty("LINK_RSLT_DTL")
private String cntcResultDtls; private String cntcResultDtls;
/** 원부그룹번호 */ /** 원부그룹번호 */

@ -15,6 +15,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.UUID;
/** /**
* () () * () ()
* - , API , * - , API ,
@ -28,33 +30,39 @@ public class VehicleInterfaceService {
private final RequestEnricher enricher; private final RequestEnricher enricher;
public ResponseEntity<ApiResponse<OldBasicRequest, OldBasicResponse>> oldBasic(Envelope<OldBasicRequest> envelope) { public ResponseEntity<ApiResponse<OldBasicRequest, OldBasicResponse>> oldBasic(Envelope<OldBasicRequest> envelope) {
// 0) txId 생성
String txId = UUID.randomUUID().toString();
// 1) 요청 보강 // 1) 요청 보강
enricher.enrichOldBasic(envelope); enricher.enrichOldBasic(envelope);
// 2) 외부 API 호출 // 2) 외부 API 호출
ResponseEntity<Envelope<OldBasicResponse>> response = governmentApi.callOldBasic(envelope); ResponseEntity<Envelope<OldBasicResponse>> response = governmentApi.callOldBasic(envelope);
// 3) 요청/응답 함께 반환 // 3) 요청/응답 함께 반환
ApiResponse<OldBasicRequest, OldBasicResponse> apiResponse = ApiResponse.of(envelope, response.getBody()); ApiResponse<OldBasicRequest, OldBasicResponse> apiResponse = ApiResponse.of(txId, envelope, response.getBody());
return ResponseEntity.status(response.getStatusCode()).body(apiResponse); return ResponseEntity.status(response.getStatusCode()).body(apiResponse);
} }
public ResponseEntity<ApiResponse<NewBasicRequest, NewBasicResponse>> newBasic(Envelope<NewBasicRequest> envelope) { public ResponseEntity<ApiResponse<NewBasicRequest, NewBasicResponse>> newBasic(Envelope<NewBasicRequest> envelope) {
// 0) txId 생성
String txId = UUID.randomUUID().toString();
// 1) 요청 보강 // 1) 요청 보강
enricher.enrichNewBasic(envelope); enricher.enrichNewBasic(envelope);
// 2) 외부 API 호출 // 2) 외부 API 호출
ResponseEntity<Envelope<NewBasicResponse>> response = governmentApi.callNewBasic(envelope); ResponseEntity<Envelope<NewBasicResponse>> response = governmentApi.callNewBasic(envelope);
// 3) 요청/응답 함께 반환 // 3) 요청/응답 함께 반환
ApiResponse<NewBasicRequest, NewBasicResponse> apiResponse = ApiResponse.of(envelope, response.getBody()); ApiResponse<NewBasicRequest, NewBasicResponse> apiResponse = ApiResponse.of(txId, envelope, response.getBody());
return ResponseEntity.status(response.getStatusCode()).body(apiResponse); return ResponseEntity.status(response.getStatusCode()).body(apiResponse);
} }
public ResponseEntity<ApiResponse<NewLedgerRequest, NewLedgerResponse>> newLedger(Envelope<NewLedgerRequest> envelope) { public ResponseEntity<ApiResponse<NewLedgerRequest, NewLedgerResponse>> newLedger(Envelope<NewLedgerRequest> envelope) {
// 0) txId 생성
String txId = UUID.randomUUID().toString();
// 1) 요청 보강 // 1) 요청 보강
enricher.enrichNewLedger(envelope); enricher.enrichNewLedger(envelope);
// 2) 외부 API 호출 // 2) 외부 API 호출
ResponseEntity<Envelope<NewLedgerResponse>> response = governmentApi.callNewLedger(envelope); ResponseEntity<Envelope<NewLedgerResponse>> response = governmentApi.callNewLedger(envelope);
// 3) 요청/응답 함께 반환 // 3) 요청/응답 함께 반환
ApiResponse<NewLedgerRequest, NewLedgerResponse> apiResponse = ApiResponse.of(envelope, response.getBody()); ApiResponse<NewLedgerRequest, NewLedgerResponse> apiResponse = ApiResponse.of(txId, envelope, response.getBody());
return ResponseEntity.status(response.getStatusCode()).body(apiResponse); return ResponseEntity.status(response.getStatusCode()).body(apiResponse);
} }
} }

@ -10,9 +10,12 @@ public final class TxIdUtil {
private TxIdUtil() {} private TxIdUtil() {}
/*
* yyyyMMddHHmmssSSS+8
* */
public static String generate() { public static String generate() {
String time = new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.KOREA).format(new Date()); String time = new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.KOREA).format(new Date());
int random = 100000 + RANDOM.nextInt(900000); int random = 10000000 + RANDOM.nextInt(90000000);
return time + "S" + random; return time + random;
} }
} }

Loading…
Cancel
Save