개별총정보 - 처리상세정보 - 주소변동이력 조회 수정.

main
jjh 1 year ago
parent fa532d9407
commit 39803cbffa

@ -365,7 +365,7 @@ public class Sprt02Controller extends ApplicationController {
// 단속 납부자 이력(TB_CRDN_PAYER_HSTRY) 조회
CrdnPayerHstryQuery crdnPayerHstryQuery = new CrdnPayerHstryQuery();
crdnPayerHstryQuery.setCrdnId(req.getCrdnId());
crdnPayerHstryQuery.setOrderBy("CPH.REG_DT DESC, CPH.CHG_HSTRY_ID DESC");
crdnPayerHstryQuery.setOrderBy("PH.REG_DT DESC, PH.RTPYR_ID DESC, PH.HSTRY_SN DESC");
List<?> crdnPayerHstry = crdnPayerHstryService.getCrdnPayerHstrys(crdnPayerHstryQuery);

@ -26,6 +26,9 @@
, PH.RTPYR_NM /* 납부자 명 */
, PH.ZIP /* 우편번호 */
, PH.WHOL_ADDR /* 전체 주소 */
, PH.REG_DT AS PH_REG_DT /* 등록 일시 */
, PH.RGTR AS PH_RGTR /* 등록자 */
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = PH.RGTR) AS PH_RGTR_NM /* 등록자 명 */
FROM TB_CRDN_PAYER_HSTRY CPH
INNER JOIN TB_PAYER_HSTRY PH ON (CPH.RTPYR_ID = PH.RTPYR_ID)
</sql>

@ -21,7 +21,7 @@
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N') /* 부과 대장 */
</sql>
<select id="selectCrdnInfo" parameterType="String" resultType="dataobject">/* 개별총정보 조회(sprt02Mapper.selectCrdnPayerInfo) */
<select id="selectCrdnInfo" parameterType="String" resultType="dataobject">/* 개별총정보 조회(sprt02Mapper.selectCrdnInfo) */
<include refid="selectCrdn" />
WHERE C.CRDN_ID = #{crdnId} /* 단속 ID */
</select>
@ -116,6 +116,9 @@
, P.ZIP /* 우편번호 */
, P.ADDR /* 주소 */
, P.DTL_ADDR /* 상세 주소 */
, P.WHOL_ADDR /* 전체 주소 */
, P.MDFCN_DT AS P_MDFCN_DT /* 수정 일시 */
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = P.MDFR) AS P_MDFR_NM /* 수정자 명 */
, CC.CVLCPT_APLY_SE_CD /* 민원 신청 구분 코드 */
, CC.DSTRBNC_YN /* 1면 방해 여부 */
, CC.CVLCPT_RCPT_YMD /* 민원 접수 일자 */

@ -177,6 +177,8 @@
let create = isEmpty(info.rtpyrId);
info.rtpyrInptSeCd = "01"; // 납부자 입력 구분 코드
ajax.post({
url : !create ? ${pageName}Control.urls.update : ${pageName}Control.urls.create
, data : info

@ -243,18 +243,28 @@
<!-- 납부자 번호 -->
<div class="col-md-4">
<label for="rtpyrNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">납부자 번호</label>
<input type="text" class="form-control w-50" id="rtpyrNo--${pageName}" name="rtpyrNo" data-map="RTPYR_NO" readonly />
<input type="text" class="form-control w-40" id="rtpyrNo--${pageName}" name="rtpyrNo" data-map="RTPYR_NO" readonly />
</div>
<!-- 납부자 주소 --><!-- 납부자 우편번호 -->
<div class="col-md-12">
<label for="addr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">주소</label>
<input type="text" class="form-control w-80" id="addr--${pageName}" name="addr" data-map="ADDR" readonly />
<input type="text" class="form-control w-px-75" id="zip--${pageName}" name="zip" data-map="ZIP" readonly />
<!-- 납부자 전화번호 -->
<div class="col-md-4">
<label for="addr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">전화번호</label>
<input type="text" class="form-control w-40" id="addr--${pageName}" name="addr" data-map="RTPYR_TELNO" readonly />
</div>
<!-- 납부자 휴대 전화번호 -->
<div class="col-md-4">
<label for="rtpyrMblTelno--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">휴대전화번호</label>
<input type="text" class="form-control w-40" id="rtpyrMblTelno--${pageName}" name="rtpyrMblTelno" data-map="RTPYR_MBL_TELNO" readonly />
</div>
<!-- 납부자 이메일 -->
<div class="col-md-4">
<label for="rtpyrEml--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">이메일</label>
<input type="text" class="form-control w-60" id="rtpyrEml--${pageName}" name="rtpyrEml" data-map="RTPYR_EML" readonly />
</div>
<!-- 납부자 상세주소 -->
<!-- 납부자 전체주소 -->
<div class="col-md-12">
<label for="dtlAddr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">상세 주소</label>
<input type="text" class="form-control w-87" id="dtlAddr--${pageName}" name="dtlAddr" data-map="DTL_ADDR" readonly />
<label for="wholAddr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">주소</label>
<input type="text" class="form-control w-80" id="wholAddr--${pageName}" name="wholAddr" data-map="WHOL_ADDR" readonly />
<input type="text" class="form-control w-px-75" id="zip--${pageName}" name="zip" data-map="ZIP" readonly />
</div>
<!-- 납부자 입력 구분 코드 -->
<div class="col-md-4">
@ -263,13 +273,13 @@
</div>
<!-- 수정 일시 -->
<div class="col-md-4">
<label for="payerMdfcnDt--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수정 일시</label>
<input type="text" class="form-control w-50" id="payerMdfcnDt--${pageName}" name="payerMdfcnDt" data-map="PAYER_MDFCN_DT" readonly />
<label for="pMdfcnDt--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수정 일시</label>
<input type="text" class="form-control w-45" id="pMdfcnDt--${pageName}" name="pMdfcnDt" data-map="P_MDFCN_DT" readonly />
</div>
<!-- 수정자 -->
<div class="col-md-4">
<label for="payerMdfr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수정자</label>
<input type="text" class="form-control w-40" id="payerMdfr--${pageName}" name="payerMdfr" data-map="PAYER_MDFR" readonly />
<label for="pMdfrNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수정자</label>
<input type="text" class="form-control w-40" id="pMdfrNm--${pageName}" name="pMdfrNm" data-map="P_MDFR_NM" readonly />
</div>
</div>
</div> <!-- 납부자 정보 <div class="card"> -->
@ -335,6 +345,7 @@
, SUM_AMT : numberFormat // 합계 금액
, CRDN_BGNG_TM : timeFormat
, CRDN_END_TM : timeFormat
, P_MDFCN_DT : datetimeFormat
}
});

@ -150,28 +150,30 @@
<div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}${pageDataName3}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}${pageDataName3}" class="table-responsive" style="overflow-x:scroll; height:340px; overflow-y:scroll;" >
<table class="dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName3}" aria-describedby="DataTables_Table_0_info">
<thead>
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName3}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr id="theadTr--${pageName}${pageDataName3}">
<th>등록일시</th>
<th>등록사용자</th>
<th>단속상태</th>
<th>기타내용</th>
<th class="cmn" style="width: 180px;">등록일시</th>
<th class="cmn" style="width: 140px;">등록사용자</th>
<th class="cmn" style="width: 120px;">단속상태</th>
<th class="cmn" style="width: 280px;">기타내용</th>
<th class="cmn dummy-th"></th>
</tr>
</thead>
<tbody id="tbody--${pageName}${pageDataName3}">
</tbody>
<template id="${infoPrefix}Row--${pageName}${pageDataName3}">
<tr data-key="{STTS_HSTRY_ID}">
<td class="text-center" onclick="{onclick}">{REG_DT}</td>
<td class="text-center" onclick="{onclick}">{RGTR_NM}</td>
<td class="text-center" onclick="{onclick}">{CRDN_STTS_NM}</td>
<td class="text-start" onclick="{onclick}">{ETC_CN}</td>
<td class="cmn text-center" onclick="{onclick}">{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}">{RGTR_NM}</td>
<td class="cmn text-center" onclick="{onclick}">{CRDN_STTS_NM}</td>
<td class="cmn text-start" onclick="{onclick}">{ETC_CN}</td>
<td class="cmn dummy-td"></td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}${pageDataName3}">
<tr class="odd">
<td valign="top" colspan="6" class="dataTables_empty text-center">처리상태 이력 정보를 찾지 못했습니다.</td>
<td valign="top" colspan="5" class="dataTables_empty text-center">처리상태 이력 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
@ -192,32 +194,32 @@
<div class="row g-1">
<!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}${pageDataName4}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}${pageDataName4}" class="table-responsive" style="overflow-x:scroll; height:340px; overflow-y:scroll;" >
<table class="dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName4}" aria-describedby="DataTables_Table_0_info">
<thead>
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}${pageDataName4}">
<div class="table-responsive" id="table-responsive--${pageName}${pageDataName4}" style="overflow-x:scroll; height:340px; overflow-y:scroll;" >
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName4}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr id="theadTr--${pageName}${pageDataName4}">
<th>등록일시</th>
<th>등록사용자</th>
<th>납부자명</th>
<th>우편번호</th>
<th>전체주소</th>
<th class="cmn" style="width: 180px;">등록일시</th>
<th class="cmn" style="width: 140px;">등록사용자</th>
<th class="cmn" style="width: 90px;">우편번호</th>
<th class="cmn" style="width: 320px;">전체주소</th>
<th class="cmn dummy-th"></th>
</tr>
</thead>
<tbody id="tbody--${pageName}${pageDataName4}">
</tbody>
<template id="${infoPrefix}Row--${pageName}${pageDataName4}">
<tr data-key="{CHG_HSTRY_ID}">
<td class="text-center" onclick="{onclick}">{REG_DT}</td>
<td class="text-center" onclick="{onclick}">{RGTR_NM}</td>
<td class="text-start" onclick="{onclick}">{RTPYR_NM}</td>
<td class="text-center" onclick="{onclick}">{ZIP}</td>
<td class="text-start" onclick="{onclick}">{WHOL_ADDR}</td>
<td class="cmn text-center" onclick="{onclick}">{PH_REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}">{PH_RGTR_NM}</td>
<td class="cmn text-center" onclick="{onclick}">{ZIP}</td>
<td class="cmn text-start" onclick="{onclick}">{WHOL_ADDR}</td>
<td class="cmn dummy-td"></td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}${pageDataName4}">
<tr class="odd">
<td valign="top" colspan="5" class="dataTables_empty text-center">주소변동 이력 정보를 찾지 못했습니다.</td>
<td valign="top" colspan="6" class="dataTables_empty text-center">주소변동 이력 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
@ -299,7 +301,7 @@
, dataGetter : obj => obj.crdnPayerHstryList
, appendData : true
, formats : {
REG_DT : datetimeFormat
PH_REG_DT : datetimeFormat
}
, onDatasetChange : obj => {
renderList${pageName}${pageDataName4}();
@ -548,7 +550,9 @@
// 이벤트 설정
setEvent${pageName} = () => {
// DataTables width 변경 조정
$("#DataTables_Table_0--${pageName}${pageDataName3}").find("th").resizable( {handles : "e"} );
$("#DataTables_Table_0--${pageName}${pageDataName4}").find("th").resizable( {handles : "e"} );
}
/**************************************************************************

Loading…
Cancel
Save