refactor : 시군구명 컬럼 수정

main
이범준 2 years ago
parent de6e185f13
commit a5486e8e9c

@ -21,7 +21,7 @@ public class XitZipVO extends BaseVO {
protected String zip; //우편번호
protected String sn; //순번
protected String ctprvn_nm; //시도 명
protected String signgu_nm; //시군구 명
protected String sgg_nm; //시군구 명
protected String emd_nm; //읍면동 명
protected String li_buld_nm; //리 건물 명
protected String lnbr_dong_ho; //번지 동 호
@ -48,11 +48,11 @@ public class XitZipVO extends BaseVO {
public void setCtprvn_nm(String ctprvn_nm) {
this.ctprvn_nm = ctprvn_nm;
}
public String getSigngu_nm() {
return signgu_nm;
public String getSgg_nm() {
return sgg_nm;
}
public void setSigngu_nm(String signgu_nm) {
this.signgu_nm = signgu_nm;
public void setSgg_nm(String sgg_nm) {
this.sgg_nm = sgg_nm;
}
public String getEmd_nm() {
return emd_nm;

@ -34,7 +34,7 @@ public class XitZipCodeMngVO {
/*
*
*/
private String signguNm;
private String sggNm;
/*
*

@ -38,7 +38,7 @@ public class XitExcelZipMapping extends EgovExcelMapping {
vo.setZip (EgovExcelUtil.getValue(cell0));
vo.setSn (EgovExcelUtil.getValue(cell1));
vo.setCtprvn_nm (EgovExcelUtil.getValue(cell2));
vo.setSigngu_nm (EgovExcelUtil.getValue(cell3));
vo.setSgg_nm (EgovExcelUtil.getValue(cell3));
vo.setEmd_nm (EgovExcelUtil.getValue(cell4));
vo.setRgtr(EgovExcelUtil.getValue(cell7));

@ -2942,7 +2942,7 @@
SELECT ZIP
,SN
,CTPRVN_NM
,SIGNGU_NM
,SGG_NM
,EMD_NM
,LI_BULD_NM
,LNBR_DONG_HO
@ -2955,7 +2955,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(zip )">AND ZIP = #{zip }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sn )">AND SN = #{sn }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(ctprvn_nm )">AND CTPRVN_NM = #{ctprvn_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(signgu_nm )">AND SIGNGU_NM = #{signgu_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sgg_nm )">AND SGG_NM = #{sgg_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(emd_nm )">AND EMD_NM = #{emd_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(li_buld_nm )">AND LI_BULD_NM = #{li_buld_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(lnbr_dong_ho )">AND LNBR_DONG_HO = #{lnbr_dong_ho }</if>
@ -2970,7 +2970,7 @@
SELECT ZIP
,SN
,CTPRVN_NM
,SIGNGU_NM
,SGG_NM
,EMD_NM
,LI_BULD_NM
,LNBR_DONG_HO
@ -2990,7 +2990,7 @@
ZIP
,SN
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(ctprvn_nm )">,CTPRVN_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(signgu_nm )">,SIGNGU_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sgg_nm )">,SGG_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(emd_nm )">,EMD_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(li_buld_nm )">,LI_BULD_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(lnbr_dong_ho )">,LNBR_DONG_HO </if>
@ -3002,7 +3002,7 @@
#{zip }
,#{sn }
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(ctprvn_nm )">,#{ctprvn_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(signgu_nm )">,#{signgu_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sgg_nm )">,#{sgg_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(emd_nm )">,#{emd_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(li_buld_nm )">,#{li_buld_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(lnbr_dong_ho )">,#{lnbr_dong_ho }</if>
@ -3019,7 +3019,7 @@
SET
MDFCN_DT = NOW()
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(ctprvn_nm )">,CTPRVN_NM = #{ctprvn_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(signgu_nm )">,SIGNGU_NM = #{signgu_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(sgg_nm )">,SGG_NM = #{sgg_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(emd_nm )">,EMD_NM = #{emd_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(li_buld_nm )">,LI_BULD_NM = #{li_buld_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(lnbr_dong_ho )">,LNBR_DONG_HO = #{lnbr_dong_ho }</if>

@ -40,7 +40,7 @@
SELECT ZIP AS "zip"
, SN AS "sn"
, CTPRVN_NM AS "ctprvnNm"
, SIGNGU_NM AS "signguNm"
, SGG_NM AS "sggNm"
, EMD_NM AS "emdNm"
, LI_BULD_NM AS "liBuldNm"
, LNBR_DONG_HO AS "lnbrDongHo"
@ -57,7 +57,7 @@
AND CTPRVN_NM LIKE CONCAT('%',#{searchKeyword},'%')
</when>
<when test="searchCondition== '3'.toString()">
AND SIGNGU_NM LIKE CONCAT('%',#{searchKeyword},'%')
AND SGG_NM LIKE CONCAT('%',#{searchKeyword},'%')
</when>
<when test="searchCondition== '4'.toString()">
AND EMD_NM LIKE CONCAT('%',#{searchKeyword},'%')

@ -10,7 +10,7 @@
SELECT zip
, sn
, ctprvn_nm
, signgu_nm
, sgg_nm
, emd_nm
, li_buld_nm
, lnbr_dong_ho
@ -29,8 +29,8 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(ctprvnNm)">
AND ctprvn_nm = #{ctprvnNm}
</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(signguNm)">
AND signgu_nm = #{signguNm}
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sggNm)">
AND sgg_nm = #{sggNm}
</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(emdNm)">
AND emd_nm = #{emdNm}
@ -58,7 +58,7 @@
zip
, sn
, ctprvn_nm
, signgu_nm
, sgg_nm
, emd_nm
, li_buld_nm
, lnbr_dong_ho
@ -68,7 +68,7 @@
#{zip}
, #{sn}
, #{ctprvnNm}
, #{signguNm}
, #{sggNm}
, #{emdNm}
, #{liBuldNm}
, #{lnbrDongHo}
@ -81,7 +81,7 @@
/* zip-mysql-mapper|updateZip-우편번호 정보 변경|julim */
UPDATE xit_zip
SET ctprvn_nm = IF(ctprvn_nm = #{ctprvnNm}, ctprvn_nm, #{ctprvnNm})
, signgu_nm = IF(signgu_nm = #{signguNm}, signgu_nm, #{signguNm})
, sgg_nm = IF(sgg_nm = #{sggNm}, sgg_nm, #{sggNm})
, emd_nm = IF(emd_nm = #{emdNm}, emd_nm, #{emdNm})
, li_buld_nm = IF(li_buld_nm = #{liBuldNm}, li_buld_nm, #{liBuldNm})
, lnbr_dong_ho = IF(lnbr_dong_ho = #{lnbrDongHo}, lnbr_dong_ho, #{lnbrDongHo})

@ -24,7 +24,7 @@
<var-value>20</var-value>
</var>
</field>
<field property="signguNm" depends="required, maxlength">
<field property="sggNm" depends="required, maxlength">
<arg0 key="시군구명" resource="false"/>
<arg1 key="20" resource="false"/>
<var>

@ -87,9 +87,9 @@ function fn_xit_return_Zip(zip,addr){
</thead>
<tbody>
<c:forEach items="${resultList}" var="resultInfo" varStatus="status">
<tr style="cursor:pointer;cursor:hand;" onclick="javascript:fn_xit_return_Zip( '${resultInfo.zip}', '${resultInfo.ctprvnNm} ${resultInfo.signguNm} ${resultInfo.emdNm} ${resultInfo.liBuldNm}');">
<tr style="cursor:pointer;cursor:hand;" onclick="javascript:fn_xit_return_Zip( '${resultInfo.zip}', '${resultInfo.ctprvnNm} ${resultInfo.sggNm} ${resultInfo.emdNm} ${resultInfo.liBuldNm}');">
<td class="lt_text3" nowrap="nowrap" ><c:out value='${fn:substring(resultInfo.zip, 0,3)}'/>-<c:out value='${fn:substring(resultInfo.zip, 3,6)}'/></td>
<td class="lt_text" nowrap="nowrap" >${resultInfo.ctprvnNm} ${resultInfo.signguNm} ${resultInfo.emdNm} ${resultInfo.liBuldNm} ${resultInfo.lnbrDongHo}</td>
<td class="lt_text" nowrap="nowrap" >${resultInfo.ctprvnNm} ${resultInfo.sggNm} ${resultInfo.emdNm} ${resultInfo.liBuldNm} ${resultInfo.lnbrDongHo}</td>
</tr>
</c:forEach>
</tbody>

@ -62,7 +62,7 @@ function fn_egov_remove_Zip(form){
<input name="zip" type="hidden" value="${zip.zip}">
<form:hidden path="sn"/>
<form:hidden path="ctprvnNm"/>
<form:hidden path="signguNm"/>
<form:hidden path="sggNm"/>
<form:hidden path="emdNm"/>
<div class="modify_user" >
<table summary="리건물명과 번지동호를 수정하는 우편번호 수정 테이블이다.">
@ -87,7 +87,7 @@ function fn_egov_remove_Zip(form){
<label class="required">시군구명</label>
</th>
<td width="80%" nowrap="nowrap">
<c:out value='${zip.signguNm}'/>
<c:out value='${zip.sggNm}'/>
</td>
</tr>
<tr>

@ -69,11 +69,11 @@ function fn_egov_regist_Zip(form){
</tr>
<tr>
<th width="20%" height="23" scope="row" nowrap >
<label for="signguNm" class="required">시군구명</label>
<label for="sggNm" class="required">시군구명</label>
</th>
<td width="80%" nowrap="nowrap">
<form:input path="signguNm" size="20" maxlength="20" id="signguNm"/>
<form:errors path="signguNm"/>
<form:input path="sggNm" size="20" maxlength="20" id="sggNm"/>
<form:errors path="sggNm"/>
</td>
</tr>
<tr>

@ -130,7 +130,7 @@ function fn_egov_detail_Zip(zip,sn){
<tr style="cursor:pointer;cursor:hand;" onclick="javascript:fn_egov_detail_Zip('${resultInfo.zip}','${resultInfo.sn}');">
<td class="lt_text3" nowrap="nowrap"><c:out value="${(searchVO.pageIndex - 1) * searchVO.pageSize + status.count}"/></td>
<td class="lt_text3" nowrap="nowrap"><c:out value='${fn:substring(resultInfo.zip, 0,3)}'/>-<c:out value='${fn:substring(resultInfo.zip, 3,6)}'/></td>
<td class="lt_text" nowrap="nowrap">${resultInfo.ctprvnNm} ${resultInfo.signguNm} ${resultInfo.emdNm} ${resultInfo.liBuldNm} ${resultInfo.lnbrDongHo}</td>
<td class="lt_text" nowrap="nowrap">${resultInfo.ctprvnNm} ${resultInfo.sggNm} ${resultInfo.emdNm} ${resultInfo.liBuldNm} ${resultInfo.lnbrDongHo}</td>
</tr>
</c:forEach>
<c:if test="${fn:length(resultList) == 0}">

@ -25,7 +25,7 @@
<option selected value=''>--선택하세요--</option>
<option value='zip'>우편번호</option>
<option value='ctprvnNm'>시도명</option>
<option value='signguNm'>시군구명</option>
<option value='sggNm'>시군구명</option>
<option value='emdNm'>읍면동명</option>
<option value='liBuldNm'>리건물명</option>
</select>
@ -228,7 +228,7 @@
formatter: (props) => {
const rowData = props.grid.getRow(props.rowKey);
return {
formatter: rowData.ctprvnNm +' '+ rowData.signguNm +' '+ rowData.emdNm +' '+ rowData.liBuldNm +' '+ rowData.lnbrDongHo
formatter: rowData.ctprvnNm +' '+ rowData.sggNm +' '+ rowData.emdNm +' '+ rowData.liBuldNm +' '+ rowData.lnbrDongHo
,element: "text"
}
}

@ -45,11 +45,11 @@
</tr>
<tr>
<th height="23" scope="row" nowrap >
<label for="signguNm" class="required">시군구명</label>
<label for="sggNm" class="required">시군구명</label>
</th>
<td nowrap="nowrap">
<form:input path="signguNm" size="20" maxlength="20" id="signguNm"/>
<form:errors path="signguNm"/>
<form:input path="sggNm" size="20" maxlength="20" id="sggNm"/>
<form:errors path="sggNm"/>
</td>
</tr>
<tr>

Loading…
Cancel
Save