From 656c020c7e9d9ed1fa2b0506c6f19b210002550e Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 26 Feb 2024 15:15:17 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EC=8A=A4=ED=85=9C=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 5 ++ .../sql/mapper/base/syslog-mapper.xml | 51 +++++++++++++++++++ src/main/resources/xit-syslog.conf | 24 +++++++++ 3 files changed, 80 insertions(+) create mode 100644 src/main/resources/sql/mapper/base/syslog-mapper.xml create mode 100644 src/main/resources/xit-syslog.conf diff --git a/pom.xml b/pom.xml index eaf9fc75..7efbc760 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,11 @@ 23.04.01-SNAPSHOT + + cokr.xit.base + xit-syslog + 23.04.01-SNAPSHOT + diff --git a/src/main/resources/sql/mapper/base/syslog-mapper.xml b/src/main/resources/sql/mapper/base/syslog-mapper.xml new file mode 100644 index 00000000..8ebcf4a0 --- /dev/null +++ b/src/main/resources/sql/mapper/base/syslog-mapper.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + +/* 시스템 로그 등록(loggingMapper.insertLog) */ +SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(LOG_ID), 9) + 1, 1), 16, '0')) NEW_ID + FROM TB_SYS_LOG A, () B + WHERE LOG_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_SYS_LOG ( + LOG_ID + , LOG_TYPE + , URL + , CLS_NM + , MTD_NM + , FILE_NM + , DATA_CNT + , DATA_NM + , PSNL_INFO + , USER_ID + , IP_ADDR + , REG_DT +) VALUES ( + #{id} + , #{type} + , #{url} + , #{className} + , #{methodName} + , #{fileName} + , #{dataCount} + , #{fieldNames} + , #{personalInfo} + , #{userId} + , #{ipAddress} + , +) + + \ No newline at end of file diff --git a/src/main/resources/xit-syslog.conf b/src/main/resources/xit-syslog.conf new file mode 100644 index 00000000..802c0439 --- /dev/null +++ b/src/main/resources/xit-syslog.conf @@ -0,0 +1,24 @@ +{ + "exclude": { + "classes": [], + "methods": [] + }, + + "personalFields": [ + { "name": "주민등록번호", + "code": "", + "mapKeys": ["RTPYR_NO"], + "objectProperties": [] + }, + { "name": "계좌번호", + "code": "", + "mapKeys": [], + "objectProperties": [] + }, + { "name": "주소", + "code": "", + "mapKeys": [], + "objectProperties": [] + } + ] +} \ No newline at end of file