From 7152c668252dc76d8dd024c73febb36e911a2458 Mon Sep 17 00:00:00 2001 From: jjh Date: Thu, 16 Nov 2023 17:52:38 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=A0=84=ED=86=B5=EC=A7=80=20-=20?= =?UTF-8?q?=EC=84=B8=EC=99=B8=EC=88=98=EC=9E=85=20=EB=93=B1=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/sndb/NxrpMtchgQuery.java | 19 + .../xit/fims/sndb/dao/NxrpMtchgMapper.java | 99 ++ .../fims/sndb/service/NxrpMtchgService.java | 61 + .../fims/sndb/service/bean/NxrpMtchgBean.java | 115 ++ .../service/bean/NxrpMtchgServiceBean.java | 58 + .../xit/fims/sndb/service/bean/SndngBean.java | 2 + .../xit/fims/sndb/web/Sndb02Controller.java | 76 +- .../cokr/xit/fims/task/web/BpvController.java | 1 - .../cokr/xit/fims/task/web/DpvController.java | 16 +- .../cokr/xit/fims/task/web/EcaController.java | 1 - .../cokr/xit/fims/task/web/PvsController.java | 1 - .../sql/mapper/fims/sndb/nxrpMtchg-mapper.xml | 250 ++++ .../sql/mapper/fims/sndb/sndng-mapper.xml | 1072 ++++++++--------- .../WEB-INF/jsp/fims/sndb/sndb01080-info.jsp | 11 +- 14 files changed, 1226 insertions(+), 556 deletions(-) create mode 100644 src/main/java/cokr/xit/fims/sndb/NxrpMtchgQuery.java create mode 100644 src/main/java/cokr/xit/fims/sndb/dao/NxrpMtchgMapper.java create mode 100644 src/main/java/cokr/xit/fims/sndb/service/NxrpMtchgService.java create mode 100644 src/main/java/cokr/xit/fims/sndb/service/bean/NxrpMtchgBean.java create mode 100644 src/main/java/cokr/xit/fims/sndb/service/bean/NxrpMtchgServiceBean.java create mode 100644 src/main/resources/sql/mapper/fims/sndb/nxrpMtchg-mapper.xml diff --git a/src/main/java/cokr/xit/fims/sndb/NxrpMtchgQuery.java b/src/main/java/cokr/xit/fims/sndb/NxrpMtchgQuery.java new file mode 100644 index 00000000..fccf8092 --- /dev/null +++ b/src/main/java/cokr/xit/fims/sndb/NxrpMtchgQuery.java @@ -0,0 +1,19 @@ +package cokr.xit.fims.sndb; + +import cokr.xit.foundation.component.QueryRequest; + +/**세외수입 매칭 내역 정보 조회 요청 +* +*

상세 설명: +* +*

+* ============ 변경 이력 ============
+* 2023-11-16	JoJH 최초 작성
+* ================================
+* 
+*/ +public class NxrpMtchgQuery extends QueryRequest { + + private static final long serialVersionUID = 1L; + +} diff --git a/src/main/java/cokr/xit/fims/sndb/dao/NxrpMtchgMapper.java b/src/main/java/cokr/xit/fims/sndb/dao/NxrpMtchgMapper.java new file mode 100644 index 00000000..0b45775b --- /dev/null +++ b/src/main/java/cokr/xit/fims/sndb/dao/NxrpMtchgMapper.java @@ -0,0 +1,99 @@ +package cokr.xit.fims.sndb.dao; + +import java.util.List; +import java.util.Map; + +import org.egovframe.rte.psl.dataaccess.mapper.Mapper; + +import cokr.xit.foundation.component.AbstractMapper; +import cokr.xit.foundation.data.DataObject; + +import cokr.xit.fims.sndb.NxrpMtchg; +import cokr.xit.fims.sndb.NxrpMtchgQuery; + +/** 세외수입 매칭 내역 정보 DAO + * + *

상세 설명: + * + *

+ * ============ 변경 이력 ============
+ * 2023-11-16	JoJH 최초 작성
+ * ================================
+ * 
+ */ +@Mapper("nxrpMtchgMapper") +public interface NxrpMtchgMapper extends AbstractMapper { + + /**지정한 조건에 따라 세외수입 매칭 내역 목록을 조회하여 반환한다.
+ * @param req 세외수입 매칭 내역 조회 조건 + * @return 세외수입 매칭 내역 목록 + */ + List selectNxrpMtchgList(NxrpMtchgQuery req); + + /**지정한 조건에 따라 세외수입 매칭 내역 객체들을 반환한다. + * @param req 세외수입 매칭 내역 조회 조건 + * @return 세외수입 매칭 내역 객체 목록 + */ + List selectNxrpMtchgs(NxrpMtchgQuery req); + + /**세외수입 매칭 내역 정보를 등록한다. + * @param params 파라미터 + *
  • "nxrpMtchg" - 세외수입 매칭 내역
  • + *
  • "currentUser" - 현재 접속한 사용자
  • + *
+ * @return 저장된 정보수 + */ + int insertNxrpMtchg(Map params); + + /**세외수입 매칭 내역 정보를 등록한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + default boolean insert(NxrpMtchg nxrpMtchg) { + return nxrpMtchg != null && insertNxrpMtchg(params().set("nxrpMtchg", nxrpMtchg)) == 1; + } + + /**세외수입 매칭 내역 정보를 수정한다. + * @param params 파라미터 + *
  • "nxrpMtchg" - 세외수입 매칭 내역
  • + *
  • "currentUser" - 현재 접속한 사용자
  • + *
+ * @return 저장된 정보수 + */ + int updateNxrpMtchg(Map params); + + /**세외수입 매칭 내역 정보를 수정한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + default boolean update(NxrpMtchg nxrpMtchg) { + return nxrpMtchg != null && updateNxrpMtchg(params().set("nxrpMtchg", nxrpMtchg)) == 1; + } + + /**지정한 세외수입 매칭 내역을 삭제한다. + * @param params 파라미터 + *
  • "nxrpMtchg" - 세외수입 매칭 내역
  • + *
  • "currentUser" - 현재 접속한 사용자
  • + *
+ * @return 저장된 정보수 + */ + int deleteNxrpMtchg(Map params); + + /**세외수입 매칭 내역 정보를 삭제한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + default boolean delete(NxrpMtchg nxrpMtchg) { + return nxrpMtchg != null && deleteNxrpMtchg(params().set("nxrpMtchg", nxrpMtchg)) == 1; + } + +} diff --git a/src/main/java/cokr/xit/fims/sndb/service/NxrpMtchgService.java b/src/main/java/cokr/xit/fims/sndb/service/NxrpMtchgService.java new file mode 100644 index 00000000..6fec0f9f --- /dev/null +++ b/src/main/java/cokr/xit/fims/sndb/service/NxrpMtchgService.java @@ -0,0 +1,61 @@ +package cokr.xit.fims.sndb.service; + +import java.util.List; + +import cokr.xit.foundation.data.DataObject; + +import cokr.xit.fims.sndb.NxrpMtchg; +import cokr.xit.fims.sndb.NxrpMtchgQuery; + +/**세외수입 매칭 내역 관리 서비스 인터페이스. + * + *

상세 설명: + * + *

+ * ============ 변경 이력 ============
+ * 2023-11-16	JoJH 최초 작성
+ * ================================
+ * 
+ */ +public interface NxrpMtchgService { + + /**지정한 조건에 따라 세외수입 매칭 내역 목록을 조회하여 반환한다. + * @param req 세외수입 매칭 내역 조회 조건 + * @return 세외수입 매칭 내역 목록 + */ + List getNxrpMtchgList(NxrpMtchgQuery req); + + /**지정한 조건에 따라 세외수입 매칭 내역 객체들을 반환한다. + * @param req 세외수입 매칭 내역 조회 조건 + * @return 세외수입 매칭 내역 객체 목록 + */ + List getNxrpMtchgs(NxrpMtchgQuery req); + + /**세외수입 매칭 내역 정보를 등록한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + String createNxrpMtchg(NxrpMtchg nxrpMtchg); + + /**세외수입 매칭 내역 정보를 수정한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + String updateNxrpMtchg(NxrpMtchg nxrpMtchg); + + /**세외수입 매칭 내역 정보를 삭제한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + String removeNxrpMtchg(NxrpMtchg nxrpMtchg); + +} diff --git a/src/main/java/cokr/xit/fims/sndb/service/bean/NxrpMtchgBean.java b/src/main/java/cokr/xit/fims/sndb/service/bean/NxrpMtchgBean.java new file mode 100644 index 00000000..5f3945ab --- /dev/null +++ b/src/main/java/cokr/xit/fims/sndb/service/bean/NxrpMtchgBean.java @@ -0,0 +1,115 @@ +package cokr.xit.fims.sndb.service.bean; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Component; + +import cokr.xit.foundation.AbstractComponent; +import cokr.xit.foundation.data.DataObject; + +import cokr.xit.fims.sndb.NxrpMtchg; +import cokr.xit.fims.sndb.NxrpMtchgQuery; +import cokr.xit.fims.sndb.dao.NxrpMtchgMapper; + +/**세외수입 매칭 내역 정보 관리 Bean + * + *

상세 설명: + * + *

+ * ============ 변경 이력 ============
+ * 2023-11-16	JoJH 최초 작성
+ * ================================
+ * 
+ */ +@Component("nxrpMtchgBean") +public class NxrpMtchgBean extends AbstractComponent { + + /** 세외수입 매칭 내역 정보 DAO */ + @Resource(name = "nxrpMtchgMapper") + private NxrpMtchgMapper nxrpMtchgMapper; + + /**지정한 조건에 따라 세외수입 매칭 내역 목록을 조회하여 반환한다. + * @param req 세외수입 매칭 내역 조회 조건 + * @return 세외수입 매칭 내역 목록 + */ + public List getNxrpMtchgList(NxrpMtchgQuery req) { + return nxrpMtchgMapper.selectNxrpMtchgList(req); + } + + /**지정한 조건에 따라 세외수입 매칭 내역 객체들을 반환한다. + * @param req 세외수입 매칭 내역 조회 조건 + * @return 세외수입 매칭 내역 객체 목록 + */ + public List getNxrpMtchgs(NxrpMtchgQuery req) { + return nxrpMtchgMapper.selectNxrpMtchgs(req); + } + + /**세외수입 매칭 내역 정보를 등록한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + public String createNxrpMtchg(NxrpMtchg nxrpMtchg) { + // 변수 선언 + boolean retSuccess = false; // DB 처리 결과 + String retMessage = "[F] "; // 처리 결과 메시지 + + retSuccess = nxrpMtchgMapper.insert(nxrpMtchg); + if (!retSuccess) { + throw new RuntimeException("세외수입 매칭 내역 정보를 등록에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback + } + + retMessage = "[S] 작업이 정상 처리 되었습니다."; + + return retMessage; + } + + /**세외수입 매칭 내역 정보를 수정한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + public String updateNxrpMtchg(NxrpMtchg nxrpMtchg) { + // 변수 선언 + boolean retSuccess = false; // DB 처리 결과 + String retMessage = "[F] "; // 처리 결과 메시지 + + retSuccess = nxrpMtchgMapper.update(nxrpMtchg); + if (!retSuccess) { + throw new RuntimeException("세외수입 매칭 내역 정보를 수정에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback + } + + retMessage = "[S] 작업이 정상 처리 되었습니다."; + + return retMessage; + } + + /**세외수입 매칭 내역 정보를 삭제한다. + * @param nxrpMtchg 세외수입 매칭 내역 + * @return 저장 여부 + *
  • 저장됐으면 true
  • + *
  • 그렇지 않으면 false
  • + *
+ */ + public String removeNxrpMtchg(NxrpMtchg nxrpMtchg) { + // 변수 선언 + boolean retSuccess = false; // DB 처리 결과 + String retMessage = "[F] "; // 처리 결과 메시지 + + retSuccess = nxrpMtchgMapper.delete(nxrpMtchg); + if (!retSuccess) { + throw new RuntimeException("세외수입 매칭 내역 정보를 삭제에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback + } + + retMessage = "[S] 작업이 정상 처리 되었습니다."; + + return retMessage; + } + +} diff --git a/src/main/java/cokr/xit/fims/sndb/service/bean/NxrpMtchgServiceBean.java b/src/main/java/cokr/xit/fims/sndb/service/bean/NxrpMtchgServiceBean.java new file mode 100644 index 00000000..3fc41821 --- /dev/null +++ b/src/main/java/cokr/xit/fims/sndb/service/bean/NxrpMtchgServiceBean.java @@ -0,0 +1,58 @@ +package cokr.xit.fims.sndb.service.bean; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import cokr.xit.foundation.component.AbstractServiceBean; +import cokr.xit.foundation.data.DataObject; + +import cokr.xit.fims.sndb.NxrpMtchg; +import cokr.xit.fims.sndb.NxrpMtchgQuery; +import cokr.xit.fims.sndb.service.NxrpMtchgService; + +/**세외수입 매칭 내역 서비스 구현체. + * + *

상세 설명: + * + *

+ * ============ 변경 이력 ============
+ * 2023-11-16	JoJH 최초 작성
+ * ================================
+ * 
+ */ +@Service("nxrpMtchgService") +public class NxrpMtchgServiceBean extends AbstractServiceBean implements NxrpMtchgService { + + /** 세외수입 매칭 내역 정보 Bean */ + @Resource(name = "nxrpMtchgBean") + private NxrpMtchgBean nxrpMtchgBean; + + @Override + public List getNxrpMtchgList(NxrpMtchgQuery req) { + return nxrpMtchgBean.getNxrpMtchgList(req); + } + + @Override + public List getNxrpMtchgs(NxrpMtchgQuery req) { + return nxrpMtchgBean.getNxrpMtchgs(req); + } + + @Override + public String createNxrpMtchg(NxrpMtchg nxrpMtchg) { + return nxrpMtchgBean.createNxrpMtchg(nxrpMtchg); + } + + @Override + public String updateNxrpMtchg(NxrpMtchg nxrpMtchg) { + return nxrpMtchgBean.updateNxrpMtchg(nxrpMtchg); + } + + @Override + public String removeNxrpMtchg(NxrpMtchg nxrpMtchg) { + return nxrpMtchgBean.removeNxrpMtchg(nxrpMtchg); + } + +} diff --git a/src/main/java/cokr/xit/fims/sndb/service/bean/SndngBean.java b/src/main/java/cokr/xit/fims/sndb/service/bean/SndngBean.java index cb6e985d..c0e05675 100644 --- a/src/main/java/cokr/xit/fims/sndb/service/bean/SndngBean.java +++ b/src/main/java/cokr/xit/fims/sndb/service/bean/SndngBean.java @@ -180,6 +180,7 @@ public class SndngBean extends AbstractComponent { // 변수 선언 boolean retSuccess = false; // DB 처리 결과 String retMessage = "[F] "; // 처리 결과 메시지 + String newCrdnSttsCd = ""; // 단속 상태 코드 int ffnlgAmt = 0; // 과태료 금액 int pcptax = 0; // 본세 @@ -381,6 +382,7 @@ public class SndngBean extends AbstractComponent { // 변수 선언 boolean retSuccess = false; // DB 처리 결과 String retMessage = "[F] "; // 처리 결과 메시지 + String newCrdnSttsCd = ""; // 단속 상태 코드 int ffnlgAmt = 0; // 과태료 금액 int pcptax = 0; // 본세 diff --git a/src/main/java/cokr/xit/fims/sndb/web/Sndb02Controller.java b/src/main/java/cokr/xit/fims/sndb/web/Sndb02Controller.java index 9edd065b..f35bad40 100644 --- a/src/main/java/cokr/xit/fims/sndb/web/Sndb02Controller.java +++ b/src/main/java/cokr/xit/fims/sndb/web/Sndb02Controller.java @@ -1,9 +1,12 @@ package cokr.xit.fims.sndb.web; +import javax.annotation.Resource; + import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.sndb.NxrpMtchg; +import cokr.xit.fims.sndb.service.NxrpMtchgService; /**발송 세외수입 매핑 서비스의 웹 컨트롤러 * @@ -21,12 +24,18 @@ public class Sndb02Controller extends ApplicationController { public class METHOD_URL { public static final String - createNonTaxReceiptMatching = "/010/create.do" // 세외수입 매핑 등록 + createNonTaxReceiptMatching = "/010/create.do" // 세외수입 매핑 내역 등록 + , updateNonTaxReceiptMatching = "/010/update.do" // 세외수입 매칭 내역 수정 + , removeNonTaxReceiptMatching = "/010/remove.do" // 세외수입 매칭 내역 제거 ; } - /**세외수입 매핑 대장에 등록한다. - * @param sndng 발송 정보 + /**세외수입 매칭 내역 서비스*/ + @Resource(name = "nxrpMtchgService") + private NxrpMtchgService nxrpMtchgService; + + /**세외수입 매칭 내역를 등록한다. + * @param nxrpMtchg 세외수입 매칭 내역 정보 * @return jsonView *
 {
 	 *     "saved": 등록되었으면 true, 그렇지 않으면 false
@@ -34,17 +43,62 @@ public class Sndb02Controller extends ApplicationController {
 	 */
 	public ModelAndView createNonTaxReceiptMatching(NxrpMtchg nxrpMtchg) {
 		boolean saved = false;
-		String retMessage = "";
-//		String retMessage = sndngService.createWrngSndng(nxrpMtchg);
-//
-//		if (retMessage.contains("[S]")) {
-//			saved = true;
-//		} else {
-//			saved = false;
-//		}
+		String retMessage = nxrpMtchgService.createNxrpMtchg(nxrpMtchg);
+
+		if (retMessage.contains("[S]")) {
+			saved = true;
+		} else {
+			saved = false;
+		}
+
+		return new ModelAndView("jsonView")
+				.addObject("saved", saved)
+				.addObject("retMessage", retMessage);
+	}
+
+	/**세외수입 매칭 내역 정보를 수정한다.
+	 * @param nxrpMtchg 세외수입 매칭 내역 정보
+	 * @return jsonView
+	 * 
 {
+	 *     "saved": 수정되었으면 true, 그렇지 않으면 false
+	 * }
+ */ + public ModelAndView updateNonTaxReceiptMatching(NxrpMtchg nxrpMtchg) { + boolean saved = false; + String retMessage = nxrpMtchgService.updateNxrpMtchg(nxrpMtchg); + + if (retMessage.contains("[S]")) { + saved = true; + } else { + saved = false; + } + + return new ModelAndView("jsonView") + .addObject("saved", saved) + .addObject("retMessage", retMessage); + } + + /**지정한 세외수입 매칭 내역를 제거한다. + * @param nxrpMtchgIDs 세외수입 매칭 내역 아이디 + * @return jsonView + *
 {
+	 *     "affected": 저장된 정보수
+	 *     "saved": 저장되었으면 true, 그렇지 않으면 false
+	 * }
+ */ + public ModelAndView removeNonTaxReceiptMatching(NxrpMtchg nxrpMtchg) { + boolean saved = false; + String retMessage = nxrpMtchgService.removeNxrpMtchg(nxrpMtchg); + + if (retMessage.contains("[S]")) { + saved = true; + } else { + saved = false; + } return new ModelAndView("jsonView") .addObject("saved", saved) .addObject("retMessage", retMessage); } + } diff --git a/src/main/java/cokr/xit/fims/task/web/BpvController.java b/src/main/java/cokr/xit/fims/task/web/BpvController.java index f420f305..5153b657 100644 --- a/src/main/java/cokr/xit/fims/task/web/BpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/BpvController.java @@ -23,7 +23,6 @@ import cokr.xit.fims.payer.PayerQuery; import cokr.xit.fims.sprt.CvlcptDscsn; import cokr.xit.fims.sprt.CvlcptDscsnQuery; import cokr.xit.fims.sprt.SprtQuery; -import cokr.xit.fims.sprt.web.Sprt02Controller.METHOD_URL; @Controller public class BpvController { diff --git a/src/main/java/cokr/xit/fims/task/web/DpvController.java b/src/main/java/cokr/xit/fims/task/web/DpvController.java index 33f38cf3..f6591bed 100644 --- a/src/main/java/cokr/xit/fims/task/web/DpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/DpvController.java @@ -26,7 +26,6 @@ import cokr.xit.fims.sndb.Svbtc; import cokr.xit.fims.sprt.CvlcptDscsn; import cokr.xit.fims.sprt.CvlcptDscsnQuery; import cokr.xit.fims.sprt.SprtQuery; -import cokr.xit.fims.sprt.web.Sprt02Controller.METHOD_URL; @Controller public class DpvController { @@ -690,10 +689,23 @@ public class DpvController { class Sndb02Controller extends cokr.xit.fims.sndb.web.Sndb02Controller { @Override - @RequestMapping(name="세외수입 매핑 등록", value=METHOD_URL.createNonTaxReceiptMatching) + @RequestMapping(name="세외수입 매핑 내역 등록", value=METHOD_URL.createNonTaxReceiptMatching) public ModelAndView createNonTaxReceiptMatching(NxrpMtchg nxrpMtchg) { return super.createNonTaxReceiptMatching(nxrpMtchg); } + + @Override + @RequestMapping(name="세외수입 매핑 내역 수정", value=METHOD_URL.updateNonTaxReceiptMatching) + public ModelAndView updateNonTaxReceiptMatching(NxrpMtchg nxrpMtchg) { + return super.updateNonTaxReceiptMatching(nxrpMtchg); + } + + @Override + @RequestMapping(name="세외수입 매핑 내역 제거", value=METHOD_URL.removeNonTaxReceiptMatching) + public ModelAndView removeNonTaxReceiptMatching(NxrpMtchg nxrpMtchg) { + return super.removeNonTaxReceiptMatching(nxrpMtchg); + } + } @Controller diff --git a/src/main/java/cokr/xit/fims/task/web/EcaController.java b/src/main/java/cokr/xit/fims/task/web/EcaController.java index ec98ff9f..8d86d204 100644 --- a/src/main/java/cokr/xit/fims/task/web/EcaController.java +++ b/src/main/java/cokr/xit/fims/task/web/EcaController.java @@ -21,7 +21,6 @@ import cokr.xit.fims.payer.PayerQuery; import cokr.xit.fims.sprt.CvlcptDscsn; import cokr.xit.fims.sprt.CvlcptDscsnQuery; import cokr.xit.fims.sprt.SprtQuery; -import cokr.xit.fims.sprt.web.Sprt02Controller.METHOD_URL; @Controller public class EcaController { diff --git a/src/main/java/cokr/xit/fims/task/web/PvsController.java b/src/main/java/cokr/xit/fims/task/web/PvsController.java index 90282b07..f3032d11 100644 --- a/src/main/java/cokr/xit/fims/task/web/PvsController.java +++ b/src/main/java/cokr/xit/fims/task/web/PvsController.java @@ -22,7 +22,6 @@ import cokr.xit.fims.payer.PayerQuery; import cokr.xit.fims.sprt.CvlcptDscsn; import cokr.xit.fims.sprt.CvlcptDscsnQuery; import cokr.xit.fims.sprt.SprtQuery; -import cokr.xit.fims.sprt.web.Sprt02Controller.METHOD_URL; @Controller public class PvsController { diff --git a/src/main/resources/sql/mapper/fims/sndb/nxrpMtchg-mapper.xml b/src/main/resources/sql/mapper/fims/sndb/nxrpMtchg-mapper.xml new file mode 100644 index 00000000..cb30ab35 --- /dev/null +++ b/src/main/resources/sql/mapper/fims/sndb/nxrpMtchg-mapper.xml @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT MTCHG_ID + , CRDN_ID + , CRDN_DT + , STDG_NM + , CRDN_PLC + , LVY_KEY + , ACNTG_YR + , LEVY_NO + , LEVY_AMT + , ADTN_AMT + , SUM_AMT + , PRCS_STTS_CD + , EPAYNO + , BANK_NM1 + , VRACTNO1 + , BANK_NM2 + , VRACTNO2 + , BANK_NM3 + , VRACTNO3 + , BANK_NM4 + , VRACTNO4 + , BANK_NM5 + , VRACTNO5 + , BANK_NM6 + , VRACTNO6 + , BANK_NM7 + , VRACTNO7 + , BANK_NM8 + , VRACTNO8 + , BANK_NM9 + , VRACTNO9 + , BANK_NM10 + , VRACTNO10 + , BANK_NM11 + , VRACTNO11 + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_NXRP_MTCHG + + + + + + + /* 세외수입 매칭 내역 등록(nxrpMtchgMapper.insertNxrpMtchg) */ + + SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(MTCHG_ID, 5)) + 1, 1) AS INT), 16, '0')) AS NEW_ID + FROM TB_NXRP_MTCHG + WHERE MTCHG_ID LIKE CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), '%') + + INSERT + INTO TB_NXRP_MTCHG ( + MTCHG_ID + , CRDN_ID + , CRDN_DT + , STDG_NM + , CRDN_PLC + , LVY_KEY + , ACNTG_YR + , LEVY_NO + , LEVY_AMT + , ADTN_AMT + , SUM_AMT + , PRCS_STTS_CD + , EPAYNO + , BANK_NM1 + , VRACTNO1 + , BANK_NM2 + , VRACTNO2 + , BANK_NM3 + , VRACTNO3 + , BANK_NM4 + , VRACTNO4 + , BANK_NM5 + , VRACTNO5 + , BANK_NM6 + , VRACTNO6 + , BANK_NM7 + , VRACTNO7 + , BANK_NM8 + , VRACTNO8 + , BANK_NM9 + , VRACTNO9 + , BANK_NM10 + , VRACTNO10 + , BANK_NM11 + , VRACTNO11 + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + ) + VALUES ( + #{nxrpMtchg.mtchgId} + , #{nxrpMtchg.crdnId} + , #{nxrpMtchg.crdnDt} + , #{nxrpMtchg.stdgNm} + , #{nxrpMtchg.crdnPlc} + , #{nxrpMtchg.lvyKey} + , #{nxrpMtchg.acntgYr} + , #{nxrpMtchg.levyNo} + , #{nxrpMtchg.levyAmt} + , #{nxrpMtchg.adtnAmt} + , #{nxrpMtchg.sumAmt} + , #{nxrpMtchg.prcsSttsCd} + , #{nxrpMtchg.epayno} + , #{nxrpMtchg.bankNm1} + , #{nxrpMtchg.vractno1} + , #{nxrpMtchg.bankNm2} + , #{nxrpMtchg.vractno2} + , #{nxrpMtchg.bankNm3} + , #{nxrpMtchg.vractno3} + , #{nxrpMtchg.bankNm4} + , #{nxrpMtchg.vractno4} + , #{nxrpMtchg.bankNm5} + , #{nxrpMtchg.vractno5} + , #{nxrpMtchg.bankNm6} + , #{nxrpMtchg.vractno6} + , #{nxrpMtchg.bankNm7} + , #{nxrpMtchg.vractno7} + , #{nxrpMtchg.bankNm8} + , #{nxrpMtchg.vractno8} + , #{nxrpMtchg.bankNm9} + , #{nxrpMtchg.vractno9} + , #{nxrpMtchg.bankNm10} + , #{nxrpMtchg.vractno10} + , #{nxrpMtchg.bankNm11} + , #{nxrpMtchg.vractno11} + , + , #{nxrpMtchg.createdBy} + , + , #{nxrpMtchg.modifiedBy} + ) + + + /* 세외수입 매칭 내역 수정(nxrpMtchgMapper.updateNxrpMtchg) */ + UPDATE TB_NXRP_MTCHG + SET CRDN_DT = #{nxrpMtchg.crdnDt} + , STDG_NM = #{nxrpMtchg.stdgNm} + , CRDN_PLC = #{nxrpMtchg.crdnPlc} + , LVY_KEY = #{nxrpMtchg.lvyKey} + , ACNTG_YR = #{nxrpMtchg.acntgYr} + , LEVY_NO = #{nxrpMtchg.levyNo} + , LEVY_AMT = #{nxrpMtchg.levyAmt} + , ADTN_AMT = #{nxrpMtchg.adtnAmt} + , SUM_AMT = #{nxrpMtchg.sumAmt} + , PRCS_STTS_CD = #{nxrpMtchg.prcsSttsCd} + , EPAYNO = #{nxrpMtchg.epayno} + , BANK_NM1 = #{nxrpMtchg.bankNm1} + , VRACTNO1 = #{nxrpMtchg.vractno1} + , BANK_NM2 = #{nxrpMtchg.bankNm2} + , VRACTNO2 = #{nxrpMtchg.vractno2} + , BANK_NM3 = #{nxrpMtchg.bankNm3} + , VRACTNO3 = #{nxrpMtchg.vractno3} + , BANK_NM4 = #{nxrpMtchg.bankNm4} + , VRACTNO4 = #{nxrpMtchg.vractno4} + , BANK_NM5 = #{nxrpMtchg.bankNm5} + , VRACTNO5 = #{nxrpMtchg.vractno5} + , BANK_NM6 = #{nxrpMtchg.bankNm6} + , VRACTNO6 = #{nxrpMtchg.vractno6} + , BANK_NM7 = #{nxrpMtchg.bankNm7} + , VRACTNO7 = #{nxrpMtchg.vractno7} + , BANK_NM8 = #{nxrpMtchg.bankNm8} + , VRACTNO8 = #{nxrpMtchg.vractno8} + , BANK_NM9 = #{nxrpMtchg.bankNm9} + , VRACTNO9 = #{nxrpMtchg.vractno9} + , BANK_NM10 = #{nxrpMtchg.bankNm10} + , VRACTNO10 = #{nxrpMtchg.vractno10} + , BANK_NM11 = #{nxrpMtchg.bankNm11} + , VRACTNO11 = #{nxrpMtchg.vractno11} + , MDFCN_DT = + , MDFR = #{nxrpMtchg.modifiedBy} + WHERE MTCHG_ID = #{nxrpMtchg.mtchgId} + + + /* 세외수입 매칭 내역 삭제(nxrpMtchgMapper.deleteNxrpMtchg) */ + UPDATE TB_NXRP_MTCHG + SET DEL_YN = 'N' + , MDFCN_DT = + , MDFR = #{nxrpMtchg.modifiedBy} + WHERE MTCHG_ID = #{nxrpMtchg.mtchgId} + AND DEL_YN = 'Y' + + + diff --git a/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml b/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml index 1d188625..8fa10d66 100644 --- a/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml @@ -7,110 +7,108 @@ 2023-08-25 JoJH 최초 작성 ============================ --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1124,128 +1122,128 @@ /* 발송상세의 반송 정보 수정(sndngMapper.createSndbk) */ UPDATE TB_SNDNG_DTL - SET BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD - , DLVR_YMD = #{sndngDtl.dlvrYmd} - , DLVR_TM = #{sndngDtl.dlvrTm} - , UNDLVR_RSN_NM = #{sndngDtl.undlvrRsnNm} - , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} - , MDFCN_DT = - , MDFR = #{sndngDtl.modifiedBy} - WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} + SET BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD + , DLVR_YMD = #{sndngDtl.dlvrYmd} + , DLVR_TM = #{sndngDtl.dlvrTm} + , UNDLVR_RSN_NM = #{sndngDtl.undlvrRsnNm} + , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} + , MDFCN_DT = + , MDFR = #{sndngDtl.modifiedBy} + WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} AND DEL_YN = 'N' /* 발송상세의 반송 정보 수정(sndngMapper.updateSndbk) */ UPDATE TB_SNDNG_DTL - SET DLVR_YMD = #{sndngDtl.dlvrYmd} - , DLVR_TM = #{sndngDtl.dlvrTm} - , UNDLVR_RSN_NM = #{sndngDtl.undlvrRsnNm} - , MDFCN_DT = - , MDFR = #{sndngDtl.modifiedBy} - WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} + SET DLVR_YMD = #{sndngDtl.dlvrYmd} + , DLVR_TM = #{sndngDtl.dlvrTm} + , UNDLVR_RSN_NM = #{sndngDtl.undlvrRsnNm} + , MDFCN_DT = + , MDFR = #{sndngDtl.modifiedBy} + WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} AND DEL_YN = 'N' /* 발송상세의 반송 정보 삭제(sndngMapper.deleteSndbk) */ UPDATE TB_SNDNG_DTL - SET BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD - , UNDLVR_RSN_NM = NULL - , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} - , MDFCN_DT = - , MDFR = #{sndngDtl.modifiedBy} - WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} + SET BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD + , UNDLVR_RSN_NM = NULL + , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} + , MDFCN_DT = + , MDFR = #{sndngDtl.modifiedBy} + WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} AND DEL_YN = 'N' - SELECT C.CRDN_ID - , C.SGG_CD - , C.TASK_SE_CD - , C.CRDN_INPT_SE_CD - , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM - , C.CRDN_YMD - , C.CRDN_TM - , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM - , GET_MASK_DATETIME(C.CRDN_YMD, '-', C.CRDN_TM, ':') AS CRDN_YMD_TM_MASK - , C.VHRNO - , C.CRDN_STDG_NM - , C.CRDN_ROAD_NM - , C.CRDN_PLC - , C.FFNLG_CRDN_AMT - , C.ADVNTCE_AMT - , C.CRDN_STTS_CD - , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM - , C.CRDN_STTS_CHG_DT - , C.REG_DT - , C.RGTR - , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.RGTR) AS RGTR_NM - , C.MDFCN_DT - , C.MDFR - , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.MDFR) AS MDFR_NM - , CA.CRDN_SE_CD - , (SELECT GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM - , CA.CRDN_SPAREA_CD - , (SELECT GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM - , CA.PARKNG_PSBLTY_RSLT_CD - , (SELECT GET_CODE_NM('FIM034', CA.PARKNG_PSBLTY_RSLT_CD) FROM DUAL) AS PARKNG_PSBLTY_RSLT_NM - , VI.VLTN_ID - , VI.VLTN_CD - , VI.VLTN_ARTCL - , CC.CVLCPT_LINK_ID - , CC.CVLCPT_RCPT_YMD - , CC.CVLCPT_APLY_NO - , CC.CVLCPT_RCPT_NO - , CC.CVLCPT_PRCS_SUMRY - , CC.CVLCPT_PRCS_CD - , CC.CVLCPT_PRCS_CMPTN_DT - , CC.CVLCPT_TRSM_CD - , CC.CVLCPT_TRSM_DT - , P.RTPYR_ID - , P.RTPYR_NO - , P.RTPYR_NM - , P.RTPYR_BRDT - , P.ZIP - , P.ADDR - , P.DTL_ADDR - , L.INST_CD - , L.DEPT_CD - , L.FYR - , L.ACNTG_SE_CD - , L.TXITM_CD - , L.OPER_ITEM_CD - , L.SPCL_BIZ_CD - , L.LEVY_NO - , L.INSPY_SN - , L.LEVY_SE_CD - , L.LEVY_YMD - , L.FRST_DUDT_YMD - , L.DUDT_YMD - , L.DUDT_AFTR_YMD + SELECT C.CRDN_ID + , C.SGG_CD + , C.TASK_SE_CD + , C.CRDN_INPT_SE_CD + , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM + , C.CRDN_YMD + , C.CRDN_TM + , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM + , GET_MASK_DATETIME(C.CRDN_YMD, '-', C.CRDN_TM, ':') AS CRDN_YMD_TM_MASK + , C.VHRNO + , C.CRDN_STDG_NM + , C.CRDN_ROAD_NM + , C.CRDN_PLC + , C.FFNLG_CRDN_AMT + , C.ADVNTCE_AMT + , C.CRDN_STTS_CD + , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM + , C.CRDN_STTS_CHG_DT + , C.REG_DT + , C.RGTR + , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.RGTR) AS RGTR_NM + , C.MDFCN_DT + , C.MDFR + , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.MDFR) AS MDFR_NM + , CA.CRDN_SE_CD + , (SELECT GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM + , CA.CRDN_SPAREA_CD + , (SELECT GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM + , CA.PARKNG_PSBLTY_RSLT_CD + , (SELECT GET_CODE_NM('FIM034', CA.PARKNG_PSBLTY_RSLT_CD) FROM DUAL) AS PARKNG_PSBLTY_RSLT_NM + , VI.VLTN_ID + , VI.VLTN_CD + , VI.VLTN_ARTCL + , CC.CVLCPT_LINK_ID + , CC.CVLCPT_RCPT_YMD + , CC.CVLCPT_APLY_NO + , CC.CVLCPT_RCPT_NO + , CC.CVLCPT_PRCS_SUMRY + , CC.CVLCPT_PRCS_CD + , CC.CVLCPT_PRCS_CMPTN_DT + , CC.CVLCPT_TRSM_CD + , CC.CVLCPT_TRSM_DT + , P.RTPYR_ID + , P.RTPYR_NO + , P.RTPYR_NM + , P.RTPYR_BRDT + , P.ZIP + , P.ADDR + , P.DTL_ADDR + , L.INST_CD + , L.DEPT_CD + , L.FYR + , L.ACNTG_SE_CD + , L.TXITM_CD + , L.OPER_ITEM_CD + , L.SPCL_BIZ_CD + , L.LEVY_NO + , L.INSPY_SN + , L.LEVY_SE_CD + , L.LEVY_YMD + , L.FRST_DUDT_YMD + , L.DUDT_YMD + , L.DUDT_AFTR_YMD , (CASE WHEN L.FFNLG_AMT IS NOT NULL THEN L.FFNLG_AMT ELSE C.FFNLG_AMT - END) AS FFNLG_AMT - , L.LEVY_PCPTAX - , L.LEVY_ADAMT - , L.INSPY_INT - , L.RCVMT_PCPTAX - , L.RCVMT_ADAMT - , L.RDCAMT_PCPTAX - , L.RDCAMT_ADAMT - , L.LEVY_PCPTAX-L.RCVMT_PCPTAX-L.RDCAMT_PCPTAX AS PCPTAX - , L.LEVY_ADAMT-L.RCVMT_ADAMT-L.RDCAMT_ADAMT AS ADAMT - , L.SUM_AMT - , L.DUDT_AFTR_AMT - , L.TXTN_THING - , L.MNG_ARTCL1 - , L.MNG_ARTCL2 - , L.MNG_ARTCL3 - , L.MNG_ARTCL4 - , L.MNG_ARTCL5 - , L.MNG_ARTCL6 - , L.EPAYNO - , L.BANK_NM - , L.VR_ACTNO - , L.BANK_NM2 - , L.VR_ACTNO2 - , L.BANK_NM3 - , L.VR_ACTNO3 - , L.BANK_NM4 - , L.VR_ACTNO4 - , L.BANK_NM5 - , L.VR_ACTNO5 - , L.BANK_NM6 - , L.VR_ACTNO6 - , L.BANK_NM7 - , L.VR_ACTNO7 - , L.BANK_NM8 - , L.VR_ACTNO8 - , L.BANK_NM9 - , L.VR_ACTNO9 - , L.BANK_NM10 - , L.VR_ACTNO10 - , L.BANK_NM11 - , L.VR_ACTNO11 + END) AS FFNLG_AMT + , L.LEVY_PCPTAX + , L.LEVY_ADAMT + , L.INSPY_INT + , L.RCVMT_PCPTAX + , L.RCVMT_ADAMT + , L.RDCAMT_PCPTAX + , L.RDCAMT_ADAMT + , L.LEVY_PCPTAX-L.RCVMT_PCPTAX-L.RDCAMT_PCPTAX AS PCPTAX + , L.LEVY_ADAMT-L.RCVMT_ADAMT-L.RDCAMT_ADAMT AS ADAMT + , L.SUM_AMT + , L.DUDT_AFTR_AMT + , L.TXTN_THING + , L.MNG_ARTCL1 + , L.MNG_ARTCL2 + , L.MNG_ARTCL3 + , L.MNG_ARTCL4 + , L.MNG_ARTCL5 + , L.MNG_ARTCL6 + , L.EPAYNO + , L.BANK_NM + , L.VR_ACTNO + , L.BANK_NM2 + , L.VR_ACTNO2 + , L.BANK_NM3 + , L.VR_ACTNO3 + , L.BANK_NM4 + , L.VR_ACTNO4 + , L.BANK_NM5 + , L.VR_ACTNO5 + , L.BANK_NM6 + , L.VR_ACTNO6 + , L.BANK_NM7 + , L.VR_ACTNO7 + , L.BANK_NM8 + , L.VR_ACTNO8 + , L.BANK_NM9 + , L.VR_ACTNO9 + , L.BANK_NM10 + , L.VR_ACTNO10 + , L.BANK_NM11 + , L.VR_ACTNO11 FROM TB_CRDN C INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID) @@ -1372,14 +1370,14 @@ - AND C.CRDN_ID IN ( + AND C.CRDN_ID IN ( #{crdnId} ) - AND C.CRDN_ID = #{crdnId} + AND C.CRDN_ID = #{crdnId} - AND C.DEL_YN = 'N' + AND C.DEL_YN = 'N' @@ -1391,259 +1389,259 @@ INSERT INTO TB_SNDNG_DTL ( - SNDNG_DTL_ID - , SNDNG_ID - , CRDN_ID - , LEVY_ID - , SVBTC_ID - , SNDNG_SE_CD - , VHRNO - , CRDN_DT - , CRDN_STDG_NM - , CRDN_PLC - , LEV_KEY - , FYR - , LEVY_NO - , SNDNG_YMD - , DUDT_YMD - , FFNLG_AMT - , PCPTAX - , ADAMT - , SUM_AMT - , RTPYR_NM - , RTPYR_NO - , RTPYR_ADDR - , RTPYR_DTL_ADDR - , RTPYR_ZIP - , CON_KEY - , RG_NO - , DLVR_YMD - , DLVR_TM - , UNDLVR_RSN_NM - , RCPN_NM - , RCPN_REL_NM - , SNDNG_DTL_STTS_CD - , BFR_SNDNG_DTL_STTS_CD - , BFR_DLVR_YMD - , BFR_DLVR_HR - , SNDNG_RCVMT_CD - , ADDR_CHG_CD - , TAX_NO - , EPAYNO - , BANK_NM - , VR_ACTNO - , BANK_NM_2 - , VR_ACTNO_2 - , BANK_NM_3 - , VR_ACTNO_3 - , BANK_NM_4 - , VR_ACTNO_4 - , BANK_NM_5 - , VR_ACTNO_5 - , BANK_NM_6 - , VR_ACTNO_6 - , BANK_NM_7 - , VR_ACTNO_7 - , BANK_NM_8 - , VR_ACTNO_8 - , BANK_NM_9 - , VR_ACTNO_9 - , BANK_NM_10 - , VR_ACTNO_10 - , BANK_NM_11 - , VR_ACTNO_11 - , DEL_YN - , REG_DT - , RGTR - , MDFCN_DT - , MDFR + SNDNG_DTL_ID + , SNDNG_ID + , CRDN_ID + , LEVY_ID + , SVBTC_ID + , SNDNG_SE_CD + , VHRNO + , CRDN_DT + , CRDN_STDG_NM + , CRDN_PLC + , LEV_KEY + , FYR + , LEVY_NO + , SNDNG_YMD + , DUDT_YMD + , FFNLG_AMT + , PCPTAX + , ADAMT + , SUM_AMT + , RTPYR_NM + , RTPYR_NO + , RTPYR_ADDR + , RTPYR_DTL_ADDR + , RTPYR_ZIP + , CON_KEY + , RG_NO + , DLVR_YMD + , DLVR_TM + , UNDLVR_RSN_NM + , RCPN_NM + , RCPN_REL_NM + , SNDNG_DTL_STTS_CD + , BFR_SNDNG_DTL_STTS_CD + , BFR_DLVR_YMD + , BFR_DLVR_HR + , SNDNG_RCVMT_CD + , ADDR_CHG_CD + , TAX_NO + , EPAYNO + , BANK_NM + , VR_ACTNO + , BANK_NM_2 + , VR_ACTNO_2 + , BANK_NM_3 + , VR_ACTNO_3 + , BANK_NM_4 + , VR_ACTNO_4 + , BANK_NM_5 + , VR_ACTNO_5 + , BANK_NM_6 + , VR_ACTNO_6 + , BANK_NM_7 + , VR_ACTNO_7 + , BANK_NM_8 + , VR_ACTNO_8 + , BANK_NM_9 + , VR_ACTNO_9 + , BANK_NM_10 + , VR_ACTNO_10 + , BANK_NM_11 + , VR_ACTNO_11 + , DEL_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR ) VALUES ( - #{sndngDtl.sndngDtlId} - , #{sndngDtl.sndngId} - , #{sndngDtl.crdnId} - , #{sndngDtl.levyId} - , #{sndngDtl.svbtcId} - , #{sndngDtl.sndngSeCd} - , #{sndngDtl.vhrno} - , #{sndngDtl.crdnDt} - , #{sndngDtl.crdnStdgNm} - , #{sndngDtl.crdnPlc} - , #{sndngDtl.levKey} - , #{sndngDtl.fyr} - , #{sndngDtl.levyNo} - , #{sndngDtl.sndngYmd} - , #{sndngDtl.dudtYmd} - , #{sndngDtl.ffnlgAmt} - , #{sndngDtl.pcptax} - , #{sndngDtl.adamt} - , #{sndngDtl.sumAmt} - , #{sndngDtl.rtpyrNm} - , #{sndngDtl.rtpyrNo} - , #{sndngDtl.rtpyrAddr} - , #{sndngDtl.rtpyrDtlAddr} - , #{sndngDtl.rtpyrZip} - , #{sndngDtl.conKey} - , #{sndngDtl.rgNo} - , #{sndngDtl.dlvrYmd} - , #{sndngDtl.dlvrTm} - , #{sndngDtl.undlvrRsnNm} - , #{sndngDtl.rcpnNm} - , #{sndngDtl.rcpnRelNm} - , #{sndngDtl.sndngDtlSttsCd} - , #{sndngDtl.bfrSndngDtlSttsCd} - , #{sndngDtl.bfrDlvrYmd} - , #{sndngDtl.bfrDlvrHr} - , #{sndngDtl.sndngRcvmtCd} - , #{sndngDtl.addrChgCd} - , #{sndngDtl.taxNo} - , #{sndngDtl.epayno} - , #{sndngDtl.bankNm} - , #{sndngDtl.vrActno} - , #{sndngDtl.bankNm2} - , #{sndngDtl.vrActno2} - , #{sndngDtl.bankNm3} - , #{sndngDtl.vrActno3} - , #{sndngDtl.bankNm4} - , #{sndngDtl.vrActno4} - , #{sndngDtl.bankNm5} - , #{sndngDtl.vrActno5} - , #{sndngDtl.bankNm6} - , #{sndngDtl.vrActno6} - , #{sndngDtl.bankNm7} - , #{sndngDtl.vrActno7} - , #{sndngDtl.bankNm8} - , #{sndngDtl.vrActno8} - , #{sndngDtl.bankNm9} - , #{sndngDtl.vrActno9} - , #{sndngDtl.bankNm10} - , #{sndngDtl.vrActno10} - , #{sndngDtl.bankNm11} - , #{sndngDtl.vrActno11} - , 'N' - , - , #{sndngDtl.createdBy} - , - , #{sndngDtl.modifiedBy} + #{sndngDtl.sndngDtlId} + , #{sndngDtl.sndngId} + , #{sndngDtl.crdnId} + , #{sndngDtl.levyId} + , #{sndngDtl.svbtcId} + , #{sndngDtl.sndngSeCd} + , #{sndngDtl.vhrno} + , #{sndngDtl.crdnDt} + , #{sndngDtl.crdnStdgNm} + , #{sndngDtl.crdnPlc} + , #{sndngDtl.levKey} + , #{sndngDtl.fyr} + , #{sndngDtl.levyNo} + , #{sndngDtl.sndngYmd} + , #{sndngDtl.dudtYmd} + , #{sndngDtl.ffnlgAmt} + , #{sndngDtl.pcptax} + , #{sndngDtl.adamt} + , #{sndngDtl.sumAmt} + , #{sndngDtl.rtpyrNm} + , #{sndngDtl.rtpyrNo} + , #{sndngDtl.rtpyrAddr} + , #{sndngDtl.rtpyrDtlAddr} + , #{sndngDtl.rtpyrZip} + , #{sndngDtl.conKey} + , #{sndngDtl.rgNo} + , #{sndngDtl.dlvrYmd} + , #{sndngDtl.dlvrTm} + , #{sndngDtl.undlvrRsnNm} + , #{sndngDtl.rcpnNm} + , #{sndngDtl.rcpnRelNm} + , #{sndngDtl.sndngDtlSttsCd} + , #{sndngDtl.bfrSndngDtlSttsCd} + , #{sndngDtl.bfrDlvrYmd} + , #{sndngDtl.bfrDlvrHr} + , #{sndngDtl.sndngRcvmtCd} + , #{sndngDtl.addrChgCd} + , #{sndngDtl.taxNo} + , #{sndngDtl.epayno} + , #{sndngDtl.bankNm} + , #{sndngDtl.vrActno} + , #{sndngDtl.bankNm2} + , #{sndngDtl.vrActno2} + , #{sndngDtl.bankNm3} + , #{sndngDtl.vrActno3} + , #{sndngDtl.bankNm4} + , #{sndngDtl.vrActno4} + , #{sndngDtl.bankNm5} + , #{sndngDtl.vrActno5} + , #{sndngDtl.bankNm6} + , #{sndngDtl.vrActno6} + , #{sndngDtl.bankNm7} + , #{sndngDtl.vrActno7} + , #{sndngDtl.bankNm8} + , #{sndngDtl.vrActno8} + , #{sndngDtl.bankNm9} + , #{sndngDtl.vrActno9} + , #{sndngDtl.bankNm10} + , #{sndngDtl.vrActno10} + , #{sndngDtl.bankNm11} + , #{sndngDtl.vrActno11} + , 'N' + , + , #{sndngDtl.createdBy} + , + , #{sndngDtl.modifiedBy} ) /* 발송 상세 수정(sndngMapper.updateSndngDtl) */ UPDATE TB_SNDNG_DTL - SET CRDN_ID = #{sndngDtl.crdnId} - , LEVY_ID = #{sndngDtl.levyId} - , SVBTC_ID = #{sndngDtl.svbtcId} - , SNDNG_SE_CD = #{sndngDtl.sndngSeCd} - , VHRNO = #{sndngDtl.vhrno} - , CRDN_DT = #{sndngDtl.crdnDt} - , CRDN_PLC = #{sndngDtl.crdnPlc} - , LEV_KEY = #{sndngDtl.levKey} - , FYR = #{sndngDtl.fyr} - , LEVY_NO = #{sndngDtl.levyNo} - , SNDNG_YMD = #{sndngDtl.sndngYmd} - , DUDT_YMD = #{sndngDtl.dudtYmd} - , FFNLG_AMT = #{sndngDtl.ffnlgAmt} - , LEVY_PCPTAX = #{sndngDtl.levyPcptax} - , LEVY_ADAMT = #{sndngDtl.levyAdamt} - , LEVY_SUM_AMT = #{sndngDtl.levySumAmt} - , RTPYR_NM = #{sndngDtl.rtpyrNm} - , RTPYR_NO = #{sndngDtl.rtpyrNo} - , RTPYR_ADDR = #{sndngDtl.rtpyrAddr} - , RTPYR_DTL_ADDR = #{sndngDtl.rtpyrDtlAddr} - , RTPYR_ZIP = #{sndngDtl.rtpyrZip} - , CON_KEY = #{sndngDtl.conKey} - , RG_NO = #{sndngDtl.rgNo} - , DLVR_YMD = #{sndngDtl.dlvrYmd} - , DLVR_TM = #{sndngDtl.dlvrTm} - , UNDLVR_RSN_NM = #{sndngDtl.undlvrRsnNm} - , RCPN_NM = #{sndngDtl.rcpnNm} - , RCPN_REL_NM = #{sndngDtl.rcpnRelNm} - , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} - , BFR_SNDNG_DTL_STTS_CD = #{sndngDtl.bfrSndngDtlSttsCd} - , BFR_DLVR_YMD = #{sndngDtl.bfrDlvrYmd} - , BFR_DLVR_HR = #{sndngDtl.bfrDlvrHr} - , SNDNG_RCVMT_CD = #{sndngDtl.sndngRcvmtCd} - , ADDR_CHG_CD = #{sndngDtl.addrChgCd} - , TAX_NO = #{sndngDtl.taxNo} - , EPAYNO = #{sndngDtl.epayno} - , BANK_NM = #{sndngDtl.bankNm} - , VR_ACTNO = #{sndngDtl.vrActno} - , BANK_NM_2 = #{sndngDtl.bankNm2} - , VR_ACTNO_2 = #{sndngDtl.vrActno2} - , BANK_NM_3 = #{sndngDtl.bankNm3} - , VR_ACTNO_3 = #{sndngDtl.vrActno3} - , BANK_NM_4 = #{sndngDtl.bankNm4} - , VR_ACTNO_4 = #{sndngDtl.vrActno4} - , BANK_NM_5 = #{sndngDtl.bankNm5} - , VR_ACTNO_5 = #{sndngDtl.vrActno5} - , BANK_NM_6 = #{sndngDtl.bankNm6} - , VR_ACTNO_6 = #{sndngDtl.vrActno6} - , BANK_NM_7 = #{sndngDtl.bankNm7} - , VR_ACTNO_7 = #{sndngDtl.vrActno7} - , BANK_NM_8 = #{sndngDtl.bankNm8} - , VR_ACTNO_8 = #{sndngDtl.vrActno8} - , BANK_NM_9 = #{sndngDtl.bankNm9} - , VR_ACTNO_9 = #{sndngDtl.vrActno9} - , BANK_NM_10 = #{sndngDtl.bankNm10} - , VR_ACTNO_10 = #{sndngDtl.vrActno10} - , BANK_NM_11 = #{sndngDtl.bankNm11} - , VR_ACTNO_11 = #{sndngDtl.vrActno11} - , MDFCN_DT = - , MDFR = #{sndngDtl.modifiedBy} - WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} + SET CRDN_ID = #{sndngDtl.crdnId} + , LEVY_ID = #{sndngDtl.levyId} + , SVBTC_ID = #{sndngDtl.svbtcId} + , SNDNG_SE_CD = #{sndngDtl.sndngSeCd} + , VHRNO = #{sndngDtl.vhrno} + , CRDN_DT = #{sndngDtl.crdnDt} + , CRDN_PLC = #{sndngDtl.crdnPlc} + , LEV_KEY = #{sndngDtl.levKey} + , FYR = #{sndngDtl.fyr} + , LEVY_NO = #{sndngDtl.levyNo} + , SNDNG_YMD = #{sndngDtl.sndngYmd} + , DUDT_YMD = #{sndngDtl.dudtYmd} + , FFNLG_AMT = #{sndngDtl.ffnlgAmt} + , LEVY_PCPTAX = #{sndngDtl.levyPcptax} + , LEVY_ADAMT = #{sndngDtl.levyAdamt} + , LEVY_SUM_AMT = #{sndngDtl.levySumAmt} + , RTPYR_NM = #{sndngDtl.rtpyrNm} + , RTPYR_NO = #{sndngDtl.rtpyrNo} + , RTPYR_ADDR = #{sndngDtl.rtpyrAddr} + , RTPYR_DTL_ADDR = #{sndngDtl.rtpyrDtlAddr} + , RTPYR_ZIP = #{sndngDtl.rtpyrZip} + , CON_KEY = #{sndngDtl.conKey} + , RG_NO = #{sndngDtl.rgNo} + , DLVR_YMD = #{sndngDtl.dlvrYmd} + , DLVR_TM = #{sndngDtl.dlvrTm} + , UNDLVR_RSN_NM = #{sndngDtl.undlvrRsnNm} + , RCPN_NM = #{sndngDtl.rcpnNm} + , RCPN_REL_NM = #{sndngDtl.rcpnRelNm} + , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} + , BFR_SNDNG_DTL_STTS_CD = #{sndngDtl.bfrSndngDtlSttsCd} + , BFR_DLVR_YMD = #{sndngDtl.bfrDlvrYmd} + , BFR_DLVR_HR = #{sndngDtl.bfrDlvrHr} + , SNDNG_RCVMT_CD = #{sndngDtl.sndngRcvmtCd} + , ADDR_CHG_CD = #{sndngDtl.addrChgCd} + , TAX_NO = #{sndngDtl.taxNo} + , EPAYNO = #{sndngDtl.epayno} + , BANK_NM = #{sndngDtl.bankNm} + , VR_ACTNO = #{sndngDtl.vrActno} + , BANK_NM_2 = #{sndngDtl.bankNm2} + , VR_ACTNO_2 = #{sndngDtl.vrActno2} + , BANK_NM_3 = #{sndngDtl.bankNm3} + , VR_ACTNO_3 = #{sndngDtl.vrActno3} + , BANK_NM_4 = #{sndngDtl.bankNm4} + , VR_ACTNO_4 = #{sndngDtl.vrActno4} + , BANK_NM_5 = #{sndngDtl.bankNm5} + , VR_ACTNO_5 = #{sndngDtl.vrActno5} + , BANK_NM_6 = #{sndngDtl.bankNm6} + , VR_ACTNO_6 = #{sndngDtl.vrActno6} + , BANK_NM_7 = #{sndngDtl.bankNm7} + , VR_ACTNO_7 = #{sndngDtl.vrActno7} + , BANK_NM_8 = #{sndngDtl.bankNm8} + , VR_ACTNO_8 = #{sndngDtl.vrActno8} + , BANK_NM_9 = #{sndngDtl.bankNm9} + , VR_ACTNO_9 = #{sndngDtl.vrActno9} + , BANK_NM_10 = #{sndngDtl.bankNm10} + , VR_ACTNO_10 = #{sndngDtl.vrActno10} + , BANK_NM_11 = #{sndngDtl.bankNm11} + , VR_ACTNO_11 = #{sndngDtl.vrActno11} + , MDFCN_DT = + , MDFR = #{sndngDtl.modifiedBy} + WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} AND DEL_YN = 'N' /* 발송 상세 삭제(sndngMapper.deleteSndngDtl) */ UPDATE TB_SNDNG_DTL - SET DEL_YN = 'Y' - , DEL_DT = - , DLTR = #{sndngDtl.modifiedBy} - , DEL_RSN = #{sndngDtl.delRsn} - WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} + SET DEL_YN = 'Y' + , DEL_DT = + , DLTR = #{sndngDtl.modifiedBy} + , DEL_RSN = #{sndngDtl.delRsn} + WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} AND DEL_YN = 'N' /* 발송 상세 상태 코드 수정(sndngMapper.updateSndngDtlSttsCd) */ UPDATE TB_SNDNG_DTL - SET CON_KEY = #{sndngDtl.conKey} - , RG_NO = #{sndngDtl.rgNo} - , BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD - , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} - , MDFCN_DT = - , MDFR = #{sndngDtl.modifiedBy} - WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} + SET CON_KEY = #{sndngDtl.conKey} + , RG_NO = #{sndngDtl.rgNo} + , BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD + , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} + , MDFCN_DT = + , MDFR = #{sndngDtl.modifiedBy} + WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} AND DEL_YN = 'N' /* 발송 상세의 공시송달 정보를 수정(sndngMapper.updateSndngDtlSvbtc) */ UPDATE TB_SNDNG_DTL - SET SVBTC_ID = #{sndngDtl.svbtcId} - , BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD - , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} - , MDFCN_DT = - , MDFR = #{sndngDtl.modifiedBy} - WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} + SET SVBTC_ID = #{sndngDtl.svbtcId} + , BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD + , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} + , MDFCN_DT = + , MDFR = #{sndngDtl.modifiedBy} + WHERE SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} AND DEL_YN = 'N' /* 발송 상세의 공시송달 정보를 삭제(sndngMapper.deleteSndngDtlSvbtc) */ UPDATE TB_SNDNG_DTL - SET SVBTC_ID = NULL - , BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD - , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} - , MDFCN_DT = - , MDFR = #{sndngDtl.modifiedBy} - WHERE SVBTC_ID = #{sndngDtl.svbtcId} + SET SVBTC_ID = NULL + , BFR_SNDNG_DTL_STTS_CD = SNDNG_DTL_STTS_CD + , SNDNG_DTL_STTS_CD = #{sndngDtl.sndngDtlSttsCd} + , MDFCN_DT = + , MDFR = #{sndngDtl.modifiedBy} + WHERE SVBTC_ID = #{sndngDtl.svbtcId} - AND SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} + AND SNDNG_DTL_ID = #{sndngDtl.sndngDtlId} AND DEL_YN = 'N' diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp index 324d5c4a..076837b5 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp @@ -239,6 +239,8 @@ // 세외수입 등록 createNxrpMtchg${pageName} = (params) => { + let btnTitle = $("#btnCreateNxrpMtchg--${pageName}").attr("title"); + // 선택된 자료의 발송 상세 ID 추가 let selected = ${pageName}Control.dataset.getKeys("selected"); @@ -248,9 +250,12 @@ params.delYn = "N"; // 삭제 여부 ajax.post({ - url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/createNxrpMtchg.do") + url : wctx.url("/" + params.taskSeCd + "/sndb/sndb02/010/create.do") , data : params || {} - , success : resp => { } + , success : resp => { + let showMessage = resp.retMessage.replace(/[S]|[F]/g, btnTitle); + dialog.alert(showMessage); + } }); } @@ -265,7 +270,7 @@ params.delYn = "N"; // 삭제 여부 ajax.post({ - url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/updateNxrpMtchg.do") + url : wctx.url("/" + params.taskSeCd + "/sndb/sndb02/010/update.do") , data : params || {} , success : resp => {} });