From f5ec6cd1554f698f2ed1ef010a86ab3ad762ceef Mon Sep 17 00:00:00 2001 From: JoJH Date: Tue, 5 Nov 2024 09:05:03 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=A9=EB=B6=80=EC=9E=90=20=EC=A3=BC?= =?UTF-8?q?=EC=86=8C=20=EC=9D=B4=EB=A0=A5=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/cmmn/CrdnPayerAddrHstry.java | 35 +++++++++++++++ .../fims/excl/service/bean/LevyExclBean.java | 1 + .../java/cokr/xit/fims/payer/PayerQuery.java | 18 ++++++++ .../fims/cmmn/crdnPayerHstry-mapper.xml | 43 +++++++++++-------- .../sql/mapper/fims/excl/levyExcl-mapper.xml | 5 ++- .../sql/mapper/fims/payerAddr-mapper.xml | 20 +++++++-- 6 files changed, 101 insertions(+), 21 deletions(-) create mode 100644 src/main/java/cokr/xit/fims/cmmn/CrdnPayerAddrHstry.java diff --git a/src/main/java/cokr/xit/fims/cmmn/CrdnPayerAddrHstry.java b/src/main/java/cokr/xit/fims/cmmn/CrdnPayerAddrHstry.java new file mode 100644 index 00000000..831bae75 --- /dev/null +++ b/src/main/java/cokr/xit/fims/cmmn/CrdnPayerAddrHstry.java @@ -0,0 +1,35 @@ +package cokr.xit.fims.cmmn; + +import cokr.xit.foundation.AbstractEntity; +import lombok.Getter; +import lombok.Setter; + +/** + * 단속 납부자 이력 + * @author JoJH + */ +@Getter +@Setter +public class CrdnPayerAddrHstry extends AbstractEntity { + + /** + * 주소 이력 ID + */ + private String addrHstryId; + + /** + * 단속 ID + */ + private String crdnId; + + /** + * 납부자 ID + */ + private String rtpyrId; + + /** + * 주소 일련번호 + */ + private String addrSn; + +} diff --git a/src/main/java/cokr/xit/fims/excl/service/bean/LevyExclBean.java b/src/main/java/cokr/xit/fims/excl/service/bean/LevyExclBean.java index 49e9c693..b812dd70 100644 --- a/src/main/java/cokr/xit/fims/excl/service/bean/LevyExclBean.java +++ b/src/main/java/cokr/xit/fims/excl/service/bean/LevyExclBean.java @@ -91,6 +91,7 @@ public class LevyExclBean extends AbstractBean { // 신규 부과제외 등록일 경우 부과제외 구분코드를 입력한다. if (req.getCallPurpose().equals("create")) { info.set("LEVY_EXCL_SE_CD", req.getLevyExclSeCd()); + info.set("LEVY_EXCL_SE_NM", info.string("CRT_LEVY_EXCL_SE_NM")); } return info; diff --git a/src/main/java/cokr/xit/fims/payer/PayerQuery.java b/src/main/java/cokr/xit/fims/payer/PayerQuery.java index ff4322e5..949db0f2 100644 --- a/src/main/java/cokr/xit/fims/payer/PayerQuery.java +++ b/src/main/java/cokr/xit/fims/payer/PayerQuery.java @@ -29,6 +29,8 @@ public class PayerQuery extends QueryRequest { private String addrSn; /** 이력 일련번호 */ private String hstrySn; + /** 주소 이력 ID */ + private String addrHstryId; /** 주소 입력 구분 코드 */ private String addrInptSeCd; /** 도로명 코드 */ @@ -106,6 +108,22 @@ public class PayerQuery extends QueryRequest { return this; } + /**주소 이력 ID를 반환한다. + * @return 주소 이력 ID + */ + public String getAddrHstryId() { + return addrHstryId; + } + + /**주소 이력 ID를 설정한다. + * @param addrHstryId 주소 이력 ID + * @return 현재 PayerQuery + */ + public PayerQuery setAddrHstryId(String addrHstryId) { + this.addrHstryId = addrHstryId; + return this; + } + /**차량번호를 반환한다. * @return 차량번호 */ diff --git a/src/main/resources/sql/mapper/fims/cmmn/crdnPayerHstry-mapper.xml b/src/main/resources/sql/mapper/fims/cmmn/crdnPayerHstry-mapper.xml index b2449a17..b54fa819 100644 --- a/src/main/resources/sql/mapper/fims/cmmn/crdnPayerHstry-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cmmn/crdnPayerHstry-mapper.xml @@ -81,31 +81,40 @@ ) - /* 단속 납부자 주소 이력 등록(crdnPayerHstryMapper.insertCrdnPayerAddrHstry) */ + /* 단속 납부자 주소 이력 등록(crdnPayerHstryMapper.insertCrdnPayerAddrHstry) */ + + + + + + + INSERT INTO TB_CRDN_PAYER_ADDR_HSTRY ( - CRDN_ID - , RTPYR_ID - , ADDR_SN - , REG_DT - , RGTR + ADDR_HSTRY_ID + , CRDN_ID + , RTPYR_ID + , ADDR_SN + , REG_DT + , RGTR ) VALUES ( - #{crdnPayerAddrHstry.crdnId} - , #{crdnPayerAddrHstry.rtpyrId} - , #{crdnPayerAddrHstry.addrSn} - , #{crdnPayerAddrHstry.createdAt} - , #{crdnPayerAddrHstry.createdBy} + #{addrHstryId} + , #{crdnId} + , #{rtpyrId} + , #{addrSn} + , + , #{createdBy} ) - /* 단속 납부자 수정(crdnPayerHstryMapper.updateCrdnPayer) */ + /* 단속 납부자 수정(crdnPayerHstryMapper.updateCrdnPayer) */ UPDATE TB_CRDN - SET RTPYR_ID = #{crdnPayerHstry.rtpyrId} - , ADDR_SN = #{crdnPayerHstry.addrSn} - , MDFCN_DT = #{crdnPayerHstry.lastModified} - , MDFR = #{crdnPayerHstry.modifiedBy} - WHERE CRDN_ID = #{crdnPayerHstry.crdnId} + SET RTPYR_ID = #{rtpyrId} + , ADDR_SN = #{addrSn} + , MDFCN_DT = + , MDFR = #{modifiedBy} + WHERE CRDN_ID = #{crdnId} \ No newline at end of file diff --git a/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml b/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml index 582476c6..8a35fda9 100644 --- a/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml @@ -30,6 +30,8 @@ /* 납부자 주소 이력 대장 객체 가져오기(payerMapper.selectCrdnPayerAddrHstrys) */ - WHERE CPAH.CRDN_ID = #{crdnId} - AND CPAH.RTPYR_ID = #{rtpyrId} + + + + AND CPAH.ADDR_HSTRY_ID = #{addrHstryId} + + + + AND CPAH.CRDN_ID = #{crdnId} + + + AND CPAH.RTPYR_ID = #{rtpyrId} + + + +