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