이지우 - 관리자 코드관리(기존에 안열림), 메뉴관리(삭제 시 생성내역도 전부 삭제하게) 수정
This commit is contained in:
parent
32da5b98c1
commit
c8d84851f2
@ -307,7 +307,7 @@ public class EgovCcmCmmnCodeManageController {
|
||||
@ModelAttribute("searchVO") CmmnDetailCodeVO searchVO,
|
||||
ModelMap model, HttpServletResponse response) throws Exception {
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
response.setHeader("Content-Type", "text/html;charset=utf-8");
|
||||
//response.setHeader("Content-Type", "text/html;charset=utf-8");
|
||||
PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8"));
|
||||
|
||||
//CmmnDetailCodeVO searchVO = new CmmnDetailCodeVO();
|
||||
|
||||
@ -439,9 +439,9 @@ public class EgovMenuCreateManageController {
|
||||
|
||||
|
||||
int usingOtherSiteCnt = menuCreateManageDAO.selectMenuCreatAuthCnt(menuCreatVO) ; //다른 사이트 아이디가 매뉴를 사용할시 매뉴 삭제안한다.
|
||||
if(usingOtherSiteCnt == 1){
|
||||
//if(usingOtherSiteCnt == 1){
|
||||
menuManageService.deleteMenuManage(menuManageVO);
|
||||
}
|
||||
//}
|
||||
|
||||
/*LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
if(null == loginVO){
|
||||
@ -452,9 +452,9 @@ public class EgovMenuCreateManageController {
|
||||
|
||||
menuCreateManageDAO.deleteMenuCreatAuthNo(menuCreatVO);
|
||||
if(null != progrmManageVO.getProgrmFileNm() && !progrmManageVO.getProgrmFileNm().equals("dir")){ //프로그램만 지움
|
||||
if(usingOtherSiteCnt == 1){ //다른 사이트 아이디가 매뉴를 사용할시 매뉴 삭제안한다.
|
||||
//if(usingOtherSiteCnt == 1){ //다른 사이트 아이디가 매뉴를 사용할시 매뉴 삭제안한다.
|
||||
progrmManageService.deleteProgrm(progrmManageVO);
|
||||
}
|
||||
//}
|
||||
}
|
||||
modelAndView.addObject("status", "success");
|
||||
}catch (Exception e) {
|
||||
|
||||
@ -211,13 +211,12 @@
|
||||
A.MENU_NO > 0
|
||||
]]>
|
||||
<isEqual property="authorCode" compareValue="ROLE_ANONYMOUS">
|
||||
AND (B.AUTHOR_CODE = #authorCode#
|
||||
OR B.AUTHOR_CODE = 'ROLE_USER_MEMBER'
|
||||
OR B.AUTHOR_CODE = 'ROLE_USER_MANAGER')
|
||||
AND B.AUTHOR_CODE IN ('ROLE_ANONYMOUS', 'ROLE_USER_MEMBER', 'ROLE_USER_MANAGER')
|
||||
GROUP BY A.MENU_NO
|
||||
</isEqual>
|
||||
<isNotEqual property="authorCode" compareValue="ROLE_ANONYMOUS">
|
||||
AND B.AUTHOR_CODE = #authorCode#
|
||||
AND B.AUTHOR_CODE IN ('ROLE_ADMIN', 'ROLE_ADR_ADMIN', 'ROLE_VISIT')
|
||||
GROUP BY A.MENU_NO
|
||||
</isNotEqual>
|
||||
ORDER BY
|
||||
A.UPPER_MENU_NO,
|
||||
@ -235,8 +234,7 @@
|
||||
|
||||
<delete id="menuManageDAO.deleteMenuCreatAuthNo" parameterClass="menuCreatVO" >
|
||||
DELETE FROM LETTNMENUCREATDTLS
|
||||
WHERE AUTHOR_CODE=#authorCode#
|
||||
AND MENU_NO= #menuNo#
|
||||
WHERE MENU_NO= #menuNo#
|
||||
</delete>
|
||||
|
||||
<select id="menuManageDAO.selectMenuListJtreeWeb" parameterClass="menuManageJTreeVO" resultClass="menuManageJTreeVO" cacheModel="cache-webMainMenu">
|
||||
|
||||
@ -98,14 +98,12 @@
|
||||
|
||||
<isNotEmpty property="authorCode" > /* 매뉴사용여부 조회 */
|
||||
|
||||
<isEqual property="authorCode" compareValue="ROLE_ANONYMOUS">
|
||||
AND (B.AUTHOR_CODE = #authorCode#
|
||||
OR B.AUTHOR_CODE = 'ROLE_USER_MEMBER'
|
||||
OR B.AUTHOR_CODE = 'ROLE_USER_MANAGER')
|
||||
</isEqual>
|
||||
<isNotEqual property="authorCode" compareValue="ROLE_ANONYMOUS">
|
||||
AND B.AUTHOR_CODE = #authorCode#
|
||||
</isNotEqual>
|
||||
<isEqual property="authorCode" compareValue="ROLE_ANONYMOUS">
|
||||
AND B.AUTHOR_CODE IN ('ROLE_ANONYMOUS', 'ROLE_USER_MEMBER', 'ROLE_USER_MANAGER')
|
||||
</isEqual>
|
||||
<isNotEqual property="authorCode" compareValue="ROLE_ANONYMOUS">
|
||||
AND B.AUTHOR_CODE IN ('ROLE_ADMIN', 'ROLE_ADR_ADMIN', 'ROLE_VISIT')
|
||||
</isNotEqual>
|
||||
</isNotEmpty>
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
@ -53,6 +53,7 @@ function jstreeInit() {
|
||||
"data" : {
|
||||
"url" : "<c:url value='/sym/ccm/ccc/EgovCcmCmmnCodeTreeInitAjax.do'/>",
|
||||
"dataType" : "json",
|
||||
"error": function (jqXHR, textStatus, errorThrown) {$('#kopost_organization').html(textStatus + "//" + errorThrown); },
|
||||
"data" : function (node) {
|
||||
return {'id' : node.id }
|
||||
}
|
||||
|
||||
@ -48,6 +48,7 @@ function jstreeInit() {
|
||||
"data" : {
|
||||
"url" : "<c:url value='/sym/mnu/mcm/EgovMenuCreatSelectJtreeAjax.do'/>",
|
||||
"dataType" : "json",
|
||||
"error": function (jqXHR, textStatus, errorThrown) {$('#kopost_organization').html(textStatus + "//" + errorThrown); },
|
||||
"data" : function (node) {
|
||||
return {'id' : node.id, 'authorCode' : $('#authorCode').val() };
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user