민원접수자료 동적 검색 기능 추가

main
이범준 1 year ago
parent 717fa2550f
commit 278af34db7

@ -171,7 +171,44 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.CRDN_STTS_CD = '01' AND C.CRDN_STTS_CD = '01'
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose>
<when test="by == 'crdnRegSeCd'">
AND FN_GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'cvlcptAplcntNm'">
AND CC.CVLCPT_APLCNT_NM LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'cvlcptPrcsPicNm'">
AND CC.CVLCPT_PRCS_PIC_NM LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'cvlcptPrcsPicTelno'">
AND CC.CVLCPT_PRCS_PIC_TELNO LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'cvlcptRcptYmd'">
AND CC.CVLCPT_RCPT_YMD = REPLACE(#{term},'-','')
</when>
<when test="by == 'cvlcptPrcsPrnmntDt'">
AND SUBSTR(CC.CVLCPT_PRCS_PRNMNT_DT,1,8) = REPLACE(#{term},'-','')
</when>
<when test="by == 'crdnYmd'">
AND C.CRDN_YMD = REPLACE(#{term},'-','')
</when>
<when test="by == 'atchFileCnt'">
AND C.ATCH_FILE_CNT = #{term}
</when>
<when test="by == 'vltnArtcl'">
AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'cvlcptRcptNo'">
AND CC.CVLCPT_RCPT_NO LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'vhrno'">
AND C.VHRNO LIKE CONCAT('%', #{term}, '%')
</when>
<otherwise>
</otherwise>
</choose>
</if> </if>
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null"> <if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if> <if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>

@ -77,19 +77,19 @@
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer"> class="datatables-ajax table table-bordered dataTable no-footer">
<thead id="crdnThead--${pageName}"> <thead id="crdnThead--${pageName}">
<tr> <tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}">
<th width="80">No.</th> <th width="80">No.</th>
<th width="80">등록구분</th> <th width="80" onclick="searchFromGridTitle('CRDN_REG_SE_CD',this.innerText);">등록구분</th>
<th width="80">신고자</th> <th width="80" onclick="searchFromGridTitle('CVLCPT_APLCNT_NM',this.innerText);">신고자</th>
<th width="80">담당자</th> <th width="80" onclick="searchFromGridTitle('CVLCPT_PRCS_PIC_NM',this.innerText);">담당자</th>
<th width="80">담당자전화번호</th> <th width="80" onclick="searchFromGridTitle('CVLCPT_PRCS_PIC_TELNO',this.innerText);">담당자전화번호</th>
<th width="80">접수일자</th> <th width="80" onclick="searchFromGridTitle('CVLCPT_RCPT_YMD',this.innerText);">접수일자</th>
<th width="80">처리기한</th> <th width="80" onclick="searchFromGridTitle('CVLCPT_PRCS_PRNMNT_DT',this.innerText);">처리기한</th>
<th width="80">위반일자</th> <th width="80" onclick="searchFromGridTitle('CRDN_YMD','위반일자');">위반일시</th>
<th width="80">사진건수</th> <th width="80" onclick="searchFromGridTitle('ATCH_FILE_CNT',this.innerText);">사진건수</th>
<th width="80">위반내용</th> <th width="80" onclick="searchFromGridTitle('VLTN_ARTCL',this.innerText);">위반내용</th>
<th width="80">접수번호</th> <th width="80" onclick="searchFromGridTitle('CVLCPT_RCPT_NO',this.innerText);">접수번호</th>
<th width="80">차량번호</th> <th width="80" onclick="searchFromGridTitle('VHRNO',this.innerText);">차량번호</th>
</tr> </tr>
</thead> </thead>
<tbody id="crdnTbody--${pageName}"></tbody> <tbody id="crdnTbody--${pageName}"></tbody>
@ -104,7 +104,7 @@
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_PRCS_PRNMNT_DT}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_PRCS_PRNMNT_DT}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ATCH_FILE_CNT}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ATCH_FILE_CNT}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ASVLTN_ARTCL}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VLTN_ARTCL}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_RCPT_NO}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_RCPT_NO}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VHRNO}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VHRNO}</td>
</tr> </tr>

@ -106,7 +106,7 @@
<tr data-key="{CRDN_ID}"> <tr data-key="{CRDN_ID}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_REG_SE_CD}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_REG_SE_CD}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ASVLTN_ARTCL}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VLTN_ARTCL}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_APLCNT_NM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_APLCNT_NM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_PRCS_PIC_NM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_PRCS_PIC_NM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_PRCS_PIC_TELNO}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_PRCS_PIC_TELNO}</td>

@ -76,7 +76,7 @@
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VHRNO}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VHRNO}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{CRDN_PLC}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{CRDN_PLC}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{ASVLTN_ARTCL}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{VLTN_ARTCL}</td>
</tr> </tr>
</template> </template>
<template id="crdnNotFound--${pageName}"> <template id="crdnNotFound--${pageName}">

Loading…
Cancel
Save