From a08bd797327c616d5415785ab2b7fde665f89c2b Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 11 Aug 2023 18:47:06 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/crdn/service/CrdnCvlcptService.java | 16 +- .../mapper/fims/crdn/crdnCvlcpt-mapper.xml | 176 ++++++++---------- 2 files changed, 81 insertions(+), 111 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/service/CrdnCvlcptService.java b/src/main/java/cokr/xit/fims/crdn/service/CrdnCvlcptService.java index 75cad978..55ca994b 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/CrdnCvlcptService.java +++ b/src/main/java/cokr/xit/fims/crdn/service/CrdnCvlcptService.java @@ -17,6 +17,12 @@ public interface CrdnCvlcptService { */ List getCrackdownList(CrdnQuery query); + /** 민원접수 초기자료 상세정보를 조회한다. + * @param query 조회 요청 + * @return 민원초기자료 정보 + */ + DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery query); + /** 민원 원본 상세정보를 조회한다. * @param query 조회 요청 * @return 민원원본정보 @@ -29,12 +35,6 @@ public interface CrdnCvlcptService { */ DataObject getAnswerPreview(CrdnQuery query); - /** 민원접수 초기자료 상세정보를 조회한다. - * @param query 조회 요청 - * @return 민원초기자료 정보 - */ - DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery query); - /** 한글 서식 출력물을 생성한다. * @param query 출력 요청 * @return map 출력 요청 결과 @@ -44,8 +44,8 @@ public interface CrdnCvlcptService { */ Map makeFileFromHwpFormat(CrdnQuery query); - /** 단속민원 부과요청을 수용한다. - * @param crdn 단속정보, newFileInfoList 업로드 파일 목록 + /** 단속민원 부과요청 수용 정보를 변경한다. + * @param crdnCvlcpt 단속민원정보, crdn 단속정보, newFileInfoList 업로드 파일 목록 * @return 저장여부 */ boolean updateCvlcptPrcs(Map nonQueryRequest, CrdnCvlcpt crdnCvlcpt, Crdn crdn, List newFileInfoList); diff --git a/src/main/resources/sql/mapper/fims/crdn/crdnCvlcpt-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdnCvlcpt-mapper.xml index e787f903..7f8a5e1d 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdnCvlcpt-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdnCvlcpt-mapper.xml @@ -2,9 +2,70 @@ - - - +/* 단속 민원 대장 등록(crdnCvlcptMapper.insertCvlcpt) */ +INSERT INTO TB_CRDN_CVLCPT ( + CVLCPT_LINK_ID + , CVLCPT_INPT_SE_CD + , CVLCPT_RCPT_YMD + , CVLCPT_APLY_SE_CD + , CVLCPT_APLY_NO + , CVLCPT_RCPT_NO + , CVLCPT_LIST_NO + , CVLCPT_APLCNT_NM + , CVLCPT_APLY_DT + , CVLCPT_APLY_TTL_NM + , CVLCPT_APLY_CN + , CVLCPT_GIST + , CVLCPT_PRCS_PIC_NM + , CVLCPT_PRCS_PRNMNT_DT + , CVLCPT_PRCS_CD + , CVLCPT_PRCS_SUMRY + , CVLCPT_PRCS_RSLT_CN + , CVLCPT_PRCS_CMPTN_DT + , CVLCPT_PRCS_PIC + , CVLCPT_TRSM_DT + , CVLCPT_TRSM_CD + , CVLCPT_TRSM_MSG + , DEL_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + , DEL_DT + , DLTR + , DEL_RSN +) VALUES ( + #{cvlcptLinkId} + , #{cvlcptInptSeCd} + , #{cvlcptRcptYmd} + , #{cvlcptAplySeCd} + , #{cvlcptAplyNo} + , #{cvlcptRcptNo} + , #{cvlcptListNo} + , #{cvlcptAplcntNm} + , #{cvlcptAplyDt} + , #{cvlcptAplyTtlNm} + , #{cvlcptAplyCn} + , #{cvlcptGist} + , #{cvlcptPrcsPicNm} + , #{cvlcptPrcsPrnmntDt} + , #{cvlcptPrcsCd} + , #{cvlcptPrcsSumry} + , #{cvlcptPrcsRsltCn} + , #{cvlcptPrcsCmptnDt} + , #{cvlcptPrcsPic} + , #{cvlcptTrsmDt} + , #{cvlcptTrsmCd} + , #{cvlcptTrsmMsg} + , 'N' + , #{createdAt} + , #{createdBy} + , #{lastModified} + , #{modifiedBy} + , #{removedAt} + , #{removedBy} + , #{delRsn} +) @@ -274,7 +309,7 @@ SELECT C.CRDN_ID , CC.CVLCPT_RCPT_YMD , CC.CVLCPT_PRCS_PRNMNT_DT , CC.CVLCPT_APLY_CN - , C.LINK_TBL_NM + , C.LINK_TBL_NM , C.LINK_ID FROM TB_CRDN C INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) @@ -286,7 +321,7 @@ SELECT C.CRDN_ID /* 민원답변 미리보기(crdnCvlcptMapper.selectAnswerPreview) */ SELECT C.CRDN_ID , CC.CVLCPT_APLY_CN - , CC.CVLCPT_PRCS_RSLT_CN + , CC.CVLCPT_PRCS_RSLT_CN FROM TB_CRDN C INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' @@ -334,80 +369,15 @@ SELECT C.CRDN_ID AND C.CRDN_ID = #{crdnId} -/* 단속 민원 대장 등록(crdnCvlcptMapper.insertCvlcpt) */ -INSERT INTO TB_CRDN_CVLCPT ( - CVLCPT_LINK_ID - , CVLCPT_INPT_SE_CD - , CVLCPT_RCPT_YMD - , CVLCPT_APLY_SE_CD - , CVLCPT_APLY_NO - , CVLCPT_RCPT_NO - , CVLCPT_LIST_NO - , CVLCPT_APLCNT_NM - , CVLCPT_APLY_DT - , CVLCPT_APLY_TTL_NM - , CVLCPT_APLY_CN - , CVLCPT_GIST - , CVLCPT_PRCS_PIC_NM - , CVLCPT_PRCS_PRNMNT_DT - , CVLCPT_PRCS_CD - , CVLCPT_PRCS_SUMRY - , CVLCPT_PRCS_RSLT_CN - , CVLCPT_PRCS_CMPTN_DT - , CVLCPT_PRCS_PIC - , CVLCPT_TRSM_DT - , CVLCPT_TRSM_CD - , CVLCPT_TRSM_MSG - , DEL_YN - , REG_DT - , RGTR - , MDFCN_DT - , MDFR - , DEL_DT - , DLTR - , DEL_RSN -) VALUES ( - #{cvlcptLinkId} - , #{cvlcptInptSeCd} - , #{cvlcptRcptYmd} - , #{cvlcptAplySeCd} - , #{cvlcptAplyNo} - , #{cvlcptRcptNo} - , #{cvlcptListNo} - , #{cvlcptAplcntNm} - , #{cvlcptAplyDt} - , #{cvlcptAplyTtlNm} - , #{cvlcptAplyCn} - , #{cvlcptGist} - , #{cvlcptPrcsPicNm} - , #{cvlcptPrcsPrnmntDt} - , #{cvlcptPrcsCd} - , #{cvlcptPrcsSumry} - , #{cvlcptPrcsRsltCn} - , #{cvlcptPrcsCmptnDt} - , #{cvlcptPrcsPic} - , #{cvlcptTrsmDt} - , #{cvlcptTrsmCd} - , #{cvlcptTrsmMsg} - , 'N' - , #{createdAt} - , #{createdBy} - , #{lastModified} - , #{modifiedBy} - , #{removedAt} - , #{removedBy} - , #{delRsn} -) - /* 단속민원 처리 수정(crdnCvlcptMapper.updateCvlcptPrcs) */ UPDATE TB_CRDN_CVLCPT SET CVLCPT_PRCS_CMPTN_DT = - , CVLCPT_PRCS_CD = #{cvlcptPrcsCd} - , CVLCPT_TRSM_CD = #{cvlcptTrsmCd} - , CVLCPT_PRCS_SUMRY = #{cvlcptPrcsSumry} - , CVLCPT_PRCS_RSLT_CN = #{cvlcptPrcsRsltCn} - , CVLCPT_PRCS_PIC = #{modifiedBy} + , CVLCPT_PRCS_CD = #{cvlcptPrcsCd} /* 민원처리코드 */ + , CVLCPT_TRSM_CD = #{cvlcptTrsmCd} /* 민원전송코드 */ + , CVLCPT_PRCS_SUMRY = #{cvlcptPrcsSumry} /* 민원처리요약 */ + , CVLCPT_PRCS_RSLT_CN = #{cvlcptPrcsRsltCn} /* 민원처리결과내용 */ + , CVLCPT_PRCS_PIC = #{modifiedBy} /* 수정자 */ , MDFCN_DT = /* 수정일시 */ , MDFR = #{modifiedBy} /* 수정자 */ WHERE CVLCPT_LINK_ID = #{cvlcptLinkId} /* 연계 ID */ @@ -417,7 +387,7 @@ INSERT INTO TB_CRDN_CVLCPT ( /* 단속정보 수정(crdnCvlcptMapper.updateCrdn) */ UPDATE TB_CRDN SET MDFCN_DT = /* 수정일시 */ - , MDFR = #{currentUser.modifiedBy} /* 수정자 */ + , MDFR = #{currentUser.modifiedBy} /* 수정자 */ , ATCH_FILE_CNT = ATCH_FILE_CNT + (#{changeFileCnt}) , RTPYR_ID = #{crdn.rtpyrId} /* 납부자 ID */ , CRDN_YMD = #{crdn.crdnYmd} /* 단속 일자 */