From f79d10c122a1b03cdedfbc0ac15a4d56852cc033 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 22 Jun 2023 14:36:31 +0900 Subject: [PATCH] =?UTF-8?q?sql=EB=AA=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/crdn/dao/Crdn06Mapper.java | 4 +- .../fims/crdn/service/bean/Crdn06Bean.java | 2 +- .../xit/fims/crdn/web/Crdn06Controller.java | 4 +- .../cokr/xit/fims/sprt/dao/Sprt01Mapper.java | 2 +- .../fims/sprt/service/bean/Sprt01Bean.java | 2 +- .../sql/mapper/fims/crdn/crdn06-mapper.xml | 14 +++--- .../sql/mapper/fims/sprt/sprt01-mapper.xml | 4 +- .../WEB-INF/jsp/fims/crdn/crdn06030-main.jsp | 43 +++++++++---------- 8 files changed, 36 insertions(+), 39 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/dao/Crdn06Mapper.java b/src/main/java/cokr/xit/fims/crdn/dao/Crdn06Mapper.java index e739d370..750f6565 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/Crdn06Mapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/Crdn06Mapper.java @@ -20,9 +20,9 @@ public interface Crdn06Mapper extends AbstractMapper { * @param req 단속자료 목록 조회 조건 * @return 단속자료 목록 */ - List getCrackdownList(CrdnQuery req); + List selectCrackdownList(CrdnQuery req); - List getCrackdowns(CrdnQuery req); + List selectCrackdowns(CrdnQuery req); diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn06Bean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn06Bean.java index 9404c18d..0ef2a6ff 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn06Bean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn06Bean.java @@ -27,7 +27,7 @@ public class Crdn06Bean extends AbstractComponent { * @return 단속자료 목록 */ public List getCrackdownList(CrdnQuery req) { - return crdn06Mapper.getCrackdownList(req.setOrderBy("CRDN_ID")); + return crdn06Mapper.selectCrackdownList(req.setOrderBy("CRDN_ID")); } diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java index dbd5f834..6e53cc33 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java @@ -45,11 +45,11 @@ public class Crdn06Controller extends ApplicationController { mav.setViewName("fims/crdn/crdn06030-main"); mav.addObject("pageName","crdn06030-main"); - Map> commonCodes = getCodesOf("FIM001", "FIM002", "FIM010", "FIM026"); + Map> commonCodes = getCodesOf("FIM001", "FIM002", "FIM003", "FIM010", "FIM026"); mav.addObject("FIM001List", commonCodes.get("FIM001")); mav.addObject("FIM002List", commonCodes.get("FIM002")); mav.addObject("FIM010List", commonCodes.get("FIM010")); - addCodes(commonCodes, mav, "FIM002", "FIM026"); + addCodes(commonCodes, mav, "FIM002", "FIM003", "FIM010", "FIM026"); return mav; } diff --git a/src/main/java/cokr/xit/fims/sprt/dao/Sprt01Mapper.java b/src/main/java/cokr/xit/fims/sprt/dao/Sprt01Mapper.java index 402cb12c..e9fa78c0 100644 --- a/src/main/java/cokr/xit/fims/sprt/dao/Sprt01Mapper.java +++ b/src/main/java/cokr/xit/fims/sprt/dao/Sprt01Mapper.java @@ -18,6 +18,6 @@ public interface Sprt01Mapper extends AbstractMapper { * @param crdnId 단속 아이디 * @return 개별총정보 */ - DataObject getTotalDataInfo(String crdnId); + DataObject selectTotalDataInfo(String crdnId); } diff --git a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01Bean.java b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01Bean.java index 370eba84..ba9aa17f 100644 --- a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01Bean.java +++ b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01Bean.java @@ -22,7 +22,7 @@ public class Sprt01Bean extends AbstractComponent { * @return 개별총정보 */ public DataObject getTotalDataInfo(String crdnId) { - return sprt01Mapper.getTotalDataInfo(crdnId); + return sprt01Mapper.selectTotalDataInfo(crdnId); } } diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml index 695c2b72..fae1815d 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml @@ -10,7 +10,7 @@ - + SELECT A.CRDN_ID , A.SGG_CD @@ -92,14 +92,14 @@ - + /* 단속자료 목록 조회(crdn06Mapper.selectCrackdownList) */ + - + /* 단속자료 가져오기 (crdn06Mapper.selectCrackdowns) */ + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/fims/sprt/sprt01-mapper.xml b/src/main/resources/sql/mapper/fims/sprt/sprt01-mapper.xml index ec5cb218..d6dcdb88 100644 --- a/src/main/resources/sql/mapper/fims/sprt/sprt01-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sprt/sprt01-mapper.xml @@ -2,8 +2,8 @@ - + /* 개별총정보 조회(sprt01Mapper.selectTotalDataInfo) */ SELECT * FROM TB_CRDN WHERE CRDN_ID = #{crdnId} diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp index c1aa2fc3..0db1690f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp @@ -136,6 +136,8 @@ * Global Variable **************************************************************************/ var FIM002 = new CommonCodes(${FIM002}); +var FIM003 = new CommonCodes(${FIM003}); +var FIM010 = new CommonCodes(${FIM010}); var FIM026 = new CommonCodes(${FIM026}); pageObject["${pageName}"] = {}; @@ -153,16 +155,18 @@ $(document).ready(function(){ getInfo : wctx.url("/sprt/sprt01/020/DPV/info.do") }, formats: { - CRDN_YMD_TM : datetimeFormat, - REG_DT : datetimeFormat, - MDFCN_DT : datetimeFormat, + CRDN_YMD_TM : datetimeFormat, + REG_DT : datetimeFormat, + MDFCN_DT : datetimeFormat, CVLCPT_PRCS_PRNMNT_DT : dateFormat, CVLCPT_RCPT_YMD : dateFormat, - RCVMT_AMT : numberFormat, + RCVMT_AMT : numberFormat, - CRDN_SE_CD: FIM002, - CRDN_REG_SE_CD: FIM026 + CRDN_SE_CD : FIM002, + CRDN_INPT_SE_CD : FIM003, + CRDN_STTS_CD : FIM010, + CRDN_REG_SE_CD : FIM026 }, keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, @@ -240,27 +244,20 @@ $(document).ready(function(){ * Grid ******************************* */ thisPO.gridColumns = [ - { header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' }, - { header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, className: 'text-center' }, + { header: '자료출처', name: 'CRDN_INPT_SE_CD', width: 100, className: 'text-center' }, { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' }, + { header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' }, + { header: '법정동', name: 'CRDN_STDG_NM', width: 80, className: 'text-center' }, + { header: '신고/단속자', name: 'CVLCPT_APLCNT_NM000', width: 80, className: 'text-center' }, + { header: '잔액', name: 'UNKNOWN2', width: 80, className: 'text-end' }, + { header: '영상매체', name: 'UNKNOWN3', width: 80, className: 'text-center' }, { header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, className: 'text-center' }, - { header: '수납금액', name: 'RCVMT_AMT', width: 100, className: 'text-end' }, - { header: '위반횟수', name: 'VLTN_NMTM', width: 80, className: 'text-center' }, - { header: '위반장소', name: 'CRDN_PLC', width: 150 }, - { header: '특기사항', name: 'ETC_CN', width: 80, className: 'text-center' }, - { header: '서손사유', name: 'ETC_CN', width: 80, className: 'text-center' }, - { header: '처리상태명', name: 'CRDN_STTS_NM', width: 80}, - { header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, className: 'text-center' }, - { header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, className: 'text-center' }, - { header: '처리기한', name: 'CVLCPT_PRCS_PRNMNT_DT', width: 80, className: 'text-center' }, - { header: '신고자', name: 'CVLCPT_APLCNT_NM', width: 80, className: 'text-center' }, - { header: '등록구분', name: 'CRDN_REG_SE_CD', width: 50, className: 'text-center' }, + { header: '발행번호', name: 'CRDN_SN', width: 80, className: 'text-center' }, + { header: '표지확인', name: 'UNKNOWN5', width: 80, className: 'text-center' }, + { header: '처리상태', name: 'CRDN_STTS_CD', width: 80, className: 'text-center' }, + { header: '등록일시', name: 'REG_DT', width: 150, className: 'text-center' }, { header: '최종처리일시', name: 'MDFCN_DT', width: 150, className: 'text-center' }, - { header: '상태', name: 'CRDN_STTS_CD', hidden: true }, - { header: '서손ID', name: 'LEVY_EXCL_ID', hidden: true }, - { header: '소유자ID', name: 'RTPYR_ID', hidden: true }, - { header: '서손사유코드', name: 'LEVY_EXCL_RSN_CD', hidden: true }, { header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true } ]; thisPO.gridOptions = {