
250508 하석형 콘텐츠유형 등록 시 메뉴등록/수정 로직 삭제, 메뉴 등록 시 모든 권한에 메뉴권한 등록, 권한 등록 시 모든 메뉴에 메뉴권한 등록
@07ae235a3c93cf838e08a6c77629c8cb93b6e7fd
--- src/main/java/com/takensoft/cms/contsType/service/Impl/ContsTypeServiceImpl.java
+++ src/main/java/com/takensoft/cms/contsType/service/Impl/ContsTypeServiceImpl.java
... | ... | @@ -87,21 +87,21 @@ |
87 | 87 |
throw new CustomInsertFailException("콘텐츠 유형 등록에 실패했습니다."); |
88 | 88 |
} |
89 | 89 |
|
90 |
- // 메뉴 등록 |
|
91 |
- MenuVO menuVO = new MenuVO(); |
|
92 |
- menuVO.setUpMenuId("MENU_000000000000017"); // 상위메뉴아이디(콘텐츠 관리 메뉴 아이디) |
|
93 |
- menuVO.setMenuNm(contsTypeVO.getContsKornNm()); // 메뉴명 |
|
94 |
- menuVO.setMenuType("conts"); // 메뉴타입 |
|
95 |
- menuVO.setMenuTypeCtgry(contsId); // 메뉴타입항목(콘텐츠 유형 아이디) |
|
96 |
- menuVO.setLinkType("0"); // 링크유형(현재창) |
|
97 |
- menuVO.setDgstfnExmnUseYn("N"); // 만족도조사사용여부(미노출) |
|
98 |
- menuVO.setMenuExpsrYn(contsTypeVO.getExpsrYn()); // 메뉴노출여부(노출) |
|
99 |
- menuVO.setMenuUser("A"); // 메뉴사용자(관리자) |
|
100 |
-// menuVO.setSysPvsnYn("0"); // 시스템제공여부(시스템등록) |
|
101 |
- int insertMenu = menuService.menuSave(menuVO); |
|
102 |
- if (insertMenu == 0) { |
|
103 |
- throw new CustomInsertFailException("메뉴 등록에 실패했습니다."); |
|
104 |
- } |
|
90 |
+ // 메뉴 등록 (필요없음으로 사료됨) |
|
91 |
+// MenuVO menuVO = new MenuVO(); |
|
92 |
+// menuVO.setUpMenuId("MENU_000000000000017"); // 상위메뉴아이디(콘텐츠 관리 메뉴 아이디) |
|
93 |
+// menuVO.setMenuNm(contsTypeVO.getContsKornNm()); // 메뉴명 |
|
94 |
+// menuVO.setMenuType("conts"); // 메뉴타입 |
|
95 |
+// menuVO.setMenuTypeCtgry(contsId); // 메뉴타입항목(콘텐츠 유형 아이디) |
|
96 |
+// menuVO.setLinkType("0"); // 링크유형(현재창) |
|
97 |
+// menuVO.setDgstfnExmnUseYn("N"); // 만족도조사사용여부(미노출) |
|
98 |
+// menuVO.setMenuExpsrYn(contsTypeVO.getExpsrYn()); // 메뉴노출여부(노출) |
|
99 |
+// menuVO.setMenuUser("A"); // 메뉴사용자(관리자) |
|
100 |
+//// menuVO.setSysPvsnYn("0"); // 시스템제공여부(시스템등록) |
|
101 |
+// int insertMenu = menuService.menuSave(menuVO); |
|
102 |
+// if (insertMenu == 0) { |
|
103 |
+// throw new CustomInsertFailException("메뉴 등록에 실패했습니다."); |
|
104 |
+// } |
|
105 | 105 |
|
106 | 106 |
result.put("contsId", contsId); |
107 | 107 |
result.put("result", insertResult); |
... | ... | @@ -143,11 +143,11 @@ |
143 | 143 |
if (result == 0) { |
144 | 144 |
throw new CustomUpdateFailException("콘텐츠 유형 수정에 실패했습니다."); |
145 | 145 |
} |
146 |
- // 메뉴 수정 |
|
147 |
- int updateMenu = menuDAO.updateByContsId(contsTypeVO); |
|
148 |
- if (updateMenu == 0) { |
|
149 |
- throw new CustomUpdateFailException("메뉴 수정에 실패했습니다."); |
|
150 |
- } |
|
146 |
+ // 메뉴 수정 (필요없음으로 사료됨) |
|
147 |
+// int updateMenu = menuDAO.updateByContsId(contsTypeVO); |
|
148 |
+// if (updateMenu == 0) { |
|
149 |
+// throw new CustomUpdateFailException("메뉴 수정에 실패했습니다."); |
|
150 |
+// } |
|
151 | 151 |
return result; |
152 | 152 |
} catch (DataAccessException dae) { |
153 | 153 |
throw dae; |
--- src/main/java/com/takensoft/cms/popup/service/Impl/PopupServiceImpl.java
+++ src/main/java/com/takensoft/cms/popup/service/Impl/PopupServiceImpl.java
... | ... | @@ -59,7 +59,7 @@ |
59 | 59 |
@Transactional(rollbackFor = Exception.class) |
60 | 60 |
public HashMap<String, Object> popupInsert(PopupVO popupVO, List<MultipartFile> multipartFileList){ |
61 | 61 |
try { |
62 |
- // 투자상담 아이디 생성 |
|
62 |
+ // 팝업 아이디 생성 |
|
63 | 63 |
String popupId = popupIdgn.getNextStringId(); |
64 | 64 |
popupVO.setPopupId(popupId); |
65 | 65 |
|
... | ... | @@ -189,7 +189,7 @@ |
189 | 189 |
newPopupVO.setUseYn("Y"); |
190 | 190 |
} |
191 | 191 |
|
192 |
- List<CodeManageVO> codeList = codeManageService.findByChildCdCache("pageType"); // 검색 조건 |
|
192 |
+ List<CodeManageVO> codeList = codeManageService.findByChildCdCache("pageType"); // 페이지 유형 |
|
193 | 193 |
|
194 | 194 |
HashMap<String, Object> result = new HashMap<>(); |
195 | 195 |
result.put("popupVO", newPopupVO); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?