fix: 메뉴생성관리(권한설정) 구현

main
Kurt92 2 years ago
parent 90e4591f34
commit 6fbaf83276

@ -1,47 +1,32 @@
package kr.xit.framework.biz.cmm.model;
import kr.xit.framework.core.model.BaseVO;
import lombok.Data;
/**
*
* @: VO
* @:
* @: 2020. 3. 21. 10:29:44
* @:
*
* @: VO
* @:
* @: 2022. 10. 21.
* @:
* @author ()
* @since 2002. 2. 2.
* @version 1.0 Copyright(c) XIT All rights reserved.
*/
@Data
public class XitMenuCreatDtlsVO extends BaseVO {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 568460849738293096L;
protected String menuNo; //메뉴 번호
protected String authorCode; //권한 코드
protected String mapngCreatId; //매핑 생성 id
protected String menu_no; //메뉴 번호
protected String author_code; //권한 코드
protected String mapng_creat_id; //매핑 생성 id
public String getMenu_no() {
return menu_no;
}
public void setMenu_no(String menu_no) {
this.menu_no = menu_no;
}
public String getAuthor_code() {
return author_code;
}
public void setAuthor_code(String author_code) {
this.author_code = author_code;
}
public String getMapng_creat_id() {
return mapng_creat_id;
}
public void setMapng_creat_id(String mapng_creat_id) {
this.mapng_creat_id = mapng_creat_id;
}
}

@ -2918,9 +2918,9 @@ public class XitFrameCrudServiceImpl implements XitFrameCrudService{
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenu_no()))
if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthor_code()))
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -2951,9 +2951,9 @@ public class XitFrameCrudServiceImpl implements XitFrameCrudService{
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenu_no()))
if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthor_code()))
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -2986,9 +2986,9 @@ public class XitFrameCrudServiceImpl implements XitFrameCrudService{
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenu_no()))
if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthor_code()))
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -3021,9 +3021,9 @@ public class XitFrameCrudServiceImpl implements XitFrameCrudService{
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenu_no()))
if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthor_code()))
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);

@ -82,7 +82,7 @@ public class MenuCreateMngServiceImpl implements MenuCreateMngService {
*/
//이전에 존재하는 권한코드에 대한 메뉴생성내역 삭제
XitMenuCreatDtlsVO xitMenuCreatDtlsVO = new XitMenuCreatDtlsVO();
xitMenuCreatDtlsVO.setAuthor_code(authorCode);
xitMenuCreatDtlsVO.setAuthorCode(authorCode);
List<XitMenuCreatDtlsVO> listBeforeData = xitFrameCrudService.findXitMenuCreatDtlss(xitMenuCreatDtlsVO);
for(XitMenuCreatDtlsVO menuCreatDtlsVO : listBeforeData) {
xitFrameCrudService.removeXitMenuCreatDtls(menuCreatDtlsVO);
@ -125,9 +125,9 @@ public class MenuCreateMngServiceImpl implements MenuCreateMngService {
*/
private XitMenuCreatDtlsVO convertToCrudVO(String menuNo, String authorCode, String mapngCreatId) {
XitMenuCreatDtlsVO menuCreatDtlsVO = new XitMenuCreatDtlsVO();
menuCreatDtlsVO.setMenu_no (menuNo);
menuCreatDtlsVO.setAuthor_code (authorCode);
menuCreatDtlsVO.setMapng_creat_id(mapngCreatId);
menuCreatDtlsVO.setMenuNo (menuNo);
menuCreatDtlsVO.setAuthorCode (authorCode);
menuCreatDtlsVO.setMapngCreatId(mapngCreatId);
return menuCreatDtlsVO;
}

@ -122,7 +122,7 @@ public class MenuCreateMngController {
* @throws ServletException
* @date: 2020. 3. 25.
*/
@RequestMapping(value = "/MenuCreateMng_{cmd}_proc", method=RequestMethod.POST)
@RequestMapping(value = "/mngMenuCreateMgt_{cmd}_proc", method=RequestMethod.POST)
public void MenuCreateMng_cmd_proc(HttpServletRequest req
,@PathVariable String cmd
,@ModelAttribute("menuCreatVO") MenuCreateMngVO vo

@ -1654,14 +1654,14 @@
<select id="findXitMenuCreatDtlss" resultType="kr.xit.framework.biz.cmm.model.XitMenuCreatDtlsVO">
/** findXitMenuCreatDtlss */
/** 메뉴생성내역 다건 조회 */
SELECT MENU_NO
SELECT MENU_NO
,AUTHOR_CODE
,MAPNG_CREAT_ID
FROM XIT_MENU_CREAT_DTLS
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(menu_no )">AND MENU_NO = #{menu_no }</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(author_code )">AND AUTHOR_CODE = #{author_code }</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(mapng_creat_id)">AND MAPNG_CREAT_ID = #{mapng_creat_id}</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(menuNo )">AND MENU_NO = #{menuNo }</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(authorCode )">AND AUTHOR_CODE = #{authorCode }</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">AND MAPNG_CREAT_ID = #{mapngCreatId}</if>
</select>
<select id="findXitMenuCreatDtls" resultType="kr.xit.framework.biz.cmm.model.XitMenuCreatDtlsVO">
/** findXitMenuCreatDtls */
@ -1680,11 +1680,11 @@
INSERT INTO XIT_MENU_CREAT_DTLS(
MENU_NO
,AUTHOR_CODE
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(mapng_creat_id)">,MAPNG_CREAT_ID</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,MAPNG_CREAT_ID</if>
)VALUES(
#{menu_no }
,#{author_code }
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(mapng_creat_id)">,#{mapng_creat_id}</if>
#{menuNo }
,#{authorCode }
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,#{mapngCreatId}</if>
)
</insert>
<update id="modifyXitMenuCreatDtls">
@ -1702,8 +1702,8 @@
/** 메뉴생성내역 삭제 */
DELETE FROM XIT_MENU_CREAT_DTLS
WHERE 1=1
AND MENU_NO = #{menu_no }
AND AUTHOR_CODE = #{author_code }
AND MENU_NO = #{menuNo }
AND AUTHOR_CODE = #{authorCode }
</delete>

@ -75,7 +75,7 @@ function fInsertMenuCreat() {
}
document.menuCreatManageForm.checkedMenuNoForInsert.value=checkMenuNos;
document.menuCreatManageForm.checkedAuthorForInsert.value=document.menuCreatManageForm.authorCode.value;
document.menuCreatManageForm.action = "<c:url value='/framework/biz/mng/menu/MenuCreateMng_inserts_proc.do'/>";
document.menuCreatManageForm.action = "<c:url value='/framework/biz/mng/menu/mngMenuCreateMgt_inserts_proc.do'/>";
document.menuCreatManageForm.submit();
}

Loading…
Cancel
Save