From 63c7bc5ae5e8af5f482fc52d00d4dbf759031c00 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 17 Nov 2023 14:25:52 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EC=B4=88=20=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 122 ++ .../lntris/LntrisInterfaceApplication.java | 23 + src/main/resources/application.yml | 61 + src/main/resources/intf-conf/file-job.conf | 119 ++ src/main/resources/intf-conf/lntris.conf | 20 + src/main/resources/log4jdbc.log4j2.properties | 4 + src/main/resources/logback-spring.xml | 83 + .../resources/sql/mapper/base/file-mapper.xml | 130 ++ .../resources/sql/mapper/base/test-mapper.xml | 13 + .../resources/sql/mapper/base/utility.xml | 35 + .../sql/mapper/lntris/lntris-A-mapper.xml | 1504 +++++++++++++++ .../mapper/lntris/lntris-B01_03-mapper.xml | 1216 ++++++++++++ .../mapper/lntris/lntris-B04_06-mapper.xml | 590 ++++++ .../mapper/lntris/lntris-B07_09-mapper.xml | 608 ++++++ .../mapper/lntris/lntris-B10_12-mapper.xml | 1006 ++++++++++ .../mapper/lntris/lntris-B13_16-mapper.xml | 1524 +++++++++++++++ .../sql/mapper/lntris/lntris-D-mapper.xml | 1640 +++++++++++++++++ .../sql/mapper/lntris/lntris-D07-mapper.xml | 1359 ++++++++++++++ src/main/resources/sql/mybatis-config.xml | 25 + 19 files changed, 10082 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/cokr/xit/interfaces/lntris/LntrisInterfaceApplication.java create mode 100644 src/main/resources/application.yml create mode 100644 src/main/resources/intf-conf/file-job.conf create mode 100644 src/main/resources/intf-conf/lntris.conf create mode 100644 src/main/resources/log4jdbc.log4j2.properties create mode 100644 src/main/resources/logback-spring.xml create mode 100644 src/main/resources/sql/mapper/base/file-mapper.xml create mode 100644 src/main/resources/sql/mapper/base/test-mapper.xml create mode 100644 src/main/resources/sql/mapper/base/utility.xml create mode 100644 src/main/resources/sql/mapper/lntris/lntris-A-mapper.xml create mode 100644 src/main/resources/sql/mapper/lntris/lntris-B01_03-mapper.xml create mode 100644 src/main/resources/sql/mapper/lntris/lntris-B04_06-mapper.xml create mode 100644 src/main/resources/sql/mapper/lntris/lntris-B07_09-mapper.xml create mode 100644 src/main/resources/sql/mapper/lntris/lntris-B10_12-mapper.xml create mode 100644 src/main/resources/sql/mapper/lntris/lntris-B13_16-mapper.xml create mode 100644 src/main/resources/sql/mapper/lntris/lntris-D-mapper.xml create mode 100644 src/main/resources/sql/mapper/lntris/lntris-D07-mapper.xml create mode 100644 src/main/resources/sql/mybatis-config.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..5f108de --- /dev/null +++ b/pom.xml @@ -0,0 +1,122 @@ + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.7.16 + + + + cokr.xit.interfaces.lntris + xit-lntris-interface + 0.0.1-SNAPSHOT + jar + + xit-lntris-interface + http://maven.apache.org + + + UTF-8 + + 17 + ${java.version} + ${java.version} + + + + + mvn2s + https://repo1.maven.org/maven2/ + + true + + + true + + + + egovframe + https://maven.egovframe.go.kr/maven/ + + true + + + false + + + + maven-public + https://nas.xit.co.kr:8888/repository/maven-public/ + + + + + + + cokr.xit.boot + xit-foundation-starter + 23.04.01-SNAPSHOT + + + + cokr.xit.interfaces.lntris + xit-lntris-basic + 23.04.01-SNAPSHOT + + + + cokr.xit.interfaces.lntris + xit-lntris-special + 23.04.01-SNAPSHOT + + + + + xit-lntris-interface + + + org.apache.maven.plugins + maven-compiler-plugin + + + + com.github.therapi + therapi-runtime-javadoc-scribe + 0.15.0 + + + + + + org.springframework.boot + spring-boot-maven-plugin + + deploy + + + org.projectlombok + lombok + + + + + + + + + + + maven-snapshot + https://nas.xit.co.kr:8888/repository/maven-snapshots/ + + + + maven-release + https://nas.xit.co.kr:8888/repository/maven-releases/ + + + + + \ No newline at end of file diff --git a/src/main/java/cokr/xit/interfaces/lntris/LntrisInterfaceApplication.java b/src/main/java/cokr/xit/interfaces/lntris/LntrisInterfaceApplication.java new file mode 100644 index 0000000..d9b3b6b --- /dev/null +++ b/src/main/java/cokr/xit/interfaces/lntris/LntrisInterfaceApplication.java @@ -0,0 +1,23 @@ +package cokr.xit.interfaces.lntris; + +import org.springframework.boot.SpringApplication; +import org.springframework.context.annotation.Bean; + +import cokr.xit.foundation.boot.FoundationApplication; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.info.Info; + +//@ImportResource("classpath:spring/context-*.xml") +public class LntrisInterfaceApplication extends FoundationApplication { + public static void main(String[] args) { + SpringApplication.run(LntrisInterfaceApplication.class, args); + } + + @Bean + public OpenAPI openAPI() { + return new OpenAPI() + .info(new Info() + .title("세외수입 연계시스템") + ); + } +} \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..130ede7 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,61 @@ +server: + port: 17979 + servlet: + context-path: / + + ssl: + enabled: false + key-store: ssl/.keystore + key-store-type: PKCS12 + key-store-password: 5811807 +# key-alias: fimskeystore +# key-store: classpath:fimskeystore.pkcs12 +# key-store-password: 'Xit5811807@)@#' +# key-password: 'Xit5811807@)@#' +# trust-store: classpath:fimstrust.pkcs12 +# trust-store-password: 'Xit5811807@)@#' + +# tomcat: +# remoteip: +# protocol-header-https-value: https + +spring: + application: + name: xit-lntris-interface + + main: + allow-bean-definition-overriding: true + sql: + init: + platform: mariadb + + datasource: + hikari: + driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbc-url: jdbc:log4jdbc:mariadb://105.20.1.125:53306/cleanparking?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false + username: root + password: xit5811807 +# jdbc-url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/platform?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false +# username: fimsweb +# password: fimsweb!@ + auto-commit: false + + mvc: + static-path-pattern: /resources/**,/files/** + web: + resources: + static-locations: /resources/,file:files/ + +messageSource: + basenames: + - classpath:message/message-common + - classpath:org/egovframe/rte/fdl/property/messages/properties + +springdoc.swagger-ui.path: /swagger.html + +propertyService: + properties: + - tempDir: C:\temp + - pageUnit: 10 + - pageSize: 10 + - permitAccess: /intf/**/* diff --git a/src/main/resources/intf-conf/file-job.conf b/src/main/resources/intf-conf/file-job.conf new file mode 100644 index 0000000..f0dde48 --- /dev/null +++ b/src/main/resources/intf-conf/file-job.conf @@ -0,0 +1,119 @@ +{ + "dirs": { + "receive": "files/ESB_AGENT/RCV", /* 수신 파일 최상위 디렉토리 */ + "send": "files/ESB_AGENT/SND", /* 전송 파일 최상위 디렉토리 */ + + "working": "files/interface/work", /* 파일 작업 최상위 디렉토리 */ + "success": "files/interface/success", /* 작업 완료한 파일의 최상위 디렉토리 */ + "fail": "files/interface/fail" /* 작업 실패한 파일의 최상위 디렉토리 */ + }, + + "dirCodes": { + "lntris": "1741000NIS" /* 차세대 지방세외수입 시스템 */ + }, + + "defaults": { + "charset": "euc-kr", + "fetchSize": 100, + "workSize": 100 + }, + + "jobs": [ + /* 지방 세외수입 개별 연계*/ + { /* 과태료 대장 등록자료 일괄조회(전일자 변동자료) */ + "name": "lntrisA02", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 부과수납 정보(일배치) */ + "name": "lntrisD02", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 부과체납 정보(전일자 변동자료) */ + "name": "lntrisD07a", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 수납정보(전일자 변동자료) */ + "name": "lntrisD07b", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 감액정보(전일자 변동자료) */ + "name": "lntrisD07c", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 과오납정보(전일자 변동자료) */ + "name": "lntrisD07d", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 결손정보(전일자 변동자료) */ + "name": "lntrisD07e", + "dirCode": "lntris" /* <-- dirCodes */ + }, + + /* 지방 세외수입 특화 연계*/ + { /* 체납 상세세목 */ + "name": "lntrisB01", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 수납 상세정보 */ + "name": "lntrisB02", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 결손 상세세목 */ + "name": "lntrisB03", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 체납자 독려정보 */ + "name": "lntrisB04", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 압류정보 */ + "name": "lntrisB05", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 압류시점 체납정보 */ + "name": "lntrisB06", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 과오납 상세정보 */ + "name": "lntrisB07", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 영치정보 */ + "name": "lntrisB08", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 고지발송정보 */ + "name": "lntrisB09", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 우편발송결과정보 */ + "name": "lntrisB10", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 과태료대장 목록 */ + "name": "lntrisB11", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 과태료대장 상세 목록 */ + "name": "lntrisB12", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 주정차위반 과태료대장 목록 */ + "name": "lntrisB13", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 주정차위반 과태료대장 상세 */ + "name": "lntrisB14", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 전용차로위반 과태료대장 목록 */ + "name": "lntrisB15", + "dirCode": "lntris" /* <-- dirCodes */ + }, + { /* 전용차료위반 과태료대장 상세 */ + "name": "lntrisB16", + "dirCode": "lntris" /* <-- dirCodes */ + } + + ] +} \ No newline at end of file diff --git a/src/main/resources/intf-conf/lntris.conf b/src/main/resources/intf-conf/lntris.conf new file mode 100644 index 0000000..5baaf48 --- /dev/null +++ b/src/main/resources/intf-conf/lntris.conf @@ -0,0 +1,20 @@ +{ + "useDatabase": false, + + "locals": [ + {"organization": "4060000", /* 지역 자치단체 코드(7자리) */ + "systems": ["DPV"] /* 지역 시스템 코드(3자리) */ + } + ], + + "remote": { + "organization": "1741000", /* 지방세외수입 기관 코드(7자리) */ + "systems": ["NIS"], /* 지방세외수입 시스템 코드(3자리) */ + "urls": { + "basic": "https://10.60.75.57:22411/mediate/ltis", /* 연계(개별) 운영 url */ + /*"basic": "https://10.60.75.138:22411/mediate/ltis", /* 연계(개별) 검증 url */ + + "special": "https://10.60.75.57:32411/mediate/ltis" /* 연계(특화) 운영 url */ + } + } +} \ No newline at end of file diff --git a/src/main/resources/log4jdbc.log4j2.properties b/src/main/resources/log4jdbc.log4j2.properties new file mode 100644 index 0000000..3b8ff2b --- /dev/null +++ b/src/main/resources/log4jdbc.log4j2.properties @@ -0,0 +1,4 @@ +log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator + +log4jdbc.dump.sql.maxlinelength=0 +log4jdbc.drivers=org.mariadb.jdbc.Driver diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..964e3db --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + ${LOG_PATTERN} + + + + + ${LOG_PATH}/${LOG_FILE_NAME}.log + + ${LOG_PATTERN} + + + + + ${LOG_PATH}/${LOG_FILE_NAME}.%d{yyyy-MM-dd}_%i.log + + 10MB + + + 30 + + + + + + + error + ACCEPT + DENY + + + ${LOG_PATH}/${ERR_LOG_FILE_NAME}.log + + ${LOG_PATTERN} + + + + + ${LOG_PATH}/${ERR_LOG_FILE_NAME}.%d{yyyy-MM-dd}_%i.log + + + 10MB + + + 60 + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/file-mapper.xml b/src/main/resources/sql/mapper/base/file-mapper.xml new file mode 100644 index 0000000..55f5dc6 --- /dev/null +++ b/src/main/resources/sql/mapper/base/file-mapper.xml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + +SELECT INF_TYPE + , CONCAT('files/', DIR, DATE_FORMAT(CURRENT_DATE, '/%Y/%m/%d/')) DIR + FROM ( + SELECT '010' INF_TYPE, 'interface/attachment/smg' DIR UNION + SELECT '020' INF_TYPE, 'interface/attachment/saeol' DIR UNION + SELECT '030' INF_TYPE, 'interface/attachment/epost' DIR UNION + + SELECT '100' INF_TYPE, 'attachment/violation' DIR UNION + SELECT '110' INF_TYPE, 'attachment/opinion' DIR UNION + SELECT '190' INF_TYPE, 'attachment/capture' DIR + ) FILE_DIRS + + + +SELECT A.*, FILE_PATH URL + FROM TB_FILE A + WHERE FILE_ID IN (#{fileID}) + ORDER BY FILE_ID + +SELECT A.*, FILE_PATH URL + FROM TB_FILE A + + AND A.INF_TYPE = #{infoType} + AND INF_KEY IN (#{infoKey}) + AND USE_YN = 'Y' + + + + + + + + + + +/* 파일 등록(fileMapper.insertFile) */ + +SELECT NEW_ID, CONCAT(DIR, NEW_ID, '.', #{file.extension}) PATH + FROM ( + SELECT IFNULL(MAX(FILE_ID) + 1, CONCAT(THIS_DAY, '00001')) NEW_ID + FROM TB_FILE A, () B + WHERE FILE_ID LIKE CONCAT(THIS_DAY, '%') + ) T1, ( + + WHERE INF_TYPE = #{file.infoType} + ) T2 +INSERT INTO TB_FILE ( + FILE_ID + , INF_TYPE + , INF_KEY + , SUB_TYPE + , FILE_NM + , FILE_PATH + , MIME_TYPE + , FILE_SIZE + , DNLD_CNT + , SRT_ORD + , RGTR + , REG_DT + , USE_YN +) VALUES ( + #{file.id} + , #{file.infoType} + , #{file.infoKey} + , #{file.subType} + , #{file.name} + , #{file.path} + , #{file.mimeType} + , #{file.size} + , #{file.downloadCount} + , #{file.sortOrder} + , #{currentUser.id} + , + , 'Y' +) + + +/* 파일 순서 변경(fileMapper.reorder) */ +UPDATE TB_FILE SET + SRT_ORD = CASE FILE_ID + WHEN #{fileID} THEN #{index} + + ELSE SRT_ORD END +WHERE FILE_ID IN (#{fileID}) + +/* 다운로드 횟수 증가(fileMapper.updateDownloadCount) */ +UPDATE TB_FILE SET + DNLD_CNT = DNLD_CNT + 1 + WHERE USE_YN = 'Y' + AND FILE_ID IN (#{fileID}) + +/* 파일 제거(fileMapper.removeFiles) */ +UPDATE TB_FILE SET + USE_YN = 'N' + WHERE USE_YN = 'Y' + AND FILE_ID IN (#{fileID}) + + AND INF_TYPE = #{infoType} + AND INF_KEY IN (#{infoKey}) + +/* 파일 삭제(fileMapper.deleteFiles) */ +DELETE FROM TB_FILE +WHERE FILE_ID IN (#{fileID}) + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/test-mapper.xml b/src/main/resources/sql/mapper/base/test-mapper.xml new file mode 100644 index 0000000..d674130 --- /dev/null +++ b/src/main/resources/sql/mapper/base/test-mapper.xml @@ -0,0 +1,13 @@ + + + + +${sql} + +${sql} + +${sql} + +COMMIT + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/utility.xml b/src/main/resources/sql/mapper/base/utility.xml new file mode 100644 index 0000000..5187fae --- /dev/null +++ b/src/main/resources/sql/mapper/base/utility.xml @@ -0,0 +1,35 @@ + + + + + + +SELECT QROWS.* FROM ( + SELECT ROW_NUMBER() OVER() ROW_NUM + , COUNT(*) OVER() TOT_CNT, QBODY.* + FROM ( + + ) QBODY + ) QROWS +WHERE ROW_NUM BETWEEN ((#{pageNum} - 1) * #{fetchSize}) + 1 AND (#{pageNum} * #{fetchSize}) + + + +ORDER BY ${orderBy} + + + +DATE_FORMAT(CURRENT_TIMESTAMP(), '%Y%m%d%H%i%s') + +SELECTNOW + +DATE_FORMAT(CURRENT_DATE, '%Y%m%d') + +SELECTTODAY + +IFNULL(#{thisDay},) + +SELECTTHIS_DAY + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lntris/lntris-A-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-A-mapper.xml new file mode 100644 index 0000000..24b2ef7 --- /dev/null +++ b/src/main/resources/sql/mapper/lntris/lntris-A-mapper.xml @@ -0,0 +1,1504 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT A01_ID + , TASK_SE_CD + , SGB_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , DPT_CD + , RCPT_YR + , SPAC_BIZ_CD + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , FIN_SCRG_SE_CD + , PYR_SE_CD + , PYR_NO + , PYR_NM + , RPRS_PYR_NO + , RPRS_PYR_NM + , PYR_TELNO + , PYR_MBL_TELNO + , PYR_EML_ADDR + , PYR_STT_CD + , PYR_LOTNO_ROAD_ADDR_SE_CD + , PYR_ZIP + , PYR_ROAD_NM_CD + , PYR_ADDR_UDGD_YN + , PYR_BMNO + , PYR_BSNO + , PYR_STDG_CD + , PYR_DONG_CD + , PYR_MTN_SE_CD + , PYR_BLDG_MNG_NO + , PYR_BLDG_NM + , PYR_MNO + , PYR_SNO + , PYR_SPCL_DG + , PYR_SPCL_HO + , PYR_TONG + , PYR_BAN + , PYR_SPCL_ADDR + , PYR_ROAD_NM_ADDR + , PYR_ROAD_NM_DADDR + , PYR_ROAD_NM_AL_ADDR + , PYR_LOTNO_ADDR + , PYR_LOTNO_DADDR + , PYR_LOTNO_AL_ADDR + , GL_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ROAD_NM_CD + , GL_ADDR_UDGD_YN + , GL_BMNO + , GL_BSNO + , GL_STDG_CD + , GL_DONG_CD + , GL_MTN_SE_CD + , GL_MNO + , GL_SNO + , GL_SPCL_ADDR + , GL_SPCL_DG + , GL_SPCL_HO + , GL_ROAD_NM_ADDR + , GL_ROAD_NM_DADDR + , GL_ROAD_NM_AL_ADDR + , GL_LOTNO_ADDR + , GL_LOTNO_DADDR + , GL_LOTNO_AL_ADDR + , LVY_TRGT_SE_CD + , REG_YMD + , FIN_SCRG_AMT + , FCLT_SE_CD + , REG_SE_CD + , RDT_RSN_SE_CD + , VHRNO + , MCLNC_LAO_BSS_NM + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , RM_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_A01 + + + +/* 과태료 대장 단속 정보 등록(lntrisAMapper.insertA01) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(A01_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_A01 A, () B + WHERE A01_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_A01 ( + A01_ID + , TASK_SE_CD + , SGB_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , DPT_CD + , RCPT_YR + , SPAC_BIZ_CD + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , FIN_SCRG_SE_CD + , PYR_SE_CD + , PYR_NO + , PYR_NM + , RPRS_PYR_NO + , RPRS_PYR_NM + , PYR_TELNO + , PYR_MBL_TELNO + , PYR_EML_ADDR + , PYR_STT_CD + , PYR_LOTNO_ROAD_ADDR_SE_CD + , PYR_ZIP + , PYR_ROAD_NM_CD + , PYR_ADDR_UDGD_YN + , PYR_BMNO + , PYR_BSNO + , PYR_STDG_CD + , PYR_DONG_CD + , PYR_MTN_SE_CD + , PYR_BLDG_MNG_NO + , PYR_BLDG_NM + , PYR_MNO + , PYR_SNO + , PYR_SPCL_DG + , PYR_SPCL_HO + , PYR_TONG + , PYR_BAN + , PYR_SPCL_ADDR + , PYR_ROAD_NM_ADDR + , PYR_ROAD_NM_DADDR + , PYR_ROAD_NM_AL_ADDR + , PYR_LOTNO_ADDR + , PYR_LOTNO_DADDR + , PYR_LOTNO_AL_ADDR + , GL_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ROAD_NM_CD + , GL_ADDR_UDGD_YN + , GL_BMNO + , GL_BSNO + , GL_STDG_CD + , GL_DONG_CD + , GL_MTN_SE_CD + , GL_MNO + , GL_SNO + , GL_SPCL_ADDR + , GL_SPCL_DG + , GL_SPCL_HO + , GL_ROAD_NM_ADDR + , GL_ROAD_NM_DADDR + , GL_ROAD_NM_AL_ADDR + , GL_LOTNO_ADDR + , GL_LOTNO_DADDR + , GL_LOTNO_AL_ADDR + , LVY_TRGT_SE_CD + , REG_YMD + , FIN_SCRG_AMT + , FCLT_SE_CD + , REG_SE_CD + , RDT_RSN_SE_CD + , VHRNO + , MCLNC_LAO_BSS_NM + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , RM_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{a01.a01Id} + , #{a01.taskSeCd} + , #{a01.request.sgbCd} + , #{a01.request.linkTrgtCd} + , #{a01.request.linkMngKey} + , #{a01.request.dptCd} + , #{a01.request.rcptYr} + , #{a01.request.spacBizCd} + , #{a01.request.actSeCd} + , #{a01.request.rprsTxmCd} + , #{a01.request.operItemCd} + , #{a01.request.finScrgSeCd} + , #{a01.request.pyrSeCd} + , #{a01.request.pyrNo} + , #{a01.request.pyrNm} + , #{a01.request.rprsPyrNo} + , #{a01.request.rprsPyrNm} + , #{a01.request.pyrTelno} + , #{a01.request.pyrMblTelno} + , #{a01.request.pyrEmlAddr} + , #{a01.request.pyrSttCd} + , #{a01.request.pyrLotnoRoadAddrSeCd} + , #{a01.request.pyrZip} + , #{a01.request.pyrRoadNmCd} + , #{a01.request.pyrAddrUdgdYn} + , #{a01.request.pyrBmno} + , #{a01.request.pyrBsno} + , #{a01.request.pyrStdgCd} + , #{a01.request.pyrDongCd} + , #{a01.request.pyrMtnSeCd} + , #{a01.request.pyrBldgMngNo} + , #{a01.request.pyrBldgNm} + , #{a01.request.pyrMno} + , #{a01.request.pyrSno} + , #{a01.request.pyrSpclDg} + , #{a01.request.pyrSpclHo} + , #{a01.request.pyrTong} + , #{a01.request.pyrBan} + , #{a01.request.pyrSpclAddr} + , #{a01.request.pyrRoadNmAddr} + , #{a01.request.pyrRoadNmDaddr} + , #{a01.request.pyrRoadNmAlAddr} + , #{a01.request.pyrLotnoAddr} + , #{a01.request.pyrLotnoDaddr} + , #{a01.request.pyrLotnoAlAddr} + , #{a01.request.glNm} + , #{a01.request.glLotnoRoadAddrSeCd} + , #{a01.request.glZip} + , #{a01.request.glRoadNmCd} + , #{a01.request.glAddrUdgdYn} + , #{a01.request.glBmno} + , #{a01.request.glBsno} + , #{a01.request.glStdgCd} + , #{a01.request.glDongCd} + , #{a01.request.glMtnSeCd} + , #{a01.request.glMno} + , #{a01.request.glSno} + , #{a01.request.glSpclAddr} + , #{a01.request.glSpclDg} + , #{a01.request.glSpclHo} + , #{a01.request.glRoadNmAddr} + , #{a01.request.glRoadNmDaddr} + , #{a01.request.glRoadNmAlAddr} + , #{a01.request.glLotnoAddr} + , #{a01.request.glLotnoDaddr} + , #{a01.request.glLotnoAlAddr} + , #{a01.request.lvyTrgtSeCd} + , #{a01.request.regYmd} + , #{a01.request.finScrgAmt} + , #{a01.request.fcltSeCd} + , #{a01.request.regSeCd} + , #{a01.request.rdtRsnSeCd} + , #{a01.request.vhrno} + , #{a01.request.mclncLaoBssNm} + , #{a01.request.mngItemCn1} + , #{a01.request.mngItemCn2} + , #{a01.request.mngItemCn3} + , #{a01.request.mngItemCn4} + , #{a01.request.mngItemCn5} + , #{a01.request.mngItemCn6} + , #{a01.request.rmCn} + , #{a01.request.rsveItem1} + , #{a01.request.rsveItem2} + , #{a01.request.rsveItem3} + , #{a01.request.rsveItem4} + , #{a01.request.rsveItem5} + , + , #{a01.response.linkRstCd} + , #{a01.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 과태료 대장 단속 정보 연계상태 수정(lntrisAMapper.updateA01Status) */ +UPDATE TB_NIS_INDIV_A01 A + , ( + SELECT #{a01.a01Id} A01_ID, #{a01.response.resVo1.linkMngKey} LINK_MNG_KEY, #{a01.response.linkRstCd} LINK_RST_CD, #{a01.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_DT = + , A.LINK_MNG_KEY = B.LINK_MNG_KEY + , A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + WHERE A.A01_ID = B.A01_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT A02_ID + , LINK_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , FIN_SCRG_ACB_KEY + , DPT_CD + , DPT_NM + , RCPT_YR + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , REG_YMD + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_STT_CD + , PYR_STT_NM + , PYR_ZIP + , PYR_ADDR + , TELNO + , MBL_TELNO + , PYR_EML_ADDR + , VHRNO + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , FCLT_SE_CD + , FCLT_SE_NM + , REG_SE_CD + , REG_SE_NM + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN_SCRG_AMT + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , AGVT_RSN_CD + , RDT_AGVT_RT + , FIN_SCRG_AMT + , BF_RDT_RT + , BF_RDT_AMT + , RM_CN + , RDT_RM_CN + , NHT_FRWAR_SE_CD + , NHT_FRWAR_SE_NM + , END_YMD + , END_RSN_CN + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_A02 + + + +/* 과태료 대장 전일자 변동자료 등록(lntrisAMapper.insertA02) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(A02_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_A02 A, () B + WHERE A02_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_A02 ( + A02_ID + , LINK_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , FIN_SCRG_ACB_KEY + , DPT_CD + , DPT_NM + , RCPT_YR + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , REG_YMD + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_STT_CD + , PYR_STT_NM + , PYR_ZIP + , PYR_ADDR + , TELNO + , MBL_TELNO + , PYR_EML_ADDR + , VHRNO + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , FCLT_SE_CD + , FCLT_SE_NM + , REG_SE_CD + , REG_SE_NM + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN_SCRG_AMT + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , AGVT_RSN_CD + , RDT_AGVT_RT + , FIN_SCRG_AMT + , BF_RDT_RT + , BF_RDT_AMT + , RM_CN + , RDT_RM_CN + , NHT_FRWAR_SE_CD + , NHT_FRWAR_SE_NM + , END_YMD + , END_RSN_CN + , EPAY_NO + , DEL_YN + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{a02.a02Id} + , #{a02.request.linkYmd} + , #{a02.request.sgbCd} + , #{a02.request.sgbNm} + , #{a02.request.linkTrgtCd} + , #{a02.request.linkMngKey} + , #{a02.request.finScrgAcbKey} + , #{a02.request.dptCd} + , #{a02.request.dptNm} + , #{a02.request.rcptYr} + , #{a02.request.spacBizCd} + , #{a02.request.spacBizNm} + , #{a02.request.actSeCd} + , #{a02.request.actSeNm} + , #{a02.request.rprsTxmCd} + , #{a02.request.rprsTxmNm} + , #{a02.request.operItemCd} + , #{a02.request.operItemNm} + , #{a02.request.regYmd} + , #{a02.request.pyrSeCd} + , #{a02.request.pyrSeNm} + , #{a02.request.pyrNo} + , #{a02.request.pyrNm} + , #{a02.request.pyrSttCd} + , #{a02.request.pyrSttNm} + , #{a02.request.pyrZip} + , #{a02.request.pyrAddr} + , #{a02.request.telno} + , #{a02.request.mblTelno} + , #{a02.request.pyrEmlAddr} + , #{a02.request.vhrno} + , #{a02.request.mngItemCn1} + , #{a02.request.mngItemCn2} + , #{a02.request.mngItemCn3} + , #{a02.request.mngItemCn4} + , #{a02.request.mngItemCn5} + , #{a02.request.mngItemCn6} + , #{a02.request.fcltSeCd} + , #{a02.request.fcltSeNm} + , #{a02.request.regSeCd} + , #{a02.request.regSeNm} + , #{a02.request.bfAvtsmtYmd} + , #{a02.request.opnSbmsnTermBgngYmd} + , #{a02.request.opnSbmsnTermEndYmd} + , #{a02.request.frstFinScrgAmt} + , #{a02.request.rdtRsnSeCd} + , #{a02.request.rdtRsnSeNm} + , #{a02.request.agvtRsnCd} + , #{a02.request.rdtAgvtRt} + , #{a02.request.finScrgAmt} + , #{a02.request.bfRdtRt} + , #{a02.request.bfRdtAmt} + , #{a02.request.rmCn} + , #{a02.request.rdtRmCn} + , #{a02.request.nhtFrwarSeCd} + , #{a02.request.nhtFrwarSeNm} + , #{a02.request.endYmd} + , #{a02.request.endRsnCn} + , #{a02.request.epayNo} + , #{a02.request.delYN} + , #{a02.request.vtlacBankNm1} + , #{a02.request.vrActno1} + , #{a02.request.vtlacBankNm2} + , #{a02.request.vrActno2} + , #{a02.request.vtlacBankNm3} + , #{a02.request.vrActno3} + , #{a02.request.vtlacBankNm4} + , #{a02.request.vrActno4} + , #{a02.request.vtlacBankNm5} + , #{a02.request.vrActno5} + , #{a02.request.vtlacBankNm6} + , #{a02.request.vrActno6} + , #{a02.request.vtlacBankNm7} + , #{a02.request.vrActno7} + , #{a02.request.vtlacBankNm8} + , #{a02.request.vrActno8} + , #{a02.request.vtlacBankNm9} + , #{a02.request.vrActno9} + , #{a02.request.vtlacBankNm10} + , #{a02.request.vrActno10} + , #{a02.request.vtlacBankNm11} + , #{a02.request.vrActno11} + , #{a02.request.vtlacBankNm12} + , #{a02.request.vrActno12} + , #{a02.request.vtlacBankNm13} + , #{a02.request.vrActno13} + , #{a02.request.vtlacBankNm14} + , #{a02.request.vrActno14} + , #{a02.request.vtlacBankNm15} + , #{a02.request.vrActno15} + , #{a02.request.vtlacBankNm16} + , #{a02.request.vrActno16} + , #{a02.request.vtlacBankNm17} + , #{a02.request.vrActno17} + , #{a02.request.vtlacBankNm18} + , #{a02.request.vrActno18} + , #{a02.request.vtlacBankNm19} + , #{a02.request.vrActno19} + , #{a02.request.vtlacBankNm20} + , #{a02.request.vrActno20} + , #{a02.request.rsveItem1} + , #{a02.request.rsveItem2} + , #{a02.request.rsveItem3} + , #{a02.request.rsveItem4} + , #{a02.request.rsveItem5} + , #{a02.taskAplcnDt} + , '999' + , #{a02.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 과태료 대장 전일자 변동자료 업무적용 상태 수정(lntrisAMapper.updateA02Status) */ +UPDATE TB_NIS_INDIV_A02 + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A02_ID IN (#{a02Id}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT A03_ID + , TASK_SE_CD + , SGB_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , FIN_SCRG_ACB_KEY + , DPT_CD + , DPT_NM + , RCPT_YR + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , REG_YMD + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_STT_CD + , PYR_STT_NM + , PYR_ZIP + , PYR_ADDR + , TELNO + , MBL_TELNO + , PYR_EML_ADDR + , VHRNO + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , FCLT_SE_CD + , FCLT_SE_NM + , REG_SE_CD + , REG_SE_NM + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN_SCRG_AMT + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , AGVT_RSN_CD + , AGVT_RSN_NM + , RDT_AGVT_RT + , FIN_SCRG_AMT + , BF_RDT_RT + , BF_RDT_AMT + , RM_CN + , RDT_RM_CN + , NHT_FRWAR_SE_CD + , NHT_FRWAR_SE_NM + , END_YMD + , END_RSN_CN + , RCVMT_SE_CD + , RCVMT_SE_NM + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_A03 + + + + + +/* 과태료 대장 상세 조회 결과 등록(lntrisAMapper.insertA03) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(A03_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_A03 A, () B + WHERE A03_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_A03 ( + A03_ID + , TASK_SE_CD + , SGB_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , FIN_SCRG_ACB_KEY + , DPT_CD + , DPT_NM + , RCPT_YR + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , REG_YMD + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_STT_CD + , PYR_STT_NM + , PYR_ZIP + , PYR_ADDR + , TELNO + , MBL_TELNO + , PYR_EML_ADDR + , VHRNO + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , FCLT_SE_CD + , FCLT_SE_NM + , REG_SE_CD + , REG_SE_NM + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN_SCRG_AMT + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , AGVT_RSN_CD + , AGVT_RSN_NM + , RDT_AGVT_RT + , FIN_SCRG_AMT + , BF_RDT_RT + , BF_RDT_AMT + , RM_CN + , RDT_RM_CN + , NHT_FRWAR_SE_CD + , NHT_FRWAR_SE_NM + , END_YMD + , END_RSN_CN + , RCVMT_SE_CD + , RCVMT_SE_NM + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{a03.a03Id} + , #{a03.taskSeCd} + , #{a03.request.sgbCd} + , #{a03.request.linkTrgtCd} + , #{a03.request.linkMngKey} + , #{a03.request.finScrgAcbKey} + , #{a03.response.resVo1.dptCd} + , #{a03.response.resVo1.dptNm} + , #{a03.response.resVo1.rcptYr} + , #{a03.response.resVo1.spacBizCd} + , #{a03.response.resVo1.spacBizNm} + , #{a03.response.resVo1.actSeCd} + , #{a03.response.resVo1.actSeNm} + , #{a03.response.resVo1.rprsTxmCd} + , #{a03.response.resVo1.rprsTxmNm} + , #{a03.response.resVo1.operItemCd} + , #{a03.response.resVo1.operItemNm} + , #{a03.response.resVo1.regYmd} + , #{a03.response.resVo1.pyrSeCd} + , #{a03.response.resVo1.pyrSeNm} + , #{a03.response.resVo1.pyrNo} + , #{a03.response.resVo1.pyrNm} + , #{a03.response.resVo1.pyrSttCd} + , #{a03.response.resVo1.pyrSttNm} + , #{a03.response.resVo1.pyrZip} + , #{a03.response.resVo1.pyrAddr} + , #{a03.response.resVo1.telno} + , #{a03.response.resVo1.mblTelno} + , #{a03.response.resVo1.pyrEmlAddr} + , #{a03.response.resVo1.vhrno} + , #{a03.response.resVo1.mngItemCn1} + , #{a03.response.resVo1.mngItemCn2} + , #{a03.response.resVo1.mngItemCn3} + , #{a03.response.resVo1.mngItemCn4} + , #{a03.response.resVo1.mngItemCn5} + , #{a03.response.resVo1.mngItemCn6} + , #{a03.response.resVo1.fcltSeCd} + , #{a03.response.resVo1.fcltSeNm} + , #{a03.response.resVo1.regSeCd} + , #{a03.response.resVo1.regSeNm} + , #{a03.response.resVo1.bfAvtsmtYmd} + , #{a03.response.resVo1.opnSbmsnTermBgngYmd} + , #{a03.response.resVo1.opnSbmsnTermEndYmd} + , #{a03.response.resVo1.frstFinScrgAmt} + , #{a03.response.resVo1.rdtRsnSeCd} + , #{a03.response.resVo1.rdtRsnSeNm} + , #{a03.response.resVo1.agvtRsnCd} + , #{a03.response.resVo1.agvtRsnNm} + , #{a03.response.resVo1.rdtAgvtRt} + , #{a03.response.resVo1.finScrgAmt} + , #{a03.response.resVo1.bfRdtRt} + , #{a03.response.resVo1.bfRdtAmt} + , #{a03.response.resVo1.rmCn} + , #{a03.response.resVo1.rdtRmCn} + , #{a03.response.resVo1.nhtFrwarSeCd} + , #{a03.response.resVo1.nhtFrwarSeNm} + , #{a03.response.resVo1.endYmd} + , #{a03.response.resVo1.endRsnCn} + , #{a03.response.resVo1.rcvmtSeCd} + , #{a03.response.resVo1.rcvmtSeNm} + , #{a03.response.resVo1.epayNo} + , #{a03.response.resVo1.vtlacBankNm1} + , #{a03.response.resVo1.vrActno1} + , #{a03.response.resVo1.vtlacBankNm2} + , #{a03.response.resVo1.vrActno2} + , #{a03.response.resVo1.vtlacBankNm3} + , #{a03.response.resVo1.vrActno3} + , #{a03.response.resVo1.vtlacBankNm4} + , #{a03.response.resVo1.vrActno4} + , #{a03.response.resVo1.vtlacBankNm5} + , #{a03.response.resVo1.vrActno5} + , #{a03.response.resVo1.vtlacBankNm6} + , #{a03.response.resVo1.vrActno6} + , #{a03.response.resVo1.vtlacBankNm7} + , #{a03.response.resVo1.vrActno7} + , #{a03.response.resVo1.vtlacBankNm8} + , #{a03.response.resVo1.vrActno8} + , #{a03.response.resVo1.vtlacBankNm9} + , #{a03.response.resVo1.vrActno9} + , #{a03.response.resVo1.vtlacBankNm10} + , #{a03.response.resVo1.vrActno10} + , #{a03.response.resVo1.vtlacBankNm11} + , #{a03.response.resVo1.vrActno11} + , #{a03.response.resVo1.vtlacBankNm12} + , #{a03.response.resVo1.vrActno12} + , #{a03.response.resVo1.vtlacBankNm13} + , #{a03.response.resVo1.vrActno13} + , #{a03.response.resVo1.vtlacBankNm14} + , #{a03.response.resVo1.vrActno14} + , #{a03.response.resVo1.vtlacBankNm15} + , #{a03.response.resVo1.vrActno15} + , #{a03.response.resVo1.vtlacBankNm16} + , #{a03.response.resVo1.vrActno16} + , #{a03.response.resVo1.vtlacBankNm17} + , #{a03.response.resVo1.vrActno17} + , #{a03.response.resVo1.vtlacBankNm18} + , #{a03.response.resVo1.vrActno18} + , #{a03.response.resVo1.vtlacBankNm19} + , #{a03.response.resVo1.vrActno19} + , #{a03.response.resVo1.vtlacBankNm20} + , #{a03.response.resVo1.vrActno20} + , #{a03.response.resVo1.rsveItem1} + , #{a03.response.resVo1.rsveItem2} + , #{a03.response.resVo1.rsveItem3} + , #{a03.response.resVo1.rsveItem4} + , #{a03.response.resVo1.rsveItem5} + , + , #{a03.response.linkRstCd} + , #{a03.response.linkRstMsg} + , #{a03.taskAplcnDt} + , '999' + , #{a03.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 과태료 대장 등록 자료 상세 조회 수정(lntrisAMapper.updateA03) */ +UPDATE TB_NIS_INDIV_A03 + SET TASK_SE_CD = #{a03.taskSeCd} + , SGB_CD = #{a03.request.sgbCd} + , LINK_TRGT_CD = #{a03.request.linkTrgtCd} + , LINK_MNG_KEY = #{a03.request.linkMngKey} + , FIN_SCRG_ACB_KEY = #{a03.request.finScrgAcbKey} + , DPT_CD = #{a03.response.resVo1.dptCd} + , DPT_NM = #{a03.response.resVo1.dptNm} + , RCPT_YR = #{a03.response.resVo1.rcptYr} + , SPAC_BIZ_CD = #{a03.response.resVo1.spacBizCd} + , SPAC_BIZ_NM = #{a03.response.resVo1.spacBizNm} + , ACT_SE_CD = #{a03.response.resVo1.actSeCd} + , ACT_SE_NM = #{a03.response.resVo1.actSeNm} + , RPRS_TXM_CD = #{a03.response.resVo1.rprsTxmCd} + , RPRS_TXM_NM = #{a03.response.resVo1.rprsTxmNm} + , OPER_ITEM_CD = #{a03.response.resVo1.operItemCd} + , OPER_ITEM_NM = #{a03.response.resVo1.operItemNm} + , REG_YMD = #{a03.response.resVo1.regYmd} + , PYR_SE_CD = #{a03.response.resVo1.pyrSeCd} + , PYR_SE_NM = #{a03.response.resVo1.pyrSeNm} + , PYR_NO = #{a03.response.resVo1.pyrNo} + , PYR_NM = #{a03.response.resVo1.pyrNm} + , PYR_STT_CD = #{a03.response.resVo1.pyrSttCd} + , PYR_STT_NM = #{a03.response.resVo1.pyrSttNm} + , PYR_ZIP = #{a03.response.resVo1.pyrZip} + , PYR_ADDR = #{a03.response.resVo1.pyrAddr} + , TELNO = #{a03.response.resVo1.telno} + , MBL_TELNO = #{a03.response.resVo1.mblTelno} + , PYR_EML_ADDR = #{a03.response.resVo1.pyrEmlAddr} + , VHRNO = #{a03.response.resVo1.vhrno} + , MNG_ITEM_CN1 = #{a03.response.resVo1.mngItemCn1} + , MNG_ITEM_CN2 = #{a03.response.resVo1.mngItemCn2} + , MNG_ITEM_CN3 = #{a03.response.resVo1.mngItemCn3} + , MNG_ITEM_CN4 = #{a03.response.resVo1.mngItemCn4} + , MNG_ITEM_CN5 = #{a03.response.resVo1.mngItemCn5} + , MNG_ITEM_CN6 = #{a03.response.resVo1.mngItemCn6} + , FCLT_SE_CD = #{a03.response.resVo1.fcltSeCd} + , FCLT_SE_NM = #{a03.response.resVo1.fcltSeNm} + , REG_SE_CD = #{a03.response.resVo1.regSeCd} + , REG_SE_NM = #{a03.response.resVo1.regSeNm} + , BF_AVTSMT_YMD = #{a03.response.resVo1.bfAvtsmtYmd} + , OPN_SBMSN_TERM_BGNG_YMD = #{a03.response.resVo1.opnSbmsnTermBgngYmd} + , OPN_SBMSN_TERM_END_YMD = #{a03.response.resVo1.opnSbmsnTermEndYmd} + , FRST_FIN_SCRG_AMT = #{a03.response.resVo1.frstFinScrgAmt} + , RDT_RSN_SE_CD = #{a03.response.resVo1.rdtRsnSeCd} + , RDT_RSN_SE_NM = #{a03.response.resVo1.rdtRsnSeNm} + , AGVT_RSN_CD = #{a03.response.resVo1.agvtRsnCd} + , AGVT_RSN_NM = #{a03.response.resVo1.agvtRsnNm} + , RDT_AGVT_RT = #{a03.response.resVo1.rdtAgvtRt} + , FIN_SCRG_AMT = #{a03.response.resVo1.finScrgAmt} + , BF_RDT_RT = #{a03.response.resVo1.bfRdtRt} + , BF_RDT_AMT = #{a03.response.resVo1.bfRdtAmt} + , RM_CN = #{a03.response.resVo1.rmCn} + , RDT_RM_CN = #{a03.response.resVo1.rdtRmCn} + , NHT_FRWAR_SE_CD = #{a03.response.resVo1.nhtFrwarSeCd} + , NHT_FRWAR_SE_NM = #{a03.response.resVo1.nhtFrwarSeNm} + , END_YMD = #{a03.response.resVo1.endYmd} + , END_RSN_CN = #{a03.response.resVo1.endRsnCn} + , RCVMT_SE_CD = #{a03.response.resVo1.rcvmtSeCd} + , RCVMT_SE_NM = #{a03.response.resVo1.rcvmtSeNm} + , EPAY_NO = #{a03.response.resVo1.epayNo} + , VTLAC_BANK_NM1 = #{a03.response.resVo1.vtlacBankNm1} + , VR_ACTNO1 = #{a03.response.resVo1.vrActno1} + , VTLAC_BANK_NM2 = #{a03.response.resVo1.vtlacBankNm2} + , VR_ACTNO2 = #{a03.response.resVo1.vrActno2} + , VTLAC_BANK_NM3 = #{a03.response.resVo1.vtlacBankNm3} + , VR_ACTNO3 = #{a03.response.resVo1.vrActno3} + , VTLAC_BANK_NM4 = #{a03.response.resVo1.vtlacBankNm4} + , VR_ACTNO4 = #{a03.response.resVo1.vrActno4} + , VTLAC_BANK_NM5 = #{a03.response.resVo1.vtlacBankNm5} + , VR_ACTNO5 = #{a03.response.resVo1.vrActno5} + , VTLAC_BANK_NM6 = #{a03.response.resVo1.vtlacBankNm6} + , VR_ACTNO6 = #{a03.response.resVo1.vrActno6} + , VTLAC_BANK_NM7 = #{a03.response.resVo1.vtlacBankNm7} + , VR_ACTNO7 = #{a03.response.resVo1.vrActno7} + , VTLAC_BANK_NM8 = #{a03.response.resVo1.vtlacBankNm8} + , VR_ACTNO8 = #{a03.response.resVo1.vrActno8} + , VTLAC_BANK_NM9 = #{a03.response.resVo1.vtlacBankNm9} + , VR_ACTNO9 = #{a03.response.resVo1.vrActno9} + , VTLAC_BANK_NM10 = #{a03.response.resVo1.vtlacBankNm10} + , VR_ACTNO10 = #{a03.response.resVo1.vrActno10} + , VTLAC_BANK_NM11 = #{a03.response.resVo1.vtlacBankNm11} + , VR_ACTNO11 = #{a03.response.resVo1.vrActno11} + , VTLAC_BANK_NM12 = #{a03.response.resVo1.vtlacBankNm12} + , VR_ACTNO12 = #{a03.response.resVo1.vrActno12} + , VTLAC_BANK_NM13 = #{a03.response.resVo1.vtlacBankNm13} + , VR_ACTNO13 = #{a03.response.resVo1.vrActno13} + , VTLAC_BANK_NM14 = #{a03.response.resVo1.vtlacBankNm14} + , VR_ACTNO14 = #{a03.response.resVo1.vrActno14} + , VTLAC_BANK_NM15 = #{a03.response.resVo1.vtlacBankNm15} + , VR_ACTNO15 = #{a03.response.resVo1.vrActno15} + , VTLAC_BANK_NM16 = #{a03.response.resVo1.vtlacBankNm16} + , VR_ACTNO16 = #{a03.response.resVo1.vrActno16} + , VTLAC_BANK_NM17 = #{a03.response.resVo1.vtlacBankNm17} + , VR_ACTNO17 = #{a03.response.resVo1.vrActno17} + , VTLAC_BANK_NM18 = #{a03.response.resVo1.vtlacBankNm18} + , VR_ACTNO18 = #{a03.response.resVo1.vrActno18} + , VTLAC_BANK_NM19 = #{a03.response.resVo1.vtlacBankNm19} + , VR_ACTNO19 = #{a03.response.resVo1.vrActno19} + , VTLAC_BANK_NM20 = #{a03.response.resVo1.vtlacBankNm20} + , VR_ACTNO20 = #{a03.response.resVo1.vrActno20} + , RSVE_ITEM1 = #{a03.response.resVo1.rsveItem1} + , RSVE_ITEM2 = #{a03.response.resVo1.rsveItem2} + , RSVE_ITEM3 = #{a03.response.resVo1.rsveItem3} + , RSVE_ITEM4 = #{a03.response.resVo1.rsveItem4} + , RSVE_ITEM5 = #{a03.response.resVo1.rsveItem5} + , LINK_RST_DT = #{a03.response.linkRstDt} + , LINK_RST_CD = #{a03.response.linkRstCd} + , LINK_RST_MSG = #{a03.response.linkRstMsg} + , TASK_APLCN_DT = #{a03.taskAplcnDt} + , TASK_APLCN_CD = '999' + , TASK_APLCN_MSG = #{a03.taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A03_ID = #{a03.a03Id} + +/* 과태료 대장 상세 조회 업무적용 상태 수정(lntrisAMapper.updateA03Status) */ +UPDATE TB_NIS_INDIV_A03 + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A03_ID IN (#{a03Id}) + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lntris/lntris-B01_03-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-B01_03-mapper.xml new file mode 100644 index 0000000..efe9ea9 --- /dev/null +++ b/src/main/resources/sql/mapper/lntris/lntris-B01_03-mapper.xml @@ -0,0 +1,1216 @@ + + + + + + + +AND LINK_RST_CD IS NULL + + AND SGB_CD = #{sgbCd} + AND DPT_CD = #{dptCd} + AND PYR_SE_CD = #{pyrSeCd} + AND PYR_NO = #{pyrNo} + AND FYR = #{fyr} + AND ACT_SE_CD = #{actSeCd} + AND RPRS_TXM_CD = #{rprsTxmCd} + AND LVYNO = #{lvyNo} + AND VHRNO = #{vhrno} + AND RGTN_YMD = #{rgtnYmd} + AND REG_YMD = #{regYmd} + + + + + + + + + + + + + + + + + + + + +SELECT B01_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B01 + + + +/* 체납상세세목정보_요청 등록(lntrisB01_03Mapper.insertB01Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B01_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B01 A, () B + WHERE B01_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B01 ( + B01_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b01.b01Id} + , #{b01.taskSeCd} + , #{b01.request.dmndSeCd} + , #{b01.request.sgbCd} + , #{b01.request.pyrSeCd} + , #{b01.request.pyrNo} + , #{b01.request.dptCd} + , #{b01.request.spacBizCd} + , #{b01.request.fyr} + , #{b01.request.actSeCd} + , #{b01.request.rprsTxmCd} + , #{b01.request.lvyNo} + , #{b01.request.itmSn} + , #{b01.response.linkRstCd} + , #{b01.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 체납상세세목정보_요청 연계상태 수정(lntrisB01_03Mapper.updateB01ReqStatus) */ +UPDATE TB_NIS_SPCL_B01 A + , ( + SELECT #{b01.b01Id} B01_ID, #{b01.response.linkRstCd} LINK_RST_CD, #{b01.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B01_ID = B.B01_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B01_ID + , B01_SN + , SGB_CD + , LVY_KEY + , DPT_NM + , DPT_CD + , SGB_NM + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , LVY_NO + , ITM_SN + , RCVMT_SE_NM + , SZR_SE_NM + , PYR_SE_CD + , PYR_MNG_NO + , PYR_ADDR_SN + , PYR_NO + , PYR_NM + , PYR_STT_CD + , PYR_STT_NM + , ZIP + , PYR_ADDR + , LOTNO_ROAD_ADDR_SE_CD + , PYR_CNPC_NO + , PYR_MBL_CNPC_NO + , LVY_SE_CD + , LVY_YMD + , FRST_PID_YMD + , LAST_PID_YMD + , PID_AF_YMD + , PID_AF_AMT + , FRST_PCT_AMT + , LVY_STT_SE_NM + , LAST_PCT_AMT + , LAST_ADTN_AMT + , LAST_ITM_INTR_AMT + , ITM_SE_NM + , UNTY_LVY_DATA_SE_NM + , GL_NM + , GL_MNG_NO + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ADDR + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , EPAY_NO + , MNG_ITEM_SN1 + , MNG_ITEM_SN2 + , MNG_ITEM_SN3 + , MNG_ITEM_SN4 + , MNG_ITEM_SN5 + , MNG_ITEM_SN6 + , ARR_RSN_CD + , ARR_RSN_NM + , DFT_SE_NM + , PYR_EML_ADDR + , AUTO_PAY_SE_CD + , RDT_SE_NM + , RPM_SZR_VHRNO + , UNTY_RPRS_KEY + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_SPCL_B01RV + + + +/* 체납상세세목정보_응답 등록(lntrisB01_03Mapper.insertB01Resps) */ +INSERT INTO TB_NIS_SPCL_B01RV ( + B01_ID + , B01_SN + , SGB_CD + , LVY_KEY + , DPT_NM + , DPT_CD + , SGB_NM + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , LVY_NO + , ITM_SN + , RCVMT_SE_NM + , SZR_SE_NM + , PYR_SE_CD + , PYR_MNG_NO + , PYR_ADDR_SN + , PYR_NO + , PYR_NM + , PYR_STT_CD + , PYR_STT_NM + , ZIP + , PYR_ADDR + , LOTNO_ROAD_ADDR_SE_CD + , PYR_CNPC_NO + , PYR_MBL_CNPC_NO + , LVY_SE_CD + , LVY_YMD + , FRST_PID_YMD + , LAST_PID_YMD + , PID_AF_YMD + , PID_AF_AMT + , FRST_PCT_AMT + , LVY_STT_SE_NM + , LAST_PCT_AMT + , LAST_ADTN_AMT + , LAST_ITM_INTR_AMT + , ITM_SE_NM + , UNTY_LVY_DATA_SE_NM + , GL_NM + , GL_MNG_NO + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ADDR + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , EPAY_NO + , MNG_ITEM_SN1 + , MNG_ITEM_SN2 + , MNG_ITEM_SN3 + , MNG_ITEM_SN4 + , MNG_ITEM_SN5 + , MNG_ITEM_SN6 + , ARR_RSN_CD + , ARR_RSN_NM + , DFT_SE_NM + , PYR_EML_ADDR + , AUTO_PAY_SE_CD + , RDT_SE_NM + , RPM_SZR_VHRNO + , UNTY_RPRS_KEY + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b01Id} + , #{resp.b01Sn} + , #{resp.sgbCd} + , #{resp.lvyKey} + , #{resp.dptNm} + , #{resp.dptCd} + , #{resp.sgbNm} + , #{resp.fyr} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.lvyNo} + , #{resp.itmSn} + , #{resp.rcvmtSeNm} + , #{resp.szrSeNm} + , #{resp.pyrSeCd} + , #{resp.pyrMngNo} + , #{resp.pyrAddrSn} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrSttCd} + , #{resp.pyrSttNm} + , #{resp.zip} + , #{resp.pyrAddr} + , #{resp.lotnoRoadAddrSeCd} + , #{resp.pyrCnpcNo} + , #{resp.pyrMblCnpcNo} + , #{resp.lvySeCd} + , #{resp.lvyYmd} + , #{resp.frstPidYmd} + , #{resp.lastPidYmd} + , #{resp.pidAfYmd} + , #{resp.pidAfAmt} + , #{resp.frstPctAmt} + , #{resp.lvySttSeNm} + , #{resp.lastPctAmt} + , #{resp.lastAdtnAmt} + , #{resp.lastItmIntrAmt} + , #{resp.itmSeNm} + , #{resp.untyLvyDataSeNm} + , #{resp.glNm} + , #{resp.glMngNo} + , #{resp.glLotnoRoadAddrSeCd} + , #{resp.glZip} + , #{resp.glAddr} + , #{resp.vtlacBankNm1} + , #{resp.vrActno1} + , #{resp.vtlacBankNm2} + , #{resp.vrActno2} + , #{resp.vtlacBankNm3} + , #{resp.vrActno3} + , #{resp.vtlacBankNm4} + , #{resp.vrActno4} + , #{resp.vtlacBankNm5} + , #{resp.vrActno5} + , #{resp.vtlacBankNm6} + , #{resp.vrActno6} + , #{resp.vtlacBankNm7} + , #{resp.vrActno7} + , #{resp.vtlacBankNm8} + , #{resp.vrActno8} + , #{resp.vtlacBankNm9} + , #{resp.vrActno9} + , #{resp.vtlacBankNm10} + , #{resp.vrActno10} + , #{resp.vtlacBankNm11} + , #{resp.vrActno11} + , #{resp.vtlacBankNm12} + , #{resp.vrActno12} + , #{resp.vtlacBankNm13} + , #{resp.vrActno13} + , #{resp.vtlacBankNm14} + , #{resp.vrActno14} + , #{resp.vtlacBankNm15} + , #{resp.vrActno15} + , #{resp.vtlacBankNm16} + , #{resp.vrActno16} + , #{resp.vtlacBankNm17} + , #{resp.vrActno17} + , #{resp.vtlacBankNm18} + , #{resp.vrActno18} + , #{resp.vtlacBankNm19} + , #{resp.vrActno19} + , #{resp.vtlacBankNm20} + , #{resp.vrActno20} + , #{resp.epayNo} + , #{resp.mngItemSn1} + , #{resp.mngItemSn2} + , #{resp.mngItemSn3} + , #{resp.mngItemSn4} + , #{resp.mngItemSn5} + , #{resp.mngItemSn6} + , #{resp.arrRsnCd} + , #{resp.arrRsnNm} + , #{resp.dftSeNm} + , #{resp.pyrEmlAddr} + , #{resp.autoPaySeCd} + , #{resp.rdtSeNm} + , #{resp.rpmSzrVhrno} + , #{resp.untyRprsKey} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + + + + + + + + + + +SELECT B02_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B02 + + + +/* 수납 상세정보_요청 등록(lntrisB01_03Mapper.insertB02Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B02_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B02 A, () B + WHERE B02_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B02 ( + B02_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b02.b02Id} + , #{b02.taskSeCd} + , #{b02.request.dmndClCd} + , #{b02.request.sgbCd} + , #{b02.request.pyrSeCd} + , #{b02.request.pyrNo} + , #{b02.request.dptCd} + , #{b02.request.spacBizCd} + , #{b02.request.fyr} + , #{b02.request.actSeCd} + , #{b02.request.rprsTxmCd} + , #{b02.request.lvyNo} + , #{b02.request.itmSn} + , #{b02.response.linkRstCd} + , #{b02.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 수납 상세정보_요청 연계상태 수정(lntrisB01_03Mapper.updateB02ReqStatus) */ +UPDATE TB_NIS_SPCL_B02 A + , ( + SELECT #{b02.b02Id} B02_ID, #{b02.response.linkRstCd} LINK_RST_CD, #{b02.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B02_ID = B.B02_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B02_ID + , B02_SN + , SGB_CD + , LVY_KEY + , DPT_NM + , DPT_CD + , SGB_NM + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , LVY_NO + , ITM_SN + , RCVMT_SN + , RCVMT_YMD + , RCVMT_PCT_AMT + , RCVMT_ADTN_AMT + , ITM_INTR_AMT + , RCVMT_BANK + , RCVMT_TY_CD + , RCVMT_TY_NM + , ACT_YMD + , PMK_YMD + , FRST_PID_YMD + , LVY_YMD + , GL_NM + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , EPAY_NO + , PYR_NO + , PYR_NM + , RCVMT_SE_CD + , RCVMT_STT_SE_CD + , TAXN_NO + , GL_MNG_NO + , GL_ADDR + , PYR_ADDR + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_SPCL_B02RV + + + +/* 수납상세정보_응답 등록(lntrisB01_03Mapper.insertB02Resps) */ +INSERT INTO TB_NIS_SPCL_B02RV ( + B02_ID + , B02_SN + , SGB_CD + , LVY_KEY + , DPT_NM + , DPT_CD + , SGB_NM + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , LVY_NO + , ITM_SN + , RCVMT_SN + , RCVMT_YMD + , RCVMT_PCT_AMT + , RCVMT_ADTN_AMT + , ITM_INTR_AMT + , RCVMT_BANK + , RCVMT_TY_CD + , RCVMT_TY_NM + , ACT_YMD + , PMK_YMD + , FRST_PID_YMD + , LVY_YMD + , GL_NM + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , EPAY_NO + , PYR_NO + , PYR_NM + , RCVMT_SE_CD + , RCVMT_STT_SE_CD + , TAXN_NO + , GL_MNG_NO + , GL_ADDR + , PYR_ADDR + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b02Id} + , #{resp.b02Sn} + , #{resp.sgbCd} + , #{resp.lvyKey} + , #{resp.dptNm} + , #{resp.dptCd} + , #{resp.sgbNm} + , #{resp.fyr} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.lvyNo} + , #{resp.itmSn} + , #{resp.rcvmtSn} + , #{resp.rcvmtYmd} + , #{resp.rcvmtPctAmt} + , #{resp.rcvmtAdtnAmt} + , #{resp.itmIntrAmt} + , #{resp.rcvmtBank} + , #{resp.rcvmtTyCd} + , #{resp.rcvmtTyNm} + , #{resp.actYmd} + , #{resp.pmkYmd} + , #{resp.frstPidYmd} + , #{resp.lvyYmd} + , #{resp.glNm} + , #{resp.vtlacBankNm1} + , #{resp.vrActno1} + , #{resp.vtlacBankNm2} + , #{resp.vrActno2} + , #{resp.vtlacBankNm3} + , #{resp.vrActno3} + , #{resp.vtlacBankNm4} + , #{resp.vrActno4} + , #{resp.vtlacBankNm5} + , #{resp.vrActno5} + , #{resp.vtlacBankNm6} + , #{resp.vrActno6} + , #{resp.vtlacBankNm7} + , #{resp.vrActno7} + , #{resp.vtlacBankNm8} + , #{resp.vrActno8} + , #{resp.vtlacBankNm9} + , #{resp.vrActno9} + , #{resp.vtlacBankNm10} + , #{resp.vrActno10} + , #{resp.vtlacBankNm11} + , #{resp.vrActno11} + , #{resp.vtlacBankNm12} + , #{resp.vrActno12} + , #{resp.vtlacBankNm13} + , #{resp.vrActno13} + , #{resp.vtlacBankNm14} + , #{resp.vrActno14} + , #{resp.vtlacBankNm15} + , #{resp.vrActno15} + , #{resp.vtlacBankNm16} + , #{resp.vrActno16} + , #{resp.vtlacBankNm17} + , #{resp.vrActno17} + , #{resp.vtlacBankNm18} + , #{resp.vrActno18} + , #{resp.vtlacBankNm19} + , #{resp.vrActno19} + , #{resp.vtlacBankNm20} + , #{resp.vrActno20} + , #{resp.epayNo} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.rcvmtSeCd} + , #{resp.rcvmtSttSeCd} + , #{resp.taxnNo} + , #{resp.glMngNo} + , #{resp.glAddr} + , #{resp.pyrAddr} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + + + + + + + + + + +SELECT B03_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B03 + + + +/* 결손 상세세목정보_요청 등록(lntrisB01_03Mapper.insertB03Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B03_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B03 A, () B + WHERE B03_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B03 ( + B03_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b03.b03Id} + , #{b03.taskSeCd} + , #{b03.request.dmndSeCd} + , #{b03.request.sgbCd} + , #{b03.request.pyrSeCd} + , #{b03.request.pyrNo} + , #{b03.request.dptCd} + , #{b03.request.spacBizCd} + , #{b03.request.fyr} + , #{b03.request.actSeCd} + , #{b03.request.rprsTxmCd} + , #{b03.request.lvyNo} + , #{b03.request.itmSn} + , #{b03.response.linkRstCd} + , #{b03.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 결손 상세세목정보_요청 연계상태 수정(lntrisB01_03Mapper.updateB03ReqStatus) */ +UPDATE TB_NIS_SPCL_B03 A + , ( + SELECT #{b03.b03Id} B03_ID, #{b03.response.linkRstCd} LINK_RST_CD, #{b03.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B03_ID = B.B03_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B03_ID + , B03_SN + , SGB_CD + , LVY_KEY + , DPT_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , GL_NM + , PYR_SE_CD + , PYR_NO + , PYR_NM + , DFT_SN + , PCT_AMT + , INTR_AMT + , ADTN_AMT + , DFT_SE_CD + , DFT_YMD + , DFT_RSN_CD + , DFT_RSN + , REV_YMD + , REV_RSN_CD + , REV_RSN + , RM_CN + , LVY_NO + , GL_MNG_NO + , GL_LOTNO_ROAD_ADDR_SE_CD + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_SPCL_B03RV + + + +/* 수납상세정보_응답 등록(lntrisB01_03Mapper.insertB03Resps) */ +INSERT INTO TB_NIS_SPCL_B03RV ( + B03_ID + , B03_SN + , SGB_CD + , LVY_KEY + , DPT_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , GL_NM + , PYR_SE_CD + , PYR_NO + , PYR_NM + , DFT_SN + , PCT_AMT + , INTR_AMT + , ADTN_AMT + , DFT_SE_CD + , DFT_YMD + , DFT_RSN_CD + , DFT_RSN + , REV_YMD + , REV_RSN_CD + , REV_RSN + , RM_CN + , LVY_NO + , GL_MNG_NO + , GL_LOTNO_ROAD_ADDR_SE_CD + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b03Id} + , #{resp.b03Sn} + , #{resp.sgbCd} + , #{resp.lvyKey} + , #{resp.dptCd} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.glNm} + , #{resp.pyrSeCd} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.dftSn} + , #{resp.pctAmt} + , #{resp.intrAmt} + , #{resp.adtnAmt} + , #{resp.dftSeCd} + , #{resp.dftYmd} + , #{resp.dftRsnCd} + , #{resp.dftRsn} + , #{resp.revYmd} + , #{resp.revRsnCd} + , #{resp.revRsn} + , #{resp.rmCn} + , #{resp.lvyNo} + , #{resp.glMngNo} + , #{resp.glLotnoRoadAddrSeCd} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lntris/lntris-B04_06-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-B04_06-mapper.xml new file mode 100644 index 0000000..8d5d021 --- /dev/null +++ b/src/main/resources/sql/mapper/lntris/lntris-B04_06-mapper.xml @@ -0,0 +1,590 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B04_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , BGNG_ECGD_YMD + , END_ECGD_YMD + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B04 + + + +/* 체납자독려정보_요청 등록(lntrisB04_06Mapper.insertB04Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B04_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B04 A, () B + WHERE B04_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B04 ( + B04_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , BGNG_ECGD_YMD + , END_ECGD_YMD + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b04.b04Id} + , #{b04.taskSeCd} + , #{b04.request.dmndSeCd} + , #{b04.request.sgbCd} + , #{b04.request.pyrSeCd} + , #{b04.request.pyrNo} + , #{b04.request.dptCd} + , #{b04.request.spacBizCd} + , #{b04.request.fyr} + , #{b04.request.actSeCd} + , #{b04.request.rprsTxmCd} + , #{b04.request.lvyNo} + , #{b04.request.itmSn} + , #{b04.request.bgngEcgdYmd} + , #{b04.request.endEcgdYmd} + , #{b04.response.linkRstCd} + , #{b04.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 체납자독려정보_요청 연계상태 수정(lntrisB04_06Mapper.updateB04ReqStatus) */ +UPDATE TB_NIS_SPCL_B04 A + , ( + SELECT #{b04.b04Id} B04_ID, #{b04.response.linkRstCd} LINK_RST_CD, #{b04.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B04_ID = B.B04_ID + + + + + + + + + + + + + + + + + + + + + + +SELECT B04_ID + , B04_SN + , SGB_CD + , LVY_KEY + , SN + , DPT_NM + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , PYR_NM + , PYR_NO + , PYR_MNG_NO + , ECGD_YMD + , PAY_PRM_YMD + , ECGD_SE_NM + , ECGD_BD + , CRTOR_ID + , MDFR_ID + FROM TB_NIS_SPCL_B04RV + + + +/* 체납자독려정보_응답 등록(lntrisB04_06Mapper.insertB04Resps) */ +INSERT INTO TB_NIS_SPCL_B04RV ( + B04_ID + , B04_SN + , SGB_CD + , LVY_KEY + , SN + , DPT_NM + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , PYR_NM + , PYR_NO + , PYR_MNG_NO + , ECGD_YMD + , PAY_PRM_YMD + , ECGD_SE_NM + , ECGD_BD + , CRTOR_ID + , MDFR_ID + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b04Id} + , #{resp.b04Sn} + , #{resp.sgbCd} + , #{resp.lvyKey} + , #{resp.sn} + , #{resp.dptNm} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.pyrNm} + , #{resp.pyrNo} + , #{resp.pyrMngNo} + , #{resp.ecgdYmd} + , #{resp.payPrmYmd} + , #{resp.ecgdSeNm} + , #{resp.ecgdBd} + , #{resp.crtorId} + , #{resp.mdfrId} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + + +SELECT B05_ID + , TASK_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B05 + + + +/* 압류정보_요청 등록(lntrisB04_06Mapper.insertB05Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B05_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B05 A, () B + WHERE B05_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B05 ( + B05_ID + , TASK_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b05.b05Id} + , #{b05.taskSeCd} + , #{b05.request.sgbCd} + , #{b05.request.pyrSeCd} + , #{b05.request.pyrNo} + , #{b05.response.linkRstCd} + , #{b05.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 압류정보_요청 연계상태 수정(lntrisB04_06Mapper.updateB05ReqStatus) */ +UPDATE TB_NIS_SPCL_B05 A + , ( + SELECT #{b05.b05Id} B05_ID, #{b05.response.linkRstCd} LINK_RST_CD, #{b05.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B05_ID = B.B05_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B05_ID + , B05_SN + , SGB_CD + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , PYR_TELNO + , PYR_MBL_TELNO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , RPRS_TXM_NM + , SZR_THG_SE_NM + , SZR_THG_NM + , SZR_YMD + , SZR_SE_NM + , SZR_RMV_YMD + , SZR_RMV_RSN_NM + , GNSH_SE_CD + , ARR_PCT_AMT + , ARR_ADTN_AMT + , RGSOF_CD + , CURT_CD + , CURT_NM + , SZR_KEY + , DPT_NM + , CAR_SZR_MNG_NO + , GL_MNG_NO + , GL_LOTNO_ROAD_ADDR_SE_CD + FROM TB_NIS_SPCL_B05RV + + + +/* 압류정보_응답 등록(lntrisB04_06Mapper.insertB05Resps) */ +INSERT INTO TB_NIS_SPCL_B05RV ( + B05_ID + , B05_SN + , SGB_CD + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , PYR_TELNO + , PYR_MBL_TELNO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , RPRS_TXM_NM + , SZR_THG_SE_NM + , SZR_THG_NM + , SZR_YMD + , SZR_SE_NM + , SZR_RMV_YMD + , SZR_RMV_RSN_NM + , GNSH_SE_CD + , ARR_PCT_AMT + , ARR_ADTN_AMT + , RGSOF_CD + , CURT_CD + , CURT_NM + , SZR_KEY + , DPT_NM + , CAR_SZR_MNG_NO + , GL_MNG_NO + , GL_LOTNO_ROAD_ADDR_SE_CD + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b05Id} + , #{resp.b05Sn} + , #{resp.sgbCd} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrZip} + , #{resp.pyrAddr} + , #{resp.pyrTelno} + , #{resp.pyrMblTelno} + , #{resp.dptCd} + , #{resp.spacBizCd} + , #{resp.fyr} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.lvyNo} + , #{resp.itmSn} + , #{resp.rprsTxmNm} + , #{resp.szrThgSeNm} + , #{resp.szrThgNm} + , #{resp.szrYmd} + , #{resp.szrSeNm} + , #{resp.szrRmvYmd} + , #{resp.szrRmvRsnNm} + , #{resp.gnshSeCd} + , #{resp.arrPctAmt} + , #{resp.arrAdtnAmt} + , #{resp.rgsofCd} + , #{resp.curtCd} + , #{resp.curtNm} + , #{resp.szrKey} + , #{resp.dptNm} + , #{resp.carSzrMngNo} + , #{resp.glMngNo} + , #{resp.glLotnoRoadAddrSeCd} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + + +SELECT B06_ID + , TASK_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B06 + + + +/* 압류시점 체납정보_요청 등록(lntrisB04_06Mapper.insertB06Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B06_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B06 A, () B + WHERE B06_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B06 ( + B06_ID + , TASK_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b06.b06Id} + , #{b06.taskSeCd} + , #{b06.request.sgbCd} + , #{b06.request.pyrSeCd} + , #{b06.request.pyrNo} + , #{b06.response.linkRstCd} + , #{b06.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 압류시점 체납정보_요청 연계상태 수정(lntrisB04_06Mapper.updateB06ReqStatus) */ +UPDATE TB_NIS_SPCL_B06 A + , ( + SELECT #{b06.b06Id} B06_ID, #{b06.response.linkRstCd} LINK_RST_CD, #{b06.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B06_ID = B.B06_ID + + + + + + + + + + + + + + + + + + +SELECT B06_ID + , B06_SN + , SGB_CD + , PYR_NO + , PYR_NM + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , ARR_PCT_AMT + , ARR_ADTN_AMT + FROM TB_NIS_SPCL_B06RV + + + +/* 압류시점 체납정보_응답 등록(lntrisB04_06Mapper.insertB06Resps) */ +INSERT INTO TB_NIS_SPCL_B06RV ( + B06_ID + , B06_SN + , SGB_CD + , PYR_NO + , PYR_NM + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , ARR_PCT_AMT + , ARR_ADTN_AMT + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b06Id} + , #{resp.b06Sn} + , #{resp.sgbCd} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.dptCd} + , #{resp.spacBizCd} + , #{resp.fyr} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.lvyNo} + , #{resp.itmSn} + , #{resp.arrPctAmt} + , #{resp.arrAdtnAmt} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lntris/lntris-B07_09-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-B07_09-mapper.xml new file mode 100644 index 0000000..9843ecc --- /dev/null +++ b/src/main/resources/sql/mapper/lntris/lntris-B07_09-mapper.xml @@ -0,0 +1,608 @@ + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B07_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B07 + + + +/* 과오납 상세정보 요청 등록(lntrisB07_09Mapper.insertB07Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B07_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B07 A, () B + WHERE B07_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B07 ( + B07_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b07.b07Id} + , #{b07.taskSeCd} + , #{b07.request.dmndSeCd} + , #{b07.request.sgbCd} + , #{b07.request.pyrSeCd} + , #{b07.request.pyrNo} + , #{b07.request.dptCd} + , #{b07.request.spacBizCd} + , #{b07.request.fyr} + , #{b07.request.actSeCd} + , #{b07.request.rprsTxmCd} + , #{b07.request.lvyNo} + , #{b07.request.itmSn} + , #{b07.response.linkRstCd} + , #{b07.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 과오납 상세정보 요청 연계상태 수정(lntrisB07_09Mapper.updateB07ReqStatus) */ +UPDATE TB_NIS_SPCL_B07 A + , ( + SELECT #{b07.b07Id} B07_ID, #{b07.response.linkRstCd} LINK_RST_CD, #{b07.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B07_ID = B.B07_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B07_ID + , B07_SN + , SGB_CD + , DPT_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LVY_KEY + , LVY_YMD + , DPT_NM + , RPRS_TXM_NM + , FRST_PCT_AMT + , LAST_PCT_AMT + , GVBK_AMT + , OVPNT_YMD + , GVBK_PRCS_YMD + , GL_NM + , PYR_NO + , PYR_NM + , PYR_MBL_CNPC_NO + , ACTNO + , GVBK_BANK_NM + , GVBK_YN + , GVBK_RSN_CD + , GVBK_RSN_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_MNG_NO + FROM TB_NIS_SPCL_B07RV + + + +/* 과오납 상세정보 응답 등록(lntrisB07_09Mapper.insertB07Resps) */ +INSERT INTO TB_NIS_SPCL_B07RV ( + B07_ID + , B07_SN + , SGB_CD + , DPT_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LVY_KEY + , LVY_YMD + , DPT_NM + , RPRS_TXM_NM + , FRST_PCT_AMT + , LAST_PCT_AMT + , GVBK_AMT + , OVPNT_YMD + , GVBK_PRCS_YMD + , GL_NM + , PYR_NO + , PYR_NM + , PYR_MBL_CNPC_NO + , ACTNO + , GVBK_BANK_NM + , GVBK_YN + , GVBK_RSN_CD + , GVBK_RSN_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_MNG_NO + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b07Id} + , #{resp.b07Sn} + , #{resp.sgbCd} + , #{resp.dptCd} + , #{resp.fyr} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.lvyNo} + , #{resp.itmSn} + , #{resp.lvyKey} + , #{resp.lvyYmd} + , #{resp.dptNm} + , #{resp.rprsTxmNm} + , #{resp.frstPctAmt} + , #{resp.lastPctAmt} + , #{resp.gvbkAmt} + , #{resp.ovpntYmd} + , #{resp.gvbkPrcsYmd} + , #{resp.glNm} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrMblCnpcNo} + , #{resp.actno} + , #{resp.gvbkBankNm} + , #{resp.gvbkYn} + , #{resp.gvbkRsnCd} + , #{resp.gvbkRsnNm} + , #{resp.glLotnoRoadAddrSeCd} + , #{resp.glMngNo} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + + +SELECT B08_ID + , TASK_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B08 + + + +/* 영치정보 요청 등록(lntrisB07_09Mapper.insertB08Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B08_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B08 A, () B + WHERE B08_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B08 ( + B08_ID + , TASK_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b08.b08Id} + , #{b08.taskSeCd} + , #{b08.request.sgbCd} + , #{b08.request.pyrSeCd} + , #{b08.request.pyrNo} + , #{b08.response.linkRstCd} + , #{b08.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 영치정보 요청 연계상태 수정(lntrisB07_09Mapper.updateB08ReqStatus) */ +UPDATE TB_NIS_SPCL_B08 A + , ( + SELECT #{b08.b08Id} B08_ID, #{b08.response.linkRstCd} LINK_RST_CD, #{b08.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B08_ID = B.B08_ID + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B08_ID + , B08_SN + , SGB_CD + , CDY_DATA_REG_YMD + , CDY_ACB_KEY + , CDY_VHRNO + , PYR_NO + , PYR_NM + , CDY_STT_CD + , CDY_STT + , CDY_YMD + , AVNC_AVTSMT_YMD + , CDY_PVNT_PID_YMD + , CDY_GVBK_YMD + , CDY_GVBK_RSN_CD + , CDY_GVBK_RSN + , CDY_DT_RMV_BGNG_YMD + , CDY_DT_RMV_END_YMD + , DT_RMV_RSN_NM + , CDY_ADDR + , RM_CN + FROM TB_NIS_SPCL_B08RV + + + +/* 영치정보 응답 등록(lntrisB07_09Mapper.insertB08Resps) */ +INSERT INTO TB_NIS_SPCL_B08RV ( + B08_ID + , B08_SN + , SGB_CD + , CDY_DATA_REG_YMD + , CDY_ACB_KEY + , CDY_VHRNO + , PYR_NO + , PYR_NM + , CDY_STT_CD + , CDY_STT + , CDY_YMD + , AVNC_AVTSMT_YMD + , CDY_PVNT_PID_YMD + , CDY_GVBK_YMD + , CDY_GVBK_RSN_CD + , CDY_GVBK_RSN + , CDY_DT_RMV_BGNG_YMD + , CDY_DT_RMV_END_YMD + , DT_RMV_RSN_NM + , CDY_ADDR + , RM_CN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b08Id} + , #{resp.b08Sn} + , #{resp.sgbCd} + , #{resp.cdyDataRegYmd} + , #{resp.cdyAcbKey} + , #{resp.cdyVhrno} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.cdySttCd} + , #{resp.cdyStt} + , #{resp.cdyYmd} + , #{resp.avncAvtsmtYmd} + , #{resp.cdyPvntPidYmd} + , #{resp.cdyGvbkYmd} + , #{resp.cdyGvbkRsnCd} + , #{resp.cdyGvbkRsn} + , #{resp.cdyDtRmvBgngYmd} + , #{resp.cdyDtRmvEndYmd} + , #{resp.dtRmvRsnNm} + , #{resp.cdyAddr} + , #{resp.rmCn} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + + + + + + + + + + +SELECT B09_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B09 + + + +/* 고지발송정보 요청 등록(lntrisB07_09Mapper.insertB09Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B09_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B09 A, () B + WHERE B09_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B09 ( + B09_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b09.b09Id} + , #{b09.taskSeCd} + , #{b09.request.dmndSeCd} + , #{b09.request.sgbCd} + , #{b09.request.pyrSeCd} + , #{b09.request.pyrNo} + , #{b09.request.dptCd} + , #{b09.request.spacBizCd} + , #{b09.request.fyr} + , #{b09.request.actSeCd} + , #{b09.request.rprsTxmCd} + , #{b09.request.lvyNo} + , #{b09.request.itmSn} + , #{b09.response.linkRstCd} + , #{b09.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 고지발송정보 요청 연계상태 수정(lntrisB07_09Mapper.updateB09ReqStatus) */ +UPDATE TB_NIS_SPCL_B09 A + , ( + SELECT #{b09.b09Id} B09_ID, #{b09.response.linkRstCd} LINK_RST_CD, #{b09.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B09_ID = B.B09_ID + + + + + + + + + + + + + + + + + + + +SELECT B09_ID + , B09_SN + , SGB_CD + , LVY_KEY + , PBLCN_ODR + , SNDNG_YMD + , SNDNG_ADDR + , SNDNG_PYR_NM + , SNDNG_PYR_REG_NO + , SNDNG_PYR_SE_CD + , NHT_OTPT_SE_CD + , LAST_PCT_AMT + , LAST_PID_YMD + , GL_MNG_NO + , GL_LOTNO_ROAD_ADDR_SE_CD + FROM TB_NIS_SPCL_B09RV + + + +/* 고지발송정보 응답 등록(lntrisB07_09Mapper.insertB09Resps) */ +INSERT INTO TB_NIS_SPCL_B09RV ( + B09_ID + , B09_SN + , SGB_CD + , LVY_KEY + , PBLCN_ODR + , SNDNG_YMD + , SNDNG_ADDR + , SNDNG_PYR_NM + , SNDNG_PYR_REG_NO + , SNDNG_PYR_SE_CD + , NHT_OTPT_SE_CD + , LAST_PCT_AMT + , LAST_PID_YMD + , GL_MNG_NO + , GL_LOTNO_ROAD_ADDR_SE_CD + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b09Id} + , #{resp.b09Sn} + , #{resp.sgbCd} + , #{resp.lvyKey} + , #{resp.pblcnOdr} + , #{resp.sndngYmd} + , #{resp.sndngAddr} + , #{resp.sndngPyrNm} + , #{resp.sndngPyrRegNo} + , #{resp.sndngPyrSeCd} + , #{resp.nhtOtptSeCd} + , #{resp.lastPctAmt} + , #{resp.lastPidYmd} + , #{resp.glMngNo} + , #{resp.glLotnoRoadAddrSeCd} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lntris/lntris-B10_12-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-B10_12-mapper.xml new file mode 100644 index 0000000..7666d58 --- /dev/null +++ b/src/main/resources/sql/mapper/lntris/lntris-B10_12-mapper.xml @@ -0,0 +1,1006 @@ + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B10_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B10 + + + +/* 우편발송결과정보 요청 등록(lntrisB10_12Mapper.insertB10Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B10_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B10 A, () B + WHERE B10_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B10 ( + B10_ID + , TASK_SE_CD + , DMND_SE_CD + , SGB_CD + , PYR_SE_CD + , PYR_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b10.b10Id} + , #{b10.taskSeCd} + , #{b10.request.dmndSeCd} + , #{b10.request.sgbCd} + , #{b10.request.pyrSeCd} + , #{b10.request.pyrNo} + , #{b10.request.dptCd} + , #{b10.request.spacBizCd} + , #{b10.request.fyr} + , #{b10.request.actSeCd} + , #{b10.request.rprsTxmCd} + , #{b10.request.lvyNo} + , #{b10.request.itmSn} + , #{b10.response.linkRstCd} + , #{b10.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 우편발송결과정보 요청 연계상태 수정(lntrisB10_12Mapper.updateB10ReqStatus) */ +UPDATE TB_NIS_SPCL_B10 A + , ( + SELECT #{b10.b10Id} B10_ID, #{b10.response.linkRstCd} LINK_RST_CD, #{b10.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B10_ID = B.B10_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B10_ID + , B10_SN + , SGB_CD + , PYR_NO + , PYR_NM + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , ADDR + , SRVE_SE_CD + , SRVE_SE_NM + , PSTOFC_INST_CD + , PSTOFC_INST_NM + , RG_NO + , ADSE_NM + , RCPT_YMD + , SNDNG_DPT_NM + , SNDNG_PIC_NM + , RPTR_NM + , SRVE_YMD + , SNDNG_RST_CD + , SNDNG_RST_NM + , SNDBK_YMD + , SNDBK_RSN_CD + , SNDBK_RSN_NM + , SNDBK_RSN_DTL_CN + , SNDNG_RST_RCPTN_YMD + FROM TB_NIS_SPCL_B10RV + + + +/* 우편발송결과정보 응답 등록(lntrisB10_12Mapper.insertB10Resps) */ +INSERT INTO TB_NIS_SPCL_B10RV ( + B10_ID + , B10_SN + , SGB_CD + , PYR_NO + , PYR_NM + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , LVY_NO + , ITM_SN + , ADDR + , SRVE_SE_CD + , SRVE_SE_NM + , PSTOFC_INST_CD + , PSTOFC_INST_NM + , RG_NO + , ADSE_NM + , RCPT_YMD + , SNDNG_DPT_NM + , SNDNG_PIC_NM + , RPTR_NM + , SRVE_YMD + , SNDNG_RST_CD + , SNDNG_RST_NM + , SNDBK_YMD + , SNDBK_RSN_CD + , SNDBK_RSN_NM + , SNDBK_RSN_DTL_CN + , SNDNG_RST_RCPTN_YMD + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b10Id} + , #{resp.b10Sn} + , #{resp.sgbCd} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.dptCd} + , #{resp.spacBizCd} + , #{resp.fyr} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.lvyNo} + , #{resp.itmSn} + , #{resp.addr} + , #{resp.srveSeCd} + , #{resp.srveSeNm} + , #{resp.pstofcInstCd} + , #{resp.pstofcInstNm} + , #{resp.rgNo} + , #{resp.adseNm} + , #{resp.rcptYmd} + , #{resp.sndngDptNm} + , #{resp.sndngPicNm} + , #{resp.rptrNm} + , #{resp.srveYmd} + , #{resp.sndngRstCd} + , #{resp.sndngRstNm} + , #{resp.sndbkYmd} + , #{resp.sndbkRsnCd} + , #{resp.sndbkRsnNm} + , #{resp.sndbkRsnDtlCn} + , #{resp.sndngRstRcptnYmd} + , #{linkRstCd} + , #{linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + + + + +SELECT B11_ID + , TASK_SE_CD + , SGB_CD + , PYR_NO + , PYR_NM + , REG_YMD + , FIN_SCRG_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B11 + + + +/* 과태료대장 목록 요청 등록(lntrisB10_12Mapper.insertB11Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B11_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B11 A, () B + WHERE B11_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B11 ( + B11_ID + , TASK_SE_CD + , SGB_CD + , PYR_NO + , PYR_NM + , REG_YMD + , FIN_SCRG_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b11.b11Id} + , #{b11.taskSeCd} + , #{b11.request.sgbCd} + , #{b11.request.pyrNo} + , #{b11.request.pyrNm} + , #{b11.request.regYmd} + , #{b11.request.finScrgAcbKey} + , #{b11.response.linkRstCd} + , #{b11.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 과태료대장 목록 요청 연계상태 수정(lntrisB10_12Mapper.updateB11ReqStatus) */ +UPDATE TB_NIS_SPCL_B11 A + , ( + SELECT #{b11.b11Id} B11_ID, #{b11.response.linkRstCd} LINK_RST_CD, #{b11.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B11_ID = B.B11_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B11_ID + , B11_SN + , SGB_CD + , FIN_SCRG_ACB_KEY + , DPT_CD + , RCPT_YR + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , REG_YMD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , FCLT_SE_CD + , REG_SE_CD + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN_SCRG_AMT + , RDT_RSN_SE_CD + , AGVT_RSN_CD + , RDT_AGVT_RT + , FIN_SCRG_AMT + , BF_RDT_RT + , BF_RDT_AMT + , NHT_FRWAR_SE_CD + , END_YMD + FROM TB_NIS_SPCL_B11RV + + + +/* 과태료대장 목록 응답 등록(lntrisB10_12Mapper.insertB11Resps) */ +INSERT INTO TB_NIS_SPCL_B11RV ( + B11_ID + , B11_SN + , SGB_CD + , FIN_SCRG_ACB_KEY + , DPT_CD + , RCPT_YR + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , REG_YMD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , FCLT_SE_CD + , REG_SE_CD + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN_SCRG_AMT + , RDT_RSN_SE_CD + , AGVT_RSN_CD + , RDT_AGVT_RT + , FIN_SCRG_AMT + , BF_RDT_RT + , BF_RDT_AMT + , NHT_FRWAR_SE_CD + , END_YMD + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b11Id} + , #{resp.b11Sn} + , #{resp.sgbCd} + , #{resp.finScrgAcbKey} + , #{resp.dptCd} + , #{resp.rcptYr} + , #{resp.spacBizCd} + , #{resp.spacBizNm} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.operItemCd} + , #{resp.operItemNm} + , #{resp.regYmd} + , #{resp.pyrSeNm} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrZip} + , #{resp.pyrAddr} + , #{resp.vhrno} + , #{resp.mngItemCn1} + , #{resp.mngItemCn2} + , #{resp.mngItemCn3} + , #{resp.mngItemCn4} + , #{resp.mngItemCn5} + , #{resp.mngItemCn6} + , #{resp.fcltSeCd} + , #{resp.regSeCd} + , #{resp.bfAvtsmtYmd} + , #{resp.opnSbmsnTermBgngYmd} + , #{resp.opnSbmsnTermEndYmd} + , #{resp.frstFinScrgAmt} + , #{resp.rdtRsnSeCd} + , #{resp.agvtRsnCd} + , #{resp.rdtAgvtRt} + , #{resp.finScrgAmt} + , #{resp.bfRdtRt} + , #{resp.bfRdtAmt} + , #{resp.nhtFrwarSeCd} + , #{resp.endYmd} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + +SELECT B12_ID + , TASK_SE_CD + , SGB_CD + , FIN_SCRG_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B12 + + + +/* 과태료대장 상세 요청 등록(lntrisB10_12Mapper.insertB12Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B12_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B12 A, () B + WHERE B12_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B12 ( + B12_ID + , TASK_SE_CD + , SGB_CD + , FIN_SCRG_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b12.b12Id} + , #{b12.taskSeCd} + , #{b12.request.sgbCd} + , #{b12.request.finScrgAcbKey} + , #{b12.response.linkRstCd} + , #{b12.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 과태료대장 상세 요청 연계상태 수정(lntrisB10_12Mapper.updateB12ReqStatus) */ +UPDATE TB_NIS_SPCL_B12 A + , ( + SELECT #{b12.b12Id} B12_ID, #{b12.response.linkRstCd} LINK_RST_CD, #{b12.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B12_ID = B.B12_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B12_ID + , B12_SN + , SGB_CD + , FIN_SCRG_ACB_KEY + , DPT_CD + , DPT_NM + , RCPT_YR + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , REG_YMD + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , FCLT_SE_CD + , FCLT_SE_NM + , REG_SE_CD + , REG_SE_NM + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN_SCRG_AMT + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , AGVT_RSN_CD + , AGVT_RSN_NM + , RDT_AGVT_RT + , FIN_SCRG_AMT + , BF_RDT_RT + , BF_RDT_AMT + , RM_CN + , RDT_RM_CN + , NHT_FRWAR_SE_CD + , NHT_FRWAR_SE_NM + , END_YMD + , END_RSN_CN + , RCVMT_SE_CD + , RCVMT_SE_NM + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + FROM TB_NIS_SPCL_B12RV + + + +/* 과태료대장 상세 응답 등록(lntrisB10_12Mapper.insertB12Resps) */ +INSERT INTO TB_NIS_SPCL_B12RV ( + B12_ID + , B12_SN + , SGB_CD + , FIN_SCRG_ACB_KEY + , DPT_CD + , DPT_NM + , RCPT_YR + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , REG_YMD + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , FCLT_SE_CD + , FCLT_SE_NM + , REG_SE_CD + , REG_SE_NM + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN_SCRG_AMT + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , AGVT_RSN_CD + , AGVT_RSN_NM + , RDT_AGVT_RT + , FIN_SCRG_AMT + , BF_RDT_RT + , BF_RDT_AMT + , RM_CN + , RDT_RM_CN + , NHT_FRWAR_SE_CD + , NHT_FRWAR_SE_NM + , END_YMD + , END_RSN_CN + , RCVMT_SE_CD + , RCVMT_SE_NM + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b12Id} + , #{resp.b12Sn} + , #{resp.sgbCd} + , #{resp.finScrgAcbKey} + , #{resp.dptCd} + , #{resp.dptNm} + , #{resp.rcptYr} + , #{resp.spacBizCd} + , #{resp.spacBizNm} + , #{resp.actSeCd} + , #{resp.actSeNm} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.operItemCd} + , #{resp.operItemNm} + , #{resp.regYmd} + , #{resp.pyrSeCd} + , #{resp.pyrSeNm} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrZip} + , #{resp.pyrAddr} + , #{resp.vhrno} + , #{resp.mngItemCn1} + , #{resp.mngItemCn2} + , #{resp.mngItemCn3} + , #{resp.mngItemCn4} + , #{resp.mngItemCn5} + , #{resp.mngItemCn6} + , #{resp.fcltSeCd} + , #{resp.fcltSeNm} + , #{resp.regSeCd} + , #{resp.regSeNm} + , #{resp.bfAvtsmtYmd} + , #{resp.opnSbmsnTermBgngYmd} + , #{resp.opnSbmsnTermEndYmd} + , #{resp.frstFinScrgAmt} + , #{resp.rdtRsnSeCd} + , #{resp.rdtRsnSeNm} + , #{resp.agvtRsnCd} + , #{resp.agvtRsnNm} + , #{resp.rdtAgvtRt} + , #{resp.finScrgAmt} + , #{resp.bfRdtRt} + , #{resp.bfRdtAmt} + , #{resp.rmCn} + , #{resp.rdtRmCn} + , #{resp.nhtFrwarSeCd} + , #{resp.nhtFrwarSeNm} + , #{resp.endYmd} + , #{resp.endRsnCn} + , #{resp.rcvmtSeCd} + , #{resp.rcvmtSeNm} + , #{resp.epayNo} + , #{resp.vtlacBankNm1} + , #{resp.vrActno1} + , #{resp.vtlacBankNm2} + , #{resp.vrActno2} + , #{resp.vtlacBankNm3} + , #{resp.vrActno3} + , #{resp.vtlacBankNm4} + , #{resp.vrActno4} + , #{resp.vtlacBankNm5} + , #{resp.vrActno5} + , #{resp.vtlacBankNm6} + , #{resp.vrActno6} + , #{resp.vtlacBankNm7} + , #{resp.vrActno7} + , #{resp.vtlacBankNm8} + , #{resp.vrActno8} + , #{resp.vtlacBankNm9} + , #{resp.vrActno9} + , #{resp.vtlacBankNm10} + , #{resp.vrActno10} + , #{resp.vtlacBankNm11} + , #{resp.vrActno11} + , #{resp.vtlacBankNm12} + , #{resp.vrActno12} + , #{resp.vtlacBankNm13} + , #{resp.vrActno13} + , #{resp.vtlacBankNm14} + , #{resp.vrActno14} + , #{resp.vtlacBankNm15} + , #{resp.vrActno15} + , #{resp.vtlacBankNm16} + , #{resp.vrActno16} + , #{resp.vtlacBankNm17} + , #{resp.vrActno17} + , #{resp.vtlacBankNm18} + , #{resp.vrActno18} + , #{resp.vtlacBankNm19} + , #{resp.vrActno19} + , #{resp.vtlacBankNm20} + , #{resp.vrActno20} + , #{resp.rsveItem1} + , #{resp.rsveItem2} + , #{resp.rsveItem3} + , #{resp.rsveItem4} + , #{resp.rsveItem5} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lntris/lntris-B13_16-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-B13_16-mapper.xml new file mode 100644 index 0000000..20f29e5 --- /dev/null +++ b/src/main/resources/sql/mapper/lntris/lntris-B13_16-mapper.xml @@ -0,0 +1,1524 @@ + + + + + + + + + + + + + + + + + +SELECT B13_ID + , TASK_SE_CD + , SGB_CD + , VHRNO + , RGTN_YMD + , LVY_RTRCN_YMD + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B13 + + + +/* 주정차위반 과태료 대장 목록 요청 등록(lntrisB13_16Mapper.insertB13Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B13_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B13 A, () B + WHERE B13_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B13 ( + B13_ID + , TASK_SE_CD + , SGB_CD + , VHRNO + , RGTN_YMD + , LVY_RTRCN_YMD + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b13.b13Id} + , #{b13.taskSeCd} + , #{b13.request.sgbCd} + , #{b13.request.vhrno} + , #{b13.request.rgtnYmd} + , #{b13.request.prkgVltAcbKey} + , #{b13.response.linkRstCd} + , #{b13.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 주정차위반 과태료 대장 목록 요청 연계상태 수정(lntrisB13_16Mapper.updateB13ReqStatus) */ +UPDATE TB_NIS_SPCL_B13 A + , ( + SELECT #{b13.b13Id} B13_ID, #{b13.response.linkRstCd} LINK_RST_CD, #{b13.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B13_ID = B.B13_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B13_ID + , B13_SN + , SGB_CD + , SGB_CD + , PRKG_VLT_ACB_KEY + , DPT_CD + , SPCL_FIS_BIZ_CD + , SPCL_FIS_BIZ_NM + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , VHCL_NM + , RGTN_SE_CD + , RGTN_YMD + , RGTN_HR + , HR_EXCESS_YN + , RGTN_PLC_NM + , PRKG_VLT_SE_CD + , ROAD_TRSPT_LAW_VINTP_ASM_CD + , RGTN_SPECL_ZONE_SE_CD + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN + , RDT_RSN_SE_CD + , RDT_RT + , FIN + , BF_RDT_RT + , BF_RDT_AMT + , NLVY_PRCS_SE_CD + , EMPT_RSN_SE_CD + , ERPP_SE_CD + , END_YMD + , NOW_STT_CD + FROM TB_NIS_SPCL_B13RV + + + +/* 주정차위반 과태료 대장 목록 응답 등록(lntrisB13_16Mapper.insertB13Resps) */ +INSERT INTO TB_NIS_SPCL_B13RV ( + B13_ID + , B13_SN + , SGB_CD + , PRKG_VLT_ACB_KEY + , DPT_CD + , SPCL_FIS_BIZ_CD + , SPCL_FIS_BIZ_NM + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , VHCL_NM + , RGTN_SE_CD + , RGTN_YMD + , RGTN_HR + , HR_EXCESS_YN + , RGTN_PLC_NM + , PRKG_VLT_SE_CD + , ROAD_TRSPT_LAW_VINTP_ASM_CD + , RGTN_SPECL_ZONE_SE_CD + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN + , RDT_RSN_SE_CD + , RDT_RT + , FIN + , BF_RDT_RT + , BF_RDT_AMT + , NLVY_PRCS_SE_CD + , EMPT_RSN_SE_CD + , ERPP_SE_CD + , END_YMD + , NOW_STT_CD + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b13Id} + , #{resp.b13Sn} + , #{resp.sgbCd} + , #{resp.prkgVltAcbKey} + , #{resp.dptCd} + , #{resp.spclFisBizCd} + , #{resp.spclFisBizNm} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.operItemCd} + , #{resp.operItemNm} + , #{resp.pyrSeNm} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrZip} + , #{resp.pyrAddr} + , #{resp.vhrno} + , #{resp.vhclNm} + , #{resp.rgtnSeCd} + , #{resp.rgtnYmd} + , #{resp.rgtnHr} + , #{resp.hrExcessYn} + , #{resp.rgtnPlcNm} + , #{resp.prkgVltSeCd} + , #{resp.roadTrsptLawVintpAsmCd} + , #{resp.rgtnSpeclZoneSeCd} + , #{resp.bfAvtsmtYmd} + , #{resp.opnSbmsnTermBgngYmd} + , #{resp.opnSbmsnTermEndYmd} + , #{resp.frstFin} + , #{resp.rdtRsnSeCd} + , #{resp.rdtRt} + , #{resp.fin} + , #{resp.bfRdtRt} + , #{resp.bfRdtAmt} + , #{resp.nlvyPrcsSeCd} + , #{resp.emptRsnSeCd} + , #{resp.erppSeCd} + , #{resp.endYmd} + , #{resp.nowSttCd} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + + +SELECT B14_ID + , TASK_SE_CD + , SGB_CD + , PRKG_VLT_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B14 + + + +/* 주정차위반 과태료 대장 상세 요청 등록(lntrisB13_16Mapper.insertB14Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B14_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B14 A, () B + WHERE B14_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B14 ( + B14_ID + , TASK_SE_CD + , SGB_CD + , PRKG_VLT_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b14.b14Id} + , #{b14.taskSeCd} + , #{b14.request.sgbCd} + , #{b14.request.prkgVltAcbKey} + , #{b14.response.linkRstCd} + , #{b14.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 주정차위반 과태료 대장 상세 요청 연계상태 수정(lntrisB13_16Mapper.updateB14ReqStatus) */ +UPDATE TB_NIS_SPCL_B14 A + , ( + SELECT #{b14.b14Id} B14_ID, #{b14.response.linkRstCd} LINK_RST_CD, #{b14.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B14_ID = B.B14_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B14_ID + , B14_SN + , SGB_CD + , SGB_NM + , PRKG_VLT_ACB_KEY + , DPT_CD + , DPT_NM + , SPCL_FIS_BIZ_CD + , SPCL_FIS_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , VHCL_NM + , RGTN_SE_CD + , RGTN_SE_NM + , RGTN_YMD + , RGTN_HR + , HR_EXCESS_YN + , RGTN_PLC_NM + , LAW_ATCL_CN + , PRKG_VLT_SE_CD + , PRKG_VLT_SE_NM + , PRKG_VLT_SE_ETC_RSN_CN + , ROAD_TRSPT_LAW_VINTP_ASM_CD + , ROAD_TRSPT_LAW_VINTP_ASM_NM + , GPS_CDN_XAXS + , GPS_CDN_YAXS + , RGTN_SPECL_ZONE_SE_CD + , RGTN_SPECL_ZONE_SE_NM + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , RDT_RT + , FIN + , BF_RDT_RT + , BF_RDT_AMT + , NLVY_PRCS_SE_CD + , NLVY_PRCS_SE_NM + , EMPT_RSN_SE_CD + , EMPT_RSN_SE_NM + , ERPP_SE_CD + , ERPP_SE_NM + , END_YMD + , END_RSN_CN + , RCVMT_SE_NM + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , NOW_STT_NM + FROM TB_NIS_SPCL_B14RV + + + +/* 주정차위반 과태료 대장 상세 응답 등록(lntrisB13_16Mapper.insertB14Resps) */ +INSERT INTO TB_NIS_SPCL_B14RV ( + B14_ID + , B14_SN + , SGB_CD + , SGB_NM + , PRKG_VLT_ACB_KEY + , DPT_CD + , DPT_NM + , SPCL_FIS_BIZ_CD + , SPCL_FIS_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , VHCL_NM + , RGTN_SE_CD + , RGTN_SE_NM + , RGTN_YMD + , RGTN_HR + , HR_EXCESS_YN + , RGTN_PLC_NM + , LAW_ATCL_CN + , PRKG_VLT_SE_CD + , PRKG_VLT_SE_NM + , PRKG_VLT_SE_ETC_RSN_CN + , ROAD_TRSPT_LAW_VINTP_ASM_CD + , ROAD_TRSPT_LAW_VINTP_ASM_NM + , GPS_CDN_XAXS + , GPS_CDN_YAXS + , RGTN_SPECL_ZONE_SE_CD + , RGTN_SPECL_ZONE_SE_NM + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , RDT_RT + , FIN + , BF_RDT_RT + , BF_RDT_AMT + , NLVY_PRCS_SE_CD + , NLVY_PRCS_SE_NM + , EMPT_RSN_SE_CD + , EMPT_RSN_SE_NM + , ERPP_SE_CD + , ERPP_SE_NM + , END_YMD + , END_RSN_CN + , RCVMT_SE_NM + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , NOW_STT_NM + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{resp.b14Id} + , #{resp.b14Sn} + , #{resp.sgbCd} + , #{resp.sgbNm} + , #{resp.prkgVltAcbKey} + , #{resp.dptCd} + , #{resp.dptNm} + , #{resp.spclFisBizCd} + , #{resp.spclFisBizNm} + , #{resp.actSeCd} + , #{resp.actSeNm} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.operItemCd} + , #{resp.operItemNm} + , #{resp.pyrSeNm} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrZip} + , #{resp.pyrAddr} + , #{resp.vhrno} + , #{resp.vhclNm} + , #{resp.rgtnSeCd} + , #{resp.rgtnSeNm} + , #{resp.rgtnYmd} + , #{resp.rgtnHr} + , #{resp.hrExcessYn} + , #{resp.rgtnPlcNm} + , #{resp.lawAtclCn} + , #{resp.prkgVltSeCd} + , #{resp.prkgVltSeNm} + , #{resp.prkgVltSeEtcRsnCn} + , #{resp.roadTrsptLawVintpAsmCd} + , #{resp.roadTrsptLawVintpAsmNm} + , #{resp.gpsCdnXaxs} + , #{resp.gpsCdnYaxs} + , #{resp.rgtnSpeclZoneSeCd} + , #{resp.rgtnSpeclZoneSeNm} + , #{resp.bfAvtsmtYmd} + , #{resp.opnSbmsnTermBgngYmd} + , #{resp.opnSbmsnTermEndYmd} + , #{resp.frstFin} + , #{resp.rdtRsnSeCd} + , #{resp.rdtRsnSeNm} + , #{resp.rdtRt} + , #{resp.fin} + , #{resp.bfRdtRt} + , #{resp.bfRdtAmt} + , #{resp.nlvyPrcsSeCd} + , #{resp.nlvyPrcsSeNm} + , #{resp.emptRsnSeCd} + , #{resp.emptRsnSeNm} + , #{resp.erppSeCd} + , #{resp.erppSeNm} + , #{resp.endYmd} + , #{resp.endRsnCn} + , #{resp.rcvmtSeNm} + , #{resp.epayNo} + , #{resp.vtlacBankNm1} + , #{resp.vrActno1} + , #{resp.vtlacBankNm2} + , #{resp.vrActno2} + , #{resp.vtlacBankNm3} + , #{resp.vrActno3} + , #{resp.vtlacBankNm4} + , #{resp.vrActno4} + , #{resp.vtlacBankNm5} + , #{resp.vrActno5} + , #{resp.vtlacBankNm6} + , #{resp.vrActno6} + , #{resp.vtlacBankNm7} + , #{resp.vrActno7} + , #{resp.vtlacBankNm8} + , #{resp.vrActno8} + , #{resp.vtlacBankNm9} + , #{resp.vrActno9} + , #{resp.vtlacBankNm10} + , #{resp.vrActno10} + , #{resp.vtlacBankNm11} + , #{resp.vrActno11} + , #{resp.vtlacBankNm12} + , #{resp.vrActno12} + , #{resp.vtlacBankNm13} + , #{resp.vrActno13} + , #{resp.vtlacBankNm14} + , #{resp.vrActno14} + , #{resp.vtlacBankNm15} + , #{resp.vrActno15} + , #{resp.vtlacBankNm16} + , #{resp.vrActno16} + , #{resp.vtlacBankNm17} + , #{resp.vrActno17} + , #{resp.vtlacBankNm18} + , #{resp.vrActno18} + , #{resp.vtlacBankNm19} + , #{resp.vrActno19} + , #{resp.vtlacBankNm20} + , #{resp.vrActno20} + , #{resp.rsveItem1} + , #{resp.rsveItem2} + , #{resp.rsveItem3} + , #{resp.rsveItem4} + , #{resp.rsveItem5} + , #{resp.nowSttNm} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + + + + + + + + + + + + +SELECT B15_ID + , TASK_SE_CD + , SGB_CD + , VHRNO + , RGTN_YMD + , PRTUS_CARTK_VLT_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_SPCL_B15 + + + +/* 전용차로위반 과태료 대장 목록 요청 등록(lntrisB13_16Mapper.insertB15Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B15_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B15 A, () B + WHERE B15_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B15 ( + B15_ID + , TASK_SE_CD + , SGB_CD + , VHRNO + , RGTN_YMD + , PRTUS_CARTK_VLT_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b15.b15Id} + , #{b15.taskSeCd} + , #{b15.request.sgbCd} + , #{b15.request.vhrno} + , #{b15.request.rgtnYmd} + , #{b15.request.prtusCartkVltAcbKey} + , #{b15.response.linkRstCd} + , #{b15.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 전용차로위반 과태료 대장 목록 요청 연계상태 수정(lntrisB13_16Mapper.updateB15ReqStatus) */ +UPDATE TB_NIS_SPCL_B15 A + , ( + SELECT #{b15.b15Id} B15_ID, #{b15.response.linkRstCd} LINK_RST_CD, #{b15.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B15_ID = B.B15_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B15_ID + , B15_SN + , SGB_CD + , PRTUS_CARTK_VLT_ACB_KEY + , DPT_CD + , SPCL_FIS_BIZ_CD + , SPCL_FIS_BIZ_NM + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , VHCL_NM + , RGTN_SE_CD + , RGTN_YMD + , RGTN_HR + , RGTN_PLC_NM + , PRTUS_CARTK_VLT_SE_CD + , ROAD_TRSPT_LAW_VINTP_ASM_CD + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN + , RDT_RSN_SE_CD + , RDT_RT + , FIN + , BF_RDT_RT + , BF_RDT_AMT + , NLVY_PRCS_SE_CD + , EMPT_RSN_SE_CD + , ERPP_SE_CD + , END_YMD + , NOW_STT_CD + FROM TB_NIS_SPCL_B15RV + + + +/* 전용차로위반 과태료 대장 목록 응답 등록(lntrisB13_16Mapper.insertB15Resps) */ +INSERT INTO TB_NIS_SPCL_B15RV ( + B15_ID + , B15_SN + , SGB_CD + , PRTUS_CARTK_VLT_ACB_KEY + , DPT_CD + , SPCL_FIS_BIZ_CD + , SPCL_FIS_BIZ_NM + , ACT_SE_CD + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , VHCL_NM + , RGTN_SE_CD + , RGTN_YMD + , RGTN_HR + , RGTN_PLC_NM + , PRTUS_CARTK_VLT_SE_CD + , ROAD_TRSPT_LAW_VINTP_ASM_CD + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN + , RDT_RSN_SE_CD + , RDT_RT + , FIN + , BF_RDT_RT + , BF_RDT_AMT + , NLVY_PRCS_SE_CD + , EMPT_RSN_SE_CD + , ERPP_SE_CD + , END_YMD + , NOW_STT_CD + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b15Id} + , #{resp.b15Sn} + , #{resp.sgbCd} + , #{resp.prtusCartkVltAcbKey} + , #{resp.dptCd} + , #{resp.spclFisBizCd} + , #{resp.spclFisBizNm} + , #{resp.actSeCd} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.operItemCd} + , #{resp.operItemNm} + , #{resp.pyrSeCd} + , #{resp.pyrSeNm} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrZip} + , #{resp.pyrAddr} + , #{resp.vhrno} + , #{resp.vhclNm} + , #{resp.rgtnSeCd} + , #{resp.rgtnYmd} + , #{resp.rgtnHr} + , #{resp.rgtnPlcNm} + , #{resp.prtusCartkVltSeCd} + , #{resp.roadTrsptLawVintpAsmCd} + , #{resp.bfAvtsmtYmd} + , #{resp.opnSbmsnTermBgngYmd} + , #{resp.opnSbmsnTermEndYmd} + , #{resp.frstFin} + , #{resp.rdtRsnSeCd} + , #{resp.rdtRt} + , #{resp.fin} + , #{resp.bfRdtRt} + , #{resp.bfRdtAmt} + , #{resp.nlvyPrcsSeCd} + , #{resp.emptRsnSeCd} + , #{resp.erppSeCd} + , #{resp.endYmd} + , #{resp.nowSttNm} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + + + + + + + + +SELECT B16_ID + , TASK_SE_CD + , SGB_CD + , PRTUS_CARTK_VLT_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + FROM TB_NIS_SPCL_B16 + + + +/* 전용차로위반 과태료 대장 상세 요청 등록(lntrisB13_16Mapper.insertB16Req) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B16_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_SPCL_B16 A, () B + WHERE B16_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_SPCL_B16 ( + B16_ID + , TASK_SE_CD + , SGB_CD + , PRTUS_CARTK_VLT_ACB_KEY + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{b16.b16Id} + , #{b16.taskSeCd} + , #{b16.request.sgbCd} + , #{b16.request.prtusCartkVltAcbKey} + , #{b16.response.linkRstCd} + , #{b16.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 전용차로위반 과태료 대장 상세 요청 연계상태 수정(lntrisB13_16Mapper.updateB16ReqStatus) */ +UPDATE TB_NIS_SPCL_B16 A + , ( + SELECT #{b16.b16Id} B16_ID, #{b16.response.linkRstCd} LINK_RST_CD, #{b16.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A.B16_ID = B.B16_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT B16_ID + , B16_SN + , SGB_CD + , SGB_NM + , PRTUS_CARTK_VLT_ACB_KEY + , DPT_CD + , DPT_NM + , SPCL_FIS_BIZ_CD + , SPCL_FIS_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , VHCL_NM + , RGTN_SE_CD + , RGTN_SE_NM + , RGTN_YMD + , RGTN_HR + , RGTN_PLC_NM + , LAW_ATCL_CN + , PRTUS_CARTK_VLT_SE_CD + , PRTUS_CARTK_VLT_SE_NM + , ROAD_TRSPT_LAW_VINTP_ASM_CD + , ROAD_TRSPT_LAW_VINTP_ASM_NM + , GPS_CDN_XAXS + , GPS_CDN_YAXS + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , RDT_RT + , FIN + , BF_RDT_RT + , BF_RDT_AMT + , NLVY_PRCS_SE_CD + , NLVY_PRCS_SE_NM + , EMPT_RSN_SE_CD + , EMPT_RSN_SE_NM + , ERPP_SE_CD + , ERPP_SE_NM + , END_YMD + , END_RSN_CN + , RCVMT_SE_NM + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , NOW_STT_NM + FROM TB_NIS_SPCL_B16RV + + + +/* 전용차로위반 과태료 대장 상세 응답 등록(lntrisB13_16Mapper.insertB16Resps) */ +INSERT INTO TB_NIS_SPCL_B16RV ( + B16_ID + , B16_SN + , SGB_CD + , SGB_NM + , PRTUS_CARTK_VLT_ACB_KEY + , DPT_CD + , DPT_NM + , SPCL_FIS_BIZ_CD + , SPCL_FIS_BIZ_NM + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , PYR_SE_CD + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_ZIP + , PYR_ADDR + , VHRNO + , VHCL_NM + , RGTN_SE_CD + , RGTN_SE_NM + , RGTN_YMD + , RGTN_HR + , RGTN_PLC_NM + , LAW_ATCL_CN + , PRTUS_CARTK_VLT_SE_CD + , PRTUS_CARTK_VLT_SE_NM + , ROAD_TRSPT_LAW_VINTP_ASM_CD + , ROAD_TRSPT_LAW_VINTP_ASM_NM + , GPS_CDN_XAXS + , GPS_CDN_YAXS + , BF_AVTSMT_YMD + , OPN_SBMSN_TERM_BGNG_YMD + , OPN_SBMSN_TERM_END_YMD + , FRST_FIN + , RDT_RSN_SE_CD + , RDT_RSN_SE_NM + , RDT_RT + , FIN + , BF_RDT_RT + , BF_RDT_AMT + , NLVY_PRCS_SE_CD + , NLVY_PRCS_SE_NM + , EMPT_RSN_SE_CD + , EMPT_RSN_SE_NM + , ERPP_SE_CD + , ERPP_SE_NM + , END_YMD + , END_RSN_CN + , RCVMT_SE_NM + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , NOW_STT_NM + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) +SELECT #{resp.b16Id} + , #{resp.b16Sn} + , #{resp.sgbCd} + , #{resp.sgbNm} + , #{resp.prtusCartkVltAcbKey} + , #{resp.dptCd} + , #{resp.dptNm} + , #{resp.spclFisBizCd} + , #{resp.spclFisBizNm} + , #{resp.actSeCd} + , #{resp.actSeNm} + , #{resp.rprsTxmCd} + , #{resp.rprsTxmNm} + , #{resp.operItemCd} + , #{resp.operItemNm} + , #{resp.pyrSeCd} + , #{resp.pyrSeNm} + , #{resp.pyrNo} + , #{resp.pyrNm} + , #{resp.pyrZip} + , #{resp.pyrAddr} + , #{resp.vhrno} + , #{resp.vhclNm} + , #{resp.rgtnSeCd} + , #{resp.rgtnSeNm} + , #{resp.rgtnYmd} + , #{resp.rgtnHr} + , #{resp.rgtnPlcNm} + , #{resp.lawAtclCn} + , #{resp.prtusCartkVltSeCd} + , #{resp.prtusCartkVltSeNm} + , #{resp.roadTrsptLawVintpAsmCd} + , #{resp.roadTrsptLawVintpAsmNm} + , #{resp.gpsCdnXaxs} + , #{resp.gpsCdnYaxs} + , #{resp.bfAvtsmtYmd} + , #{resp.opnSbmsnTermBgngYmd} + , #{resp.opnSbmsnTermEndYmd} + , #{resp.frstFin} + , #{resp.rdtRsnSeCd} + , #{resp.rdtRsnSeNm} + , #{resp.rdtRt} + , #{resp.fin} + , #{resp.bfRdtRt} + , #{resp.bfRdtAmt} + , #{resp.nlvyPrcsSeCd} + , #{resp.nlvyPrcsSeNm} + , #{resp.emptRsnSeCd} + , #{resp.emptRsnSeNm} + , #{resp.erppSeCd} + , #{resp.erppSeNm} + , #{resp.endYmd} + , #{resp.endRsnCn} + , #{resp.rcvmtSeNm} + , #{resp.epayNo} + , #{resp.vtlacBankNm1} + , #{resp.vrActno1} + , #{resp.vtlacBankNm2} + , #{resp.vrActno2} + , #{resp.vtlacBankNm3} + , #{resp.vrActno3} + , #{resp.vtlacBankNm4} + , #{resp.vrActno4} + , #{resp.vtlacBankNm5} + , #{resp.vrActno5} + , #{resp.vtlacBankNm6} + , #{resp.vrActno6} + , #{resp.vtlacBankNm7} + , #{resp.vrActno7} + , #{resp.vtlacBankNm8} + , #{resp.vrActno8} + , #{resp.vtlacBankNm9} + , #{resp.vrActno9} + , #{resp.vtlacBankNm10} + , #{resp.vrActno10} + , #{resp.vtlacBankNm11} + , #{resp.vrActno11} + , #{resp.vtlacBankNm12} + , #{resp.vrActno12} + , #{resp.vtlacBankNm13} + , #{resp.vrActno13} + , #{resp.vtlacBankNm14} + , #{resp.vrActno14} + , #{resp.vtlacBankNm15} + , #{resp.vrActno15} + , #{resp.vtlacBankNm16} + , #{resp.vrActno16} + , #{resp.vtlacBankNm17} + , #{resp.vrActno17} + , #{resp.vtlacBankNm18} + , #{resp.vrActno18} + , #{resp.vtlacBankNm19} + , #{resp.vrActno19} + , #{resp.vtlacBankNm20} + , #{resp.vrActno20} + , #{resp.rsveItem1} + , #{resp.rsveItem2} + , #{resp.rsveItem3} + , #{resp.rsveItem4} + , #{resp.rsveItem5} + , #{resp.nowSttNm} + , + , #{currentUser.id} + , + , #{currentUser.id} + + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lntris/lntris-D-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-D-mapper.xml new file mode 100644 index 0000000..37bc1fd --- /dev/null +++ b/src/main/resources/sql/mapper/lntris/lntris-D-mapper.xml @@ -0,0 +1,1640 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D01_ID + , TASK_SE_CD + , SGB_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , LVY_YMD + , FRST_PCT_AMT + , FRST_PID_YMD + , LVY_SE_CD + , UNTY_SE_CD + , NTNTAX_AMT + , PRVTX_AMT + , CURPRC_AMT + , VAT_AMT + , PYR_SE_CD + , PYR_NO + , PYR_NM + , RPRS_PYR_NO + , RPRS_PYR_NM + , CNPC + , CNPC_SE_CD + , PYR_EML_ADDR + , PYR_STT_CD + , LOTNO_ROAD_ADDR_SE_CD + , ZIP + , ROAD_NM_CD + , ADDR_UDGD_YN + , BMNO + , BSNO + , STDG_CD + , DONG_CD + , ADDR_MTN_YN + , MNO + , SNO + , SPCL_DG + , SPCL_HO + , SPCL_ADDR + , ROAD_NM_ADDR + , ROAD_NM_DADDR + , ROAD_NM_AL_ADDR + , LOTNO_ADDR + , LOTNO_DADDR + , LOTNO_AL_ADDR + , LVY_TRGT_SE_CD + , GL_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ROAD_NM_CD + , GL_ADDR_UDGD_YN + , GL_BMNO + , GL_BSNO + , GL_STDG_CD + , GL_DONG_CD + , GL_MTN_SE_CD + , GL_MNO + , GL_SNO + , GL_SPCL_ADDR + , GL_SPCL_DG + , GL_SPCL_HO + , GL_ROAD_NM_ADDR + , GL_ROAD_NM_DADDR + , GL_ROAD_NM_AL_ADDR + , GL_LOTNO_ADDR + , GL_LOTNO_DADDR + , GL_LOTNO_AL_ADDR + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , RM_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D01 + + + +/* 부과정보 등록(lntrisDMapper.insertD01) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D01_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D01 A, () B + WHERE D01_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D01 ( + D01_ID + , TASK_SE_CD + , SGB_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , LVY_YMD + , FRST_PCT_AMT + , FRST_PID_YMD + , LVY_SE_CD + , UNTY_SE_CD + , NTNTAX_AMT + , PRVTX_AMT + , CURPRC_AMT + , VAT_AMT + , PYR_SE_CD + , PYR_NO + , PYR_NM + , RPRS_PYR_NO + , RPRS_PYR_NM + , CNPC + , CNPC_SE_CD + , PYR_EML_ADDR + , PYR_STT_CD + , LOTNO_ROAD_ADDR_SE_CD + , ZIP + , ROAD_NM_CD + , ADDR_UDGD_YN + , BMNO + , BSNO + , STDG_CD + , DONG_CD + , ADDR_MTN_YN + , MNO + , SNO + , SPCL_DG + , SPCL_HO + , SPCL_ADDR + , ROAD_NM_ADDR + , ROAD_NM_DADDR + , ROAD_NM_AL_ADDR + , LOTNO_ADDR + , LOTNO_DADDR + , LOTNO_AL_ADDR + , LVY_TRGT_SE_CD + , GL_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ROAD_NM_CD + , GL_ADDR_UDGD_YN + , GL_BMNO + , GL_BSNO + , GL_STDG_CD + , GL_DONG_CD + , GL_MTN_SE_CD + , GL_MNO + , GL_SNO + , GL_SPCL_ADDR + , GL_SPCL_DG + , GL_SPCL_HO + , GL_ROAD_NM_ADDR + , GL_ROAD_NM_DADDR + , GL_ROAD_NM_AL_ADDR + , GL_LOTNO_ADDR + , GL_LOTNO_DADDR + , GL_LOTNO_AL_ADDR + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , RM_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d01.d01Id} + , #{d01.taskSeCd} + , #{d01.request.sgbCd} + , #{d01.request.linkTrgtCd} + , #{d01.request.linkMngKey} + , #{d01.request.dptCd} + , #{d01.request.spclFisBizCd} + , #{d01.request.fyr} + , #{d01.request.actSeCd} + , #{d01.request.rprsTxmCd} + , #{d01.request.operItemCd} + , #{d01.request.lvyYmd} + , #{d01.request.frstPctAmt} + , #{d01.request.frstPidYmd} + , #{d01.request.lvySeCd} + , #{d01.request.untySeCd} + , #{d01.request.ntntaxAmt} + , #{d01.request.prvtxAmt} + , #{d01.request.curprcAmt} + , #{d01.request.vatAmt} + , #{d01.request.pyrSeCd} + , #{d01.request.pyrNo} + , #{d01.request.pyrNm} + , #{d01.request.rprsPyrNo} + , #{d01.request.rprsPyrNm} + , #{d01.request.cnpc} + , #{d01.request.cnpcSeCd} + , #{d01.request.pyrEmlAddr} + , #{d01.request.pyrSttCd} + , #{d01.request.lotnoRoadAddrSeCd} + , #{d01.request.zip} + , #{d01.request.roadNmCd} + , #{d01.request.addrUdgdYn} + , #{d01.request.bmno} + , #{d01.request.bsno} + , #{d01.request.stdgCd} + , #{d01.request.dongCd} + , #{d01.request.addrMtnYn} + , #{d01.request.mno} + , #{d01.request.sno} + , #{d01.request.spclDg} + , #{d01.request.spclHo} + , #{d01.request.spclAddr} + , #{d01.request.roadNmAddr} + , #{d01.request.roadNmDaddr} + , #{d01.request.roadNmAlAddr} + , #{d01.request.lotnoAddr} + , #{d01.request.lotnoDaddr} + , #{d01.request.lotnoAlAddr} + , #{d01.request.lvyTrgtSeCd} + , #{d01.request.glNm} + , #{d01.request.glLotnoRoadAddrSeCd} + , #{d01.request.glZip} + , #{d01.request.glRoadNmCd} + , #{d01.request.glAddrUdgdYn} + , #{d01.request.glBmno} + , #{d01.request.glBsno} + , #{d01.request.glStdgCd} + , #{d01.request.glDongCd} + , #{d01.request.glMtnYn} + , #{d01.request.glMno} + , #{d01.request.glSno} + , #{d01.request.glSpclAddr} + , #{d01.request.glSpclDg} + , #{d01.request.glSpclHo} + , #{d01.request.glRoadNmAddr} + , #{d01.request.glRoadNmDaddr} + , #{d01.request.glRoadNmAlAddr} + , #{d01.request.glLotnoAddr} + , #{d01.request.glLotnoDaddr} + , #{d01.request.glLotnoAlAddr} + , #{d01.request.mngItemCn1} + , #{d01.request.mngItemCn2} + , #{d01.request.mngItemCn3} + , #{d01.request.mngItemCn4} + , #{d01.request.mngItemCn5} + , #{d01.request.mngItemCn6} + , #{d01.request.rmCn} + , #{d01.request.rsveItem1} + , #{d01.request.rsveItem2} + , #{d01.request.rsveItem3} + , #{d01.request.rsveItem4} + , #{d01.request.rsveItem5} + , #{d01.linkRstDt} + , #{d01.response.linkRstCd} + , #{d01.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 부과정보 연계상태 수정(lntrisDMapper.updateD01) */ +UPDATE TB_NIS_INDIV_D01 A + , ( + SELECT #{d01.d01Id} D01_ID, #{d01.response.resVo.linkMngKey} LINK_MNG_KEY, #{d01.response.resVo.linkRstCd} LINK_RST_CD, #{d01.response.resVo.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_DT = + , A.LINK_MNG_KEY = B.LINK_MNG_KEY + , A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + WHERE A.D01_ID = B.D01_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D02_ID + , SGB_CD + , TASK_SE_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , LVY_YMD + , FRST_PCT_AMT + , FRST_PID_YMD + , LVY_SE_CD + , UNTY_SE_CD + , NTNTAX_AMT + , PRVTX_AMT + , CURPRC_AMT + , VAT_AMT + , PYR_SE_CD + , PYR_NO + , PYR_NM + , RPRS_PYR_NO + , RPRS_PYR_NM + , CNPC + , CNPC_SE_CD + , PYR_EML_ADDR + , PYR_STT_CD + , LOTNO_ROAD_ADDR_SE_CD + , ZIP + , ROAD_NM_CD + , ADDR_UDGD_YN + , BMNO + , BSNO + , STDG_CD + , DONG_CD + , ADDR_MTN_YN + , MNO + , SNO + , SPCL_DG + , SPCL_HO + , SPCL_ADDR + , ROAD_NM_ADDR + , ROAD_NM_DADDR + , ROAD_NM_AL_ADDR + , LOTNO_ADDR + , LOTNO_DADDR + , LOTNO_AL_ADDR + , LVY_TRGT_SE_CD + , GL_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ROAD_NM_CD + , GL_ADDR_UDGD_YN + , GL_BMNO + , GL_BSNO + , GL_STDG_CD + , GL_DONG_CD + , GL_MTN_SE_CD + , GL_MNO + , GL_SNO + , GL_SPCL_ADDR + , GL_SPCL_DG + , GL_SPCL_HO + , GL_ROAD_NM_ADDR + , GL_ROAD_NM_DADDR + , GL_ROAD_NM_AL_ADDR + , GL_LOTNO_ADDR + , GL_LOTNO_DADDR + , GL_LOTNO_AL_ADDR + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , RM_CN + , RCVMT_PCT_AMT + , RCVMT_YMD + , ACT_YMD + , TSF_YMD + , BANK_CD + , RCVMT_TY_CD + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D02 + + + +/* 부과_수납정보 등록(lntrisDMapper.insertD02) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D02_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D02 A, () B + WHERE D02_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D02 ( + D02_ID + , TASK_SE_CD + , SGB_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , LVY_YMD + , FRST_PCT_AMT + , FRST_PID_YMD + , LVY_SE_CD + , UNTY_SE_CD + , NTNTAX_AMT + , PRVTX_AMT + , CURPRC_AMT + , VAT_AMT + , PYR_SE_CD + , PYR_NO + , PYR_NM + , RPRS_PYR_NO + , RPRS_PYR_NM + , CNPC + , CNPC_SE_CD + , PYR_EML_ADDR + , PYR_STT_CD + , LOTNO_ROAD_ADDR_SE_CD + , ZIP + , ROAD_NM_CD + , ADDR_UDGD_YN + , BMNO + , BSNO + , STDG_CD + , DONG_CD + , ADDR_MTN_YN + , MNO + , SNO + , SPCL_DG + , SPCL_HO + , SPCL_ADDR + , ROAD_NM_ADDR + , ROAD_NM_DADDR + , ROAD_NM_AL_ADDR + , LOTNO_ADDR + , LOTNO_DADDR + , LOTNO_AL_ADDR + , LVY_TRGT_SE_CD + , GL_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ROAD_NM_CD + , GL_ADDR_UDGD_YN + , GL_BMNO + , GL_BSNO + , GL_STDG_CD + , GL_DONG_CD + , GL_MTN_SE_CD + , GL_MNO + , GL_SNO + , GL_SPCL_ADDR + , GL_SPCL_DG + , GL_SPCL_HO + , GL_ROAD_NM_ADDR + , GL_ROAD_NM_DADDR + , GL_ROAD_NM_AL_ADDR + , GL_LOTNO_ADDR + , GL_LOTNO_DADDR + , GL_LOTNO_AL_ADDR + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , RM_CN + , RCVMT_PCT_AMT + , RCVMT_YMD + , ACT_YMD + , TSF_YMD + , BANK_CD + , RCVMT_TY_CD + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d02.d02Id} + , #{d02.taskSeCd} + , #{d02.request.sgbCd} + , #{d02.request.linkTrgtCd} + , #{d02.request.linkMngKey} + , #{d02.request.dptCd} + , #{d02.request.spacBizCd} + , #{d02.request.fyr} + , #{d02.request.actSeCd} + , #{d02.request.rprsTxmCd} + , #{d02.request.operItemCd} + , #{d02.request.lvyYmd} + , #{d02.request.frstPctAmt} + , #{d02.request.frstPidYmd} + , #{d02.request.lvySeCd} + , #{d02.request.untySeCd} + , #{d02.request.ntntaxAmt} + , #{d02.request.prvtxAmt} + , #{d02.request.curprcAmt} + , #{d02.request.vatAmt} + , #{d02.request.pyrSeCd} + , #{d02.request.pyrNo} + , #{d02.request.pyrNm} + , #{d02.request.rprsPyrNo} + , #{d02.request.rprsPyrNm} + , #{d02.request.cnpc} + , #{d02.request.cnpcSeCd} + , #{d02.request.pyrEmlAddr} + , #{d02.request.pyrSttCd} + , #{d02.request.lotnoRoadAddrSeCd} + , #{d02.request.zip} + , #{d02.request.roadNmCd} + , #{d02.request.addrUdgdYn} + , #{d02.request.bmno} + , #{d02.request.bsno} + , #{d02.request.stdgCd} + , #{d02.request.dongCd} + , #{d02.request.addrMtnYn} + , #{d02.request.mno} + , #{d02.request.sno} + , #{d02.request.spclDg} + , #{d02.request.spclHo} + , #{d02.request.spclAddr} + , #{d02.request.roadNmAddr} + , #{d02.request.roadNmDaddr} + , #{d02.request.roadNmAlAddr} + , #{d02.request.lotnoAddr} + , #{d02.request.lotnoDaddr} + , #{d02.request.lotnoAlAddr} + , #{d02.request.lvyTrgtSeCd} + , #{d02.request.glNm} + , #{d02.request.glLotnoRoadAddrSeCd} + , #{d02.request.glZip} + , #{d02.request.glRoadNmCd} + , #{d02.request.glAddrUdgdYn} + , #{d02.request.glBmno} + , #{d02.request.glBsno} + , #{d02.request.glStdgCd} + , #{d02.request.glDongCd} + , #{d02.request.glMtnSeCd} + , #{d02.request.glMno} + , #{d02.request.glSno} + , #{d02.request.glSpclAddr} + , #{d02.request.glSpclDg} + , #{d02.request.glSpclHo} + , #{d02.request.glRoadNmAddr} + , #{d02.request.glRoadNmDaddr} + , #{d02.request.glRoadNmAlAddr} + , #{d02.request.glLotnoAddr} + , #{d02.request.glLotnoDaddr} + , #{d02.request.glLotnoAlAddr} + , #{d02.request.mngItemCn1} + , #{d02.request.mngItemCn2} + , #{d02.request.mngItemCn3} + , #{d02.request.mngItemCn4} + , #{d02.request.mngItemCn5} + , #{d02.request.mngItemCn6} + , #{d02.request.rmCn} + , #{d02.request.rcvmtPctAmt} + , #{d02.request.rcvmtYmd} + , #{d02.request.actYmd} + , #{d02.request.tsfYmd} + , #{d02.request.bankCd} + , #{d02.request.rcvmtTyCd} + , #{d02.request.rsveItem1} + , #{d02.request.rsveItem2} + , #{d02.request.rsveItem3} + , #{d02.request.rsveItem4} + , #{d02.request.rsveItem5} + , #{d02.linkRstDt} + , #{d02.response.linkRstCd} + , #{d02.response.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 부과수납 정보 연계상태 수정(lntrisDMapper.updateD02Status) */ +UPDATE TB_NIS_INDIV_D02 A + , ( + SELECT #{d02.d02Id} D02_ID, #{d02.response.linkRstCd} LINK_RST_CD, #{d02.response.linkRstMsg} LINK_RST_MSG + ) B + SET A.LINK_RST_DT = + , A.LINK_RST_CD = B.LINK_RST_CD + , A.LINK_RST_MSG = B.LINK_RST_MSG + WHERE A.D02_ID = B.D02_ID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D03_ID + , SGB_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , LVY_NO + , ITM_NO + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RSLT_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D03 + + + +/* 부과결과정보 등록(lntrisDMapper.insertD03) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D03_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D03 A, () B + WHERE D03_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D03 ( + D03_ID + , SGB_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , SPAC_BIZ_CD + , FYR + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , LVY_NO + , ITM_NO + , EPAY_NO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RSLT_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d03.d03Id} + , #{req.sgbCd} + , #{req.linkMngKey} + , #{req.taxnNo} + , #{req.untyTaxnNo} + , #{req.dptCd} + , #{req.spclFisBizCd} + , #{req.fyr} + , #{req.actSeCd} + , #{req.rprsTxmCd} + , #{req.operItemCd} + , #{req.lvyNo} + , #{req.itmNo} + , #{req.epayNo} + , #{req.vtlacBankNm1} + , #{req.vrActno1} + , #{req.vtlacBankNm2} + , #{req.vrActno2} + , #{req.vtlacBankNm3} + , #{req.vrActno3} + , #{req.vtlacBankNm4} + , #{req.vrActno4} + , #{req.vtlacBankNm5} + , #{req.vrActno5} + , #{req.vtlacBankNm6} + , #{req.vrActno6} + , #{req.vtlacBankNm7} + , #{req.vrActno7} + , #{req.vtlacBankNm8} + , #{req.vrActno8} + , #{req.vtlacBankNm9} + , #{req.vrActno9} + , #{req.vtlacBankNm10} + , #{req.vrActno10} + , #{req.vtlacBankNm11} + , #{req.vrActno11} + , #{req.vtlacBankNm12} + , #{req.vrActno12} + , #{req.vtlacBankNm13} + , #{req.vrActno13} + , #{req.vtlacBankNm14} + , #{req.vrActno14} + , #{req.vtlacBankNm15} + , #{req.vrActno15} + , #{req.vtlacBankNm16} + , #{req.vrActno16} + , #{req.vtlacBankNm17} + , #{req.vrActno17} + , #{req.vtlacBankNm18} + , #{req.vrActno18} + , #{req.vtlacBankNm19} + , #{req.vrActno19} + , #{req.vtlacBankNm20} + , #{req.vrActno20} + , #{req.rsveItem1} + , #{req.rsveItem2} + , #{req.rsveItem3} + , #{req.rsveItem4} + , #{req.rsveItem5} + , #{d03.linkRsltDt} + , #{d03.response.resVo.linkRstCd} + , #{d03.response.resVo.linkRstMsg} + , #{d03.taskAplcnDt} + , '999' + , #{d03.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 과태료 대장 전일자 변동자료 업무적용 상태 수정(lntrisDMapper.updateD03Status) */ +UPDATE TB_NIS_INDIV_D03 + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D03_ID IN (#{d03Id}) + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D04_ID + , SGB_CD + , LINK_MNG_KEY + , TAXN_NO + , LVY_RTRCN_YMD + , DEL_RSN_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D04 + + + +/* 부과취소정보 등록(lntrisDMapper.insertD04) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D04_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D04 A, () B + WHERE D04_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D04 ( + D04_ID + , SGB_CD + , LINK_MNG_KEY + , TAXN_NO + , LVY_RTRCN_YMD + , DEL_RSN_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d04.d04Id} + , #{req.sgbCd} + , #{req.linkMngKey} + , #{req.taxnNo} + , #{req.lvyRtrcnYmd} + , #{req.delRsnCn} + , #{req.rsveItem1} + , #{req.rsveItem2} + , #{req.rsveItem3} + , #{req.rsveItem4} + , #{req.rsveItem5} + , #{d04.linkRsltDt} + , #{d04.response.resVo.linkRstCd} + , #{d04.response.resVo.linkRstMsg} + , #{d04.taskAplcnDt} + , '999' + , #{d04.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 부과취소정보 수정(lntrisDMapper.updateD04Status) */ +UPDATE TB_NIS_INDIV_D04 + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D04_ID IN (#{d04Id}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D05_ID + , SGB_CD + , SGB_NM + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , EPAY_NO + , RCVMT_NO + , RCVMT_SE_CD + , RCVMT_SE_NM + , RCVMT_YMD + , ACT_YMD + , TSF_YMD + , RCVMT_PCT_AMT + , RCVMT_ADTN_AMT + , RCVMT_INTR_AMT + , BANK_NM + , RCVMT_TY_CD + , RCVMT_TY + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D05 + + + +/* 수납정보 등록(lntrisDMapper.insertD05) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D05_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D05 A, () B + WHERE D05_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D05 ( + D05_ID + , SGB_CD + , SGB_NM + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , EPAY_NO + , RCVMT_NO + , RCVMT_SE_CD + , RCVMT_SE_NM + , RCVMT_YMD + , ACT_YMD + , TSF_YMD + , RCVMT_PCT_AMT + , RCVMT_ADTN_AMT + , RCVMT_INTR_AMT + , BANK_NM + , RCVMT_TY_CD + , RCVMT_TY + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d05.d05Id} + , #{req.sgbCd} + , #{req.sgbNm} + , #{req.linkMngKey} + , #{req.taxnNo} + , #{req.untyTaxnNo} + , #{req.dptCd} + , #{req.dptNm} + , #{req.spclFisBizCd} + , #{req.spclFisBizNm} + , #{req.fyr} + , #{req.actSeCd} + , #{req.actSeNm} + , #{req.rprsTxmCd} + , #{req.rprsTxmNm} + , #{req.operItemCd} + , #{req.operItemNm} + , #{req.lvyNo} + , #{req.itmNo} + , #{req.epayNo} + , #{req.rcvmtNo} + , #{req.rcvmtSeCd} + , #{req.rcvmtSeNm} + , #{req.rcvmtYmd} + , #{req.actYmd} + , #{req.tsfYmd} + , #{req.rcvmtPctAmt} + , #{req.rcvmtAdtnAmt} + , #{req.rcvmtIntrAmt} + , #{req.bankNm} + , #{req.rcvmtTyCd} + , #{req.rcvmtTy} + , #{req.rsveItem1} + , #{req.rsveItem2} + , #{req.rsveItem3} + , #{req.rsveItem4} + , #{req.rsveItem5} + , #{d05.linkRsltDt} + , #{d05.response.resVo.linkRstCd} + , #{d05.response.resVo.linkRstMsg} + , '999' + , #{d05.taskAplcnDt} + , #{d05.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 수납정보 상태 수정(lntrisDMapper.updateD05Status) */ +UPDATE TB_NIS_INDIV_D05 + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D05_ID IN (#{d05Id}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D06_ID + , SGB_CD + , SGB_NM + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , RDC_YMD + , RDC_PCT_AMT + , RDC_ADTN_AMT + , RDC_INTR_AMT + , RDC_AMT + , RDC_RSN_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D06 + + + +/* 감액정보 등록(lntrisDMapper.insertD06) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D06_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D06 A, () B + WHERE D06_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D06 ( + D06_ID + , SGB_CD + , SGB_NM + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , RDC_YMD + , RDC_PCT_AMT + , RDC_ADTN_AMT + , RDC_INTR_AMT + , RDC_AMT + , RDC_RSN_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d06.d06Id} + , #{req.sgbCd} + , #{req.sgbNm} + , #{req.linkMngKey} + , #{req.taxnNo} + , #{req.untyTaxnNo} + , #{req.dptCd} + , #{req.dptNm} + , #{req.spclFisBizCd} + , #{req.spclFisBizNm} + , #{req.fyr} + , #{req.actSeCd} + , #{req.actSeNm} + , #{req.rprsTxmCd} + , #{req.rprsTxmNm} + , #{req.operItemCd} + , #{req.operItemNm} + , #{req.lvyNo} + , #{req.itmNo} + , #{req.rdcYmd} + , #{req.rdcPctAmt} + , #{req.rdcAdtnAmt} + , #{req.rdcIntrAmt} + , #{req.rdcAmt} + , #{req.rdcRsnCn} + , #{req.rsveItem1} + , #{req.rsveItem2} + , #{req.rsveItem3} + , #{req.rsveItem4} + , #{req.rsveItem5} + , #{d06.linkRsltDt} + , #{d06.response.resVo.linkRstCd} + , #{d06.response.resVo.linkRstMsg} + , '999' + , #{d06.taskAplcnDt} + , #{d06.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 감액정보 상태 수정(lntrisDMapper.updateD06Status) */ +UPDATE TB_NIS_INDIV_D06 + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D06_ID IN (#{d06Id}) + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/lntris/lntris-D07-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-D07-mapper.xml new file mode 100644 index 0000000..642b92c --- /dev/null +++ b/src/main/resources/sql/mapper/lntris/lntris-D07-mapper.xml @@ -0,0 +1,1359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D07A_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_STT_CD + , PYR_STT_NM + , ZIP + , PYR_ADDR + , TELNO + , MBL_TELNO + , PYR_EML_ADDR + , GL_NM + , GL_ZIP + , GL_ADDR + , LVY_SE_NM + , UNTY_LVY_SE_NM + , ITM_SE_NM + , RDT_SE_NM + , AUTO_TSF_YN + , LVY_RTRCN_SE_NM + , LVY_STT_SE_NM + , RCVMT_SE_NM + , SZR_SE_NM + , DFT_SE_NM + , EPAY_NO + , LVY_YMD + , LAST_PID_YMD + , FRST_PCT_AMT + , LAST_PCT_AMT + , LAST_ADTN_AMT + , ITM_INTR_AMT + , PID_AF_YMD + , PID_AF_AMT + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , ARR_YMD + , ARR_PCT_AMT + , ARR_ADTN_AMT + , ARR_ITM_INTR_AMT + , ARR_PID_YMD + , ARR_RSN_CD + , ARR_RSN_NM + , RPM_SZR_VHRNO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D07A + + + +/* 부과체납정보 등록(lntrisD07Mapper.insertD07a) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D07A_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D07A A, () B + WHERE D07A_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D07A ( + D07A_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , PYR_SE_NM + , PYR_NO + , PYR_NM + , PYR_STT_CD + , PYR_STT_NM + , ZIP + , PYR_ADDR + , TELNO + , MBL_TELNO + , PYR_EML_ADDR + , GL_NM + , GL_ZIP + , GL_ADDR + , LVY_SE_NM + , UNTY_LVY_SE_NM + , ITM_SE_NM + , RDT_SE_NM + , AUTO_TSF_YN + , LVY_RTRCN_SE_NM + , LVY_STT_SE_NM + , RCVMT_SE_NM + , SZR_SE_NM + , DFT_SE_NM + , EPAY_NO + , LVY_YMD + , LAST_PID_YMD + , FRST_PCT_AMT + , LAST_PCT_AMT + , LAST_ADTN_AMT + , ITM_INTR_AMT + , PID_AF_YMD + , PID_AF_AMT + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , ARR_YMD + , ARR_PCT_AMT + , ARR_ADTN_AMT + , ARR_ITM_INTR_AMT + , ARR_PID_YMD + , ARR_RSN_CD + , ARR_RSN_NM + , RPM_SZR_VHRNO + , VTLAC_BANK_NM1 + , VR_ACTNO1 + , VTLAC_BANK_NM2 + , VR_ACTNO2 + , VTLAC_BANK_NM3 + , VR_ACTNO3 + , VTLAC_BANK_NM4 + , VR_ACTNO4 + , VTLAC_BANK_NM5 + , VR_ACTNO5 + , VTLAC_BANK_NM6 + , VR_ACTNO6 + , VTLAC_BANK_NM7 + , VR_ACTNO7 + , VTLAC_BANK_NM8 + , VR_ACTNO8 + , VTLAC_BANK_NM9 + , VR_ACTNO9 + , VTLAC_BANK_NM10 + , VR_ACTNO10 + , VTLAC_BANK_NM11 + , VR_ACTNO11 + , VTLAC_BANK_NM12 + , VR_ACTNO12 + , VTLAC_BANK_NM13 + , VR_ACTNO13 + , VTLAC_BANK_NM14 + , VR_ACTNO14 + , VTLAC_BANK_NM15 + , VR_ACTNO15 + , VTLAC_BANK_NM16 + , VR_ACTNO16 + , VTLAC_BANK_NM17 + , VR_ACTNO17 + , VTLAC_BANK_NM18 + , VR_ACTNO18 + , VTLAC_BANK_NM19 + , VR_ACTNO19 + , VTLAC_BANK_NM20 + , VR_ACTNO20 + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_DT + , TASK_APLCN_CD + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d07a.d07aId} + , #{d07a.request.crtrYmd} + , #{d07a.request.sgbCd} + , #{d07a.request.sgbNm} + , #{d07a.request.linkTrgtCd} + , #{d07a.request.linkMngKey} + , #{d07a.request.taxnNo} + , #{d07a.request.untyTaxnNo} + , #{d07a.request.dptCd} + , #{d07a.request.dptNm} + , #{d07a.request.spacBizCd} + , #{d07a.request.spacBizNm} + , #{d07a.request.fyr} + , #{d07a.request.actSeCd} + , #{d07a.request.actSeNm} + , #{d07a.request.rprsTxmCd} + , #{d07a.request.rprsTxmNm} + , #{d07a.request.operItemCd} + , #{d07a.request.operItemNm} + , #{d07a.request.lvyNo} + , #{d07a.request.itmNo} + , #{d07a.request.pyrSeNm} + , #{d07a.request.pyrNo} + , #{d07a.request.pyrNm} + , #{d07a.request.pyrSttCd} + , #{d07a.request.pyrSttNm} + , #{d07a.request.zip} + , #{d07a.request.pyrAddr} + , #{d07a.request.telno} + , #{d07a.request.mblTelno} + , #{d07a.request.pyrEmlAddr} + , #{d07a.request.glNm} + , #{d07a.request.glZip} + , #{d07a.request.glAddr} + , #{d07a.request.lvySeNm} + , #{d07a.request.untyLvySeNm} + , #{d07a.request.itmSeNm} + , #{d07a.request.rdtSeNm} + , #{d07a.request.autoTsfYn} + , #{d07a.request.lvyRtrcnSeNm} + , #{d07a.request.lvySttSeNm} + , #{d07a.request.rcvmtSeNm} + , #{d07a.request.szrSeNm} + , #{d07a.request.dftSeNm} + , #{d07a.request.epayNo} + , #{d07a.request.lvyYmd} + , #{d07a.request.lastPidYmd} + , #{d07a.request.frstPctAmt} + , #{d07a.request.lastPctAmt} + , #{d07a.request.lastAdtnAmt} + , #{d07a.request.itmIntrAmt} + , #{d07a.request.pidAfYmd} + , #{d07a.request.pidAfAmt} + , #{d07a.request.mngItemCn1} + , #{d07a.request.mngItemCn2} + , #{d07a.request.mngItemCn3} + , #{d07a.request.mngItemCn4} + , #{d07a.request.mngItemCn5} + , #{d07a.request.mngItemCn6} + , #{d07a.request.arrYmd} + , #{d07a.request.arrPctAmt} + , #{d07a.request.arrAdtnAmt} + , #{d07a.request.arrItmIntrAmt} + , #{d07a.request.arrPidYmd} + , #{d07a.request.arrRsnCd} + , #{d07a.request.arrRsnNm} + , #{d07a.request.rpmSzrVhrno} + , #{d07a.request.vtlacBankNm1} + , #{d07a.request.vrActno1} + , #{d07a.request.vtlacBankNm2} + , #{d07a.request.vrActno2} + , #{d07a.request.vtlacBankNm3} + , #{d07a.request.vrActno3} + , #{d07a.request.vtlacBankNm4} + , #{d07a.request.vrActno4} + , #{d07a.request.vtlacBankNm5} + , #{d07a.request.vrActno5} + , #{d07a.request.vtlacBankNm6} + , #{d07a.request.vrActno6} + , #{d07a.request.vtlacBankNm7} + , #{d07a.request.vrActno7} + , #{d07a.request.vtlacBankNm8} + , #{d07a.request.vrActno8} + , #{d07a.request.vtlacBankNm9} + , #{d07a.request.vrActno9} + , #{d07a.request.vtlacBankNm10} + , #{d07a.request.vrActno10} + , #{d07a.request.vtlacBankNm11} + , #{d07a.request.vrActno11} + , #{d07a.request.vtlacBankNm12} + , #{d07a.request.vrActno12} + , #{d07a.request.vtlacBankNm13} + , #{d07a.request.vrActno13} + , #{d07a.request.vtlacBankNm14} + , #{d07a.request.vrActno14} + , #{d07a.request.vtlacBankNm15} + , #{d07a.request.vrActno15} + , #{d07a.request.vtlacBankNm16} + , #{d07a.request.vrActno16} + , #{d07a.request.vtlacBankNm17} + , #{d07a.request.vrActno17} + , #{d07a.request.vtlacBankNm18} + , #{d07a.request.vrActno18} + , #{d07a.request.vtlacBankNm19} + , #{d07a.request.vrActno19} + , #{d07a.request.vtlacBankNm20} + , #{d07a.request.vrActno20} + , #{d07a.request.rsveItem1} + , #{d07a.request.rsveItem2} + , #{d07a.request.rsveItem3} + , #{d07a.request.rsveItem4} + , #{d07a.request.rsveItem5} + , #{d07a.taskAplcnDt} + , '999' + , #{d07a.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 부과체납정보 수정(lntrisD07Mapper.updateD07aStatus) */ +UPDATE TB_NIS_INDIV_D07A + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D07A_ID IN (#{d07aId}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D07B_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , EPAY_NO + , RCVMT_NO + , RCVMT_SE_CD + , RCVMT_SE_NM + , RCVMT_YMD + , ACT_YMD + , TSF_YMD + , RCVMT_PCT_AMT + , RCVMT_ADTN_AMT + , RCVMT_INTR_AMT + , BANK_NM + , RCVMT_TY_CD + , RCVMT_TY + , GVBK_SE_NM + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D07B + + + +/* 수납정보 등록(lntrisD07Mapper.insertD07b) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D07B_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D07B A, () B + WHERE D07B_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D07B ( + D07B_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , EPAY_NO + , RCVMT_NO + , RCVMT_SE_CD + , RCVMT_SE_NM + , RCVMT_YMD + , ACT_YMD + , TSF_YMD + , RCVMT_PCT_AMT + , RCVMT_ADTN_AMT + , RCVMT_INTR_AMT + , BANK_NM + , RCVMT_TY_CD + , RCVMT_TY + , GVBK_SE_NM + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d07b.d07bId} + , #{d07b.request.crtrYmd} + , #{d07b.request.sgbCd} + , #{d07b.request.sgbNm} + , #{d07b.request.linkTrgtCd} + , #{d07b.request.linkMngKey} + , #{d07b.request.taxnNo} + , #{d07b.request.untyTaxnNo} + , #{d07b.request.dptCd} + , #{d07b.request.dptNm} + , #{d07b.request.spacBizCd} + , #{d07b.request.spacBizNm} + , #{d07b.request.fyr} + , #{d07b.request.actSeCd} + , #{d07b.request.actSeNm} + , #{d07b.request.rprsTxmCd} + , #{d07b.request.rprsTxmNm} + , #{d07b.request.operItemCd} + , #{d07b.request.operItemNm} + , #{d07b.request.lvyNo} + , #{d07b.request.itmNo} + , #{d07b.request.epayNo} + , #{d07b.request.rcvmtNo} + , #{d07b.request.rcvmtSeCd} + , #{d07b.request.rcvmtSeNm} + , #{d07b.request.rcvmtYmd} + , #{d07b.request.actYmd} + , #{d07b.request.tsfYmd} + , #{d07b.request.rcvmtPctAmt} + , #{d07b.request.rcvmtAdtnAmt} + , #{d07b.request.rcvmtIntrAmt} + , #{d07b.request.bankNm} + , #{d07b.request.rcvmtTyCd} + , #{d07b.request.rcvmtTy} + , #{d07b.request.gvbkSeNm} + , #{d07b.request.rsveItem1} + , #{d07b.request.rsveItem2} + , #{d07b.request.rsveItem3} + , #{d07b.request.rsveItem4} + , #{d07b.request.rsveItem5} + , '999' + , #{d07b.taskAplcnDt} + , #{d07b.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 수납정보 수정(lntrisD07Mapper.updateD07bStatus) */ +UPDATE TB_NIS_INDIV_D07B + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D07B_ID IN (#{d07bId}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D07C_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , RDC_YMD + , RDC_PCT_AMT + , RDC_ADTN_AMT + , RDC_INTR_AMT + , RDC_AMT + , RDC_RSN_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D07C + + + +/* 감액정보 등록(lntrisD07Mapper.insertD07c) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D07C_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D07C A, () B + WHERE D07C_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D07C ( + D07C_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , RDC_YMD + , RDC_PCT_AMT + , RDC_ADTN_AMT + , RDC_INTR_AMT + , RDC_AMT + , RDC_RSN_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d07c.d07cId} + , #{d07c.request.crtrYmd} + , #{d07c.request.sgbCd} + , #{d07c.request.sgbNm} + , #{d07c.request.linkTrgtCd} + , #{d07c.request.linkMngKey} + , #{d07c.request.taxnNo} + , #{d07c.request.untyTaxnNo} + , #{d07c.request.dptCd} + , #{d07c.request.dptNm} + , #{d07c.request.spacBizCd} + , #{d07c.request.spacBizNm} + , #{d07c.request.fyr} + , #{d07c.request.actSeCd} + , #{d07c.request.actSeNm} + , #{d07c.request.rprsTxmCd} + , #{d07c.request.rprsTxmNm} + , #{d07c.request.operItemCd} + , #{d07c.request.operItemNm} + , #{d07c.request.lvyNo} + , #{d07c.request.itmNo} + , #{d07c.request.rdcYmd} + , #{d07c.request.rdcPctAmt} + , #{d07c.request.rdcAdtnAmt} + , #{d07c.request.rdcIntrAmt} + , #{d07c.request.rdcAmt} + , #{d07c.request.rdcRsnCn} + , #{d07c.request.rsveItem1} + , #{d07c.request.rsveItem2} + , #{d07c.request.rsveItem3} + , #{d07c.request.rsveItem4} + , #{d07c.request.rsveItem5} + , '999' + , #{d07c.taskAplcnDt} + , #{d07c.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 수납정보 수정(lntrisD07Mapper.updateD07cStatus) */ +UPDATE TB_NIS_INDIV_D07C + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D07C_ID IN (#{d07cId}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D07D_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , LVY_YMD + , LVY_AMT + , RCVMT_AMT + , GVBK_SE_CD + , GVBK_RSN_CD + , GVBK_RSN_NM + , GVBK_AMT + , GVBK_APLY_YMD + , GVBK_PRCS_YMD + , GVBK_ACTNO + , GVBK_BANK_NM + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D07D + + + +/* 과오납정보 등록(lntrisD07Mapper.insertD07d) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D07D_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D07D A, () B + WHERE D07D_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D07D ( + D07D_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , LVY_YMD + , LVY_AMT + , RCVMT_AMT + , GVBK_SE_CD + , GVBK_RSN_CD + , GVBK_RSN_NM + , GVBK_AMT + , GVBK_APLY_YMD + , GVBK_PRCS_YMD + , GVBK_ACTNO + , GVBK_BANK_NM + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d07d.d07dId} + , #{d07d.request.crtrYmd} + , #{d07d.request.sgbCd} + , #{d07d.request.sgbNm} + , #{d07d.request.linkTrgtCd} + , #{d07d.request.linkMngKey} + , #{d07d.request.taxnNo} + , #{d07d.request.untyTaxnNo} + , #{d07d.request.dptCd} + , #{d07d.request.dptNm} + , #{d07d.request.spacBizCd} + , #{d07d.request.spacBizNm} + , #{d07d.request.fyr} + , #{d07d.request.actSeCd} + , #{d07d.request.actSeNm} + , #{d07d.request.rprsTxmCd} + , #{d07d.request.rprsTxmNm} + , #{d07d.request.operItemCd} + , #{d07d.request.operItemNm} + , #{d07d.request.lvyNo} + , #{d07d.request.itmNo} + , #{d07d.request.lvyYmd} + , #{d07d.request.lvyAmt} + , #{d07d.request.rcvmtAmt} + , #{d07d.request.gvbkSeCd} + , #{d07d.request.gvbkRsnCd} + , #{d07d.request.gvbkRsnNm} + , #{d07d.request.gvbkAmt} + , #{d07d.request.gvbkAplyYmd} + , #{d07d.request.gvbkPrcsYmd} + , #{d07d.request.gvbkActno} + , #{d07d.request.gvbkBankNm} + , #{d07d.request.rsveItem1} + , #{d07d.request.rsveItem2} + , #{d07d.request.rsveItem3} + , #{d07d.request.rsveItem4} + , #{d07d.request.rsveItem5} + , '999' + , #{d07d.taskAplcnDt} + , #{d07d.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 과오납 정보 수정(lntrisD07Mapper.updateD07dStatus) */ +UPDATE TB_NIS_INDIV_D07D + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D07D_ID IN (#{d07dId}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SELECT D07E_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , DFT_SN + , DFT_SE_CD + , DFT_YMD + , PCT_AMT + , INTR_AMT + , ADTN_AMT + , DFT_RSN_CD + , DFT_RSN + , REV_YMD + , REV_PCT_AMT + , REV_INTR_AMT + , REV_ADTN_AMT + , REV_RSN_CD + , REV_RSN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NIS_INDIV_D07E + + + +/* 결손정보 등록(lntrisD07Mapper.insertD07e) */ + +SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(D07E_ID), 9) + 1, 1), 22, '0')) NEW_ID + FROM TB_NIS_INDIV_D07E A, () B + WHERE D07E_ID LIKE CONCAT(TODAY, '%') +INSERT INTO TB_NIS_INDIV_D07E ( + D07E_ID + , CRTR_YMD + , SGB_CD + , SGB_NM + , LINK_TRGT_CD + , LINK_MNG_KEY + , TAXN_NO + , UNTY_TAXN_NO + , DPT_CD + , DPT_NM + , SPAC_BIZ_CD + , SPAC_BIZ_NM + , FYR + , ACT_SE_CD + , ACT_SE_NM + , RPRS_TXM_CD + , RPRS_TXM_NM + , OPER_ITEM_CD + , OPER_ITEM_NM + , LVY_NO + , ITM_NO + , DFT_SN + , DFT_SE_CD + , DFT_YMD + , PCT_AMT + , INTR_AMT + , ADTN_AMT + , DFT_RSN_CD + , DFT_RSN + , REV_YMD + , REV_PCT_AMT + , REV_INTR_AMT + , REV_ADTN_AMT + , REV_RSN_CD + , REV_RSN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , TASK_APLCN_CD + , TASK_APLCN_DT + , TASK_APLCN_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{d07e.d07eId} + , #{d07e.request.crtrYmd} + , #{d07e.request.sgbCd} + , #{d07e.request.sgbNm} + , #{d07e.request.linkTrgtCd} + , #{d07e.request.linkMngKey} + , #{d07e.request.taxnNo} + , #{d07e.request.untyTaxnNo} + , #{d07e.request.dptCd} + , #{d07e.request.dptNm} + , #{d07e.request.spacBizCd} + , #{d07e.request.spacBizNm} + , #{d07e.request.fyr} + , #{d07e.request.actSeCd} + , #{d07e.request.actSeNm} + , #{d07e.request.rprsTxmCd} + , #{d07e.request.rprsTxmNm} + , #{d07e.request.operItemCd} + , #{d07e.request.operItemNm} + , #{d07e.request.lvyNo} + , #{d07e.request.itmNo} + , #{d07e.request.dftSn} + , #{d07e.request.dftSeCd} + , #{d07e.request.dftYmd} + , #{d07e.request.pctAmt} + , #{d07e.request.intrAmt} + , #{d07e.request.adtnAmt} + , #{d07e.request.dftRsnCd} + , #{d07e.request.dftRsn} + , #{d07e.request.revYmd} + , #{d07e.request.revPctAmt} + , #{d07e.request.revIntrAmt} + , #{d07e.request.revAdtnAmt} + , #{d07e.request.revRsnCd} + , #{d07e.request.revRsn} + , #{d07e.request.rsveItem1} + , #{d07e.request.rsveItem2} + , #{d07e.request.rsveItem3} + , #{d07e.request.rsveItem4} + , #{d07e.request.rsveItem5} + , '999' + , #{d07e.taskAplcnDt} + , #{d07e.taskAplcnMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} +) + +/* 손정보 수정(lntrisD07Mapper.updateD07eStatus) */ +UPDATE TB_NIS_INDIV_D07E + SET TASK_APLCN_DT = + , TASK_APLCN_CD = #{taskAplcnCd} + , TASK_APLCN_MSG = #{taskAplcnMsg} + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE D07E_ID IN (#{d07eId}) + + \ No newline at end of file diff --git a/src/main/resources/sql/mybatis-config.xml b/src/main/resources/sql/mybatis-config.xml new file mode 100644 index 0000000..03ad4e8 --- /dev/null +++ b/src/main/resources/sql/mybatis-config.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file