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'