fix: 리턴개선

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

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

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

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

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

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

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

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

Loading…
Cancel
Save