diff --git a/src/main/java/cokr/xit/fims/sprt/SprtQuery.java b/src/main/java/cokr/xit/fims/sprt/SprtQuery.java index af8fe60e..4f316385 100644 --- a/src/main/java/cokr/xit/fims/sprt/SprtQuery.java +++ b/src/main/java/cokr/xit/fims/sprt/SprtQuery.java @@ -6,6 +6,8 @@ public class SprtQuery extends CmmnQuery { private static final long serialVersionUID = 1L; + // 필수 + private String callControlName; // 호출한 페이지의 Control 이름 // ID private String crdnId; // 단속 ID private String levyExclId; // 부과 제외 ID @@ -23,6 +25,16 @@ public class SprtQuery extends CmmnQuery { private String delRsn; // 삭제 사유 private String inquiryCondition; // 조회 조건 + public String getCallControlName() { + return ifEmpty(callControlName, () -> null); + } + + public T setCallControlName(String callControlName) { + this.callControlName = callControlName; + + return self(); + } + public String getCrdnId() { return ifEmpty(crdnId, () -> null); } diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java index 8fd3e01c..0d04e4dc 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java @@ -90,8 +90,9 @@ public class Sprt02Controller extends ApplicationController { ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/sprt/sprt02010-main"); return mav + .addObject("callControlName", req.getCallControlName()) .addObject("pageName", "sprt02010") // View(jsp)에서 사용할 id 뒤에 붙일 suffix - .addObject("pageNameMain", "sprt02010") + .addObject("pageNameMain", "sprt02010") // 개별총정보 메인 화면명 .addObject("totalInfo", json ? totalInfo : toJson(totalInfo)) // 개별총정보 ; } diff --git a/src/main/resources/sql/mapper/fims/levy/rduct-mapper.xml b/src/main/resources/sql/mapper/fims/levy/rduct-mapper.xml index caeb7bfd..9fecb1f1 100644 --- a/src/main/resources/sql/mapper/fims/levy/rduct-mapper.xml +++ b/src/main/resources/sql/mapper/fims/levy/rduct-mapper.xml @@ -27,8 +27,6 @@ SELECT R.RDUCT_ID /* 감경 ID */ - , R.CRDN_ID /* 단속 ID */ - , R.RTPYR_ID /* 납부자 ID */ , R.RDUCT_YMD /* 감경 일자 */ , R.RDUCT_RSN_CD /* 감경 사유 코드 */ , (SELECT FN_GET_CODE_NM('FIM019', R.RDUCT_RSN_CD) FROM DUAL) AS RDUCT_RSN_NM /* 감경 사유 명 */ @@ -45,20 +43,25 @@ , R.DLTR /* 삭제자 */ , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = R.DLTR) AS DLTR_NM /* 삭제자 명 */ , R.DEL_RSN /* 삭제 사유 */ + , C.CRDN_ID /* 단속 ID */ + , C.SGG_CD /* 시군구 코드 */ + , C.TASK_SE_CD /* 업무 구분 코드 */ , CONCAT(C.CRDN_YMD,C.CRDN_TM) AS CRDN_YMD_TM /* 단속 일시 */ , C.VHRNO /* 차량 번호 */ , C.FFNLG_CRDN_AMT /* 과태료 단속 금액 */ , C.FFNLG_RDUCT_RT /* 과태료 감경 율 */ , C.FFNLG_AMT /* 과태료 금액 */ , C.ADVNTCE_AMT /* 사전통지금액 */ - , C.MINUS_AMT - , C.ADTN_AMT - , C.RCVMT_AMT , C.CRDN_STTS_CD /* 단속 상태 코드 */ , (SELECT FN_GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM /* 단속 상태 명 */ + , P.RTPYR_ID /* 납부자 ID */ , P.RTPYR_NO /* 납부자 번호 */ , P.RTPYR_NM /* 납부자 명 */ , L.LEVY_ID /* 부과 ID */ + , L.LEVY_PCPTAX + LEVY_ADAMT AS LEVY_AMT /* 부과 금액 */ + , L.RCVMT_PCPTAX + RCVMT_ADAMT AS RCVMT_AMT /* 수납 금액 */ + , L.RDCAMT_PCPTAX + RDCAMT_ADAMT AS RDCAMT_AMT /* 감액 금액 */ + , L.SUM_AMT /* 합계 금액 */ FROM TB_RDUCT R INNER JOIN TB_CRDN C ON (R.CRDN_ID = C.CRDN_ID) LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) 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 2b946e43..73794109 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 @@ -349,9 +349,14 @@ return; } + let params = { + callControlName : "${pageName}Control" + , crdnId : crdnId + } + ajax.get({ url : ${pageName}Control.urls.getInfo - , data : { crdnId : crdnId } + , data : params || {} , success : resp => { dialog.open({ id : "totalInfoMainDialog" diff --git a/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp index 57f77315..c41deb6f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp @@ -102,7 +102,8 @@ 차량번호 과태료단속원금 감경금액 - 잔액 + 과태료금액 + 미납금액 감경특기사항 처리상태 @@ -117,14 +118,15 @@ {VHRNO} {FFNLG_CRDN_AMT} {RDUCT_AMT} - {BLNC} + {FFNLG_AMT} + {SUM_AMT} {ETC_CN} {CRDN_STTS_CD} @@ -170,8 +172,9 @@ $(document).ready(function(){ CRDN_YMD_TM : datetimeFormat, FFNLG_CRDN_AMT : numberFormat, RDUCT_AMT : numberFormat, + FFNLG_AMT : numberFormat, CRDN_STTS_CD : FIM010, - BLNC : numberFormat + SUM_AMT : numberFormat } }); $P.rductControl.defaultFetchSize = FETCH_XS; @@ -271,9 +274,14 @@ $(document).ready(function(){ } $P.dblclickRductList = (dataKey) => { + let params = { + callControlName : "pageObject['${pageName}'].rductControl" + , crdnId : dataKey + } + ajax.get({ url : $P.rductControl.urls.getInfo, - data : { "crdnId" : dataKey }, + data : params, success : resp => { dialog.open({ id : "totalInfoMainDialog", diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp index 54fc7435..858eeaeb 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp @@ -32,8 +32,8 @@
- - + +
@@ -43,43 +43,43 @@