단속자료검사 화면 동적 검색 추가

main
이범준 1 year ago
parent 2b3887564f
commit cfa42eb9cc

@ -274,7 +274,24 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
</if> </if>
</if> </if>
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose>
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
<include refid="dynamicSearch.start" />
<choose>
<when test="by == 'crdnYmd'">C.CRDN_YMD</when>
<when test="by == 'vhrno'">C.VHRNO</when>
<when test="by == 'crdnStdgNm'">C.CRDN_STDG_NM</when>
<when test="by == 'crdnPlc'">C.CRDN_PLC</when>
<when test="by == 'atchFileCnt'">C.ATCH_FILE_CNT</when>
<when test="by == 'crdnSttsCd'">C.CRDN_STTS_CD</when>
<when test="by == 'ffnlgAmt'">C.FFNLG_AMT</when>
<when test="by == 'crdnInptSeCd'">C.CRDN_INPT_SE_CD</when>
</choose>
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
</when>
<otherwise>
</otherwise>
</choose>
</if> </if>
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
@ -296,6 +313,8 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST <!-- 단속 ID -->
</choose> </choose>
, COUNT(*) AS CRDN_CNT <!-- 단속건수 --> , COUNT(*) AS CRDN_CNT <!-- 단속건수 -->
FROM TB_CRDN C FROM TB_CRDN C
LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.VHRNO != '' AND C.VHRNO != ''
@ -310,7 +329,25 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST <!-- 단속 ID -->
<if test="vhrno != null">AND C.VHRNO = #{vhrno}</if> <if test="vhrno != null">AND C.VHRNO = #{vhrno}</if>
<if test="schExclEnd == 'on'">AND C.CRDN_STTS_CD != '81'</if> <if test="schExclEnd == 'on'">AND C.CRDN_STTS_CD != '81'</if>
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose>
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
<include refid="dynamicSearch.start" />
<choose>
<when test="by == 'crdnYmd'">C.CRDN_YMD</when>
<when test="by == 'crdnInptSeCd'">C.CRDN_INPT_SE_CD</when>
<when test="by == 'teamNm'">TI.TEAM_NM</when>
<when test="by == 'vhrno'">C.VHRNO</when>
<when test="by == 'crdnStdgNm'">C.CRDN_STDG_NM</when>
<when test="by == 'crdnPlc'">C.CRDN_PLC</when>
<when test="by == 'crdnSttsCd'">C.CRDN_STTS_CD</when>
<when test="by == 'ffnlgAmt'">C.FFNLG_AMT</when>
<when test="by == 'rtpyrNm'">P.RTPYR_NM</when>
</choose>
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
</when>
<otherwise>
</otherwise>
</choose>
</if> </if>
GROUP BY C.VHRNO<if test="schOnlySamePlace == 'on'">, C.CRDN_STDG_NM </if> GROUP BY C.VHRNO<if test="schOnlySamePlace == 'on'">, C.CRDN_STDG_NM </if>
HAVING COUNT(*) <![CDATA[ >= ]]> HAVING COUNT(*) <![CDATA[ >= ]]>

@ -1,3 +1,3 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">민원(새올) 개별 등록</c:set> <c:set var="pageKorName" scope="request">민원 개별 등록</c:set>

@ -103,6 +103,8 @@
<div class="col-6"> <div class="col-6">
<input type="hidden" id="by--${pageName}" name="by" /> <input type="hidden" id="by--${pageName}" name="by" />
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" /> <input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" id="term--${pageName}" name="term" class="form-control" /> <input type="text" id="term--${pageName}" name="term" class="form-control" />
</div> </div>
<div class="col-6"> <div class="col-6">
@ -165,20 +167,30 @@
<table id="photoInspection_Table_0--${pageName}" <table id="photoInspection_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer"> class="datatables-ajax table table-bordered dataTable no-footer">
<thead> <thead>
<tr> <tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th style="min-width: 80px;">No.</th> <th style="min-width: 80px;">No.</th>
<th style="min-width: 160px;">단속일시</th> <th onclick="searchFromGridTitle('CRDN_YMD','단속일자','ymd','');"
<th style="min-width: 80px;">차량번호</th> style="min-width: 160px;">단속일시</th>
<th style="min-width: 80px;">위반건수</th> <th onclick="searchFromGridTitle('VHRNO',this.innerText,'match','part');"
style="min-width: 80px;">차량번호</th>
<th style="min-width: 80px;" class="text-orange">위반건수</th>
<th style="min-width: 80px;" class="text-orange">검사결과</th> <th style="min-width: 80px;" class="text-orange">검사결과</th>
<th style="min-width: 250px;" class="text-orange">처리방법</th> <th style="min-width: 250px;" class="text-orange">처리방법</th>
<th style="min-width: 80px;">위반동</th> <th onclick="searchFromGridTitle('CRDN_STDG_NM',this.innerText,'match','perfect');"
<th style="min-width: 300px;">위반장소</th> style="min-width: 80px;">위반동</th>
<th style="min-width: 80px;">사진매수</th> <th onclick="searchFromGridTitle('CRDN_PLC',this.innerText,'match','part');"
<th style="min-width: 80px;">처리상태</th> style="min-width: 300px;">위반장소</th>
<th style="min-width: 80px;">원금액</th> <th onclick="searchFromGridTitle('ATCH_FILE_CNT',this.innerText,'match','perfect');"
<th style="min-width: 80px;">감경금액</th> style="min-width: 80px;">사진매수</th>
<th style="min-width: 80px;">자료출처</th> <th onclick="searchFromGridTitle('CRDN_STTS_CD',this.innerText,'codeValue','FIM010');"
style="min-width: 80px;">처리상태</th>
<th onclick="searchFromGridTitle('FFNLG_AMT',this.innerText,'match','perfect');"
style="min-width: 80px;">원금액</th>
<th onclick="searchFromGridTitle('UNKNOWN',this.innerText,'match','perfect');"
style="min-width: 80px;">감경금액</th>
<th onclick="searchFromGridTitle('CRDN_INPT_SE_CD',this.innerText,'codeValue','FIM003');"
style="min-width: 80px;">자료출처</th>
</tr> </tr>
</thead> </thead>
<tbody id="photoInspectionTbody--${pageName}"></tbody> <tbody id="photoInspectionTbody--${pageName}"></tbody>
@ -233,10 +245,14 @@
<table id="sameVehicleInspectionMain_Table_0--${pageName}" <table id="sameVehicleInspectionMain_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer"> class="datatables-ajax table table-bordered dataTable no-footer">
<thead> <thead>
<tr> <tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
<th>차량번호</th> data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th>단속동</th> <th onclick="searchFromGridTitle('VHRNO',this.innerText,'match','part');"
<th>단속건수</th> >차량번호</th>
<th onclick="searchFromGridTitle('CRDN_STDG_NM',this.innerText,'match','perfect');"
>단속동</th>
<th class="text-orange"
>단속건수</th>
</tr> </tr>
</thead> </thead>
<tbody id="sameVehicleInspectionMainTbody--${pageName}"></tbody> <tbody id="sameVehicleInspectionMainTbody--${pageName}"></tbody>
@ -264,16 +280,26 @@
<table id="sameVehicleInspectionSub_Table_0--${pageName}" <table id="sameVehicleInspectionSub_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer"> class="datatables-ajax table table-bordered dataTable no-footer">
<thead> <thead>
<tr> <tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
<th>단속일시</th> data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th>자료출처</th> <th onclick="searchFromGridTitle('CRDN_YMD','단속일자','ymd','');"
<th>단속조</th> >단속일시</th>
<th>차량번호</th> <th onclick="searchFromGridTitle('CRDN_INPT_SE_CD',this.innerText,'codeValue','FIM003');"
<th>단속동</th> >자료출처</th>
<th>단속장소</th> <th onclick="searchFromGridTitle('TEAM_NM',this.innerText,'match','perfect');"
<th>처리상태</th> >단속조</th>
<th>금액</th> <th onclick="searchFromGridTitle('VHRNO',this.innerText,'match','part');"
<th>성명</th> >차량번호</th>
<th onclick="searchFromGridTitle('CRDN_STDG_NM',this.innerText,'match','perfect');"
>단속동</th>
<th onclick="searchFromGridTitle('CRDN_PLC',this.innerText,'match','part');"
>단속장소</th>
<th onclick="searchFromGridTitle('CRDN_STTS_CD',this.innerText,'codeValue','FIM010');"
>처리상태</th>
<th onclick="searchFromGridTitle('FFNLG_AMT',this.innerText,'match','perfect');"
>금액</th>
<th onclick="searchFromGridTitle('RTPYR_NM',this.innerText,'match','part');"
>성명</th>
<th class="privacy">주민번호(전체)</th> <th class="privacy">주민번호(전체)</th>
<th class="privacy-mask">주민번호(마스크)</th> <th class="privacy-mask">주민번호(마스크)</th>
</tr> </tr>

Loading…
Cancel
Save