From 1977f8efed63cb9b76105f6bb724f76439bd5653 Mon Sep 17 00:00:00 2001 From: jjh Date: Tue, 25 Jun 2024 10:33:29 +0900 Subject: [PATCH] =?UTF-8?q?1.=20=EB=B0=98=EC=86=A1=20=ED=98=84=ED=99=A9=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.=202.=20=EA=B3=B5=EC=8B=9C=EC=86=A1=EB=8B=AC?= =?UTF-8?q?=20=ED=98=84=ED=99=A9=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/sndb/service/bean/SndngDtlBean.java | 2 +- .../xit/fims/sndb/service/bean/SvbtcBean.java | 3 + .../xit/fims/sndb/web/Sndb01Controller.java | 3 +- .../sql/mapper/fims/sndb/sndngDtl-mapper.xml | 32 +++---- .../WEB-INF/jsp/fims/sndb/sndb01220-main.jsp | 45 ++++++--- .../WEB-INF/jsp/fims/sndb/sndb01230-info.jsp | 94 ++++++++++--------- .../WEB-INF/jsp/fims/sndb/sndb01240-main.jsp | 5 +- .../WEB-INF/jsp/fims/sndb/sndb01250-info.jsp | 10 +- .../WEB-INF/jsp/fims/sndb/sndb01260-info.jsp | 11 ++- 9 files changed, 118 insertions(+), 87 deletions(-) diff --git a/src/main/java/cokr/xit/fims/sndb/service/bean/SndngDtlBean.java b/src/main/java/cokr/xit/fims/sndb/service/bean/SndngDtlBean.java index 5898eded..4b98cd15 100644 --- a/src/main/java/cokr/xit/fims/sndb/service/bean/SndngDtlBean.java +++ b/src/main/java/cokr/xit/fims/sndb/service/bean/SndngDtlBean.java @@ -642,7 +642,7 @@ public class SndngDtlBean extends AbstractBean { public String createSndbk(SndngDtl sndngDtl) { // 발송상세(TB_SNDNG_DTL)에 반송 정보를 등록한다. int rtnNocs = sndngDtlMapper.createSndbk(sndngDtl); - if (rtnNocs != 1) { + if (rtnNocs < 1) { throw new RuntimeException("발송상세의 반송 정보 등록에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback } diff --git a/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcBean.java b/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcBean.java index ab26a4c2..b7b4bdae 100644 --- a/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcBean.java +++ b/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcBean.java @@ -220,6 +220,9 @@ public class SvbtcBean extends AbstractBean { if (rtnNocs < 1) { throw new RuntimeException("발송상세 대장에 공시송달 정보 수정에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback } + if (svbtcInfo.number("TNOCS").intValue() != rtnNocs) { + throw new RuntimeException("공시송달 총건수와 발송상세 건수가 다릅니다."); // 예외를 발생시켜서 DB Rollback + } return "[S] 작업이 정상 처리 되었습니다."; } diff --git a/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java b/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java index a24acae5..eb1e3743 100644 --- a/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java +++ b/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java @@ -1633,6 +1633,7 @@ public class Sndb01Controller extends ApplicationController { valueMap.put("업무구분", format.of("TASK_SE_NM").style(center)); valueMap.put("발송구분", format.of("SNDNG_SE_NM").style(center)); valueMap.put("공시송달일자", FormatMaker.yyyy_mm_dd(format, "SVBTC_YMD").style(dateYMD)); + valueMap.put("공시송달종료일자", FormatMaker.yyyy_mm_dd(format, "SVBTC_END_YMD").style(dateYMD)); valueMap.put("총건수", format.of("TNOCS").style(numeric)); valueMap.put("문서번호", format.of("DOC_NO")); valueMap.put("제목", format.of("TTL_NM")); @@ -1734,9 +1735,9 @@ public class Sndb01Controller extends ApplicationController { valueMap.put("부과번호", format.of("LEVY_NO").style(center)); valueMap.put("부과일자", FormatMaker.yyyy_mm_dd(format, "LEVY_YMD").style(dateYMD)); valueMap.put("납기일자", FormatMaker.yyyy_mm_dd(format, "DUDT_YMD").style(dateYMD)); + valueMap.put("과태료금액", format.of("FFNLG_AMT").style(numeric)); valueMap.put("본세", format.of("PCPTAX").style(numeric)); valueMap.put("가산금", format.of("ADAMT").style(numeric)); - valueMap.put("미납금액", format.of("SUM_AMT").style(numeric)); valueMap.put("등록일시", FormatMaker.yyyy_mm_dd_hh_mm_ss(format, "REG_DT").style(dateDT)); valueMap.put("등록사용자", format.of("RGTR_NM").style(center)); valueMap.put("수정일시", FormatMaker.yyyy_mm_dd_hh_mm_ss(format, "MDFCN_DT").style(dateDT)); diff --git a/src/main/resources/sql/mapper/fims/sndb/sndngDtl-mapper.xml b/src/main/resources/sql/mapper/fims/sndb/sndngDtl-mapper.xml index c276756d..1ebf9104 100644 --- a/src/main/resources/sql/mapper/fims/sndb/sndngDtl-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sndb/sndngDtl-mapper.xml @@ -767,6 +767,13 @@ , SD.MDFR , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = SD.MDFR) AS MDFR_NM , (CONCAT(SD.FYR, '-', SD.LEVY_NO)) AS GOJI_NO + , S.SNDNG_ID + , S.DEPT_CD + , S.SNDNG_REG_SE_CD + , (SELECT GET_CODE_NM('FIM067', S.SNDNG_REG_SE_CD) FROM DUAL) AS SNDNG_REG_SE_NM + , S.EPOST_NOTICE_ID + , S.SNDNG_STTS_CD + , S.RESND_YN , C.CRDN_ID , C.SGG_CD , C.TASK_SE_CD @@ -784,21 +791,11 @@ , C.CRDN_PLC , C.CRDN_STTS_CD , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM - , S.SNDNG_ID - , S.DEPT_CD - , S.SNDNG_REG_SE_CD - , (SELECT GET_CODE_NM('FIM067', S.SNDNG_REG_SE_CD) FROM DUAL) AS SNDNG_REG_SE_NM - , S.EPOST_NOTICE_ID - , S.SNDNG_STTS_CD - , S.RESND_YN , P.RTPYR_ID , P.RTPYR_SE_CD , (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM , P.RTPYR_NO , P.RTPYR_NM - , PA.ZIP - , PA.ADDR - , PA.DTL_ADDR @@ -806,16 +803,15 @@ FROM TB_SNDNG_DTL SD + INNER JOIN TB_SNDNG S ON (SD.SNDNG_ID = S.SNDNG_ID) INNER JOIN TB_CRDN C ON (SD.CRDN_ID = C.CRDN_ID) - LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) - LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN) - LEFT OUTER JOIN TB_SNDNG S ON (SD.SNDNG_ID = S.SNDNG_ID) + INNER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) LEFT OUTER JOIN TB_EPOST_DLVR_RSLT EDR ON (SD.CON_KEY = EDR.CON_KEY AND SD.RG_NO = EDR.REGINO) - WHERE C.SGG_CD = #{sggCd} - AND C.TASK_SE_CD = #{taskSeCd} - AND (SD.SVBTC_ID IS NULL OR SD.SVBTC_ID = '') - AND (SD.SNDNG_RCVMT_CD IS NULL OR SD.SNDNG_RCVMT_CD = '') - AND (S.RESND_YN IS NULL OR S.RESND_YN = 'N') + WHERE S.SGG_CD = #{sggCd} + AND S.TASK_SE_CD = #{taskSeCd} + AND (S.RESND_YN IS NULL OR S.RESND_YN = 'N') + AND (SD.SVBTC_ID IS NULL OR SD.SVBTC_ID = '') + AND (SD.SNDNG_RCVMT_CD IS NULL OR SD.SNDNG_RCVMT_CD = '') AND SD.SNDNG_DTL_ID IN ( #{sndngDtlId} diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01220-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01220-main.jsp index a52c59bf..de0f6982 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01220-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01220-main.jsp @@ -133,6 +133,21 @@ + +
+ + +
+ +
+ + +
+ +
+ + +
+
@@ -41,21 +42,24 @@
- - + - -
- - + +
+ - + + + - -
- +
+ + - + +