From 07213a3bd7027e7aa1f958e6f82b23e8bf37b8ea Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 3 Aug 2023 17:10:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=90=EB=8F=99=EC=B0=A8=20=EA=B8=B0?= =?UTF-8?q?=EB=B3=B8=EC=A0=95=EB=B3=B4=20=EC=A1=B0=ED=9A=8C=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EB=93=B1=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/bean/VehicleInfoServiceBean.java | 3 +- .../lvis/service/reg/BasicInfoResponse.java | 2 + .../sql/mapper/lvis/vehicleInfo-mapper.xml | 149 ++++++++++-------- 3 files changed, 86 insertions(+), 68 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/lvis/service/bean/VehicleInfoServiceBean.java b/src/main/java/cokr/xit/interfaces/lvis/service/bean/VehicleInfoServiceBean.java index dd03b45..7af627e 100644 --- a/src/main/java/cokr/xit/interfaces/lvis/service/bean/VehicleInfoServiceBean.java +++ b/src/main/java/cokr/xit/interfaces/lvis/service/bean/VehicleInfoServiceBean.java @@ -66,7 +66,8 @@ public class VehicleInfoServiceBean extends AbstractServiceBean implements Vehic Map params = Map.of( "req", req, "info", result.getBasicInfo(), - "msg", result.getResult() + "msg", result.getResult(), + "currentUser", currentUser() ); vehicleInfoMapper.insertBasicInfo(params); } diff --git a/src/main/java/cokr/xit/interfaces/lvis/service/reg/BasicInfoResponse.java b/src/main/java/cokr/xit/interfaces/lvis/service/reg/BasicInfoResponse.java index 6078996..aa036a8 100644 --- a/src/main/java/cokr/xit/interfaces/lvis/service/reg/BasicInfoResponse.java +++ b/src/main/java/cokr/xit/interfaces/lvis/service/reg/BasicInfoResponse.java @@ -130,6 +130,8 @@ public class BasicInfoResponse extends LvisResponse { @Setter public static class BasicInfo extends ResultInfo { private static final long serialVersionUID = 1L; + /** 기본사항 ID */ + private String bsc_mttr_id; /** 연식 */ private String prye; /** 등록일(변경일) */ diff --git a/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml b/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml index 966b6bd..324ef0f 100644 --- a/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml +++ b/src/main/resources/sql/mapper/lvis/vehicleInfo-mapper.xml @@ -3,87 +3,87 @@ - - + + - - - + + + - - - + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - + + + - - - - - - + + + + + + - - + + /* vehicleInfoMapper.insertBasicInfo(자동차 기본사항 조회 로그 등록) */ + +SELECT CONCAT( + + , LPAD(IFNULL(SUBSTRING(MAX(BSC_MTTR_ID), 9) + 1, 1), 22, '0') + ) NEW_ID + FROM TB_CAR_BSC_MTTR TCBM + WHERE BSC_MTTR_ID LIKE CONCAT(, '%') INSERT INTO TB_CAR_BSC_MTTR ( BSC_MTTR_ID , MESSAGEID @@ -263,8 +270,6 @@ INSERT INTO TB_CAR_BSC_MTTR ( , FRST_REGIST_RQRCNO , VLNT_ERSR_PRVNTC_NTICE_DE , REGIST_INSTT_NM - , PROCESS_IMPRTY_RESN_CODE - , PROCESS_IMPRTY_RESN_DTLS , VIMS_PRPOS_SE_CODE , VIMS_VHCTY_ASORT_CODE , VIMS_VHCTY_TY_CODE @@ -273,8 +278,13 @@ INSERT INTO TB_CAR_BSC_MTTR ( , CBD_BT , CBD_HG , FRST_MXMM_LDG + , PROCESS_IMPRTY_RESN_CODE + , PROCESS_IMPRTY_RESN_DTLS + + , REG_DT + , RGTR ) VALUES ( - #{bsc_mttr_id} + #{info.bsc_mttr_id} , #{msg.messageId} , #{msg.messageName} , #{msg.messageReason} @@ -373,6 +383,11 @@ INSERT INTO TB_CAR_BSC_MTTR ( , #{info.cbd_bt} , #{info.cbd_hg} , #{info.frst_mxmm_ldg} + , #{info.process_imprty_resn_code} + , #{info.process_imprty_resn_dtls} + + , + , #{currentUser.id} ) \ No newline at end of file