From 6a89b55c2dead578c63f0775fe3b26920b480652 Mon Sep 17 00:00:00 2001 From: JoJH Date: Tue, 12 Nov 2024 10:07:11 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=90=EC=95=A1=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/rdca/Rdamt.java | 7 ++++- .../sql/mapper/fims/rdca/rdcamt-mapper.xml | 27 +++++++++---------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/main/java/cokr/xit/fims/rdca/Rdamt.java b/src/main/java/cokr/xit/fims/rdca/Rdamt.java index 964bfbb8..8e1331a0 100644 --- a/src/main/java/cokr/xit/fims/rdca/Rdamt.java +++ b/src/main/java/cokr/xit/fims/rdca/Rdamt.java @@ -84,7 +84,12 @@ public class Rdamt extends AbstractEntity { // 추가 ///////////////////////////////////////////////////////////////////// /** - * 부과 Ids + * 감액 IDs + */ + private String[] rdamtIds; + + /** + * 부과 IDs */ private String[] levyIds; diff --git a/src/main/resources/sql/mapper/fims/rdca/rdcamt-mapper.xml b/src/main/resources/sql/mapper/fims/rdca/rdcamt-mapper.xml index cd73d34a..c692aa2a 100644 --- a/src/main/resources/sql/mapper/fims/rdca/rdcamt-mapper.xml +++ b/src/main/resources/sql/mapper/fims/rdca/rdcamt-mapper.xml @@ -10,11 +10,11 @@ - - + + @@ -46,13 +46,10 @@ , R.DEL_YN , R.REG_DT , R.RGTR + , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.RGTR) AS RGTR_NM , R.MDFCN_DT , R.MDFR - , R.DEL_DT - , R.DLTR - , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.RGTR) AS RGTR_NM , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.MDFR) AS MDFR_NM - , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.DLTR) AS DLTR_NM FROM TB_RDAMT R INNER JOIN TB_LEVY L ON (R.LEVY_ID = L.LEVY_ID) @@ -73,14 +70,14 @@ , R.DEL_YN , R.REG_DT , R.RGTR + , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.RGTR) AS RGTR_NM , R.MDFCN_DT , R.MDFR + , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.MDFR) AS MDFR_NM , R.DEL_DT , R.DLTR - , R.DEL_RSN - , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.RGTR) AS RGTR_NM - , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.MDFR) AS MDFR_NM , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = L.DLTR) AS DLTR_NM + , R.DEL_RSN FROM TB_RDAMT @@ -165,12 +162,12 @@ /* 감액 대장 삭제(rdamtMapper.deleteRdamt) */ UPDATE TB_RDAMT - SET DEL_YN = 'Y' - , DEL_DT = - , DLTR = #{rdamt.modifiedBy} - , DEL_RSN = #{rdamt.delRsn} - WHERE RDAMT_ID = #{rdamt.rdamtId} - AND DEL_YN = 'N' + SET DEL_YN = 'Y' + , DEL_DT = + , DLTR = #{rdamt.modifiedBy} + , DEL_RSN = #{rdamt.delRsn} + WHERE RDAMT_ID = #{rdamt.rdamtId} + AND DEL_YN = 'N'