You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
8.9 KiB
XML
153 lines
8.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="go.kr.project.api.mapper.VmisCarBassMatterInqireMapper">
|
|
|
|
<!-- 시퀀스로 새로운 ID 생성 -->
|
|
<select id="selectNextCarBassMatterInqireId" resultType="String">
|
|
SELECT CONCAT('CBMI', LPAD(NEXTVAL(seq_car_bass_matter_inqire), 16, '0')) AS id
|
|
</select>
|
|
|
|
<!-- 최초 요청 정보 INSERT -->
|
|
<insert id="insertCarBassMatterInqire" parameterType="VmisCarBassMatterInqireVO">
|
|
INSERT INTO tb_car_bass_matter_inqire (
|
|
CAR_BASS_MATTER_INQIRE_ID,
|
|
INFO_SYS_ID,
|
|
INFO_SYS_IP_ADDR,
|
|
SGG_CD,
|
|
LINK_INFO_CD,
|
|
PIC_ID,
|
|
PIC_IP_ADDR,
|
|
PIC_NM,
|
|
DMND_LEVY_CRTR_YMD,
|
|
DMND_INQ_SE_CD,
|
|
DMND_VHRNO,
|
|
DMND_VIN,
|
|
LINK_RSLT_CD,
|
|
REG_DT,
|
|
RGTR
|
|
) VALUES (
|
|
#{carBassMatterInqireId},
|
|
#{infoSysId},
|
|
#{infoSysIpAddr},
|
|
#{sggCd},
|
|
#{linkInfoCd},
|
|
#{picId},
|
|
#{picIpAddr},
|
|
#{picNm},
|
|
#{dmndLevyStdde},
|
|
#{dmndInqireSeCode},
|
|
#{dmndVhrno},
|
|
#{dmndVin},
|
|
#{linkRsltCd},
|
|
NOW(),
|
|
#{rgtr}
|
|
)
|
|
</insert>
|
|
|
|
<!-- 응답 결과 UPDATE -->
|
|
<update id="updateCarBassMatterInqire" parameterType="VmisCarBassMatterInqireVO">
|
|
UPDATE tb_car_bass_matter_inqire
|
|
<set>
|
|
<if test="txId != null">TX_ID = #{txId},</if>
|
|
<if test="linkRsltCd != null">LINK_RSLT_CD = #{linkRsltCd},</if>
|
|
<if test="linkRsltDtl != null">LINK_RSLT_DTL = #{linkRsltDtl},</if>
|
|
<if test="prye != null">YRIDNW = #{prye},</if>
|
|
<if test="registDe != null">REG_YMD = #{registDe},</if>
|
|
<if test="ersrRegistSeCode != null">ERSR_REG_SE_CD = #{ersrRegistSeCode},</if>
|
|
<if test="ersrRegistSeNm != null">ERSR_REG_SE_NM = #{ersrRegistSeNm},</if>
|
|
<if test="ersrRegistDe != null">ERSR_REG_YMD = #{ersrRegistDe},</if>
|
|
<if test="registDetailCode != null">REG_DTL_CD = #{registDetailCode},</if>
|
|
<if test="dsplvl != null">DSPLVL = #{dsplvl},</if>
|
|
<if test="useStrnghldLegaldongCode != null">USGSRHLD_STDG_CD = #{useStrnghldLegaldongCode},</if>
|
|
<if test="useStrnghldAdstrdCode != null">USGSRHLD_DONG_CD = #{useStrnghldAdstrdCode},</if>
|
|
<if test="useStrnghldMntn != null">USGSRHLD_MTN_YN = #{useStrnghldMntn},</if>
|
|
<if test="useStrnghldLnbr != null">USGSRHLD_LNBR = #{useStrnghldLnbr},</if>
|
|
<if test="useStrnghldHo != null">USGSRHLD_HO = #{useStrnghldHo},</if>
|
|
<if test="useStrnghldAdresNm != null">USGSRHLD_ADDR_NM = #{useStrnghldAdresNm},</if>
|
|
<if test="useStrnghldRoadNmCode != null">USGSRHLD_ROAD_NM_CD = #{useStrnghldRoadNmCode},</if>
|
|
<if test="usgsrhldUndgrndBuldSeCode != null">USGSRHLD_UDGD_BLDG_SE_CD = #{usgsrhldUndgrndBuldSeCode},</if>
|
|
<if test="useStrnghldBuldMainNo != null">USGSRHLD_BMNO = #{useStrnghldBuldMainNo},</if>
|
|
<if test="useStrnghldBuldSubNo != null">USGSRHLD_BSNO = #{useStrnghldBuldSubNo},</if>
|
|
<if test="usgsrhldAdresFull != null">USGSRHLD_WHOL_ADDR = #{usgsrhldAdresFull},</if>
|
|
<if test="mberSeCode != null">RPRS_OWNR_MBR_SE_CD = #{mberSeCode},</if>
|
|
<if test="mberSeNo != null">RPRSV_OWNR_IDECNO = #{mberSeNo},</if>
|
|
<if test="telno != null">RPRS_OWNR_TELNO = #{telno},</if>
|
|
<if test="ownerLegaldongCode != null">OWNR_STDG_CD = #{ownerLegaldongCode},</if>
|
|
<if test="ownerAdstrdCode != null">OWNR_DONG_CD = #{ownerAdstrdCode},</if>
|
|
<if test="ownerMntn != null">OWNR_MTN_YN = #{ownerMntn},</if>
|
|
<if test="ownerLnbr != null">OWNR_LNBR = #{ownerLnbr},</if>
|
|
<if test="ownerHo != null">OWNR_HO = #{ownerHo},</if>
|
|
<if test="ownerAdresNm != null">OWNR_ADDR_NM = #{ownerAdresNm},</if>
|
|
<if test="ownerRoadNmCode != null">OWNR_ROAD_NM_CD = #{ownerRoadNmCode},</if>
|
|
<if test="ownerUndgrndBuldSeCode != null">OWNR_UDGD_BLDG_SE_CD = #{ownerUndgrndBuldSeCode},</if>
|
|
<if test="ownerBuldMainNo != null">OWNR_BMNO = #{ownerBuldMainNo},</if>
|
|
<if test="ownerBuldSubNo != null">OWNR_BSNO = #{ownerBuldSubNo},</if>
|
|
<if test="ownrWholaddr != null">OWNR_WHOL_ADDR = #{ownrWholaddr},</if>
|
|
<if test="aftrVhrno != null">REAR_VHRNO = #{aftrVhrno},</if>
|
|
<if test="useFuelCode != null">USE_FUEL_CD = #{useFuelCode},</if>
|
|
<if test="prposSeCode != null">USG_SE_CD = #{prposSeCode},</if>
|
|
<if test="mtrsFomNm != null">MTRS_FOM_NM = #{mtrsFomNm},</if>
|
|
<if test="frntVhrno != null">BFR_VHRNO = #{frntVhrno},</if>
|
|
<if test="vhrno != null">VHRNO = #{vhrno},</if>
|
|
<if test="vin != null">VIN = #{vin},</if>
|
|
<if test="cnm != null">ATMB_NM = #{cnm},</if>
|
|
<if test="vhcleTotWt != null">VHCL_TOTL_WT = #{vhcleTotWt},</if>
|
|
<if test="caagEndde != null">VEAG_END_YMD = #{caagEndde},</if>
|
|
<if test="changeDe != null">CHG_YMD = #{changeDe},</if>
|
|
<if test="vhctyAsortCode != null">CARMDL_ASORT_CD = #{vhctyAsortCode},</if>
|
|
<if test="vhctyTyCode != null">CARMDL_TYPE_CD = #{vhctyTyCode},</if>
|
|
<if test="vhctySeCode != null">CARMDL_SE_CD = #{vhctySeCode},</if>
|
|
<if test="mxmmLdg != null">MXMM_LDG = #{mxmmLdg},</if>
|
|
<if test="vhctyAsortNm != null">CARMDL_ASORT_NM = #{vhctyAsortNm},</if>
|
|
<if test="vhctyTyNm != null">CARMDL_TYPE_NM = #{vhctyTyNm},</if>
|
|
<if test="vhctySeNm != null">CARMDL_CLSF_NM = #{vhctySeNm},</if>
|
|
<if test="frstRegistDe != null">FRST_REG_YMD = #{frstRegistDe},</if>
|
|
<if test="fomNm != null">FOM_NM = #{fomNm},</if>
|
|
<if test="acqsDe != null">ACQS_YMD = #{acqsDe},</if>
|
|
<if test="acqsEndDe != null">ACQS_END_YMD = #{acqsEndDe},</if>
|
|
<if test="yblMd != null">FBCTN_YMD = #{yblMd},</if>
|
|
<if test="transrRegistDe != null">TRANSR_REG_YMD = #{transrRegistDe},</if>
|
|
<if test="spcfRegistSttusCode != null">SPCF_REG_STTS_CD = #{spcfRegistSttusCode},</if>
|
|
<if test="colorNm != null">COLOR_NM = #{colorNm},</if>
|
|
<if test="mrtgCo != null">MRTG_CNT = #{mrtgCo},</if>
|
|
<if test="seizrCo != null">SZR_CNT = #{seizrCo},</if>
|
|
<if test="stmdCo != null">STRCT_CHG_CNT = #{stmdCo},</if>
|
|
<if test="nmplCsdyAt != null">NOPLT_CSDY_YN = #{nmplCsdyAt},</if>
|
|
<if test="nmplCsdyRemnrDe != null">NOPLT_CSDY_AVTSMT_YMD = #{nmplCsdyRemnrDe},</if>
|
|
<if test="originSeCode != null">SRC_SE_CD = #{originSeCode},</if>
|
|
<if test="nmplStndrdCode != null">NOPLT_SPCFCT_CD = #{nmplStndrdCode},</if>
|
|
<if test="acqsAmount != null">ACQS_AMT = #{acqsAmount},</if>
|
|
<if test="insptValidPdBgnde != null">INSP_VLD_PD_BGNG_YMD = #{insptValidPdBgnde},</if>
|
|
<if test="insptValidPdEndde != null">INSP_VLD_PD_END_YMD = #{insptValidPdEndde},</if>
|
|
<if test="useStrnghldGrcCode != null">USGSRHLD_GRC_CD = #{useStrnghldGrcCode},</if>
|
|
<if test="tkcarPscapCo != null">RDCPCT_CNT = #{tkcarPscapCo},</if>
|
|
<if test="spmnno != null">SPMNNO = #{spmnno},</if>
|
|
<if test="trvlDstnc != null">DRVNG_DSTNC = #{trvlDstnc},</if>
|
|
<if test="frstRegistRqrcno != null">FRST_REG_APLY_RCPT_NO = #{frstRegistRqrcno},</if>
|
|
<if test="vlntErsrPrvntcNticeDe != null">VLNT_ERSR_PRVNTC_AVTSMT_YMD = #{vlntErsrPrvntcNticeDe},</if>
|
|
<if test="registInsttNm != null">OGNZ_NM = #{registInsttNm},</if>
|
|
<if test="processImprtyResnCode != null">PRCS_IMPRTY_RSN_CD = #{processImprtyResnCode},</if>
|
|
<if test="processImprtyResnDtls != null">PRCS_IMPRTY_RSN_DTLS = #{processImprtyResnDtls},</if>
|
|
<if test="cbdLt != null">CBD_LT = #{cbdLt},</if>
|
|
<if test="cbdBt != null">CBD_BT = #{cbdBt},</if>
|
|
<if test="cbdHg != null">CBD_HG = #{cbdHg},</if>
|
|
<if test="frstMxmmLdg != null">FRST_MXMM_LDG = #{frstMxmmLdg},</if>
|
|
<if test="fuelCnsmpRt != null">FUEL_CNSMPRT = #{fuelCnsmpRt},</if>
|
|
<if test="elctyCmpndFuelCnsmpRt != null">ELCTY_CMPND_FUEL_CNSMPRT = #{elctyCmpndFuelCnsmpRt},</if>
|
|
<if test="mberNm != null">RPRS_OWNR_NM = #{mberNm},</if>
|
|
<if test="carFfnlgTrgtId != null">CAR_FFNLG_TRGT_ID = #{carFfnlgTrgtId}</if>
|
|
</set>
|
|
WHERE CAR_BASS_MATTER_INQIRE_ID = #{carBassMatterInqireId}
|
|
</update>
|
|
|
|
<!-- ID로 조회 -->
|
|
<select id="selectCarBassMatterInqireById" parameterType="String" resultType="VmisCarBassMatterInqireVO">
|
|
SELECT *
|
|
FROM tb_car_bass_matter_inqire
|
|
WHERE CAR_BASS_MATTER_INQIRE_ID = #{carBassMatterInqireId}
|
|
</select>
|
|
|
|
</mapper>
|