refactor : 메뉴 테이블 컬럼명 변경(menu_ordr -> srt_ord)

main
이범준 2 years ago
parent a67b3c96bd
commit 9f247b6c9f

@ -131,7 +131,7 @@ UPDATE tb_ec_ctzn_sttemnt
;
SELECT menu_no
, menu_ordr
, srt_ord
, menu_nm
, prnt_no
, dscrp

@ -42,7 +42,7 @@ public class MenuCreateMngVO extends BaseVO {
/** 부모메뉴ID **/
private String prntNo;
/** 메뉴순서 **/
private String menuOrdr;
private String srtOrd;
/** 메뉴명 **/
private String menuNm;
/** 프로그램명 **/
@ -176,18 +176,18 @@ public class MenuCreateMngVO extends BaseVO {
this.prntNo = prntNo;
}
/**
* menuOrdr attribute .
* srtOrd attribute .
* @return String
*/
public String getMenuOrdr() {
return menuOrdr;
public String getSrtOrd() {
return srtOrd;
}
/**
* menuOrdr attribute .
* @param menuOrdr String
* srtOrd attribute .
* @param srtOrd String
*/
public void setMenuOrdr(String menuOrdr) {
this.menuOrdr = menuOrdr;
public void setSrtOrd(String srtOrd) {
this.srtOrd = srtOrd;
}
/**
* menuNm attribute .

@ -21,7 +21,7 @@ public class MenuListMngVO {
/** 메뉴번호 */
private int menuNo;
/** 메뉴순서 */
private int menuOrdr;
private int srtOrd;
/** 메뉴명 */
private String menuNm;
/** 상위메뉴번호 */
@ -81,18 +81,18 @@ public class MenuListMngVO {
this.menuNo = menuNo;
}
/**
* menuOrdr attribute .
* srtOrd attribute .
* @return int
*/
public int getMenuOrdr() {
return menuOrdr;
public int getSrtOrd() {
return srtOrd;
}
/**
* menuOrdr attribute .
* @param menuOrdr int
* srtOrd attribute .
* @param srtOrd int
*/
public void setMenuOrdr(int menuOrdr) {
this.menuOrdr = menuOrdr;
public void setSrtOrd(int srtOrd) {
this.srtOrd = srtOrd;
}
/**
* menuNm attribute .

@ -20,7 +20,7 @@ public class XitMenuInfoVO {
private String menuNm; //메뉴 명
private String progrmFileNm; //프로그램 파일 명
private String prntNo; //상위 메뉴 번호
private String menuOrdr; //메뉴 순서
private String srtOrd; //메뉴 순서
private String dscrp; //메뉴 설명
private String relateImageCours; //관계 이미지 경로
private String relateImagePath; //관계 이미지 경로

@ -378,8 +378,8 @@ public class MenuMgtServiceBean extends AbstractServiceBean implements MenuMgtSe
cell = row.getCell(1); //메뉴순서
if (cell != null) {
Double doubleCell = new Double(cell.getNumericCellValue());
//vo.setMenuOrdr(Integer.parseInt("" + doubleCell.longValue()));
vo.setMenuOrdr("" + doubleCell.longValue());
//vo.setSrtOrd(Integer.parseInt("" + doubleCell.longValue()));
vo.setSrtOrd("" + doubleCell.longValue());
}
cell = row.getCell(2); //메뉴명
if (cell != null) {

@ -25,7 +25,7 @@ public class XitMenuManageVO {
/** 메뉴번호 */
private int menuNo;
/** 메뉴순서 */
private int menuOrdr;
private int srtOrd;
/** 메뉴명 */
private String menuNm;
/** 상위메뉴번호 */

@ -20,7 +20,7 @@
FROM xit_menu_info B
INNER JOIN tree_query D
ON B.menu_no = D.menu_id
ORDER BY D.parnt_menu_id, B.menu_ordr
ORDER BY D.parnt_menu_id, B.srt_ord
</select>
<select id="selectMenuListByUser" parameterType="string" resultType="java.util.Map">
@ -49,7 +49,7 @@
ON A.author_code = C.author_code
INNER JOIN tree_query D
ON B.menu_no = D.menu_id
ORDER BY D.parnt_menu_id, B.menu_ordr
ORDER BY D.parnt_menu_id, B.srt_ord
</select>
<select id="selectMenuListByAuthorCode" parameterType="string" resultType="java.util.Map">
@ -73,7 +73,7 @@
JOIN tree_query D
ON B.menu_no = D.menu_id
WHERE A.AUTHOR_CODE = #{authorCode}
ORDER BY D.parnt_menu_id, B.menu_ordr
ORDER BY D.parnt_menu_id, B.srt_ord
</select>
<sql id="sqlTree">

@ -1718,7 +1718,7 @@
,MENU_NM
,PROGRM_FILE_NM
,prnt_no
,MENU_ORDR
,srt_ord
,dscrp
,RELATE_IMAGE_COURS
,RELATE_IMAGE_NM
@ -1728,7 +1728,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menu_nm )">AND MENU_NM = #{menu_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(progrm_file_nm )">AND PROGRM_FILE_NM = #{progrm_file_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(prnt_no )">AND prnt_no = #{prnt_no }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menu_ordr )">AND MENU_ORDR = #{menu_ordr }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(srt_ord )">AND srt_ord = #{srt_ord }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">AND dscrp = #{dscrp }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(relate_image_cours)">AND RELATE_IMAGE_COURS =
#{relateImageCours
@ -1742,7 +1742,7 @@
,MENU_NM
,PROGRM_FILE_NM
,prnt_no
,MENU_ORDR
,srt_ord
,dscrp
,RELATE_IMAGE_COURS
,RELATE_IMAGE_NM
@ -1758,7 +1758,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menu_nm )">,MENU_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(progrm_file_nm )">,PROGRM_FILE_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(prnt_no )">,prnt_no </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menu_ordr )">,MENU_ORDR </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(srt_ord )">,srt_ord </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">,dscrp </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(relate_image_cours)">,RELATE_IMAGE_COURS</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(relate_image_nm )">,RELATE_IMAGE_NM </if>
@ -1767,7 +1767,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menu_nm )">,#{menu_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(progrm_file_nm )">,#{progrm_file_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(prnt_no )">,#{prnt_no }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menu_ordr )">,#{menu_ordr }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(srt_ord )">,#{srt_ord }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">,#{dscrp }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(relate_image_cours)">,#{relate_image_cours}</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(relate_image_nm )">,#{relate_image_nm }</if>
@ -1781,7 +1781,7 @@
MENU_NM = IFNULL(#{menu_nm }, MENU_NM)
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(progrm_file_nm )">,PROGRM_FILE_NM = #{progrm_file_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(prnt_no )">,prnt_no = #{prnt_no }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(menu_ordr )">,MENU_ORDR = #{menu_ordr }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(srt_ord )">,srt_ord = #{srt_ord }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp )">,dscrp = #{dscrp }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(relate_image_cours)">,RELATE_IMAGE_COURS =
#{relateImageCours

@ -53,9 +53,9 @@
INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID
WHERE 1=1
<!-- 2020.11.05. 박민규 - XIT_MENU_INFO.MENU_ORDR의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) -->
<!-- ORDER BY B.MENU_NO, B.MENU_ORDR -->
ORDER BY D.PARNT_MENU_ID, B.MENU_ORDR
<!-- 2020.11.05. 박민규 - XIT_MENU_INFO.srt_ord의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) -->
<!-- ORDER BY B.MENU_NO, B.srt_ord -->
ORDER BY D.PARNT_MENU_ID, B.srt_ord
</select>
<select id="findMenuListByAuthorCode" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByAuthorCode */
@ -77,9 +77,9 @@
INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID
WHERE 1=1
AND A.AUTHOR_CODE=#{authorCode}
<!-- 2020.11.05. 박민규 - XIT_MENU_INFO.MENU_ORDR의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) -->
<!-- ORDER BY B.MENU_NO, B.MENU_ORDR -->
ORDER BY D.PARNT_MENU_ID, B.MENU_ORDR
<!-- 2020.11.05. 박민규 - XIT_MENU_INFO.srt_ord의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) -->
<!-- ORDER BY B.MENU_NO, B.srt_ord -->
ORDER BY D.PARNT_MENU_ID, B.srt_ord
</select>

@ -7,7 +7,7 @@
/** 화면 상단 메뉴목록 조회 */
SELECT
B.MENU_NO AS "menuNo"
,B.MENU_ORDR AS "menuOrdr"
,B.srt_ord AS "srtOrd"
,B.MENU_NM AS "menuNm"
,B.prnt_no AS "prntNo"
,B.dscrp AS "dscrp"
@ -25,7 +25,7 @@
WHERE 1=1
AND B.MENU_NO &gt; 0
AND B.prnt_no = 0
ORDER BY B.MENU_ORDR
ORDER BY B.srt_ord
</select>
@ -34,7 +34,7 @@
/** 화면 좌측 메뉴목록 조회 */
SELECT
B.MENU_NO AS "menuNo"
,B.MENU_ORDR AS "menuOrdr"
,B.srt_ord AS "srtOrd"
,B.MENU_NM AS "menuNm"
,B.prnt_no AS "prntNo"
,B.RELATE_IMAGE_COURS AS "relateImagePath"
@ -47,7 +47,7 @@
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmp_UniqId}
) C ON A.AUTHOR_CODE = C.AUTHOR_CODE
WHERE 1=1
ORDER BY B.MENU_ORDR
ORDER BY B.srt_ord
</select>
<select id="findMenuPath" resultType="String">

@ -40,7 +40,7 @@
/* menu-by-role-mysql-mapper|selectMenuInfoByRoleList-권한별 메뉴 목록 조회|julim */
SELECT
A.menu_no
, A.menu_ordr
, A.srt_ord
, A.menu_nm
, A.prnt_no
, (SELECT count(B.menu_no)
@ -49,7 +49,7 @@
AND B.author_code = #{authorCode}) AS chkYeoBu
FROM xit_menu_info A
WHERE A.menu_no &gt; 0
ORDER BY A.menu_ordr
ORDER BY A.srt_ord
</select>

@ -8,7 +8,7 @@
************************************************************************************************************** -->
<sql id="sqlMenuInfo">
SELECT menu_no
, menu_ordr
, srt_ord
, menu_nm
, prnt_no
, dscrp
@ -56,7 +56,7 @@
, menu_nm
, progrm_file_nm
, prnt_no
, menu_ordr
, srt_ord
, dscrp
, relate_image_cours
, relate_image_nm
@ -65,7 +65,7 @@
, #{menuNm}
, #{progrmFileNm}
, #{prntNo}
, #{menuOrdr}
, #{srtOrd}
, #{dscrp}
, #{relateImageCours}
, #{relateImageNm}
@ -78,7 +78,7 @@
SET menu_nm = IF(menu_nm = #{menuNm}, menu_nm, #{menuNm})
, progrm_file_nm = IF(progrm_file_nm = #{progrmFileNm}, progrm_file_nm, #{progrmFileNm})
, prnt_no = IF(prnt_no = #{prntNo}, prnt_no, #{prntNo})
, menu_ordr = IF(menu_ordr = #{menuOrdr}, menu_ordr, #{menuOrdr})
, srt_ord = IF(srt_ord = #{srtOrd}, srt_ord, #{srtOrd})
, dscrp = IF(dscrp = #{dscrp}, dscrp, #{dscrp})
, relate_image_cours = IF(relate_image_cours = #{relateImageCours}, relate_image_cours, #{relateImageCours})
, relate_image_nm = IF(relate_image_nm = #{relateImageNm}, relate_image_nm, #{relateImageNm})
@ -136,7 +136,7 @@
/** 메뉴목록 조회 */
SELECT
A.MENU_NO AS "menuNo"
, A.MENU_ORDR AS "menuOrdr"
, A.srt_ord AS "srtOrd"
, A.MENU_NM AS "menuNm"
, A.prnt_no AS "prntNo"
, (SELECT count(B.MENU_NO)
@ -145,7 +145,7 @@
AND B.AUTHOR_CODE = #{authorCode}) AS "chkYeoBu"
FROM XIT_MENU_INFO A
WHERE A.MENU_NO &gt; 0
ORDER BY A.MENU_ORDR
ORDER BY A.srt_ord
</select>
<select id="findUserScrtySetupByUsr" resultType="kr.xit.fims.framework.biz.mng.menu.MenuCreateMngVO">

@ -9,7 +9,7 @@
<field property="menuNo" depends="required, integer">
<arg0 key="메뉴번호" resource="false"/>
</field>
<field property="menuOrdr" depends="required, integer">
<field property="srtOrd" depends="required, integer">
<arg0 key="메뉴순서" resource="false"/>
</field>
<field property="menuNm" depends="required, maxlength">

@ -33,12 +33,12 @@
<form:errors path="menuNo" />
</td>
<th width="15%" height="23" scope="row">
<label for="menuOrdr" class="required">메뉴순서</label>
<label for="srtOrd" class="required">메뉴순서</label>
</th>
<td width="35%" >
&nbsp;
<form:input style="width : 80%" type ="text" path="menuOrdr" size="10" maxlength="10" title="메뉴순서"/>
<form:errors path="menuOrdr" />
<form:input style="width : 80%" type ="text" path="srtOrd" size="10" maxlength="10" title="메뉴순서"/>
<form:errors path="srtOrd" />
</td>
</tr>
<tr>

@ -81,12 +81,12 @@ function press() {
<form:errors path="menuNo" />
</td>
<th width="15%" height="23" scope="row">
<label for="menuOrdr" class="required">메뉴순서</label>
<label for="srtOrd" class="required">메뉴순서</label>
</th>
<td width="35%" nowrap="nowrap">
&nbsp;
<form:input path="menuOrdr" size="10" maxlength="10" title="메뉴순서" />
<form:errors path="menuOrdr" />
<form:input path="srtOrd" size="10" maxlength="10" title="메뉴순서" />
<form:errors path="srtOrd" />
</td>
</tr>
<tr>

@ -229,7 +229,7 @@
},
{
header: '정렬순서',
name: 'menuOrdr',
name: 'srtOrd',
minWidth: 80,
sortable: false,
align: 'right'

@ -64,11 +64,11 @@
<form:errors path="menuNm"/>
</td>
<th scope="row">
<label for="menuOrdr" class="required">메뉴순서</label>
<label for="srtOrd" class="required">메뉴순서</label>
</th>
<td nowrap="nowrap">
<form:input path="menuOrdr" size="3" maxlength="3" title="메뉴순서" style="width: 20%"/>
<form:errors path="menuOrdr"/>
<form:input path="srtOrd" size="3" maxlength="3" title="메뉴순서" style="width: 20%"/>
<form:errors path="srtOrd"/>
<span id="warnMsg" style="color: red; font-size: 10px; font-weight: bold; display: inline-block">최상위메뉴는 메뉴번호 앞 1, 또는 2자리</span>
</td>
</tr>

Loading…
Cancel
Save