From b664e811604e26c6e1ed0a5258ecf707f4f0a1f6 Mon Sep 17 00:00:00 2001 From: jjh Date: Wed, 21 Feb 2024 14:27:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B0=A8=EC=84=B8=EB=8C=80=20=EC=84=B8?= =?UTF-8?q?=EC=99=B8=EC=88=98=EC=9E=85=20=EA=B0=9C=EB=B3=84=EC=8B=9C?= =?UTF-8?q?=EC=8A=A4=ED=85=9C=20=EC=97=B0=EA=B3=84=20A01=20=EC=88=98?= =?UTF-8?q?=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/nxrp/NisIndivQuery.java | 12 + .../xit/fims/nxrp/dao/NisIndivA01Mapper.java | 6 + .../fims/nxrp/service/bean/NisIndivBean.java | 244 ++++++- .../xit/fims/nxrp/web/Nxrp01Controller.java | 1 - .../xit/fims/sndb/dao/SndngDtlMapper.java | 1 - .../mapper/fims/nxrp/nisIndivA01-mapper.xml | 687 ++++++++++-------- .../WEB-INF/jsp/fims/excl/excl01010-main.jsp | 6 +- .../WEB-INF/jsp/fims/sndb/sndb01080-info.jsp | 139 +--- 8 files changed, 670 insertions(+), 426 deletions(-) diff --git a/src/main/java/cokr/xit/fims/nxrp/NisIndivQuery.java b/src/main/java/cokr/xit/fims/nxrp/NisIndivQuery.java index 7a0dd5ad..4cb175fd 100644 --- a/src/main/java/cokr/xit/fims/nxrp/NisIndivQuery.java +++ b/src/main/java/cokr/xit/fims/nxrp/NisIndivQuery.java @@ -25,6 +25,8 @@ public class NisIndivQuery extends QueryRequest { private String sndngId; // 발송 ID private String[] sndngDtlIds; // 발송 상세 IDs private String sndngDtlId; // 발송 상세 ID + // + private String sndngYmd; // 발송(TB_SNDNG)_발송 일자 public String[] getCrdnIds() { return ifEmpty(crdnIds, () -> null); @@ -98,4 +100,14 @@ public class NisIndivQuery extends QueryRequest { return self(); } + // + public String getSndngYmd() { + return ifEmpty(sndngYmd, () -> null); + } + + public T setSndngYmd(String sndngYmd) { + this.sndngYmd = sndngYmd; + return self(); + } + } diff --git a/src/main/java/cokr/xit/fims/nxrp/dao/NisIndivA01Mapper.java b/src/main/java/cokr/xit/fims/nxrp/dao/NisIndivA01Mapper.java index cfb4631e..be7811a5 100644 --- a/src/main/java/cokr/xit/fims/nxrp/dao/NisIndivA01Mapper.java +++ b/src/main/java/cokr/xit/fims/nxrp/dao/NisIndivA01Mapper.java @@ -96,4 +96,10 @@ public interface NisIndivA01Mapper extends AbstractMapper { return nisIndivA01 != null && deleteNisIndivA01(params().set("nisIndivA01", nisIndivA01)) == 1; } + /**단속 ID에 해당하는 단속, 납부자 객체를 반환한다. + * @param crdnId 단속 ID + * @return 단속, 납부자 객체 + */ + DataObject selectCrdnInfo(String crdnId); + } diff --git a/src/main/java/cokr/xit/fims/nxrp/service/bean/NisIndivBean.java b/src/main/java/cokr/xit/fims/nxrp/service/bean/NisIndivBean.java index 97b99204..71ed75ba 100644 --- a/src/main/java/cokr/xit/fims/nxrp/service/bean/NisIndivBean.java +++ b/src/main/java/cokr/xit/fims/nxrp/service/bean/NisIndivBean.java @@ -8,7 +8,9 @@ import org.springframework.stereotype.Component; import cokr.xit.foundation.AbstractComponent; import cokr.xit.foundation.data.DataObject; - +import cokr.xit.base.user.service.bean.UserBean; +import cokr.xit.fims.crdn.Crdn; +import cokr.xit.fims.crdn.dao.CrdnUpdtMapper; import cokr.xit.fims.nxrp.NisIndivA01; import cokr.xit.fims.nxrp.NisIndivA02; import cokr.xit.fims.nxrp.NisIndivA03; @@ -16,6 +18,8 @@ import cokr.xit.fims.nxrp.NisIndivQuery; import cokr.xit.fims.nxrp.dao.NisIndivA01Mapper; import cokr.xit.fims.nxrp.dao.NisIndivA02Mapper; import cokr.xit.fims.nxrp.dao.NisIndivA03Mapper; +import cokr.xit.fims.sndb.SndbQuery; +import cokr.xit.fims.sndb.SndngDtl; import cokr.xit.fims.sndb.dao.SndngDtlMapper; /**과태료 대장 단속 정보 등록 정보 관리 Bean @@ -47,6 +51,14 @@ public class NisIndivBean extends AbstractComponent { @Resource(name = "sndngDtlMapper") private SndngDtlMapper sndngDtlMapper; + /** 단속 대장 수정 정보 DAO */ + @Resource(name = "crdnUpdtMapper") + private CrdnUpdtMapper crdnUpdtMapper; + + /** 사용자 정보 DAO */ + @Resource(name="userBean") + protected UserBean userBean; + /**지정한 조건에 따라 과태료 대장 단속 정보 등록 목록을 조회하여 반환한다. * @param req 과태료 대장 단속 정보 등록 조회 조건 * @return 과태료 대장 단속 정보 등록 목록 @@ -75,18 +87,230 @@ public class NisIndivBean extends AbstractComponent { boolean rtnScs = false; // DB 처리 결과 String rtnMsg = "[F] "; // 처리 결과 메시지 - // 검색 조건 확인 - if (req.getSndngId() != null) { - // 발송상세 대상를 조회 -// List sndngDtlIds = sndngDtlMapper.selectSndngTrgtDtlIds(); + // 1. 검색 조건을 확인하여 발송상세 대상를 조회 + SndbQuery sndbQuery = new SndbQuery(); + if (req.getSndngDtlIds() != null) { + sndbQuery.setSndngDtlIds(req.getSndngDtlIds()); + } else if (req.getSndngId() != null) { + sndbQuery.setSndngId(req.getSndngId()); + } else { + rtnMsg = "[F] 작업 중 세외수입에 등록 할 대상 자료의 조회조건이 없습니다."; + return rtnMsg; + } + sndbQuery.setDelYN("N"); + + List sndngDtlIds = sndngDtlMapper.selectSndngTrgtDtlIds(sndbQuery); + + // 2. 사용자 정보를 조회하여 자치단체 코드 및 부서 코드 확인 + DataObject userInfo = userBean.getUserInfo(currentUser().getId()); + + // 3. 단속 자료를 조회하여 세외수입 단속 연계 여부를 확인하여 "N"인 자료는 세외수입 연계 테이블에 등록한다. + for (int iLoop = 0; iLoop < sndngDtlIds.size(); iLoop++) { + // 발송 상세 상태 코드(SNDNG_DTL_STTS_CD) 가 처리전(00)이 아니라면 다음 자료로.. + if (!sndngDtlIds.get(iLoop).string("SNDNG_DTL_STTS_CD").equals("00")) { + continue; + } + + // 세외수입 과태료대장에 연계할 단속 정보를 조회 + DataObject selectCrdnInfo = nisIndivA01Mapper.selectCrdnInfo(sndngDtlIds.get(iLoop).string("CRDN_ID")); + + NisIndivA01 nisIndivA01 = new NisIndivA01(); + + nisIndivA01.setTaskSeCd(selectCrdnInfo.string("TASK_SE_CD")); // 업무 구분 코드 + nisIndivA01.setSgbCd(userInfo.string("NSTT_CD")); // 자치단체코드 + nisIndivA01.setLinkTrgtCd(userInfo.string("NSTT_CD") + userInfo.string("TASK_SE_CD") + "01001"); // 연계대상코드 + nisIndivA01.setLinkMngKey(selectCrdnInfo.string("SGG_CD") + selectCrdnInfo.string("CRDN_ID")); // 연계관리키 시군구코드 + 단속 ID + nisIndivA01.setDptCd(userInfo.string("DEPT_CD")); // 부서코드 + nisIndivA01.setRcptYr(req.getSndngYmd().substring(0, 4)); // 접수연도 + nisIndivA01.setSpacBizCd(selectCrdnInfo.string("SPCL_BIZ_CD")); // 특별회계사업코드 (밤샘주차 0159:주차장특별회계) + nisIndivA01.setActSeCd(selectCrdnInfo.string("ACNTG_SE_CD")); // 회계구분코드 + nisIndivA01.setRprsTxmCd(selectCrdnInfo.string("TXITM_CD")); // 대표세입과목코드 + nisIndivA01.setOperItemCd(selectCrdnInfo.string("OPER_ITEM_CD")); // 운영항목코드 + // 과태료과징금구분코드 01:과태료 02:과징금 + if (selectCrdnInfo.string("TASK_SE_CD").equals("PES")) { // 밤샘주차는 과장금(02) + nisIndivA01.setFinScrgSeCd("02"); + } else { + nisIndivA01.setFinScrgSeCd("01"); + } + // 납부자구분코드(FIM011) 01:주민 02:외국인 03:법인 04:사업자 05:기타 -> 01:개인 02:법인 03:단체 05:외국인 + if (selectCrdnInfo.string("RTPYR_SE_CD").equals("01")) { // 주민(01) -> 개인(01) + nisIndivA01.setPyrSeCd("01"); + } else if (selectCrdnInfo.string("RTPYR_SE_CD").equals("02")) { // 외국인(02) -> 외국인(05) + nisIndivA01.setPyrSeCd("05"); + } else if (selectCrdnInfo.string("RTPYR_SE_CD").equals("03")) { // 법인(03) -> 법인(02) + nisIndivA01.setPyrSeCd("02"); + } else if (selectCrdnInfo.string("RTPYR_SE_CD").equals("03")) { // 사업자(04) -> 사업자(04) + nisIndivA01.setPyrSeCd("04"); + } else { // 기타(05) -> 단체(03) + nisIndivA01.setPyrSeCd("03"); + } + nisIndivA01.setPyrNo(selectCrdnInfo.string("RTPYR_NO")); // 납부자번호 + nisIndivA01.setPyrNm(selectCrdnInfo.string("RTPYR_NM")); // 납부자명 +// nisIndivA01.setRprsPyrNo(""); // 대표납부자번호 / 법인의 경우 대표 납부자번호 필수 +// nisIndivA01.setRprsPyrNm(""); // 대표납부자명 / 법인의 경우 대표 납부자명 필수 + nisIndivA01.setPyrTelno(selectCrdnInfo.string("RTPYR_TELNO")); // 납부자전화번호 + nisIndivA01.setPyrMblTelno(selectCrdnInfo.string("RTPYR_MBL_TELNO")); // 납부자휴대전화번호 + nisIndivA01.setPyrEmlAddr(selectCrdnInfo.string("RTPYR_EML")); // 납부자이메일주소 + nisIndivA01.setPyrSttCd("10"); // 납부자상태코드('10') + nisIndivA01.setPyrLotnoRoadAddrSeCd(selectCrdnInfo.string("ADDR_SE_CD")); // 납부자지번도로주소구분코드 01:지번주소, 02:도로명주소 + nisIndivA01.setPyrZip(selectCrdnInfo.string("ZIP")); // 납부자우편번호 + nisIndivA01.setPyrRoadNmCd(selectCrdnInfo.string("ROAD_NM_CD")); // 납부자도로명코드 + // 납부자주소지하여부(FIM036) 0:지상 1: 지하 -> Y:지하, N:지상 + if (selectCrdnInfo.string("ROAD_NM_CD").equals("1")) { // 지하(1) -> 지하(Y) + nisIndivA01.setPyrAddrUdgdYn("Y"); + } else { // 기본값('N') + nisIndivA01.setPyrAddrUdgdYn("N"); + } + nisIndivA01.setPyrBmno(selectCrdnInfo.string("BMNO")); // 납부자건물본번 + nisIndivA01.setPyrBsno(selectCrdnInfo.string("BSNO")); // 납부자건물부번 + nisIndivA01.setPyrStdgCd(selectCrdnInfo.string("STDG_CD")); // 납부자법정동코드 + nisIndivA01.setPyrDongCd(selectCrdnInfo.string("DONG_CD")); // 납부자행정동코드 + // 산 구분 코드(FIM037) 0: 1:산 -> 납부자산구분코드 01:일반번지, 02:산번지 + if (selectCrdnInfo.string("MTN_SE_CD").equals("1")) { // 산(1) -> 산번지(02) + nisIndivA01.setPyrMtnSeCd("02"); + } else { // 01:일반번지 + nisIndivA01.setPyrMtnSeCd("01"); + } + nisIndivA01.setPyrBldgMngNo(selectCrdnInfo.string("BLDG_MNG_NO")); // 납부자건물관리번호 +// nisIndivA01.setPyrBldgNm(""); // 납부자건물명 + nisIndivA01.setPyrMno(selectCrdnInfo.string("MNO")); // 납부자본번 / 번지. 지번주소인 경우 필수 + nisIndivA01.setPyrSno(selectCrdnInfo.string("SNO")); // 납부자부번 / 호 + nisIndivA01.setPyrSpclDg(selectCrdnInfo.string("SPCL_DONG")); // 납부자특수동 / 상세주소 동 + nisIndivA01.setPyrSpclHo(selectCrdnInfo.string("SPCL_HO")); // 납부자특수호 / 상세주소 호 +// nisIndivA01.setPyrTong(""); // 납부자통 +// nisIndivA01.setPyrBan(""); // 납부자반 + nisIndivA01.setPyrSpclAddr(selectCrdnInfo.string("SPCL_ADDR")); // 납부자특수주소 + nisIndivA01.setPyrRoadNmAddr(selectCrdnInfo.string("ADDR")); // 납부자도로명주소 + nisIndivA01.setPyrRoadNmDaddr(selectCrdnInfo.string("DTL_ADDR")); // 납부자도로명상세주소 + nisIndivA01.setPyrRoadNmAlAddr(selectCrdnInfo.string("WHOL_ADDR")); // 납부자도로명전체주소 +// nisIndivA01.setPyrLotnoAddr(""); // 납부자지번주소 +// nisIndivA01.setPyrLotnoDaddr(""); // 납부자지번상세주소 +// nisIndivA01.setPyrLotnoAlAddr(""); // 납부자지번전체주소 + nisIndivA01.setGlNm(selectCrdnInfo.string("VHRNO")); // 물건지명 +/* 물건지 주소 + nisIndivA01.setGlLotnoRoadAddrSeCd(""); // 물건지지번도로주소구분코드 + nisIndivA01.setGlZip(""); // 물건지우편번호 + nisIndivA01.setGlRoadNmCd(""); // 물건지도로명코드 + nisIndivA01.setGlAddrUdgdYn(""); // 물건지주소지하여부 + nisIndivA01.setGlBmno(""); // 물건지건물본번 + nisIndivA01.setGlBsno(""); // 물건지건물부번 + nisIndivA01.setGlStdgCd(""); // 물건지법정동코드 + nisIndivA01.setGlDongCd(""); // 물건지행정동코드 + nisIndivA01.setGlMtnSeCd(""); // 물건지산구분코드 + nisIndivA01.setGlMno(""); // 물건지본번 + nisIndivA01.setGlSno(""); // 물건지부번 + nisIndivA01.setGlSpclAddr(""); // 물건지특수동 + nisIndivA01.setGlSpclDg(""); // 물건지특수호 + nisIndivA01.setGlSpclHo(""); // 물건지특수주소 + nisIndivA01.setGlRoadNmAddr(""); // 물건지도로명기본주소 + nisIndivA01.setGlRoadNmDaddr(""); // 물건지도로명상세주소 + nisIndivA01.setGlRoadNmAlAddr(""); // 물건지도로명전체주소 + nisIndivA01.setGlLotnoAddr(""); // 물건지지번기본주소 + nisIndivA01.setGlLotnoDaddr(""); // 물건지지번상세주소 + nisIndivA01.setGlLotnoAlAddr(""); // 물건지지번전체주소 +*/ + nisIndivA01.setLvyTrgtSeCd(selectCrdnInfo.string("01")); // 부과대상구분코드 01:차량 + nisIndivA01.setRegYmd(selectCrdnInfo.string("CRDN_YMD")); // 등록일자 / 위반일자 + nisIndivA01.setFinScrgAmt(selectCrdnInfo.string("FFNLG_AMT")); // 과태료과징금금액 +// nisIndivA01.setFcltSeCd(""); // 시설구분코드 / 금연구역흡연위반 과태료인 경우 활용 +// nisIndivA01.setRegSeCd(""); // 등록구분코드 / 폐기물관리법위반 과태료인 경우 01투기, 02소각, 99기타 + // 감경 사유 코드(FIM019) -> 감경사유구분코드 + if (selectCrdnInfo.string("RDUCT_RSN_CD").equals("01")) { // 국민기초생활수급자 + nisIndivA01.setRdtRsnSeCd("0101"); + } else if (selectCrdnInfo.string("RDUCT_RSN_CD").equals("02")) { // 한부모가족보호대상자 + nisIndivA01.setRdtRsnSeCd("0102"); + } else if (selectCrdnInfo.string("RDUCT_RSN_CD").equals("03")) { // 장애인(장애의 정도가 심한 장애인) + nisIndivA01.setRdtRsnSeCd("0103"); + } else if (selectCrdnInfo.string("RDUCT_RSN_CD").equals("04")) { // 국가유공자(상이등급3급이상) + nisIndivA01.setRdtRsnSeCd("0104"); + } else if (selectCrdnInfo.string("RDUCT_RSN_CD").equals("05")) { // 미성년자 + nisIndivA01.setRdtRsnSeCd("0105"); + } else if (selectCrdnInfo.string("RDUCT_RSN_CD").equals("08")) { // 의견진술감액 + nisIndivA01.setRdtRsnSeCd(""); + } else if (selectCrdnInfo.string("RDUCT_RSN_CD").equals("09")) { // 기타 + nisIndivA01.setRdtRsnSeCd(""); + } else if (selectCrdnInfo.string("RDUCT_RSN_CD").equals("99")) { // 타법령에의한감경 + nisIndivA01.setRdtRsnSeCd("0199"); + } else { // 해당없음 + nisIndivA01.setRdtRsnSeCd("0100"); + } + nisIndivA01.setVhrno(selectCrdnInfo.string("VHRNO")); // 자동차등록번호 + + String vltnLaw = ""; + if (selectCrdnInfo.string("TASK_SE_CD").equals("PES")) { // 밤샘주차 + vltnLaw = selectCrdnInfo.string("VLTN_LAW_NM") + " " + selectCrdnInfo.string("VLTN_LAW1") + selectCrdnInfo.string("VLTN_LAW2"); + + nisIndivA01.setMclncLaoBssNm(vltnLaw); // 조례법령근거명 / 과태료/과징금 법령 근거 + nisIndivA01.setMngItemCn1("위반일시 : " + selectCrdnInfo.string("CRDN_YMD_TM_MASK")); // 관리항목1 + nisIndivA01.setMngItemCn2("위반장소 : " + selectCrdnInfo.string("CRDN_PLC")); // 관리항목2 + nisIndivA01.setMngItemCn3("부과근거 : " + vltnLaw); // 관리항목3 + nisIndivA01.setMngItemCn4("위반항목 : " + selectCrdnInfo.string("VLTN_ARTCL")); // 관리항목4 + // 관리항목5 + if (selectCrdnInfo.string("CRDN_INPT_SE_CD").equals("06")) { + nisIndivA01.setMngItemCn5("관내단속"); + } else if(selectCrdnInfo.string("CRDN_INPT_SE_CD").equals("08")) { + nisIndivA01.setMngItemCn5(selectCrdnInfo.string("ETC_CN")); + } else { + nisIndivA01.setMngItemCn5(""); + } + } else if ("DPV,ECA".contains(selectCrdnInfo.string("TASK_SE_CD"))) { // 장애인, 전기차 + vltnLaw = selectCrdnInfo.string("VLTN_LAW_NM") + " " + selectCrdnInfo.string("VLTN_LAW1") + selectCrdnInfo.string("VLTN_LAW2"); + + nisIndivA01.setMclncLaoBssNm(vltnLaw); // 조례법령근거명 / 과태료/과징금 법령 근거 + nisIndivA01.setMngItemCn1("위반일시 : " + selectCrdnInfo.string("CRDN_YMD_TM_MASK")); // 관리항목1 + nisIndivA01.setMngItemCn2("위반장소 : " + selectCrdnInfo.string("CRDN_PLC")); // 관리항목2 + nisIndivA01.setMngItemCn3("부과근거 : " + vltnLaw); // 관리항목3 + nisIndivA01.setMngItemCn4("위반항목 : " + selectCrdnInfo.string("VLTN_ARTCL")); // 관리항목4 + nisIndivA01.setMngItemCn5(""); // 관리항목5 + } else if ("BPV,PVS".contains(selectCrdnInfo.string("TASK_SE_CD"))) { // 주정차, 전용차로 + vltnLaw = selectCrdnInfo.string("VLTN_LAW_NM") + " " + selectCrdnInfo.string("VLTN_LAW1") + "~" + selectCrdnInfo.string("VLTN_LAW2"); + + nisIndivA01.setMclncLaoBssNm(vltnLaw); // 조례법령근거명 / 과태료/과징금 법령 근거 + nisIndivA01.setMngItemCn1("위반일시 : " + selectCrdnInfo.string("CRDN_YMD_TM_MASK")); // 관리항목1 + nisIndivA01.setMngItemCn2("위반장소 : " + selectCrdnInfo.string("CRDN_PLC")); // 관리항목2 + nisIndivA01.setMngItemCn3("부과근거 : " + vltnLaw + ", 도로교통법 제160조"); // 관리항목3 + nisIndivA01.setMngItemCn4("위반항목 : " + selectCrdnInfo.string("VLTN_ARTCL")); // 관리항목4 + nisIndivA01.setMngItemCn5(""); // 관리항목5 + } else { + throw new RuntimeException("지정되지 않은 업무 구분코드가 입력되었습니다."); // 예외를 발생시켜서 DB Rollback + } + + nisIndivA01.setMngItemCn6(selectCrdnInfo.string("SGG_CD") + selectCrdnInfo.string("CRDN_ID")); // 관리6항목 + nisIndivA01.setRmCn(selectCrdnInfo.string("ETC_CN")); // 비고내용 + nisIndivA01.setRsveItem1(selectCrdnInfo.string("")); // 예비항목1 + nisIndivA01.setRsveItem2(selectCrdnInfo.string("")); // 예비항목2 + nisIndivA01.setRsveItem3(selectCrdnInfo.string("")); // 예비항목3 + nisIndivA01.setRsveItem4(selectCrdnInfo.string("")); // 예비항목4 + nisIndivA01.setRsveItem5(selectCrdnInfo.string("")); // 예비항목5 + + rtnScs = nisIndivA01Mapper.insert(nisIndivA01); + if (!rtnScs) { + throw new RuntimeException("세외수입 과태료대장에 단속 정보 등록에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback + } + + // 발송 대장(TB_SNDNG) - 발송 상태 코드(SNDNG_DTL_STTS_CD) 수정 + SndngDtl sndngDtl = new SndngDtl(); + sndngDtl.setSndngDtlSttsCd("01"); // 발송 상태 코드(FIM050) 01:세외수입부과 + sndngDtl.setSndngDtlId(sndngDtlIds.get(iLoop).string("SNDNG_DTL_ID")); // 발송 상세 ID + + rtnScs = sndngDtlMapper.updateSndngDtlSttsCd(sndngDtl); + if (!rtnScs) { + throw new RuntimeException("세외수입 과태료대장 연계 정보를 단속 대장에 수정하지 못했습니다."); // 예외를 발생시켜서 DB Rollback + } + + // 단속 대장(TB_CRDN) - 세외수입 단속 연계 여부(NXRP_CRDN_LINK_YN) UPDATE + Crdn crdn = new Crdn(); + crdn.setCrdnId(sndngDtlIds.get(iLoop).string("CRDN_ID")); // 단속 ID + crdn.setModifiedBy(currentUser().getId()); // 수정 사용자 ID + + int effected = crdnUpdtMapper.updateNxrpCrdnLinkYn(crdn); + if(effected != 1) { + throw new RuntimeException("세외수입 과태료대장 연계 정보를 단속 대장에 수정하지 못했습니다."); + } } - // 단속 자료 조회 - - NisIndivA01 nisIndivA01 = new NisIndivA01(); - - rtnScs = nisIndivA01Mapper.insert(nisIndivA01); + rtnMsg = "[S] 작업이 정상 처리 되었습니다."; return rtnMsg; } diff --git a/src/main/java/cokr/xit/fims/nxrp/web/Nxrp01Controller.java b/src/main/java/cokr/xit/fims/nxrp/web/Nxrp01Controller.java index 333c9f5f..1588c03a 100644 --- a/src/main/java/cokr/xit/fims/nxrp/web/Nxrp01Controller.java +++ b/src/main/java/cokr/xit/fims/nxrp/web/Nxrp01Controller.java @@ -4,7 +4,6 @@ import javax.annotation.Resource; import org.springframework.web.servlet.ModelAndView; -import cokr.xit.fims.nxrp.NisIndivA01; import cokr.xit.fims.nxrp.NisIndivQuery; import cokr.xit.fims.nxrp.service.NisIndivService; import cokr.xit.foundation.web.AbstractController; diff --git a/src/main/java/cokr/xit/fims/sndb/dao/SndngDtlMapper.java b/src/main/java/cokr/xit/fims/sndb/dao/SndngDtlMapper.java index 3101e769..058716b4 100644 --- a/src/main/java/cokr/xit/fims/sndb/dao/SndngDtlMapper.java +++ b/src/main/java/cokr/xit/fims/sndb/dao/SndngDtlMapper.java @@ -254,5 +254,4 @@ public interface SndngDtlMapper extends AbstractMapper { return sndngDtl != null && deleteSndngDtlSvbtc(params().set("sndngDtl", sndngDtl)) >= 1; } - } diff --git a/src/main/resources/sql/mapper/fims/nxrp/nisIndivA01-mapper.xml b/src/main/resources/sql/mapper/fims/nxrp/nisIndivA01-mapper.xml index 99fdcace..4f7db3a8 100644 --- a/src/main/resources/sql/mapper/fims/nxrp/nisIndivA01-mapper.xml +++ b/src/main/resources/sql/mapper/fims/nxrp/nisIndivA01-mapper.xml @@ -216,296 +216,405 @@ -/* 과태료 대장 단속 정보 등록 등록(nisIndivA01Mapper.insertNisIndivA01) */ -INSERT INTO TB_NIS_INDIV_A01 ( - A01_ID - , TASK_SE_CD - , SGB_CD - , LINK_TRGT_CD - , LINK_MNG_KEY - , DPT_CD - , RCPT_YR - , SPAC_BIZ_CD - , ACT_SE_CD - , RPRS_TXM_CD - , OPER_ITEM_CD - , FIN_SCRG_SE_CD - , PYR_SE_CD - , PYR_NO - , PYR_NM - , RPRS_PYR_NO - , RPRS_PYR_NM - , PYR_TELNO - , PYR_MBL_TELNO - , PYR_EML_ADDR - , PYR_STT_CD - , PYR_LOTNO_ROAD_ADDR_SE_CD - , PYR_ZIP - , PYR_ROAD_NM_CD - , PYR_ADDR_UDGD_YN - , PYR_BMNO - , PYR_BSNO - , PYR_STDG_CD - , PYR_DONG_CD - , PYR_MTN_SE_CD - , PYR_BLDG_MNG_NO - , PYR_BLDG_NM - , PYR_MNO - , PYR_SNO - , PYR_SPCL_DG - , PYR_SPCL_HO - , PYR_TONG - , PYR_BAN - , PYR_SPCL_ADDR - , PYR_ROAD_NM_ADDR - , PYR_ROAD_NM_DADDR - , PYR_ROAD_NM_AL_ADDR - , PYR_LOTNO_ADDR - , PYR_LOTNO_DADDR - , PYR_LOTNO_AL_ADDR - , GL_NM - , GL_LOTNO_ROAD_ADDR_SE_CD - , GL_ZIP - , GL_ROAD_NM_CD - , GL_ADDR_UDGD_YN - , GL_BMNO - , GL_BSNO - , GL_STDG_CD - , GL_DONG_CD - , GL_MTN_SE_CD - , GL_MNO - , GL_SNO - , GL_SPCL_ADDR - , GL_SPCL_DG - , GL_SPCL_HO - , GL_ROAD_NM_ADDR - , GL_ROAD_NM_DADDR - , GL_ROAD_NM_AL_ADDR - , GL_LOTNO_ADDR - , GL_LOTNO_DADDR - , GL_LOTNO_AL_ADDR - , LVY_TRGT_SE_CD - , REG_YMD - , FIN_SCRG_AMT - , FCLT_SE_CD - , REG_SE_CD - , RDT_RSN_SE_CD - , VHRNO - , MCLNC_LAO_BSS_NM - , MNG_ITEM_CN1 - , MNG_ITEM_CN2 - , MNG_ITEM_CN3 - , MNG_ITEM_CN4 - , MNG_ITEM_CN5 - , MNG_ITEM_CN6 - , RM_CN - , RSVE_ITEM1 - , RSVE_ITEM2 - , RSVE_ITEM3 - , RSVE_ITEM4 - , RSVE_ITEM5 - , LINK_RST_DT - , LINK_RST_CD - , LINK_RST_MSG - , REG_DT - , RGTR - , MDFCN_DT - , MDFR -) VALUES ( - #{nisIndivA01.a01Id} - , #{nisIndivA01.taskSeCd} - , #{nisIndivA01.sgbCd} - , #{nisIndivA01.linkTrgtCd} - , #{nisIndivA01.linkMngKey} - , #{nisIndivA01.dptCd} - , #{nisIndivA01.rcptYr} - , #{nisIndivA01.spacBizCd} - , #{nisIndivA01.actSeCd} - , #{nisIndivA01.rprsTxmCd} - , #{nisIndivA01.operItemCd} - , #{nisIndivA01.finScrgSeCd} - , #{nisIndivA01.pyrSeCd} - , #{nisIndivA01.pyrNo} - , #{nisIndivA01.pyrNm} - , #{nisIndivA01.rprsPyrNo} - , #{nisIndivA01.rprsPyrNm} - , #{nisIndivA01.pyrTelno} - , #{nisIndivA01.pyrMblTelno} - , #{nisIndivA01.pyrEmlAddr} - , #{nisIndivA01.pyrSttCd} - , #{nisIndivA01.pyrLotnoRoadAddrSeCd} - , #{nisIndivA01.pyrZip} - , #{nisIndivA01.pyrRoadNmCd} - , #{nisIndivA01.pyrAddrUdgdYn} - , #{nisIndivA01.pyrBmno} - , #{nisIndivA01.pyrBsno} - , #{nisIndivA01.pyrStdgCd} - , #{nisIndivA01.pyrDongCd} - , #{nisIndivA01.pyrMtnSeCd} - , #{nisIndivA01.pyrBldgMngNo} - , #{nisIndivA01.pyrBldgNm} - , #{nisIndivA01.pyrMno} - , #{nisIndivA01.pyrSno} - , #{nisIndivA01.pyrSpclDg} - , #{nisIndivA01.pyrSpclHo} - , #{nisIndivA01.pyrTong} - , #{nisIndivA01.pyrBan} - , #{nisIndivA01.pyrSpclAddr} - , #{nisIndivA01.pyrRoadNmAddr} - , #{nisIndivA01.pyrRoadNmDaddr} - , #{nisIndivA01.pyrRoadNmAlAddr} - , #{nisIndivA01.pyrLotnoAddr} - , #{nisIndivA01.pyrLotnoDaddr} - , #{nisIndivA01.pyrLotnoAlAddr} - , #{nisIndivA01.glNm} - , #{nisIndivA01.glLotnoRoadAddrSeCd} - , #{nisIndivA01.glZip} - , #{nisIndivA01.glRoadNmCd} - , #{nisIndivA01.glAddrUdgdYn} - , #{nisIndivA01.glBmno} - , #{nisIndivA01.glBsno} - , #{nisIndivA01.glStdgCd} - , #{nisIndivA01.glDongCd} - , #{nisIndivA01.glMtnSeCd} - , #{nisIndivA01.glMno} - , #{nisIndivA01.glSno} - , #{nisIndivA01.glSpclAddr} - , #{nisIndivA01.glSpclDg} - , #{nisIndivA01.glSpclHo} - , #{nisIndivA01.glRoadNmAddr} - , #{nisIndivA01.glRoadNmDaddr} - , #{nisIndivA01.glRoadNmAlAddr} - , #{nisIndivA01.glLotnoAddr} - , #{nisIndivA01.glLotnoDaddr} - , #{nisIndivA01.glLotnoAlAddr} - , #{nisIndivA01.lvyTrgtSeCd} - , #{nisIndivA01.regYmd} - , #{nisIndivA01.finScrgAmt} - , #{nisIndivA01.fcltSeCd} - , #{nisIndivA01.regSeCd} - , #{nisIndivA01.rdtRsnSeCd} - , #{nisIndivA01.vhrno} - , #{nisIndivA01.mclncLaoBssNm} - , #{nisIndivA01.mngItemCn1} - , #{nisIndivA01.mngItemCn2} - , #{nisIndivA01.mngItemCn3} - , #{nisIndivA01.mngItemCn4} - , #{nisIndivA01.mngItemCn5} - , #{nisIndivA01.mngItemCn6} - , #{nisIndivA01.rmCn} - , #{nisIndivA01.rsveItem1} - , #{nisIndivA01.rsveItem2} - , #{nisIndivA01.rsveItem3} - , #{nisIndivA01.rsveItem4} - , #{nisIndivA01.rsveItem5} - , #{nisIndivA01.linkRstDt} - , #{nisIndivA01.linkRstCd} - , #{nisIndivA01.linkRstMsg} - , - , #{currentUser.id} - , - , #{currentUser.id} -) + /* 과태료 대장 단속 정보 등록 등록(nisIndivA01Mapper.insertNisIndivA01) */ + + SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y%m%d'), LPAD(CAST(IFNULL(MAX(SUBSTRING(A01_ID, 9)) + 1, 1) AS INT), 22, '0')) AS NEW_ID + FROM TB_NIS_INDIV_A01 + WHERE A01_ID LIKE CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y%m%d'), '%') + + INSERT + INTO TB_NIS_INDIV_A01 ( + A01_ID + , TASK_SE_CD + , SGB_CD + , LINK_TRGT_CD + , LINK_MNG_KEY + , DPT_CD + , RCPT_YR + , SPAC_BIZ_CD + , ACT_SE_CD + , RPRS_TXM_CD + , OPER_ITEM_CD + , FIN_SCRG_SE_CD + , PYR_SE_CD + , PYR_NO + , PYR_NM + , RPRS_PYR_NO + , RPRS_PYR_NM + , PYR_TELNO + , PYR_MBL_TELNO + , PYR_EML_ADDR + , PYR_STT_CD + , PYR_LOTNO_ROAD_ADDR_SE_CD + , PYR_ZIP + , PYR_ROAD_NM_CD + , PYR_ADDR_UDGD_YN + , PYR_BMNO + , PYR_BSNO + , PYR_STDG_CD + , PYR_DONG_CD + , PYR_MTN_SE_CD + , PYR_BLDG_MNG_NO + , PYR_BLDG_NM + , PYR_MNO + , PYR_SNO + , PYR_SPCL_DG + , PYR_SPCL_HO + , PYR_TONG + , PYR_BAN + , PYR_SPCL_ADDR + , PYR_ROAD_NM_ADDR + , PYR_ROAD_NM_DADDR + , PYR_ROAD_NM_AL_ADDR + , PYR_LOTNO_ADDR + , PYR_LOTNO_DADDR + , PYR_LOTNO_AL_ADDR + , GL_NM + , GL_LOTNO_ROAD_ADDR_SE_CD + , GL_ZIP + , GL_ROAD_NM_CD + , GL_ADDR_UDGD_YN + , GL_BMNO + , GL_BSNO + , GL_STDG_CD + , GL_DONG_CD + , GL_MTN_SE_CD + , GL_MNO + , GL_SNO + , GL_SPCL_ADDR + , GL_SPCL_DG + , GL_SPCL_HO + , GL_ROAD_NM_ADDR + , GL_ROAD_NM_DADDR + , GL_ROAD_NM_AL_ADDR + , GL_LOTNO_ADDR + , GL_LOTNO_DADDR + , GL_LOTNO_AL_ADDR + , LVY_TRGT_SE_CD + , REG_YMD + , FIN_SCRG_AMT + , FCLT_SE_CD + , REG_SE_CD + , RDT_RSN_SE_CD + , VHRNO + , MCLNC_LAO_BSS_NM + , MNG_ITEM_CN1 + , MNG_ITEM_CN2 + , MNG_ITEM_CN3 + , MNG_ITEM_CN4 + , MNG_ITEM_CN5 + , MNG_ITEM_CN6 + , RM_CN + , RSVE_ITEM1 + , RSVE_ITEM2 + , RSVE_ITEM3 + , RSVE_ITEM4 + , RSVE_ITEM5 + , LINK_RST_DT + , LINK_RST_CD + , LINK_RST_MSG + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + ) + VALUES ( + #{nisIndivA01.a01Id} + , #{nisIndivA01.taskSeCd} + , #{nisIndivA01.sgbCd} + , #{nisIndivA01.linkTrgtCd} + , #{nisIndivA01.linkMngKey} + , #{nisIndivA01.dptCd} + , #{nisIndivA01.rcptYr} + , #{nisIndivA01.spacBizCd} + , #{nisIndivA01.actSeCd} + , #{nisIndivA01.rprsTxmCd} + , #{nisIndivA01.operItemCd} + , #{nisIndivA01.finScrgSeCd} + , #{nisIndivA01.pyrSeCd} + , #{nisIndivA01.pyrNo} + , #{nisIndivA01.pyrNm} + , #{nisIndivA01.rprsPyrNo} + , #{nisIndivA01.rprsPyrNm} + , #{nisIndivA01.pyrTelno} + , #{nisIndivA01.pyrMblTelno} + , #{nisIndivA01.pyrEmlAddr} + , #{nisIndivA01.pyrSttCd} + , #{nisIndivA01.pyrLotnoRoadAddrSeCd} + , #{nisIndivA01.pyrZip} + , #{nisIndivA01.pyrRoadNmCd} + , #{nisIndivA01.pyrAddrUdgdYn} + , #{nisIndivA01.pyrBmno} + , #{nisIndivA01.pyrBsno} + , #{nisIndivA01.pyrStdgCd} + , #{nisIndivA01.pyrDongCd} + , #{nisIndivA01.pyrMtnSeCd} + , #{nisIndivA01.pyrBldgMngNo} + , #{nisIndivA01.pyrBldgNm} + , #{nisIndivA01.pyrMno} + , #{nisIndivA01.pyrSno} + , #{nisIndivA01.pyrSpclDg} + , #{nisIndivA01.pyrSpclHo} + , #{nisIndivA01.pyrTong} + , #{nisIndivA01.pyrBan} + , #{nisIndivA01.pyrSpclAddr} + , #{nisIndivA01.pyrRoadNmAddr} + , #{nisIndivA01.pyrRoadNmDaddr} + , #{nisIndivA01.pyrRoadNmAlAddr} + , #{nisIndivA01.pyrLotnoAddr} + , #{nisIndivA01.pyrLotnoDaddr} + , #{nisIndivA01.pyrLotnoAlAddr} + , #{nisIndivA01.glNm} + , #{nisIndivA01.glLotnoRoadAddrSeCd} + , #{nisIndivA01.glZip} + , #{nisIndivA01.glRoadNmCd} + , #{nisIndivA01.glAddrUdgdYn} + , #{nisIndivA01.glBmno} + , #{nisIndivA01.glBsno} + , #{nisIndivA01.glStdgCd} + , #{nisIndivA01.glDongCd} + , #{nisIndivA01.glMtnSeCd} + , #{nisIndivA01.glMno} + , #{nisIndivA01.glSno} + , #{nisIndivA01.glSpclAddr} + , #{nisIndivA01.glSpclDg} + , #{nisIndivA01.glSpclHo} + , #{nisIndivA01.glRoadNmAddr} + , #{nisIndivA01.glRoadNmDaddr} + , #{nisIndivA01.glRoadNmAlAddr} + , #{nisIndivA01.glLotnoAddr} + , #{nisIndivA01.glLotnoDaddr} + , #{nisIndivA01.glLotnoAlAddr} + , #{nisIndivA01.lvyTrgtSeCd} + , #{nisIndivA01.regYmd} + , #{nisIndivA01.finScrgAmt} + , #{nisIndivA01.fcltSeCd} + , #{nisIndivA01.regSeCd} + , #{nisIndivA01.rdtRsnSeCd} + , #{nisIndivA01.vhrno} + , #{nisIndivA01.mclncLaoBssNm} + , #{nisIndivA01.mngItemCn1} + , #{nisIndivA01.mngItemCn2} + , #{nisIndivA01.mngItemCn3} + , #{nisIndivA01.mngItemCn4} + , #{nisIndivA01.mngItemCn5} + , #{nisIndivA01.mngItemCn6} + , #{nisIndivA01.rmCn} + , #{nisIndivA01.rsveItem1} + , #{nisIndivA01.rsveItem2} + , #{nisIndivA01.rsveItem3} + , #{nisIndivA01.rsveItem4} + , #{nisIndivA01.rsveItem5} + , #{nisIndivA01.linkRstDt} + , #{nisIndivA01.linkRstCd} + , #{nisIndivA01.linkRstMsg} + , + , #{currentUser.id} + , + , #{currentUser.id} + ) + -/* 과태료 대장 단속 정보 등록 수정(nisIndivA01Mapper.updateNisIndivA01) */ -UPDATE TB_NIS_INDIV_A01 SET - TASK_SE_CD = #{nisIndivA01.taskSeCd} - , SGB_CD = #{nisIndivA01.sgbCd} - , LINK_TRGT_CD = #{nisIndivA01.linkTrgtCd} - , LINK_MNG_KEY = #{nisIndivA01.linkMngKey} - , DPT_CD = #{nisIndivA01.dptCd} - , RCPT_YR = #{nisIndivA01.rcptYr} - , SPAC_BIZ_CD = #{nisIndivA01.spacBizCd} - , ACT_SE_CD = #{nisIndivA01.actSeCd} - , RPRS_TXM_CD = #{nisIndivA01.rprsTxmCd} - , OPER_ITEM_CD = #{nisIndivA01.operItemCd} - , FIN_SCRG_SE_CD = #{nisIndivA01.finScrgSeCd} - , PYR_SE_CD = #{nisIndivA01.pyrSeCd} - , PYR_NO = #{nisIndivA01.pyrNo} - , PYR_NM = #{nisIndivA01.pyrNm} - , RPRS_PYR_NO = #{nisIndivA01.rprsPyrNo} - , RPRS_PYR_NM = #{nisIndivA01.rprsPyrNm} - , PYR_TELNO = #{nisIndivA01.pyrTelno} - , PYR_MBL_TELNO = #{nisIndivA01.pyrMblTelno} - , PYR_EML_ADDR = #{nisIndivA01.pyrEmlAddr} - , PYR_STT_CD = #{nisIndivA01.pyrSttCd} - , PYR_LOTNO_ROAD_ADDR_SE_CD = #{nisIndivA01.pyrLotnoRoadAddrSeCd} - , PYR_ZIP = #{nisIndivA01.pyrZip} - , PYR_ROAD_NM_CD = #{nisIndivA01.pyrRoadNmCd} - , PYR_ADDR_UDGD_YN = #{nisIndivA01.pyrAddrUdgdYn} - , PYR_BMNO = #{nisIndivA01.pyrBmno} - , PYR_BSNO = #{nisIndivA01.pyrBsno} - , PYR_STDG_CD = #{nisIndivA01.pyrStdgCd} - , PYR_DONG_CD = #{nisIndivA01.pyrDongCd} - , PYR_MTN_SE_CD = #{nisIndivA01.pyrMtnSeCd} - , PYR_BLDG_MNG_NO = #{nisIndivA01.pyrBldgMngNo} - , PYR_BLDG_NM = #{nisIndivA01.pyrBldgNm} - , PYR_MNO = #{nisIndivA01.pyrMno} - , PYR_SNO = #{nisIndivA01.pyrSno} - , PYR_SPCL_DG = #{nisIndivA01.pyrSpclDg} - , PYR_SPCL_HO = #{nisIndivA01.pyrSpclHo} - , PYR_TONG = #{nisIndivA01.pyrTong} - , PYR_BAN = #{nisIndivA01.pyrBan} - , PYR_SPCL_ADDR = #{nisIndivA01.pyrSpclAddr} - , PYR_ROAD_NM_ADDR = #{nisIndivA01.pyrRoadNmAddr} - , PYR_ROAD_NM_DADDR = #{nisIndivA01.pyrRoadNmDaddr} - , PYR_ROAD_NM_AL_ADDR = #{nisIndivA01.pyrRoadNmAlAddr} - , PYR_LOTNO_ADDR = #{nisIndivA01.pyrLotnoAddr} - , PYR_LOTNO_DADDR = #{nisIndivA01.pyrLotnoDaddr} - , PYR_LOTNO_AL_ADDR = #{nisIndivA01.pyrLotnoAlAddr} - , GL_NM = #{nisIndivA01.glNm} - , GL_LOTNO_ROAD_ADDR_SE_CD = #{nisIndivA01.glLotnoRoadAddrSeCd} - , GL_ZIP = #{nisIndivA01.glZip} - , GL_ROAD_NM_CD = #{nisIndivA01.glRoadNmCd} - , GL_ADDR_UDGD_YN = #{nisIndivA01.glAddrUdgdYn} - , GL_BMNO = #{nisIndivA01.glBmno} - , GL_BSNO = #{nisIndivA01.glBsno} - , GL_STDG_CD = #{nisIndivA01.glStdgCd} - , GL_DONG_CD = #{nisIndivA01.glDongCd} - , GL_MTN_SE_CD = #{nisIndivA01.glMtnSeCd} - , GL_MNO = #{nisIndivA01.glMno} - , GL_SNO = #{nisIndivA01.glSno} - , GL_SPCL_ADDR = #{nisIndivA01.glSpclAddr} - , GL_SPCL_DG = #{nisIndivA01.glSpclDg} - , GL_SPCL_HO = #{nisIndivA01.glSpclHo} - , GL_ROAD_NM_ADDR = #{nisIndivA01.glRoadNmAddr} - , GL_ROAD_NM_DADDR = #{nisIndivA01.glRoadNmDaddr} - , GL_ROAD_NM_AL_ADDR = #{nisIndivA01.glRoadNmAlAddr} - , GL_LOTNO_ADDR = #{nisIndivA01.glLotnoAddr} - , GL_LOTNO_DADDR = #{nisIndivA01.glLotnoDaddr} - , GL_LOTNO_AL_ADDR = #{nisIndivA01.glLotnoAlAddr} - , LVY_TRGT_SE_CD = #{nisIndivA01.lvyTrgtSeCd} - , REG_YMD = #{nisIndivA01.regYmd} - , FIN_SCRG_AMT = #{nisIndivA01.finScrgAmt} - , FCLT_SE_CD = #{nisIndivA01.fcltSeCd} - , REG_SE_CD = #{nisIndivA01.regSeCd} - , RDT_RSN_SE_CD = #{nisIndivA01.rdtRsnSeCd} - , VHRNO = #{nisIndivA01.vhrno} - , MCLNC_LAO_BSS_NM = #{nisIndivA01.mclncLaoBssNm} - , MNG_ITEM_CN1 = #{nisIndivA01.mngItemCn1} - , MNG_ITEM_CN2 = #{nisIndivA01.mngItemCn2} - , MNG_ITEM_CN3 = #{nisIndivA01.mngItemCn3} - , MNG_ITEM_CN4 = #{nisIndivA01.mngItemCn4} - , MNG_ITEM_CN5 = #{nisIndivA01.mngItemCn5} - , MNG_ITEM_CN6 = #{nisIndivA01.mngItemCn6} - , RM_CN = #{nisIndivA01.rmCn} - , RSVE_ITEM1 = #{nisIndivA01.rsveItem1} - , RSVE_ITEM2 = #{nisIndivA01.rsveItem2} - , RSVE_ITEM3 = #{nisIndivA01.rsveItem3} - , RSVE_ITEM4 = #{nisIndivA01.rsveItem4} - , RSVE_ITEM5 = #{nisIndivA01.rsveItem5} - , LINK_RST_DT = #{nisIndivA01.linkRstDt} - , LINK_RST_CD = #{nisIndivA01.linkRstCd} - , LINK_RST_MSG = #{nisIndivA01.linkRstMsg} - , MDFCN_DT = - , MDFR = #{currentUser.id} - WHERE A01_ID = #{nisIndivA01.a01Id} + /* 과태료 대장 단속 정보 등록 수정(nisIndivA01Mapper.updateNisIndivA01) */ + UPDATE TB_NIS_INDIV_A01 + SET TASK_SE_CD = #{nisIndivA01.taskSeCd} + , SGB_CD = #{nisIndivA01.sgbCd} + , LINK_TRGT_CD = #{nisIndivA01.linkTrgtCd} + , LINK_MNG_KEY = #{nisIndivA01.linkMngKey} + , DPT_CD = #{nisIndivA01.dptCd} + , RCPT_YR = #{nisIndivA01.rcptYr} + , SPAC_BIZ_CD = #{nisIndivA01.spacBizCd} + , ACT_SE_CD = #{nisIndivA01.actSeCd} + , RPRS_TXM_CD = #{nisIndivA01.rprsTxmCd} + , OPER_ITEM_CD = #{nisIndivA01.operItemCd} + , FIN_SCRG_SE_CD = #{nisIndivA01.finScrgSeCd} + , PYR_SE_CD = #{nisIndivA01.pyrSeCd} + , PYR_NO = #{nisIndivA01.pyrNo} + , PYR_NM = #{nisIndivA01.pyrNm} + , RPRS_PYR_NO = #{nisIndivA01.rprsPyrNo} + , RPRS_PYR_NM = #{nisIndivA01.rprsPyrNm} + , PYR_TELNO = #{nisIndivA01.pyrTelno} + , PYR_MBL_TELNO = #{nisIndivA01.pyrMblTelno} + , PYR_EML_ADDR = #{nisIndivA01.pyrEmlAddr} + , PYR_STT_CD = #{nisIndivA01.pyrSttCd} + , PYR_LOTNO_ROAD_ADDR_SE_CD = #{nisIndivA01.pyrLotnoRoadAddrSeCd} + , PYR_ZIP = #{nisIndivA01.pyrZip} + , PYR_ROAD_NM_CD = #{nisIndivA01.pyrRoadNmCd} + , PYR_ADDR_UDGD_YN = #{nisIndivA01.pyrAddrUdgdYn} + , PYR_BMNO = #{nisIndivA01.pyrBmno} + , PYR_BSNO = #{nisIndivA01.pyrBsno} + , PYR_STDG_CD = #{nisIndivA01.pyrStdgCd} + , PYR_DONG_CD = #{nisIndivA01.pyrDongCd} + , PYR_MTN_SE_CD = #{nisIndivA01.pyrMtnSeCd} + , PYR_BLDG_MNG_NO = #{nisIndivA01.pyrBldgMngNo} + , PYR_BLDG_NM = #{nisIndivA01.pyrBldgNm} + , PYR_MNO = #{nisIndivA01.pyrMno} + , PYR_SNO = #{nisIndivA01.pyrSno} + , PYR_SPCL_DG = #{nisIndivA01.pyrSpclDg} + , PYR_SPCL_HO = #{nisIndivA01.pyrSpclHo} + , PYR_TONG = #{nisIndivA01.pyrTong} + , PYR_BAN = #{nisIndivA01.pyrBan} + , PYR_SPCL_ADDR = #{nisIndivA01.pyrSpclAddr} + , PYR_ROAD_NM_ADDR = #{nisIndivA01.pyrRoadNmAddr} + , PYR_ROAD_NM_DADDR= #{nisIndivA01.pyrRoadNmDaddr} + , PYR_ROAD_NM_AL_ADDR = #{nisIndivA01.pyrRoadNmAlAddr} + , PYR_LOTNO_ADDR = #{nisIndivA01.pyrLotnoAddr} + , PYR_LOTNO_DADDR = #{nisIndivA01.pyrLotnoDaddr} + , PYR_LOTNO_AL_ADDR= #{nisIndivA01.pyrLotnoAlAddr} + , GL_NM = #{nisIndivA01.glNm} + , GL_LOTNO_ROAD_ADDR_SE_CD = #{nisIndivA01.glLotnoRoadAddrSeCd} + , GL_ZIP = #{nisIndivA01.glZip} + , GL_ROAD_NM_CD = #{nisIndivA01.glRoadNmCd} + , GL_ADDR_UDGD_YN = #{nisIndivA01.glAddrUdgdYn} + , GL_BMNO = #{nisIndivA01.glBmno} + , GL_BSNO = #{nisIndivA01.glBsno} + , GL_STDG_CD = #{nisIndivA01.glStdgCd} + , GL_DONG_CD = #{nisIndivA01.glDongCd} + , GL_MTN_SE_CD = #{nisIndivA01.glMtnSeCd} + , GL_MNO = #{nisIndivA01.glMno} + , GL_SNO = #{nisIndivA01.glSno} + , GL_SPCL_ADDR = #{nisIndivA01.glSpclAddr} + , GL_SPCL_DG = #{nisIndivA01.glSpclDg} + , GL_SPCL_HO = #{nisIndivA01.glSpclHo} + , GL_ROAD_NM_ADDR = #{nisIndivA01.glRoadNmAddr} + , GL_ROAD_NM_DADDR = #{nisIndivA01.glRoadNmDaddr} + , GL_ROAD_NM_AL_ADDR = #{nisIndivA01.glRoadNmAlAddr} + , GL_LOTNO_ADDR = #{nisIndivA01.glLotnoAddr} + , GL_LOTNO_DADDR = #{nisIndivA01.glLotnoDaddr} + , GL_LOTNO_AL_ADDR = #{nisIndivA01.glLotnoAlAddr} + , LVY_TRGT_SE_CD = #{nisIndivA01.lvyTrgtSeCd} + , REG_YMD = #{nisIndivA01.regYmd} + , FIN_SCRG_AMT = #{nisIndivA01.finScrgAmt} + , FCLT_SE_CD = #{nisIndivA01.fcltSeCd} + , REG_SE_CD = #{nisIndivA01.regSeCd} + , RDT_RSN_SE_CD = #{nisIndivA01.rdtRsnSeCd} + , VHRNO = #{nisIndivA01.vhrno} + , MCLNC_LAO_BSS_NM = #{nisIndivA01.mclncLaoBssNm} + , MNG_ITEM_CN1 = #{nisIndivA01.mngItemCn1} + , MNG_ITEM_CN2 = #{nisIndivA01.mngItemCn2} + , MNG_ITEM_CN3 = #{nisIndivA01.mngItemCn3} + , MNG_ITEM_CN4 = #{nisIndivA01.mngItemCn4} + , MNG_ITEM_CN5 = #{nisIndivA01.mngItemCn5} + , MNG_ITEM_CN6 = #{nisIndivA01.mngItemCn6} + , RM_CN = #{nisIndivA01.rmCn} + , RSVE_ITEM1 = #{nisIndivA01.rsveItem1} + , RSVE_ITEM2 = #{nisIndivA01.rsveItem2} + , RSVE_ITEM3 = #{nisIndivA01.rsveItem3} + , RSVE_ITEM4 = #{nisIndivA01.rsveItem4} + , RSVE_ITEM5 = #{nisIndivA01.rsveItem5} + , LINK_RST_DT = #{nisIndivA01.linkRstDt} + , LINK_RST_CD = #{nisIndivA01.linkRstCd} + , LINK_RST_MSG = #{nisIndivA01.linkRstMsg} + , MDFCN_DT = + , MDFR = #{levyExcl.modifiedBy} + WHERE A01_ID = #{nisIndivA01.a01Id} + -/* 과태료 대장 단속 정보 등록 삭제(nisIndivA01Mapper.deleteNisIndivA01) */ -UPDATE TB_NIS_INDIV_A01 SET - USE_YN = 'N' - , MDFCN_DT = - , MDFR = #{currentUser.id} - WHERE A01_ID = #{nisIndivA01.a01Id} + /* 과태료 대장 단속 정보 등록 삭제(nisIndivA01Mapper.deleteNisIndivA01) */ + UPDATE TB_NIS_INDIV_A01 + SET USE_YN = 'N' + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE A01_ID = #{nisIndivA01.a01Id} + + + diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp index 5d4bb9d9..d9a2b686 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp @@ -396,7 +396,7 @@ , content : resp , size : $P.control.infoSize , init : () => { } - , onClose : () => { $P.refreshList(); } // 자료 재조회 + , onClose : () => { $P.refreshList(); } // 자료 재조회 }); } }); @@ -413,9 +413,7 @@ , onOK : () => { } }); - if (resp.saved) { - $P.refreshList(); // 자료 재조회 - } + if (resp.saved) { $P.refreshList(); } // 자료 재조회 } // 삭제 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 98654ac1..9bb0a79b 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 @@ -29,17 +29,6 @@ -<%-- - - @@ -309,39 +298,12 @@ }); } - // 세외수입 등록 - $P.createNxrpLink = (params) => { + // 과태료 대장 단속 정보 등록 + $P.createNxrpLinkA01 = (params) => { if (!params) return; ajax.post({ - url : wctx.url("/" + params.taskSeCd + "/nxrp/nxrp01/010/createNxrpLink.do") - , data : params || {} - , success : resp => { - // S 또는 F 를 버튼 title 로 변경하여 메시지 출력 - let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.title); - - dialog.alert({ - content : showMessage - , onOK : () => { } - }); - } - }); - } - - // 매칭정보 확인 - $P.updateNxrpLink = (params) => { - // 선택된 자료의 ID 추가 - let selected = $P.control.dataset.getKeys("selected"); // 발송 상세 ID - let crdnKeys = getCrdnKeys("selected"); // 단속 ID - - if (selected.length < 1) return; - - params.sndngDtlIds = selected.join(","); // 발송 상세 Ids - params.crdnIDs = crdnKeys.join(","); // 단속 IDs - params.delYN = "N"; // 삭제 여부 - - ajax.post({ - url : wctx.url("/" + params.taskSeCd + "/sndb/nxrp01/010/updateNxrpLink.do") + url : wctx.url("/" + params.taskSeCd + "/nxrp/nxrp01/010/createIndivA01.do") , data : params || {} , success : resp => { // S 또는 F 를 버튼 title 로 변경하여 메시지 출력 @@ -349,32 +311,7 @@ dialog.alert({ content : showMessage - , onOK : () => { } - }); - } - }); - } - - // 미부과건 확인 - $P.levyIdnty = (params) => { - // 선택된 자료의 발송 상세 ID 추가 - let selected = $P.control.dataset.getKeys("selected"); - - if (selected.length < 1) return; - - params.sndngDtlIds = selected.join(","); // 발송 상세 Ids - params.delYN = "N"; // 삭제 여부 - - ajax.post({ - url : wctx.url("/" + params.taskSeCd + $P.PrefixUrl + "/levyIdnty.do") - , data : params || {} - , success : resp => { - // S 또는 F 를 버튼 title 로 변경하여 메시지 출력 - let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.title); - - dialog.alert({ - content : showMessage - , onOK : () => { } + , onOK : () => { $P.refreshList(); } // 자료 재조회 }); } }); @@ -426,6 +363,14 @@ }); } + // 검색 자료 재조회 + $P.refreshList = () => { + $P.control.untilPageNum = $P.control.query.pageNum; + $P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum; + + $P.control.load(1); + } + /************************************************************************** * 버튼 clickEvent **************************************************************************/ @@ -448,63 +393,28 @@ $P.control.download(); } - // 세외수입 등록 버튼 이벤트 - $P.fnCreateNxrpLink = (title) => { - // validate 확인 - if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return; - - // main에서 받아온 조건(Query)을 파라미터로 넘긴다. - dialog.alert({ - content : "세외수입 과태료 대장에 자료를 전송하시겠습니까?" - , onOK : () => { - let params = { - callPurpose : "create" - , title : title // 타이틀 - , sndngId : $P.control.dataset.getValue("SNDNG_ID") // 발송 ID - }; - - $P.createNxrpLink(params); - } - }); - } - - // 세외수입 조회 버튼 이벤트 - $P.fnUpdateNxrpLink = (title) => { + // 세외수입 과태료 대장 단속 정보 등록 버튼 이벤트 + $P.fnCreateNxrpLinkA01 = (title) => { // validate 확인 if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return; // main에서 받아온 조건(Query)을 파라미터로 넘긴다. dialog.alert({ - content : "세외수입 과태료 대장을 조회하여 매치정보를 작성하시겠습니까?" + content : "세외수입 과태료 대장에 단속 정보를 등록하시겠습니까?" , onOK : () => { let params = { callPurpose : "create" , title : title // 타이틀 + , taskSeCd : $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드 , sndngId : $P.control.dataset.getValue("SNDNG_ID") // 발송 ID + , sndngYmd : $P.control.dataset.getValue("SNDNG_YMD") // 발송 일자 }; - $P.updateNxrpLink(params); + $P.createNxrpLinkA01(params); } }); } - // 미부과건확인 버튼 이벤트 - $P.fnLevyIdnty = (title) => { - // validate 확인 - if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return; - - // 파리미터 설정 - let params = $P.formFields.get(); // formFields - params.title = title; // 타이틀 - - $P.levyIdnty(params); - } - - // 세외수입 과태료 대장 단속 정보 등록 버튼 이벤트 - $P.fnCreateNxrpLinkA01 = (title) => { - - } - // 세외수입 과태료 대장 등록 자료 상세 조회 버튼 이벤트 $P.fnUpdateNxrpLinkA03 = (title) => { @@ -606,19 +516,6 @@ // 기본 버튼 이벤트 $("#btnExcel--${pageName}").on("click", () => $P.fnExcel()); // 엑셀 -// // 세외수입 등록 버튼 이벤트 -// $("#btnCreateNxrpLink--${pageName}").on("click", function() { -// $P.fnCreateNxrpLink($(this).attr("title")); -// }); -// // 매치정보 작성 버튼 이벤트 -// $("#btnUpdateNxrpLink--${pageName}").on("click", function() { -// $P.fnUpdateNxrpLink($(this).attr("title")); -// }); -// // 미부과건 확인 버튼 이벤트 -// $("#btnLevyIdnty--${pageName}").on("click", function() { -// $P.fnLevyIdnty($(this).attr("title")); -// }); - // 세외수입 과태료 대장 단속 정보 등록 버튼 이벤트 $("#btnCreateNxrpLinkA01--${pageName}").on("click", function() { $P.fnCreateNxrpLinkA01($(this).attr("title"));