--- src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java
+++ src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java
... | ... | @@ -22,16 +22,16 @@ |
| 22 | 22 |
*/ |
| 23 | 23 |
public interface MainPopupManageService {
|
| 24 | 24 |
|
| 25 |
- public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception; |
|
| 25 |
+ public List<?> selectMainPopupList(MainPopupVO mainPopupVO) throws Exception; |
|
| 26 | 26 |
|
| 27 |
- public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception; |
|
| 27 |
+ public int selectMainPopupCount(MainPopupVO mainPopupVO) throws Exception; |
|
| 28 | 28 |
|
| 29 |
- public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception; |
|
| 29 |
+ public MainPopupVO selectMainPopupVO(String mazId) throws Exception; |
|
| 30 | 30 |
|
| 31 |
- public List<MainzoneVO> selectSubMainzoneListRolling(); |
|
| 31 |
+ public List<MainPopupVO> selectMainPopupListRolling(); |
|
| 32 | 32 |
|
| 33 |
- public void deleteSubMainzone(String id); |
|
| 33 |
+ public void deleteMainPopup(String id); |
|
| 34 | 34 |
|
| 35 |
- public void resetSubMainVOSort(MainzoneVO mainzoneVO); |
|
| 35 |
+ public void resetMainPopupSort(MainPopupVO mainPopupVO); |
|
| 36 | 36 |
|
| 37 | 37 |
}(No newline at end of file) |
--- src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java
+++ src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java
... | ... | @@ -3,13 +3,8 @@ |
| 3 | 3 |
|
| 4 | 4 |
import org.springframework.stereotype.Repository; |
| 5 | 5 |
|
| 6 |
-import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 7 | 6 |
import itn.com.cmm.service.impl.EgovComAbstractDAO; |
| 8 |
-import itn.com.uss.ion.pwm.service.MainzoneVO; |
|
| 9 |
-import itn.com.uss.ion.pwm.service.PopupManageVO; |
|
| 10 |
-import itn.com.uss.ion.pwm.service.PopupzoneVO; |
|
| 11 |
-import itn.com.uss.ion.pwm.service.SocialVO; |
|
| 12 |
-import itn.com.uss.ion.pwm.service.SortVO; |
|
| 7 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupVO; |
|
| 13 | 8 |
|
| 14 | 9 |
/** |
| 15 | 10 |
* 개요 |
... | ... | @@ -31,279 +26,33 @@ |
| 31 | 26 |
* @return 글 목록 |
| 32 | 27 |
* @exception Exception |
| 33 | 28 |
*/ |
| 34 |
- public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO ) throws Exception{
|
|
| 35 |
- return list("subMainzoneManage.selectSubMainzoneList", mainzoneVO);
|
|
| 29 |
+ public List<?> selectMainPopupList(MainPopupVO mainPopupVO ) throws Exception{
|
|
| 30 |
+ return list("mainPopup.selectMainPopupList", mainPopupVO);
|
|
| 36 | 31 |
} |
| 37 | 32 |
|
| 38 | 33 |
|
| 39 |
- public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception{
|
|
| 40 |
- return (int)select("subMainzoneManage.selectSubMainzoneCount", mainzoneVO);
|
|
| 34 |
+ public int selectMainPopupCount(MainPopupVO mainPopupVO) throws Exception{
|
|
| 35 |
+ return (int)select("mainPopup.selectMainPopupCount", mainPopupVO);
|
|
| 41 | 36 |
} |
| 42 | 37 |
|
| 43 | 38 |
|
| 44 |
- public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception{
|
|
| 45 |
- return (MainzoneVO)select("subMainzoneManage.selectSubMainzoneVO", mazId);
|
|
| 39 |
+ public MainPopupVO selectMainPopupVO(String mazId) throws Exception{
|
|
| 40 |
+ return (MainPopupVO)select("mainPopup.selectMainPopupVO", mazId);
|
|
| 46 | 41 |
} |
| 47 | 42 |
|
| 48 | 43 |
|
| 49 |
- public List<MainzoneVO> selectSubMainzoneListRolling() {
|
|
| 50 |
- return (List<MainzoneVO>) list("subMainzoneManage.selectSubMainzoneListRolling");
|
|
| 44 |
+ public List<MainPopupVO> selectMainPopupListRolling() {
|
|
| 45 |
+ return (List<MainPopupVO>) list("mainPopup.selectMainPopupListRolling");
|
|
| 51 | 46 |
} |
| 52 | 47 |
|
| 53 | 48 |
|
| 54 |
- public void deleteSubMainzone(String mazId) {
|
|
| 55 |
- delete("subMainzoneManage.deleteSubMainzone", mazId);
|
|
| 49 |
+ public void deleteMainPopup(String mazId) {
|
|
| 50 |
+ delete("mainPopup.deleteMainPopup", mazId);
|
|
| 56 | 51 |
} |
| 57 | 52 |
|
| 58 | 53 |
|
| 59 |
- public void resetSubMainVOSort(MainzoneVO mainzoneVO) {
|
|
| 60 |
- update("subMainzoneManage.resetSubMainVOSort", mainzoneVO);
|
|
| 54 |
+ public void resetMainPopupSort(MainPopupVO mainPopupVO) {
|
|
| 55 |
+ update("mainPopup.resetMainPopupSort", mainPopupVO);
|
|
| 61 | 56 |
} |
| 62 | 57 |
|
| 63 |
- |
|
| 64 |
- |
|
| 65 |
-// |
|
| 66 |
-// public SubMainZoneManageDAO(){}
|
|
| 67 |
-// |
|
| 68 |
-// /** |
|
| 69 |
-// * 기 등록된 팝업창정보를 삭제한다. |
|
| 70 |
-// * @param popupManage - 팝업창 model |
|
| 71 |
-// * @return boolean - 반영성공 여부 |
|
| 72 |
-// * |
|
| 73 |
-// * @param popupManage |
|
| 74 |
-// */ |
|
| 75 |
-// public void deletePopup(PopupManageVO popupManageVO) throws Exception {
|
|
| 76 |
-// delete("PopupManage.deletePopupManage", popupManageVO);
|
|
| 77 |
-// } |
|
| 78 |
-// |
|
| 79 |
-// /** |
|
| 80 |
-// * 팝업창정보를 신규로 등록한다. |
|
| 81 |
-// * @param popupManage - 팝업창 model |
|
| 82 |
-// * @return boolean - 반영성공 여부 |
|
| 83 |
-// * |
|
| 84 |
-// * @param popupManage |
|
| 85 |
-// */ |
|
| 86 |
-// public void insertPopup(PopupManageVO popupManageVO) throws Exception {
|
|
| 87 |
-// insert("PopupManage.insertPopupManage", popupManageVO);
|
|
| 88 |
-// } |
|
| 89 |
-// |
|
| 90 |
-// /** |
|
| 91 |
-// * 기 등록된 팝업창정보를 수정한다. |
|
| 92 |
-// * @param popupManage - 팝업창 model |
|
| 93 |
-// * @return boolean - 반영성공 여부 |
|
| 94 |
-// * |
|
| 95 |
-// * @param popupManage |
|
| 96 |
-// */ |
|
| 97 |
-// public void updatePopup(PopupManageVO popupManageVO) throws Exception {
|
|
| 98 |
-// update("PopupManage.updatePopupManage", popupManageVO);
|
|
| 99 |
-// } |
|
| 100 |
-// |
|
| 101 |
-// /** |
|
| 102 |
-// * 팝업창을 사용자 화면에서 볼수 있는 정보들을 조회한다. |
|
| 103 |
-// * @param popupManageVO - 팝업창 Vo |
|
| 104 |
-// * @return popupManageVO - 팝업창 Vo |
|
| 105 |
-// * |
|
| 106 |
-// * @param popupManageVO |
|
| 107 |
-// */ |
|
| 108 |
-// public PopupManageVO selectPopup(PopupManageVO popupManageVO) throws Exception {
|
|
| 109 |
-// return (PopupManageVO)select("PopupManage.selectPopupManageDetail", popupManageVO);
|
|
| 110 |
-// } |
|
| 111 |
-// |
|
| 112 |
-// /** |
|
| 113 |
-// * 팝업창를 관리하기 위해 등록된 팝업창목록을 조회한다. |
|
| 114 |
-// * @param popupManageVO - 팝업창 Vo |
|
| 115 |
-// * @return List - 팝업창 목록 |
|
| 116 |
-// * |
|
| 117 |
-// * @param popupManageVO |
|
| 118 |
-// */ |
|
| 119 |
-// public List<?> selectPopupList(PopupManageVO popupManageVO) throws Exception {
|
|
| 120 |
-// return list("PopupManage.selectPopupManage", popupManageVO);
|
|
| 121 |
-// } |
|
| 122 |
-// |
|
| 123 |
-// /** |
|
| 124 |
-// * 팝업창를 관리하기 위해 등록된 팝업창목록 총갯수를 조회한다. |
|
| 125 |
-// * @param popupManageVO - 팝업창 Vo |
|
| 126 |
-// * @return List - 팝업창 목록 |
|
| 127 |
-// * |
|
| 128 |
-// * @param popupManageVO |
|
| 129 |
-// */ |
|
| 130 |
-// public int selectPopupListCount(PopupManageVO popupManageVO) throws Exception {
|
|
| 131 |
-// return (Integer)select("PopupManage.selectPopupManageCnt", popupManageVO);
|
|
| 132 |
-// } |
|
| 133 |
-// |
|
| 134 |
-// /** |
|
| 135 |
-// * 팝업창를 사용하기 위해 등록된 팝업창목록을 조회한다. |
|
| 136 |
-// * @param popupManageVO - 팝업창 Vo |
|
| 137 |
-// * @return List - 팝업창 목록 |
|
| 138 |
-// * |
|
| 139 |
-// * @param popupManageVO |
|
| 140 |
-// */ |
|
| 141 |
-// public List<?> selectPopupMainList(PopupManageVO popupManageVO) throws Exception {
|
|
| 142 |
-// return list("PopupManage.selectPopupManageMain", popupManageVO);
|
|
| 143 |
-// } |
|
| 144 |
-// |
|
| 145 |
-// /** |
|
| 146 |
-// * 메인알림창 목록을 조회한다. |
|
| 147 |
-// * @return 글 목록 |
|
| 148 |
-// * @exception Exception |
|
| 149 |
-// */ |
|
| 150 |
-// public List<?> selectPopupzoneList(PopupzoneVO popupzoneVo) throws Exception{
|
|
| 151 |
-// return list("PopupzoneManage.selectPopupzoneList", popupzoneVo);
|
|
| 152 |
-// } |
|
| 153 |
-// |
|
| 154 |
-// /** |
|
| 155 |
-// * 메인배너 순번정보를 가져온다. |
|
| 156 |
-// * @param mode - 0:등록 1:수정 |
|
| 157 |
-// * @return 순번정보 |
|
| 158 |
-// * @exception Exception |
|
| 159 |
-// */ |
|
| 160 |
-// @SuppressWarnings("unchecked")
|
|
| 161 |
-// public List<EgovMap> getSortList() throws Exception{
|
|
| 162 |
-// return (List<EgovMap>) list("PopupzoneManage.getSortList",null);
|
|
| 163 |
-// } |
|
| 164 |
-// |
|
| 165 |
-// public PopupzoneVO selectPopupzoneVO(String pozId) throws Exception {
|
|
| 166 |
-// return (PopupzoneVO)select("PopupzoneManage.selectPopupzoneVO", pozId);
|
|
| 167 |
-// } |
|
| 168 |
-// |
|
| 169 |
-// /** |
|
| 170 |
-// * 메인배너 변경할때 나머지 배너들 순서 변경 |
|
| 171 |
-// * @param 입력된 sort번호 |
|
| 172 |
-// * @return 등록 결과 |
|
| 173 |
-// * @exception Exception |
|
| 174 |
-// */ |
|
| 175 |
-// public void updateSortUp(SortVO sortVO) throws Exception{
|
|
| 176 |
-// update("PopupzoneManage.updateSortUp", sortVO);
|
|
| 177 |
-// } |
|
| 178 |
-// |
|
| 179 |
-// public void updateSortDown(SortVO sortVO) throws Exception {
|
|
| 180 |
-// update("PopupzoneManage.updateSortDown", sortVO);
|
|
| 181 |
-// } |
|
| 182 |
-// |
|
| 183 |
-// public void updatePopupzone(PopupzoneVO popupzoneVO) throws Exception {
|
|
| 184 |
-// update("PopupzoneManage.updatePopupzone", popupzoneVO);
|
|
| 185 |
-// } |
|
| 186 |
-// |
|
| 187 |
-// /** |
|
| 188 |
-// * 메인알림창을 삭제한다. |
|
| 189 |
-// * @param pozId - 삭제할 메인알림창 번호 |
|
| 190 |
-// * @return void형 |
|
| 191 |
-// * @exception Exception |
|
| 192 |
-// */ |
|
| 193 |
-// public void deletePopupzone(String pozId) throws Exception {
|
|
| 194 |
-// delete("PopupzoneManage.deletePopupzone", pozId);
|
|
| 195 |
-// } |
|
| 196 |
-// |
|
| 197 |
-// public int getMaxSort() throws Exception{
|
|
| 198 |
-// return (Integer)select("PopupzoneManage.getMaxSort") ;
|
|
| 199 |
-// } |
|
| 200 |
-// |
|
| 201 |
-// /** |
|
| 202 |
-// * 메인배너의 새로운seq를 가지고온다. |
|
| 203 |
-// * @return seq |
|
| 204 |
-// * @exception Exception |
|
| 205 |
-// */ |
|
| 206 |
-// public int selectNextSeq() throws Exception{
|
|
| 207 |
-// return (Integer)select("PopupzoneManage.selectNextSeq");
|
|
| 208 |
-// } |
|
| 209 |
-// |
|
| 210 |
-// public void insertPopupzone(PopupzoneVO popupzoneVO) throws Exception{
|
|
| 211 |
-// insert("PopupzoneManage.insertPopupzone", popupzoneVO);
|
|
| 212 |
-// } |
|
| 213 |
-// |
|
| 214 |
-// public void resetSort(PopupzoneVO popupzoneVO) throws Exception{
|
|
| 215 |
-// update("PopupzoneManage.resetSort", popupzoneVO);
|
|
| 216 |
-// } |
|
| 217 |
-// |
|
| 218 |
-// /** |
|
| 219 |
-// * 메인이미지 목록을 조회한다. |
|
| 220 |
-// * @return 글 목록 |
|
| 221 |
-// * @exception Exception |
|
| 222 |
-// */ |
|
| 223 |
-// public List<?> selectMainzoneList(MainzoneVO mainzoneVO ) throws Exception{
|
|
| 224 |
-// return list("MainzoneManage.selectMainzoneList", mainzoneVO);
|
|
| 225 |
-// } |
|
| 226 |
-// |
|
| 227 |
-// public int getMainMaxSort() throws Exception{
|
|
| 228 |
-// return (Integer)select("MainzoneManage.getMainMaxSort");
|
|
| 229 |
-// } |
|
| 230 |
-// |
|
| 231 |
-// public void insertMainzone(MainzoneVO mainzoneVO) throws Exception{
|
|
| 232 |
-// insert("MainzoneManage.insertMainzone", mainzoneVO);
|
|
| 233 |
-// } |
|
| 234 |
-// |
|
| 235 |
-// public void resetMainSort(MainzoneVO mainzoneVO) throws Exception{
|
|
| 236 |
-// insert("MainzoneManage.resetMainSort", mainzoneVO);
|
|
| 237 |
-// } |
|
| 238 |
-// |
|
| 239 |
-// public void updateMainSortUp(SortVO sortVO) throws Exception{
|
|
| 240 |
-// update("MainzoneManage.updateMainSortUp", sortVO);
|
|
| 241 |
-// } |
|
| 242 |
-// |
|
| 243 |
-// public MainzoneVO selectMainzoneVO(String mazId) throws Exception{
|
|
| 244 |
-// return (MainzoneVO)select("MainzoneManage.selectMainzoneVO", mazId);
|
|
| 245 |
-// } |
|
| 246 |
-// |
|
| 247 |
-// @SuppressWarnings("unchecked")
|
|
| 248 |
-// public List<EgovMap> getMainSortList() throws Exception{
|
|
| 249 |
-// return (List<EgovMap>) list("MainzoneManage.getMainSortList",null);
|
|
| 250 |
-// } |
|
| 251 |
-// |
|
| 252 |
-// public void deleteMainzone(String mazId) throws Exception{
|
|
| 253 |
-// delete("MainzoneManage.deleteMainzone", mazId);
|
|
| 254 |
-// } |
|
| 255 |
-// |
|
| 256 |
-// public void updateMainSortDown(SortVO sortVO) throws Exception{
|
|
| 257 |
-// update("MainzoneManage.updateMainSortDown", sortVO);
|
|
| 258 |
-// } |
|
| 259 |
-// |
|
| 260 |
-// public void updateMainzone(MainzoneVO mainzoneVO) throws Exception{
|
|
| 261 |
-// update("MainzoneManage.updateMainzone", mainzoneVO);
|
|
| 262 |
-// } |
|
| 263 |
-// |
|
| 264 |
-// @SuppressWarnings("unchecked")
|
|
| 265 |
-// public List<MainzoneVO> selectMainzoneListRolling() throws Exception{
|
|
| 266 |
-// return (List<MainzoneVO>) list("MainzoneManage.selectMainzoneListRolling");
|
|
| 267 |
-// } |
|
| 268 |
-// |
|
| 269 |
-// public int selectPopupzoneListTotCnt(PopupzoneVO popupzoneVo) throws Exception {
|
|
| 270 |
-// return (int)select("PopupzoneManage.selectPopupzoneListTotCnt", popupzoneVo);
|
|
| 271 |
-// } |
|
| 272 |
-// |
|
| 273 |
-// public int selectMainzoneCount(MainzoneVO mainzoneVO) throws Exception{
|
|
| 274 |
-// return (int)select("MainzoneManage.selectMainzoneCount", mainzoneVO);
|
|
| 275 |
-// } |
|
| 276 |
-// |
|
| 277 |
-// public void resetVOSort(PopupzoneVO popupzoneVO) throws Exception{
|
|
| 278 |
-// update("PopupzoneManage.resetVOSort", popupzoneVO);
|
|
| 279 |
-// } |
|
| 280 |
-// |
|
| 281 |
-// public void resetMainVOSort(MainzoneVO mainzoneVO) throws Exception{
|
|
| 282 |
-// update("MainzoneManage.resetMainVOSort", mainzoneVO);
|
|
| 283 |
-// } |
|
| 284 |
-// |
|
| 285 |
-// @SuppressWarnings("unchecked")
|
|
| 286 |
-// public List<SocialVO> selectSocialList(SocialVO socialVO) throws Exception{
|
|
| 287 |
-// return (List<SocialVO>) list("SocialManage.selectSocialList",socialVO);
|
|
| 288 |
-// } |
|
| 289 |
-// |
|
| 290 |
-// public SocialVO selectSocialVO(String socialId) throws Exception{
|
|
| 291 |
-// return (SocialVO)select("SocialManage.selectSocialVO", socialId);
|
|
| 292 |
-// } |
|
| 293 |
-// |
|
| 294 |
-// public void updateSocial(SocialVO socialVO) throws Exception{
|
|
| 295 |
-// update("SocialManage.updateSocial", socialVO);
|
|
| 296 |
-// } |
|
| 297 |
-// |
|
| 298 |
-// public void resetSocialSort(SocialVO socialVO) throws Exception{
|
|
| 299 |
-// update("SocialManage.resetSocialSort", socialVO);
|
|
| 300 |
-// } |
|
| 301 |
-// |
|
| 302 |
-// public void insertSocial(SocialVO socialVO) throws Exception{
|
|
| 303 |
-// insert("SocialManage.insertSocial", socialVO);
|
|
| 304 |
-// } |
|
| 305 |
-// |
|
| 306 |
-// public void deleteSocial(String id) throws Exception{
|
|
| 307 |
-// delete("SocialManage.deleteSocial", id);
|
|
| 308 |
-// } |
|
| 309 | 58 |
}(No newline at end of file) |
--- src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java
+++ src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java
... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 |
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
| 10 | 10 |
import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
| 11 | 11 |
import itn.com.uss.ion.bnr.pop.service.MainPopupManageService; |
| 12 |
-import itn.com.uss.ion.pwm.service.MainzoneVO; |
|
| 12 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupVO; |
|
| 13 | 13 |
|
| 14 | 14 |
/** |
| 15 | 15 |
* 개요 |
... | ... | @@ -34,37 +34,37 @@ |
| 34 | 34 |
private EgovIdGnrService idgenService; |
| 35 | 35 |
|
| 36 | 36 |
@Override |
| 37 |
- public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception {
|
|
| 38 |
- return dao.selectSubMainzoneList(mainzoneVO); |
|
| 37 |
+ public List<?> selectMainPopupList(MainPopupVO mainPopupVO) throws Exception {
|
|
| 38 |
+ return dao.selectMainPopupList(mainPopupVO); |
|
| 39 | 39 |
} |
| 40 | 40 |
|
| 41 | 41 |
@Override |
| 42 |
- public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception {
|
|
| 43 |
- return dao.selectSubMainzoneCount(mainzoneVO); |
|
| 42 |
+ public int selectMainPopupCount(MainPopupVO mainPopupVO) throws Exception {
|
|
| 43 |
+ return dao.selectMainPopupCount(mainPopupVO); |
|
| 44 | 44 |
} |
| 45 | 45 |
|
| 46 | 46 |
|
| 47 | 47 |
@Override |
| 48 |
- public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception {
|
|
| 49 |
- MainzoneVO resultVO = dao.selectSubMainzoneVO(mazId); |
|
| 48 |
+ public MainPopupVO selectMainPopupVO(String mazId) throws Exception {
|
|
| 49 |
+ MainPopupVO resultVO = dao.selectMainPopupVO(mazId); |
|
| 50 | 50 |
if (resultVO == null) |
| 51 | 51 |
throw processException("info.nodata.msg");
|
| 52 | 52 |
return resultVO; |
| 53 | 53 |
} |
| 54 | 54 |
|
| 55 | 55 |
@Override |
| 56 |
- public List<MainzoneVO> selectSubMainzoneListRolling() {
|
|
| 57 |
- return dao.selectSubMainzoneListRolling(); |
|
| 56 |
+ public List<MainPopupVO> selectMainPopupListRolling() {
|
|
| 57 |
+ return dao.selectMainPopupListRolling(); |
|
| 58 | 58 |
} |
| 59 | 59 |
|
| 60 | 60 |
@Override |
| 61 |
- public void deleteSubMainzone(String id) {
|
|
| 62 |
- dao.deleteSubMainzone(id); |
|
| 61 |
+ public void deleteMainPopup(String id) {
|
|
| 62 |
+ dao.deleteMainPopup(id); |
|
| 63 | 63 |
} |
| 64 | 64 |
|
| 65 | 65 |
@Override |
| 66 |
- public void resetSubMainVOSort(MainzoneVO mainzoneVO) {
|
|
| 67 |
- dao.resetSubMainVOSort(mainzoneVO); |
|
| 66 |
+ public void resetMainPopupSort(MainPopupVO mainPopupVO) {
|
|
| 67 |
+ dao.resetMainPopupSort(mainPopupVO); |
|
| 68 | 68 |
|
| 69 | 69 |
} |
| 70 | 70 |
|
--- src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java
+++ src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java
... | ... | @@ -32,6 +32,8 @@ |
| 32 | 32 |
import itn.com.cmm.service.EgovFileMngUtil; |
| 33 | 33 |
import itn.com.cmm.service.FileVO; |
| 34 | 34 |
import itn.com.cmm.util.RedirectUrlMaker; |
| 35 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupManageService; |
|
| 36 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupVO; |
|
| 35 | 37 |
import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; |
| 36 | 38 |
import itn.com.uss.ion.pwm.service.MainzoneVO; |
| 37 | 39 |
import itn.let.sym.site.service.EgovSiteManagerService; |
... | ... | @@ -76,6 +78,9 @@ |
| 76 | 78 |
@Resource(name = "subMainZoneManageService") |
| 77 | 79 |
private SubMainZoneManageService subMainZoneManageService; |
| 78 | 80 |
|
| 81 |
+ @Resource(name = "mainPopupManageService") |
|
| 82 |
+ private MainPopupManageService mainPopupManageService; |
|
| 83 |
+ |
|
| 79 | 84 |
/** cmmUseService */ |
| 80 | 85 |
@Resource(name = "EgovCmmUseService") |
| 81 | 86 |
private EgovCmmUseService cmmUseService; |
... | ... | @@ -106,63 +111,63 @@ |
| 106 | 111 |
|
| 107 | 112 |
/*메인이미지 관리*/ |
| 108 | 113 |
// @RequestMapping(value="/uss/ion/bnr/subMainZoneList.do") |
| 109 |
- @RequestMapping(value="/uss/ion/bnr/pop/mainPopupList.doz") |
|
| 110 |
- public String selectMainzoneList(ModelMap model , MainzoneVO mainzoneVO , HttpSession session ) throws Exception {
|
|
| 114 |
+ @RequestMapping(value="/uss/ion/bnr/pop/mainPopupList.do") |
|
| 115 |
+ public String selectMainzoneList(ModelMap model , MainPopupVO mainPopupVO , HttpSession session ) throws Exception {
|
|
| 111 | 116 |
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
| 112 | 117 |
|
| 113 | 118 |
|
| 114 |
- if(mainzoneVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅
|
|
| 115 |
- mainzoneVO.setPageUnit(8); |
|
| 119 |
+ if(mainPopupVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅
|
|
| 120 |
+ mainPopupVO.setPageUnit(8); |
|
| 116 | 121 |
}else {
|
| 117 |
- mainzoneVO.setPageUnit(mainzoneVO.getPageUnit()); |
|
| 122 |
+ mainPopupVO.setPageUnit(mainPopupVO.getPageUnit()); |
|
| 118 | 123 |
} |
| 119 | 124 |
|
| 120 | 125 |
/** pageing */ |
| 121 | 126 |
PaginationInfo paginationInfo = new PaginationInfo(); |
| 122 |
- paginationInfo.setCurrentPageNo(mainzoneVO.getPageIndex()); |
|
| 123 |
- paginationInfo.setRecordCountPerPage(mainzoneVO.getPageUnit()); |
|
| 124 |
- paginationInfo.setPageSize(mainzoneVO.getPageSize()); |
|
| 127 |
+ paginationInfo.setCurrentPageNo(mainPopupVO.getPageIndex()); |
|
| 128 |
+ paginationInfo.setRecordCountPerPage(mainPopupVO.getPageUnit()); |
|
| 129 |
+ paginationInfo.setPageSize(mainPopupVO.getPageSize()); |
|
| 125 | 130 |
|
| 126 |
- mainzoneVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 127 |
- mainzoneVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 128 |
- mainzoneVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 131 |
+ mainPopupVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 132 |
+ mainPopupVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 133 |
+ mainPopupVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 129 | 134 |
|
| 130 | 135 |
if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //각각의 사이트
|
| 131 |
- mainzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 136 |
+ mainPopupVO.setSiteId(loginVO.getSiteId()); |
|
| 132 | 137 |
} |
| 133 |
- List<?> mainzoneList = subMainZoneManageService.selectSubMainzoneList(mainzoneVO); |
|
| 134 |
- model.addAttribute("mainzoneList", mainzoneList);
|
|
| 138 |
+ List<?> mainPopupList = mainPopupManageService.selectMainPopupList(mainPopupVO); |
|
| 139 |
+ model.addAttribute("mainPopupList", mainPopupList);
|
|
| 135 | 140 |
|
| 136 |
- int totCnt = subMainZoneManageService.selectSubMainzoneCount(mainzoneVO); |
|
| 141 |
+ int totCnt = mainPopupManageService.selectMainPopupCount(mainPopupVO); |
|
| 137 | 142 |
|
| 138 | 143 |
paginationInfo.setTotalRecordCount(totCnt); |
| 139 | 144 |
model.addAttribute("paginationInfo", paginationInfo);
|
| 140 | 145 |
|
| 141 |
- return "uss/ion/bnr/sub/subMainZoneList"; |
|
| 146 |
+ return "uss/ion/bnr/pop/mainPopupList"; |
|
| 142 | 147 |
} |
| 143 | 148 |
|
| 144 | 149 |
|
| 145 | 150 |
|
| 146 | 151 |
/*알림창등록/수정 view*/ |
| 147 |
- @RequestMapping(value="/uss/ion/bnr/subMainzoneModify.do") |
|
| 152 |
+ @RequestMapping(value="/uss/ion/bnr/pop/mainPopupModify.do") |
|
| 148 | 153 |
public String updateMainZoneView(@RequestParam Map<?, ?> commandMap, |
| 149 | 154 |
HttpServletRequest request, Model model, HttpSession session) |
| 150 | 155 |
throws Exception {
|
| 151 | 156 |
|
| 152 |
- MainzoneVO mainzoneVO = new MainzoneVO(); |
|
| 157 |
+ MainPopupVO mainPopupVO = new MainPopupVO(); |
|
| 153 | 158 |
if("Modify".equals((String)commandMap.get("pageType"))){ //수정
|
| 154 | 159 |
String mazId = (String)commandMap.get("selectedId");
|
| 155 |
- mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(mazId); |
|
| 156 |
- String sNtceBgnde = mainzoneVO.getNtceBgnde(); |
|
| 157 |
- String sNtceEndde = mainzoneVO.getNtceEndde(); |
|
| 160 |
+ mainPopupVO = mainPopupManageService.selectMainPopupVO(mazId); |
|
| 161 |
+ String sNtceBgnde = mainPopupVO.getNtceBgnde(); |
|
| 162 |
+ String sNtceEndde = mainPopupVO.getNtceEndde(); |
|
| 158 | 163 |
|
| 159 | 164 |
if(sNtceBgnde != null && sNtceEndde != null ) {
|
| 160 | 165 |
|
| 161 |
- mainzoneVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); |
|
| 162 |
- mainzoneVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); |
|
| 166 |
+ mainPopupVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); |
|
| 167 |
+ mainPopupVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); |
|
| 163 | 168 |
|
| 164 |
- mainzoneVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); |
|
| 165 |
- mainzoneVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); |
|
| 169 |
+ mainPopupVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); |
|
| 170 |
+ mainPopupVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); |
|
| 166 | 171 |
|
| 167 | 172 |
//게시기간 시작일자(시) |
| 168 | 173 |
model.addAttribute("ntceBgndeHH", getTimeHH());
|
... | ... | @@ -176,11 +181,11 @@ |
| 176 | 181 |
|
| 177 | 182 |
} |
| 178 | 183 |
|
| 179 |
- if(mainzoneVO != null){
|
|
| 180 |
- mainzoneVO.setBeSort(mainzoneVO.getSort()); |
|
| 184 |
+ if(mainPopupVO != null){
|
|
| 185 |
+ mainPopupVO.setBeSort(mainPopupVO.getSort()); |
|
| 181 | 186 |
|
| 182 | 187 |
FileVO fileVO = new FileVO(); |
| 183 |
- String atchFileId = mainzoneVO.getMainzoneImageFile(); |
|
| 188 |
+ String atchFileId = mainPopupVO.getMainzoneImageFile(); |
|
| 184 | 189 |
fileVO.setAtchFileId(atchFileId); |
| 185 | 190 |
List<FileVO> fileList = fileService.selectFileInfs(fileVO); |
| 186 | 191 |
model.addAttribute("fileList", fileList);
|
... | ... | @@ -199,8 +204,8 @@ |
| 199 | 204 |
} |
| 200 | 205 |
|
| 201 | 206 |
//model.addAttribute("sortList", sortList);
|
| 202 |
- model.addAttribute("mainzoneVO", mainzoneVO);
|
|
| 203 |
- System.out.println("mainzoneVO :: "+ mainzoneVO.toString());
|
|
| 207 |
+ model.addAttribute("mainPopupVO", mainPopupVO);
|
|
| 208 |
+ System.out.println("mainPopupVO :: "+ mainPopupVO.toString());
|
|
| 204 | 209 |
|
| 205 | 210 |
/* 타겟 코드 */ |
| 206 | 211 |
ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
... | ... | @@ -209,33 +214,33 @@ |
| 209 | 214 |
//model.addAttribute("targetList", targetList);
|
| 210 | 215 |
|
| 211 | 216 |
|
| 212 |
- return "uss/ion/bnr/sub/subMainZoneModify"; |
|
| 217 |
+ return "uss/ion/bnr/pop/mainPopupModify"; |
|
| 213 | 218 |
} |
| 214 | 219 |
|
| 215 | 220 |
|
| 216 | 221 |
|
| 217 | 222 |
/*메인 이미지삭제 */ |
| 218 |
- @RequestMapping("/uss/ion/bnr/subMainzoneListDelete.do")
|
|
| 223 |
+ @RequestMapping("/uss/ion/bnr/pop/mainPopupListDelete.do")
|
|
| 219 | 224 |
public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception {
|
| 220 | 225 |
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
| 221 |
- MainzoneVO mainzoneVO = new MainzoneVO(); |
|
| 226 |
+ MainPopupVO mainPopupVO = new MainPopupVO(); |
|
| 222 | 227 |
for(String id:del) {
|
| 223 | 228 |
try{
|
| 224 |
- mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(id); |
|
| 229 |
+ mainPopupVO = mainPopupManageService.selectMainPopupVO(id); |
|
| 225 | 230 |
}catch(Exception e){
|
| 226 | 231 |
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg"));
|
| 227 |
- RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do");
|
|
| 232 |
+ RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/pop/mainPopupList.do");
|
|
| 228 | 233 |
return redirectUrlMaker.getRedirectUrl(); |
| 229 | 234 |
} |
| 230 |
- subMainZoneManageService.deleteSubMainzone(id); |
|
| 235 |
+ mainPopupManageService.deleteMainPopup(id); |
|
| 231 | 236 |
if(null != loginVO && !"super".equals(loginVO.getSiteId())){
|
| 232 |
- mainzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 237 |
+ mainPopupVO.setSiteId(loginVO.getSiteId()); |
|
| 233 | 238 |
} |
| 234 |
- subMainZoneManageService.resetSubMainVOSort(mainzoneVO); |
|
| 239 |
+ mainPopupManageService.resetMainPopupSort(mainPopupVO); |
|
| 235 | 240 |
} |
| 236 | 241 |
|
| 237 | 242 |
redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
| 238 |
- RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do");
|
|
| 243 |
+ RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/pop/mainPopupList.do");
|
|
| 239 | 244 |
return redirectUrlMaker.getRedirectUrl(); |
| 240 | 245 |
} |
| 241 | 246 |
|
... | ... | @@ -306,930 +311,4 @@ |
| 306 | 311 |
|
| 307 | 312 |
|
| 308 | 313 |
|
| 309 |
- |
|
| 310 |
- |
|
| 311 |
- |
|
| 312 |
- |
|
| 313 |
- |
|
| 314 |
- |
|
| 315 |
- |
|
| 316 |
- |
|
| 317 |
- |
|
| 318 |
- |
|
| 319 |
- |
|
| 320 |
- |
|
| 321 |
- |
|
| 322 |
- |
|
| 323 |
- |
|
| 324 |
- |
|
| 325 |
- |
|
| 326 |
- |
|
| 327 |
- |
|
| 328 |
- |
|
| 329 |
- |
|
| 330 |
-// |
|
| 331 |
-// |
|
| 332 |
-// |
|
| 333 |
-// |
|
| 334 |
-// /** |
|
| 335 |
-// * 팝업창관리 목록을 조회한다. |
|
| 336 |
-// * @param popupManageVO |
|
| 337 |
-// * @param model |
|
| 338 |
-// * @return "uss/ion/pwm/listPopupManage" |
|
| 339 |
-// * @throws Exception |
|
| 340 |
-// */ |
|
| 341 |
-// @RequestMapping(value = "/uss/ion/pwm/listPopup.do") |
|
| 342 |
-// public String selectEgovPopupManageList(@RequestParam Map<?, ?> commandMap, PopupManageVO popupManageVO, ModelMap model , HttpSession session) throws Exception {
|
|
| 343 |
-// |
|
| 344 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 345 |
-// /** EgovPropertyService.sample */ |
|
| 346 |
-// |
|
| 347 |
-// if(popupManageVO.getPageUnit() != 10) {
|
|
| 348 |
-// popupManageVO.setPageUnit(popupManageVO.getPageUnit()); |
|
| 349 |
-// } |
|
| 350 |
-// |
|
| 351 |
-// /** pageing */ |
|
| 352 |
-// PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 353 |
-// paginationInfo.setCurrentPageNo(popupManageVO.getPageIndex()); |
|
| 354 |
-// paginationInfo.setRecordCountPerPage(popupManageVO.getPageUnit()); |
|
| 355 |
-// paginationInfo.setPageSize(popupManageVO.getPageSize()); |
|
| 356 |
-// |
|
| 357 |
-// popupManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 358 |
-// popupManageVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 359 |
-// popupManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 360 |
-// |
|
| 361 |
-// if("".equals(popupManageVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
|
| 362 |
-// popupManageVO.setSearchSortCnd("POPUP_ID");
|
|
| 363 |
-// popupManageVO.setSearchSortOrd("desc");
|
|
| 364 |
-// } |
|
| 365 |
-// List<?> reusltList = egovPopupManageService.selectPopupList(popupManageVO); |
|
| 366 |
-// model.addAttribute("resultList", reusltList);
|
|
| 367 |
-// |
|
| 368 |
-// model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword"));
|
|
| 369 |
-// model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition"));
|
|
| 370 |
-// |
|
| 371 |
-// model.addAttribute("delSttus", popupManageVO.getDelSttus());
|
|
| 372 |
-// |
|
| 373 |
-// int totCnt = egovPopupManageService.selectPopupListCount(popupManageVO); |
|
| 374 |
-// paginationInfo.setTotalRecordCount(totCnt); |
|
| 375 |
-// model.addAttribute("paginationInfo", paginationInfo);
|
|
| 376 |
-// return "uss/ion/pwm/EgovPopupList"; |
|
| 377 |
-// } |
|
| 378 |
- |
|
| 379 |
-// /** |
|
| 380 |
-// * 통합링크관리 목록을 상세조회 조회한다. |
|
| 381 |
-// * @param popupManageVO |
|
| 382 |
-// * @param commandMap |
|
| 383 |
-// * @param model |
|
| 384 |
-// * @return |
|
| 385 |
-// * "/uss/ion/pwm/detailPopupManage" |
|
| 386 |
-// * @throws Exception |
|
| 387 |
-// */ |
|
| 388 |
-// @RequestMapping(value = "/uss/ion/pwm/detailPopup.do") |
|
| 389 |
-// public String egovPopupManageDetail(PopupManageVO popupManageVO, @RequestParam Map<?, ?> commandMap, RedirectAttributes redirectAttributes, ModelMap model) throws Exception {
|
|
| 390 |
-// |
|
| 391 |
-// String sLocationUrl = "uss/ion/pwm/EgovPopupDetail"; |
|
| 392 |
-// |
|
| 393 |
-// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
|
| 394 |
-// |
|
| 395 |
-// if (sCmd.equals("del")) {
|
|
| 396 |
-// //egovPopupManageService.deletePopup(popupManageVO); |
|
| 397 |
-// popupManageVO.setDelSttus("Y");
|
|
| 398 |
-// try{
|
|
| 399 |
-// egovPopupManageService.deletePopup(popupManageVO); |
|
| 400 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 401 |
-// }catch(Exception e){
|
|
| 402 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete"));
|
|
| 403 |
-// } |
|
| 404 |
-// |
|
| 405 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do");
|
|
| 406 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 407 |
-// |
|
| 408 |
-// |
|
| 409 |
-// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; |
|
| 410 |
-// } else {
|
|
| 411 |
-// //상세정보 불러오기 |
|
| 412 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); |
|
| 413 |
-// model.addAttribute("popupManageVO", popupManageVOs);
|
|
| 414 |
-// } |
|
| 415 |
-// |
|
| 416 |
-// return sLocationUrl; |
|
| 417 |
-// } |
|
| 418 |
-// |
|
| 419 |
-// /** |
|
| 420 |
-// * 통합링크관리를 수정한다. |
|
| 421 |
-// * @param searchVO |
|
| 422 |
-// * @param popupManageVO |
|
| 423 |
-// * @param bindingResult |
|
| 424 |
-// * @param model |
|
| 425 |
-// * @return |
|
| 426 |
-// * "/uss/ion/pwm/updtPopupManage" |
|
| 427 |
-// * @throws Exception |
|
| 428 |
-// */ |
|
| 429 |
-// @RequestMapping(value = "/uss/ion/pwm/updtPopup.do") |
|
| 430 |
-// public String updateEgovPopupManage(HttpSession session , @RequestParam Map<?, ?> commandMap, PopupManageVO popupManageVO, BindingResult bindingResult, RedirectAttributes redirectAttributes,ModelMap model) throws Exception {
|
|
| 431 |
-// |
|
| 432 |
-// // 미인증 사용자에 대한 보안처리 |
|
| 433 |
-// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); |
|
| 434 |
-// if(!isAuthenticated) {
|
|
| 435 |
-// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
|
| 436 |
-// return "uat/uia/EgovLoginUsr"; |
|
| 437 |
-// } |
|
| 438 |
-// |
|
| 439 |
-// // 로그인 객체 선언 |
|
| 440 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 441 |
-// |
|
| 442 |
-// String sLocationUrl = "uss/ion/pwm/EgovPopupUpdt"; |
|
| 443 |
-// |
|
| 444 |
-// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
|
| 445 |
-// |
|
| 446 |
-// //팝업창시작일자(시) |
|
| 447 |
-// model.addAttribute("ntceBgndeHH", getTimeHH());
|
|
| 448 |
-// //팝업창시작일자(분) |
|
| 449 |
-// model.addAttribute("ntceBgndeMM", getTimeMM());
|
|
| 450 |
-// //팝업창종료일자(시) |
|
| 451 |
-// model.addAttribute("ntceEnddeHH", getTimeHH());
|
|
| 452 |
-// //팝업창정료일자(분) |
|
| 453 |
-// model.addAttribute("ntceEnddeMM", getTimeMM());
|
|
| 454 |
-// |
|
| 455 |
-// if (sCmd.equals("save")) {
|
|
| 456 |
-// sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; |
|
| 457 |
-// //서버 validate 체크 |
|
| 458 |
-// beanValidator.validate(popupManageVO, bindingResult); |
|
| 459 |
-// if (bindingResult.hasErrors()) {
|
|
| 460 |
-// return sLocationUrl; |
|
| 461 |
-// } |
|
| 462 |
-// //아이디 설정 |
|
| 463 |
-// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); |
|
| 464 |
-// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); |
|
| 465 |
-// //저장 |
|
| 466 |
-// egovPopupManageService.updatePopup(popupManageVO); |
|
| 467 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
|
| 468 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do");
|
|
| 469 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 470 |
-// } else {
|
|
| 471 |
-// |
|
| 472 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); |
|
| 473 |
-// |
|
| 474 |
-// String sNtceBgnde = popupManageVOs.getNtceBgnde(); |
|
| 475 |
-// String sNtceEndde = popupManageVOs.getNtceEndde(); |
|
| 476 |
-// |
|
| 477 |
-// popupManageVOs.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); |
|
| 478 |
-// popupManageVOs.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); |
|
| 479 |
-// |
|
| 480 |
-// popupManageVOs.setNtceEnddeHH(sNtceEndde.substring(8, 10)); |
|
| 481 |
-// popupManageVOs.setNtceEnddeMM(sNtceEndde.substring(10, 12)); |
|
| 482 |
-// |
|
| 483 |
-// model.addAttribute("popupManageVO", popupManageVOs);
|
|
| 484 |
-// } |
|
| 485 |
-// return sLocationUrl; |
|
| 486 |
-// } |
|
| 487 |
-// |
|
| 488 |
-// /** |
|
| 489 |
-// * 통합링크관리를 등록한다. |
|
| 490 |
-// * @param searchVO |
|
| 491 |
-// * @param popupManageVO |
|
| 492 |
-// * @param bindingResult |
|
| 493 |
-// * @param model |
|
| 494 |
-// * @return |
|
| 495 |
-// * "/uss/ion/pwm/registPopupManage" |
|
| 496 |
-// * @throws Exception |
|
| 497 |
-// */ |
|
| 498 |
-// @RequestMapping(value = "/uss/ion/pwm/egovPopupRegist.do") |
|
| 499 |
-// public String insertEgovPopupRegist(@RequestParam Map<?, ?> commandMap, @ModelAttribute("popupManageVO") PopupManageVO popupManageVO, BindingResult bindingResult,
|
|
| 500 |
-// RedirectAttributes redirectAttributes ,ModelMap model, HttpSession session ) throws Exception {
|
|
| 501 |
-// |
|
| 502 |
-// /*if (!EgovDoubleSubmitHelper.checkAndSaveToken()) {
|
|
| 503 |
-// return "forward:/uss/ion/pwm/listPopup.do"; |
|
| 504 |
-// }*/ |
|
| 505 |
-// |
|
| 506 |
-// // 0. Spring Security 사용자권한 처리 |
|
| 507 |
-// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); |
|
| 508 |
-// if (!isAuthenticated) {
|
|
| 509 |
-// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
|
| 510 |
-// return "uat/uia/EgovLoginUsr"; |
|
| 511 |
-// } |
|
| 512 |
-// |
|
| 513 |
-// // 로그인 객체 선언 |
|
| 514 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 515 |
-// |
|
| 516 |
-// String sLocationUrl = "uss/ion/pwm/EgovPopupRegist"; |
|
| 517 |
-// |
|
| 518 |
-// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
|
| 519 |
-// LOGGER.info("cmd => {}", sCmd);
|
|
| 520 |
-// |
|
| 521 |
-// if (sCmd.equals("save")) {
|
|
| 522 |
-// beanValidator.validate(popupManageVO, bindingResult); |
|
| 523 |
-// if (bindingResult.hasErrors()) {
|
|
| 524 |
-// return sLocationUrl; |
|
| 525 |
-// } |
|
| 526 |
-// //아이디 설정 |
|
| 527 |
-// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); |
|
| 528 |
-// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); |
|
| 529 |
-// //저장 |
|
| 530 |
-// popupManageVO.setNttCn(unscript(popupManageVO.getNttCn())); // XSS 방지 |
|
| 531 |
-// popupManageVO.setDelSttus("N"); //최초 생성시 삭제여부 N
|
|
| 532 |
-// egovPopupManageService.insertPopup(popupManageVO); |
|
| 533 |
-// |
|
| 534 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 535 |
-// popupManageVO.setSiteId(loginVO.getSiteId()); |
|
| 536 |
-// } |
|
| 537 |
-// |
|
| 538 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
|
| 539 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do");
|
|
| 540 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 541 |
-// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; |
|
| 542 |
-// } |
|
| 543 |
-// |
|
| 544 |
-// //팝업창시작일자(시) |
|
| 545 |
-// model.addAttribute("ntceBgndeHH", getTimeHH());
|
|
| 546 |
-// //팝업창시작일자(분) |
|
| 547 |
-// model.addAttribute("ntceBgndeMM", getTimeMM());
|
|
| 548 |
-// //팝업창종료일자(시) |
|
| 549 |
-// model.addAttribute("ntceEnddeHH", getTimeHH());
|
|
| 550 |
-// //팝업창정료일자(분) |
|
| 551 |
-// model.addAttribute("ntceEnddeMM", getTimeMM());
|
|
| 552 |
-// return sLocationUrl; |
|
| 553 |
-// } |
|
| 554 |
-// |
|
| 555 |
-// /** |
|
| 556 |
-// * 팝업창정보를 조회한다. |
|
| 557 |
-// * @param commandMap |
|
| 558 |
-// * @param popupManageVO |
|
| 559 |
-// * @return |
|
| 560 |
-// * @throws Exception |
|
| 561 |
-// */ |
|
| 562 |
-// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfoBack.do") |
|
| 563 |
-// public void egovPopupManageInfoAjaxBack(@RequestParam Map<?, ?> commandMap, HttpServletResponse response, PopupManageVO popupManageVO) throws Exception {
|
|
| 564 |
-// |
|
| 565 |
-// response.setHeader("Content-Type", "text/html;charset=utf-8");
|
|
| 566 |
-// PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8")); |
|
| 567 |
-// |
|
| 568 |
-// LOGGER.debug("commandMap : {}", commandMap);
|
|
| 569 |
-// LOGGER.debug("popupManageVO : {}", popupManageVO);
|
|
| 570 |
-// |
|
| 571 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); |
|
| 572 |
-// |
|
| 573 |
-// |
|
| 574 |
-// String sPrint = ""; |
|
| 575 |
-// sPrint = popupManageVOs.getFileUrl(); |
|
| 576 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupWSize(); |
|
| 577 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupHSize(); |
|
| 578 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupHlc(); |
|
| 579 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupWlc(); |
|
| 580 |
-// sPrint = sPrint + "||" + popupManageVOs.getStopVewAt(); |
|
| 581 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupType(); |
|
| 582 |
-// out.print(sPrint); |
|
| 583 |
-// out.flush(); |
|
| 584 |
-// } |
|
| 585 |
-// |
|
| 586 |
-// |
|
| 587 |
-// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfo.do") |
|
| 588 |
-// public ModelAndView ajaxPopupManageInfo(@RequestParam Map<String, Object> commandMap) throws Exception {
|
|
| 589 |
-// ModelAndView modelAndView = new ModelAndView(); |
|
| 590 |
-// modelAndView.setViewName("jsonView");
|
|
| 591 |
-// |
|
| 592 |
-// PopupManageVO popupManageVO = new PopupManageVO(); |
|
| 593 |
-// popupManageVO.setPopupId((String) commandMap.get("popupIds"));
|
|
| 594 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); |
|
| 595 |
-// modelAndView.addObject("popupManageVOs", popupManageVOs);
|
|
| 596 |
-// return modelAndView; |
|
| 597 |
-// } |
|
| 598 |
-// |
|
| 599 |
-// /** |
|
| 600 |
-// * 팝업창을 오픈 한다. |
|
| 601 |
-// * @param commandMap |
|
| 602 |
-// * @param popupManageVO |
|
| 603 |
-// * @return |
|
| 604 |
-// * @throws Exception |
|
| 605 |
-// */ |
|
| 606 |
-// @RequestMapping(value = "/uss/ion/pwm/openPopupManage.do") |
|
| 607 |
-// public String egovPopupManagePopupOpen(@RequestParam("fileUrl") String fileUrl, @RequestParam("stopVewAt") String stopVewAt, @RequestParam("popupId") String popupId,
|
|
| 608 |
-// ModelMap model) throws Exception {
|
|
| 609 |
-// //팝업창이 윈도우일 경우 |
|
| 610 |
-// //상세정보 불러오기 |
|
| 611 |
-// |
|
| 612 |
-// PopupManageVO paramPopupManageVO = new PopupManageVO(); |
|
| 613 |
-// paramPopupManageVO.setPopupId(popupId); |
|
| 614 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(paramPopupManageVO); |
|
| 615 |
-// model.addAttribute("popupManageVO", popupManageVOs);
|
|
| 616 |
-// |
|
| 617 |
-// model.addAttribute("stopVewAt", stopVewAt);
|
|
| 618 |
-// model.addAttribute("popupId", popupId);
|
|
| 619 |
-// |
|
| 620 |
-// return fileUrl; |
|
| 621 |
-// } |
|
| 622 |
-// |
|
| 623 |
-// /** |
|
| 624 |
-// * 팝업창관리 메인 테스트 목록을 조회한다. |
|
| 625 |
-// * @param popupManageVO |
|
| 626 |
-// * @param model |
|
| 627 |
-// * @return "uss/ion/pwm/listMainPopup" |
|
| 628 |
-// * @throws Exception |
|
| 629 |
-// */ |
|
| 630 |
-// @RequestMapping(value = "/uss/ion/pwm/listMainPopup.do") |
|
| 631 |
-// public String egovPopupManageMainList(PopupManageVO popupManageVO, ModelMap model) throws Exception {
|
|
| 632 |
-// |
|
| 633 |
-// List<?> reusltList = egovPopupManageService.selectPopupMainList(popupManageVO); |
|
| 634 |
-// model.addAttribute("resultList", reusltList);
|
|
| 635 |
-// |
|
| 636 |
-// return "uss/ion/pwm/EgovPopupMainList"; |
|
| 637 |
-// } |
|
| 638 |
-// |
|
| 639 |
-// /** |
|
| 640 |
-// * 시간을 LIST를 반환한다. |
|
| 641 |
-// * @return List |
|
| 642 |
-// * @throws |
|
| 643 |
-// */ |
|
| 644 |
-// @SuppressWarnings("unused")
|
|
| 645 |
-// private List<ComDefaultCodeVO> getTimeHH() {
|
|
| 646 |
-// ArrayList<ComDefaultCodeVO> listHH = new ArrayList<ComDefaultCodeVO>(); |
|
| 647 |
-// HashMap<?, ?> hmHHMM; |
|
| 648 |
-// for (int i = 0; i <= 24; i++) {
|
|
| 649 |
-// String sHH = ""; |
|
| 650 |
-// String strI = String.valueOf(i); |
|
| 651 |
-// if (i < 10) {
|
|
| 652 |
-// sHH = "0" + strI; |
|
| 653 |
-// } else {
|
|
| 654 |
-// sHH = strI; |
|
| 655 |
-// } |
|
| 656 |
-// |
|
| 657 |
-// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); |
|
| 658 |
-// codeVO.setCode(sHH); |
|
| 659 |
-// codeVO.setCodeNm(sHH); |
|
| 660 |
-// |
|
| 661 |
-// listHH.add(codeVO); |
|
| 662 |
-// } |
|
| 663 |
-// |
|
| 664 |
-// return listHH; |
|
| 665 |
-// } |
|
| 666 |
-// |
|
| 667 |
-// /** |
|
| 668 |
-// * 분을 LIST를 반환한다. |
|
| 669 |
-// * @return List |
|
| 670 |
-// * @throws |
|
| 671 |
-// */ |
|
| 672 |
-// @SuppressWarnings("unused")
|
|
| 673 |
-// private List<ComDefaultCodeVO> getTimeMM() {
|
|
| 674 |
-// ArrayList<ComDefaultCodeVO> listMM = new ArrayList<ComDefaultCodeVO>(); |
|
| 675 |
-// HashMap<?, ?> hmHHMM; |
|
| 676 |
-// for (int i = 0; i <= 60; i++) {
|
|
| 677 |
-// |
|
| 678 |
-// String sMM = ""; |
|
| 679 |
-// String strI = String.valueOf(i); |
|
| 680 |
-// if (i < 10) {
|
|
| 681 |
-// sMM = "0" + strI; |
|
| 682 |
-// } else {
|
|
| 683 |
-// sMM = strI; |
|
| 684 |
-// } |
|
| 685 |
-// |
|
| 686 |
-// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); |
|
| 687 |
-// codeVO.setCode(sMM); |
|
| 688 |
-// codeVO.setCodeNm(sMM); |
|
| 689 |
-// |
|
| 690 |
-// listMM.add(codeVO); |
|
| 691 |
-// } |
|
| 692 |
-// return listMM; |
|
| 693 |
-// } |
|
| 694 |
-// |
|
| 695 |
-// /** |
|
| 696 |
-// * 0을 붙여 반환 |
|
| 697 |
-// * @return String |
|
| 698 |
-// * @throws |
|
| 699 |
-// */ |
|
| 700 |
-// public String dateTypeIntForString(int iInput) {
|
|
| 701 |
-// String sOutput = ""; |
|
| 702 |
-// if (Integer.toString(iInput).length() == 1) {
|
|
| 703 |
-// sOutput = "0" + Integer.toString(iInput); |
|
| 704 |
-// } else {
|
|
| 705 |
-// sOutput = Integer.toString(iInput); |
|
| 706 |
-// } |
|
| 707 |
-// |
|
| 708 |
-// return sOutput; |
|
| 709 |
-// } |
|
| 710 |
-// |
|
| 711 |
-// /** |
|
| 712 |
-// * XSS 방지 처리. |
|
| 713 |
-// * |
|
| 714 |
-// * @param data |
|
| 715 |
-// * @return |
|
| 716 |
-// */ |
|
| 717 |
-// protected String unscript(String data) {
|
|
| 718 |
-// if (data == null || data.trim().equals("")) {
|
|
| 719 |
-// return ""; |
|
| 720 |
-// } |
|
| 721 |
-// |
|
| 722 |
-// String ret = data; |
|
| 723 |
-// |
|
| 724 |
-// ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script");
|
|
| 725 |
-// ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script");
|
|
| 726 |
-// |
|
| 727 |
-// ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object");
|
|
| 728 |
-// ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object");
|
|
| 729 |
-// |
|
| 730 |
-// ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet");
|
|
| 731 |
-// ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet");
|
|
| 732 |
-// |
|
| 733 |
-// ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 734 |
-// ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 735 |
-// |
|
| 736 |
-// ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 737 |
-// ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 738 |
-// |
|
| 739 |
-// return ret; |
|
| 740 |
-// } |
|
| 741 |
-// |
|
| 742 |
-// /*알림창괸리*/ |
|
| 743 |
-// @RequestMapping(value="/uss/ion/pwm/popupzoneList.do") |
|
| 744 |
-// public String selectPopupZoneList(ModelMap model , @ModelAttribute("searchVO") PopupzoneVO popupzoneVo, HttpSession session)
|
|
| 745 |
-// throws Exception {
|
|
| 746 |
-// |
|
| 747 |
-// /** paging */ |
|
| 748 |
-// if(popupzoneVo.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅
|
|
| 749 |
-// popupzoneVo.setPageUnit(8); |
|
| 750 |
-// }else {
|
|
| 751 |
-// popupzoneVo.setPageUnit(popupzoneVo.getPageUnit()); |
|
| 752 |
-// } |
|
| 753 |
-// |
|
| 754 |
-// PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 755 |
-// paginationInfo.setCurrentPageNo(popupzoneVo.getPageIndex()); |
|
| 756 |
-// paginationInfo.setRecordCountPerPage(popupzoneVo.getPageUnit()); |
|
| 757 |
-// paginationInfo.setPageSize(popupzoneVo.getPageSize()); |
|
| 758 |
-// |
|
| 759 |
-// popupzoneVo.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 760 |
-// popupzoneVo.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 761 |
-// popupzoneVo.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 762 |
-// |
|
| 763 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 764 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 765 |
-// popupzoneVo.setSiteId(loginVO.getSiteId()); |
|
| 766 |
-// } |
|
| 767 |
-// |
|
| 768 |
-// /** 알림창괸리 */ |
|
| 769 |
-// if("".equals(popupzoneVo.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
|
| 770 |
-// popupzoneVo.setSearchSortCnd("SORT");
|
|
| 771 |
-// popupzoneVo.setSearchSortOrd("asc");
|
|
| 772 |
-// } |
|
| 773 |
-// List<?> popupzoneList = egovPopupManageService.selectPopupzoneList(popupzoneVo); |
|
| 774 |
-// model.addAttribute("popupzoneList", popupzoneList);
|
|
| 775 |
-// |
|
| 776 |
-// /* 타겟 코드 */ |
|
| 777 |
-// ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
|
| 778 |
-// vo.setCodeId("COM037");
|
|
| 779 |
-// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); |
|
| 780 |
-// model.addAttribute("targetList", targetList);
|
|
| 781 |
-// |
|
| 782 |
-// /*메인이미지 코드*/ |
|
| 783 |
-// vo.setCodeId("ITN008");
|
|
| 784 |
-// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); |
|
| 785 |
-// model.addAttribute("imgCodeList", imgCode);
|
|
| 786 |
-// |
|
| 787 |
-// int totCnt = egovPopupManageService.selectPopupzoneListTotCnt(popupzoneVo); |
|
| 788 |
-// paginationInfo.setTotalRecordCount(totCnt); |
|
| 789 |
-// model.addAttribute("paginationInfo", paginationInfo);
|
|
| 790 |
-// return "uss/ion/pwm/PopupzoneList"; |
|
| 791 |
-// } |
|
| 792 |
-// |
|
| 793 |
-// /*알림창수정 view*/ |
|
| 794 |
-// @RequestMapping(value="/uss/ion/pwm/popupzoneModify.do") |
|
| 795 |
-// public String updatePopupZoneView(@RequestParam Map<?, ?> commandMap, |
|
| 796 |
-// HttpServletRequest request, Model model , HttpSession session) |
|
| 797 |
-// throws Exception {
|
|
| 798 |
-// |
|
| 799 |
-// PopupzoneVO popupzoneVO = new PopupzoneVO(); |
|
| 800 |
-// if("Modify".equals((String)commandMap.get("pageType"))){ //수정
|
|
| 801 |
-// String pozId = (String)commandMap.get("selectedId");
|
|
| 802 |
-// popupzoneVO = egovPopupManageService.selectPopupzoneVO(pozId); |
|
| 803 |
-// if(popupzoneVO != null){
|
|
| 804 |
-// popupzoneVO.setBeSort(popupzoneVO.getSort()); |
|
| 805 |
-// FileVO fileVO = new FileVO(); |
|
| 806 |
-// String atchFileId = popupzoneVO.getPopupzoneImageFile(); |
|
| 807 |
-// fileVO.setAtchFileId(atchFileId); |
|
| 808 |
-// List<FileVO> fileList = fileService.selectFileInfs(fileVO); |
|
| 809 |
-// model.addAttribute("fileList", fileList);
|
|
| 810 |
-// } |
|
| 811 |
-// }else{ //등록
|
|
| 812 |
-// } |
|
| 813 |
-// |
|
| 814 |
-// if(null != commandMap.get("seCd")){
|
|
| 815 |
-// popupzoneVO.setSeCd((String)(commandMap.get("seCd")));
|
|
| 816 |
-// } |
|
| 817 |
-// |
|
| 818 |
-// model.addAttribute("popupzoneVO", popupzoneVO);
|
|
| 819 |
-// |
|
| 820 |
-// /* 타겟 코드 */ |
|
| 821 |
-// ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
|
| 822 |
-// vo.setCodeId("COM037");
|
|
| 823 |
-// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); |
|
| 824 |
-// model.addAttribute("targetList", targetList);
|
|
| 825 |
-// |
|
| 826 |
-// /*메인이미지 코드*/ |
|
| 827 |
-// vo.setCodeId("ITN008");
|
|
| 828 |
-// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); |
|
| 829 |
-// model.addAttribute("imgCodeList", imgCode);
|
|
| 830 |
-// return "uss/ion/pwm/PopupZoneModify"; |
|
| 831 |
-// } |
|
| 832 |
-// |
|
| 833 |
-// /*알림창수정 */ |
|
| 834 |
-// @RequestMapping("/uss/ion/pwm/popupzoneUpdate.do")
|
|
| 835 |
-// public String updatePopupzone( |
|
| 836 |
-// @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO,
|
|
| 837 |
-// final MultipartHttpServletRequest multiRequest, |
|
| 838 |
-// HttpServletRequest request, |
|
| 839 |
-// RedirectAttributes redirectAttributes, |
|
| 840 |
-// HttpServletResponse response,Model model) |
|
| 841 |
-// throws Exception {
|
|
| 842 |
-// //popupzoneVO.setUpfile(managementPopupzoneFile(popupzoneVO.getSeq(),popupzoneVO.getUpfile(),multiRequest)); |
|
| 843 |
-// |
|
| 844 |
-// /*SortVO sortVO = new SortVO(); |
|
| 845 |
-// |
|
| 846 |
-// if(odl_popupzoneVO.getSort() > popupzoneVO.getSort()){
|
|
| 847 |
-// sortVO.setStartSort(popupzoneVO.getSort()); |
|
| 848 |
-// sortVO.setEndSort(odl_popupzoneVO.getSort()); |
|
| 849 |
-// egovPopupManageService.updateSortUp(sortVO); |
|
| 850 |
-// } |
|
| 851 |
-// else if(odl_popupzoneVO.getSort() < popupzoneVO.getSort()) {
|
|
| 852 |
-// sortVO.setStartSort(odl_popupzoneVO.getSort()); |
|
| 853 |
-// sortVO.setEndSort(popupzoneVO.getSort()); |
|
| 854 |
-// egovPopupManageService.updateSortDown(sortVO); |
|
| 855 |
-// }*/ |
|
| 856 |
-// |
|
| 857 |
-// /*파일등록 */ |
|
| 858 |
-// List<FileVO> result = null; |
|
| 859 |
-// String uploadFolder = ""; |
|
| 860 |
-// String orignlFileNm = ""; |
|
| 861 |
-// String atchFileId = ""; |
|
| 862 |
-// final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 863 |
-// |
|
| 864 |
-// if (!files.isEmpty()){
|
|
| 865 |
-// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); |
|
| 866 |
-// atchFileId = fileMngService.insertFileInfs(result); |
|
| 867 |
-// FileVO vo = null; |
|
| 868 |
-// Iterator<FileVO> iter = result.iterator(); |
|
| 869 |
-// while (iter.hasNext()) {
|
|
| 870 |
-// vo = iter.next(); |
|
| 871 |
-// orignlFileNm = vo.getOrignlFileNm(); |
|
| 872 |
-// atchFileId = vo.getAtchFileId(); |
|
| 873 |
-// } |
|
| 874 |
-// if (vo == null) {
|
|
| 875 |
-// } else {
|
|
| 876 |
-// popupzoneVO.setPopupzoneImage(orignlFileNm); |
|
| 877 |
-// popupzoneVO.setPopupzoneImageFile(atchFileId); |
|
| 878 |
-// } |
|
| 879 |
-// } |
|
| 880 |
-// |
|
| 881 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 882 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 883 |
-// popupzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 884 |
-// } |
|
| 885 |
-// popupzoneVO.setRegisterId(loginVO.getUniqId()); |
|
| 886 |
-// egovPopupManageService.updatePopupzone(popupzoneVO); |
|
| 887 |
-// |
|
| 888 |
-// if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
|
|
| 889 |
-// popupzoneVO.setSortOver("D");
|
|
| 890 |
-// } |
|
| 891 |
-// egovPopupManageService.resetVOSort(popupzoneVO); |
|
| 892 |
-// |
|
| 893 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
|
| 894 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd());
|
|
| 895 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 896 |
-// // return "forward:/uss/ion/pwm/popupzoneList.do"; |
|
| 897 |
-// } |
|
| 898 |
-// |
|
| 899 |
-// /*알림창삭제 */ |
|
| 900 |
-// @RequestMapping("/uss/ion/pwm/popupzoneListDelete.do")
|
|
| 901 |
-// public String deletePopupzone(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , @RequestParam Map<?, ?> commandMap , Model model) throws Exception {
|
|
| 902 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 903 |
-// PopupzoneVO popupzoneVO = new PopupzoneVO(); |
|
| 904 |
-// for(String id:del) {
|
|
| 905 |
-// try{
|
|
| 906 |
-// popupzoneVO = egovPopupManageService.selectPopupzoneVO(id); |
|
| 907 |
-// }catch(Exception e){
|
|
| 908 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg"));
|
|
| 909 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do");
|
|
| 910 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 911 |
-// } |
|
| 912 |
-// egovPopupManageService.deletePopupzone(id); |
|
| 913 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){
|
|
| 914 |
-// popupzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 915 |
-// } |
|
| 916 |
-// egovPopupManageService.resetSort(popupzoneVO); |
|
| 917 |
-// } |
|
| 918 |
-// |
|
| 919 |
-// String paramSeCd = ""; |
|
| 920 |
-// if(null != commandMap.get("seCd")) {
|
|
| 921 |
-// paramSeCd = "?seCd="+(String)commandMap.get("seCd") ;
|
|
| 922 |
-// } |
|
| 923 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 924 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do"+paramSeCd);
|
|
| 925 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 926 |
-// } |
|
| 927 |
-// |
|
| 928 |
-// /* 알림창 등록 */ |
|
| 929 |
-// @RequestMapping("/uss/ion/pwm/popupzoneInsert.do")
|
|
| 930 |
-// public String insertPopupzone( @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO, final MultipartHttpServletRequest multiRequest, RedirectAttributes redirectAttributes,
|
|
| 931 |
-// HttpServletRequest request, HttpServletResponse response,Model model) |
|
| 932 |
-// throws Exception {
|
|
| 933 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 934 |
-// String pozId = idgenService.getNextStringId(); |
|
| 935 |
-// popupzoneVO.setPozId(pozId); |
|
| 936 |
-// |
|
| 937 |
-// /*파일등록 */ |
|
| 938 |
-// List<FileVO> result = null; |
|
| 939 |
-// String uploadFolder = ""; |
|
| 940 |
-// String orignlFileNm = ""; |
|
| 941 |
-// String atchFileId = ""; |
|
| 942 |
-// final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 943 |
-// if (!files.isEmpty()){
|
|
| 944 |
-// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); |
|
| 945 |
-// atchFileId = fileMngService.insertFileInfs(result); |
|
| 946 |
-// FileVO vo = null; |
|
| 947 |
-// Iterator<FileVO> iter = result.iterator(); |
|
| 948 |
-// while (iter.hasNext()) {
|
|
| 949 |
-// vo = iter.next(); |
|
| 950 |
-// orignlFileNm = vo.getOrignlFileNm(); |
|
| 951 |
-// atchFileId = vo.getAtchFileId(); |
|
| 952 |
-// } |
|
| 953 |
-// if (vo == null) {
|
|
| 954 |
-// } else {
|
|
| 955 |
-// popupzoneVO.setPopupzoneImage(orignlFileNm); |
|
| 956 |
-// popupzoneVO.setPopupzoneImageFile(atchFileId); |
|
| 957 |
-// } |
|
| 958 |
-// } |
|
| 959 |
-// |
|
| 960 |
-// popupzoneVO.setRegisterId(loginVO.getUniqId()); |
|
| 961 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 962 |
-// popupzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 963 |
-// } |
|
| 964 |
-// |
|
| 965 |
-// egovPopupManageService.insertPopupzone(popupzoneVO); |
|
| 966 |
-// //sort 1부터 재 정렬 |
|
| 967 |
-// popupzoneVO.setSortOver("D");
|
|
| 968 |
-// egovPopupManageService.resetSort(popupzoneVO); |
|
| 969 |
-// |
|
| 970 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
|
| 971 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd());
|
|
| 972 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 973 |
-// //return "forward:/uss/ion/pwm/popupzoneList.do"; |
|
| 974 |
-// } |
|
| 975 |
-// |
|
| 976 |
-// /* 메인이미지 등록 */ |
|
| 977 |
-// @RequestMapping("/uss/ion/pwm/mainzoneInsert.do")
|
|
| 978 |
-// public String insertMainzone( @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO, final MultipartHttpServletRequest multiRequest,
|
|
| 979 |
-// HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes , Model model) |
|
| 980 |
-// throws Exception {
|
|
| 981 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 982 |
-// |
|
| 983 |
-// String mainId = idgenServiceMain.getNextStringId(); |
|
| 984 |
-// mainzoneVO.setMazId(mainId); |
|
| 985 |
-// mainzoneVO.setRegisterId(loginVO.getUniqId()); |
|
| 986 |
-// //SortVO sortVO = new SortVO(); |
|
| 987 |
-// //sortVO.setStartSort(mainzoneVO.getSort()); |
|
| 988 |
-// //sortVO.setEndSort(egovPopupManageService.getMainMaxSort()); |
|
| 989 |
-// |
|
| 990 |
-// /*파일등록 */ |
|
| 991 |
-// List<FileVO> result = null; |
|
| 992 |
-// String uploadFolder = ""; |
|
| 993 |
-// String orignlFileNm = ""; |
|
| 994 |
-// String atchFileId = ""; |
|
| 995 |
-// final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 996 |
-// if (!files.isEmpty()){
|
|
| 997 |
-// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); |
|
| 998 |
-// atchFileId = fileMngService.insertFileInfs(result); |
|
| 999 |
-// FileVO vo = null; |
|
| 1000 |
-// Iterator<FileVO> iter = result.iterator(); |
|
| 1001 |
-// while (iter.hasNext()) {
|
|
| 1002 |
-// vo = iter.next(); |
|
| 1003 |
-// orignlFileNm = vo.getOrignlFileNm(); |
|
| 1004 |
-// atchFileId = vo.getAtchFileId(); |
|
| 1005 |
-// } |
|
| 1006 |
-// if (vo == null) {
|
|
| 1007 |
-// } else {
|
|
| 1008 |
-// mainzoneVO.setMainzoneImage(orignlFileNm); |
|
| 1009 |
-// mainzoneVO.setMainzoneImageFile(atchFileId); |
|
| 1010 |
-// } |
|
| 1011 |
-// } |
|
| 1012 |
-// |
|
| 1013 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 1014 |
-// mainzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 1015 |
-// } |
|
| 1016 |
-// |
|
| 1017 |
-// egovPopupManageService.insertMainzone(mainzoneVO); |
|
| 1018 |
-// //sort 1부터 재 정렬 |
|
| 1019 |
-// mainzoneVO.setSortOver("D"); //앞쪽에 넣음
|
|
| 1020 |
-// egovPopupManageService.resetMainVOSort(mainzoneVO); |
|
| 1021 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
|
| 1022 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do");
|
|
| 1023 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1024 |
-// //return "forward:/uss/ion/pwm/mainzoneList.do"; |
|
| 1025 |
-// } |
|
| 1026 |
-// |
|
| 1027 |
-// |
|
| 1028 |
-// /*메인 이미지삭제 */ |
|
| 1029 |
-// @RequestMapping("/uss/ion/pwm/mainzoneListDelete.do")
|
|
| 1030 |
-// public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception {
|
|
| 1031 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 1032 |
-// MainzoneVO mainzoneVO = new MainzoneVO(); |
|
| 1033 |
-// for(String id:del) {
|
|
| 1034 |
-// try{
|
|
| 1035 |
-// mainzoneVO = egovPopupManageService.selectMainzoneVO(id); |
|
| 1036 |
-// }catch(Exception e){
|
|
| 1037 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg"));
|
|
| 1038 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do");
|
|
| 1039 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1040 |
-// } |
|
| 1041 |
-// egovPopupManageService.deleteMainzone(id); |
|
| 1042 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){
|
|
| 1043 |
-// mainzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 1044 |
-// } |
|
| 1045 |
-// egovPopupManageService.resetMainVOSort(mainzoneVO); |
|
| 1046 |
-// } |
|
| 1047 |
-// |
|
| 1048 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 1049 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do");
|
|
| 1050 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1051 |
-// } |
|
| 1052 |
-// |
|
| 1053 |
-// |
|
| 1054 |
-// /*알림창수정 */ |
|
| 1055 |
-// @RequestMapping("/uss/ion/pwm/mainzoneUpdate.do")
|
|
| 1056 |
-// public String updateMainzone( |
|
| 1057 |
-// @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO,
|
|
| 1058 |
-// final MultipartHttpServletRequest multiRequest, |
|
| 1059 |
-// HttpServletRequest request, |
|
| 1060 |
-// RedirectAttributes redirectAttributes, |
|
| 1061 |
-// HttpServletResponse response,Model model) |
|
| 1062 |
-// throws Exception {
|
|
| 1063 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 1064 |
-// |
|
| 1065 |
-// /*파일등록 */ |
|
| 1066 |
-// List<FileVO> result = null; |
|
| 1067 |
-// String uploadFolder = ""; |
|
| 1068 |
-// String orignlFileNm = ""; |
|
| 1069 |
-// String atchFileId = ""; |
|
| 1070 |
-// final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 1071 |
-// |
|
| 1072 |
-// if (!files.isEmpty()){
|
|
| 1073 |
-// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); |
|
| 1074 |
-// atchFileId = fileMngService.insertFileInfs(result); |
|
| 1075 |
-// FileVO vo = null; |
|
| 1076 |
-// Iterator<FileVO> iter = result.iterator(); |
|
| 1077 |
-// while (iter.hasNext()) {
|
|
| 1078 |
-// vo = iter.next(); |
|
| 1079 |
-// orignlFileNm = vo.getOrignlFileNm(); |
|
| 1080 |
-// atchFileId = vo.getAtchFileId(); |
|
| 1081 |
-// } |
|
| 1082 |
-// if (vo == null) {
|
|
| 1083 |
-// } else {
|
|
| 1084 |
-// mainzoneVO.setMainzoneImage(orignlFileNm); |
|
| 1085 |
-// mainzoneVO.setMainzoneImageFile(atchFileId); |
|
| 1086 |
-// } |
|
| 1087 |
-// } |
|
| 1088 |
-// mainzoneVO.setRegisterId(loginVO.getUniqId()); |
|
| 1089 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 1090 |
-// mainzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 1091 |
-// } |
|
| 1092 |
-// |
|
| 1093 |
-// egovPopupManageService.updateMainzone(mainzoneVO); |
|
| 1094 |
-// |
|
| 1095 |
-// //sort 1부터 재 정렬 |
|
| 1096 |
-// if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
|
|
| 1097 |
-// mainzoneVO.setSortOver("D");
|
|
| 1098 |
-// } |
|
| 1099 |
-// egovPopupManageService.resetMainVOSort(mainzoneVO); |
|
| 1100 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
|
| 1101 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do");
|
|
| 1102 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1103 |
-// } |
|
| 1104 |
-// |
|
| 1105 |
-// /** |
|
| 1106 |
-// * 통합링크관리 목록을 상세조회 조회한다. |
|
| 1107 |
-// * @param popupManageVO |
|
| 1108 |
-// * @param commandMap |
|
| 1109 |
-// * @param model |
|
| 1110 |
-// * @return |
|
| 1111 |
-// * "/uss/ion/pwm/detailPopupManage" |
|
| 1112 |
-// * @throws Exception |
|
| 1113 |
-// */ |
|
| 1114 |
-// @RequestMapping(value = "/uss/ion/bnr/removePopupList.do") |
|
| 1115 |
-// public String deletePopupList(PopupManageVO popupManageVO, @RequestParam Map<?, ?> commandMap, @RequestParam("checkList") String[] checkList, RedirectAttributes redirectAttributes, ModelMap model) throws Exception {
|
|
| 1116 |
-// try{
|
|
| 1117 |
-// for(String id:checkList) {
|
|
| 1118 |
-// popupManageVO.setPopupId(id); |
|
| 1119 |
-// popupManageVO.setDelSttus("Y");
|
|
| 1120 |
-// egovPopupManageService.deletePopup(popupManageVO); |
|
| 1121 |
-// } |
|
| 1122 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 1123 |
-// }catch (Exception e) {
|
|
| 1124 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete"));
|
|
| 1125 |
-// } |
|
| 1126 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do");
|
|
| 1127 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1128 |
-// } |
|
| 1129 |
-// |
|
| 1130 |
-// |
|
| 1131 |
-// |
|
| 1132 |
-// /*소셜허브괸리*/ |
|
| 1133 |
-// @RequestMapping(value="/uss/ion/pwm/socialList.do") |
|
| 1134 |
-// public String selectSocialList(ModelMap model , @ModelAttribute("searchVO") SocialVO socialVO, HttpSession session)
|
|
| 1135 |
-// throws Exception {
|
|
| 1136 |
-// |
|
| 1137 |
-// /** paging */ |
|
| 1138 |
-// if(socialVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅
|
|
| 1139 |
-// socialVO.setPageUnit(8); |
|
| 1140 |
-// }else {
|
|
| 1141 |
-// socialVO.setPageUnit(socialVO.getPageUnit()); |
|
| 1142 |
-// } |
|
| 1143 |
-// |
|
| 1144 |
-// PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 1145 |
-// paginationInfo.setCurrentPageNo(socialVO.getPageIndex()); |
|
| 1146 |
-// paginationInfo.setRecordCountPerPage(socialVO.getPageUnit()); |
|
| 1147 |
-// paginationInfo.setPageSize(socialVO.getPageSize()); |
|
| 1148 |
-// |
|
| 1149 |
-// socialVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 1150 |
-// socialVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 1151 |
-// socialVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 1152 |
-// |
|
| 1153 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 1154 |
-// |
|
| 1155 |
-// /** 소설괸리 */ |
|
| 1156 |
-// if("".equals(socialVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
|
| 1157 |
-// socialVO.setSearchSortCnd("SORT");
|
|
| 1158 |
-// socialVO.setSearchSortOrd("asc");
|
|
| 1159 |
-// } |
|
| 1160 |
-// List<SocialVO> socialList = egovPopupManageService.selectSocialList(socialVO); |
|
| 1161 |
-// model.addAttribute("socialList", socialList);
|
|
| 1162 |
-// |
|
| 1163 |
-// /* 타겟 코드 */ |
|
| 1164 |
-// ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
|
| 1165 |
-// vo.setCodeId("COM037");
|
|
| 1166 |
-// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); |
|
| 1167 |
-// model.addAttribute("targetList", targetList);
|
|
| 1168 |
-// |
|
| 1169 |
-// /*메인이미지 코드*/ |
|
| 1170 |
-// vo.setCodeId("ITN016");
|
|
| 1171 |
-// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); |
|
| 1172 |
-// model.addAttribute("imgCodeList", imgCode);
|
|
| 1173 |
-// |
|
| 1174 |
-// paginationInfo.setTotalRecordCount(socialList.size()> 0 ? ((SocialVO)socialList.get(0)).getTotCnt() : 0); |
|
| 1175 |
-// model.addAttribute("paginationInfo", paginationInfo);
|
|
| 1176 |
-// return "uss/ion/pwm/SocialList"; |
|
| 1177 |
-// } |
|
| 1178 |
-// |
|
| 1179 |
-// |
|
| 1180 |
-// |
|
| 1181 |
-// /*소셜창수정 view*/ |
|
| 1182 |
-// @RequestMapping(value="/uss/ion/pwm/socialModify.do") |
|
| 1183 |
-// public String updateSocialModifyView(@RequestParam Map<?, ?> commandMap, |
|
| 1184 |
-// HttpServletRequest request, Model model , HttpSession session) |
|
| 1185 |
-// throws Exception {
|
|
| 1186 |
-// |
|
| 1187 |
-// SocialVO socialVO = new SocialVO(); |
|
| 1188 |
-// if("Modify".equals((String)commandMap.get("pageType"))){ //수정
|
|
| 1189 |
-// String socialId = (String)commandMap.get("selectedId");
|
|
| 1190 |
-// //socialVO = egovPopupManageService.selectPopupzoneVO(pozId); |
|
| 1191 |
-// socialVO = egovPopupManageService.selectSocialVO(socialId); |
|
| 1192 |
-// if(socialVO != null){
|
|
| 1193 |
-// socialVO.setBeSort(socialVO.getSort()); |
|
| 1194 |
-// FileVO fileVO = new FileVO(); |
|
| 1195 |
-// String atchFileId = socialVO.getSocialImageFile(); |
|
| 1196 |
-// fileVO.setAtchFileId(atchFileId); |
|
| 1197 |
-// List<FileVO> fileList = fileService.selectFileInfs(fileVO); |
|
| 1198 |
-// model.addAttribute("fileList", fileList);
|
|
| 1199 |
-// } |
|
| 1200 |
-// }else{ //등록
|
|
| 1201 |
-// } |
|
| 1202 |
-// |
|
| 1203 |
-// model.addAttribute("socialVO", socialVO);
|
|
| 1204 |
-// |
|
| 1205 |
-// /* 타겟 코드 */ |
|
| 1206 |
-// ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
|
| 1207 |
-// vo.setCodeId("COM037");
|
|
| 1208 |
-// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); |
|
| 1209 |
-// model.addAttribute("targetList", targetList);
|
|
| 1210 |
-// |
|
| 1211 |
-// /*소셜허브종류 코드*/ |
|
| 1212 |
-// vo.setCodeId("ITN016");
|
|
| 1213 |
-// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); |
|
| 1214 |
-// model.addAttribute("imgCodeList", imgCode);
|
|
| 1215 |
-// //return "uss/ion/pwm/PopupZoneModify"; |
|
| 1216 |
-// return "uss/ion/pwm/SocialModify"; |
|
| 1217 |
-// } |
|
| 1218 |
-// |
|
| 1219 |
-// @RequestMapping(value = "/uss/ion/pwm/socialDelete.do") |
|
| 1220 |
-// public String deleteSocial(@RequestParam Map<?, ?> commandMap, @RequestParam("del") String[] del , RedirectAttributes redirectAttributes, ModelMap model) throws Exception {
|
|
| 1221 |
-// try{
|
|
| 1222 |
-// for(String id:del) {
|
|
| 1223 |
-// egovPopupManageService.deleteSocial(id); |
|
| 1224 |
-// } |
|
| 1225 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 1226 |
-// }catch (Exception e) {
|
|
| 1227 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete"));
|
|
| 1228 |
-// } |
|
| 1229 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/socialList.do");
|
|
| 1230 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1231 |
-// } |
|
| 1232 |
-// |
|
| 1233 |
-// |
|
| 1234 |
-// |
|
| 1235 | 314 |
}(No newline at end of file) |
--- src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupManageController.java
... | ... | @@ -1,306 +0,0 @@ |
| 1 | -package itn.com.uss.ion.bnr.pop.web; | |
| 2 | - | |
| 3 | -import java.util.ArrayList; | |
| 4 | -import java.util.HashMap; | |
| 5 | -import java.util.List; | |
| 6 | -import java.util.Map; | |
| 7 | - | |
| 8 | -import javax.annotation.Resource; | |
| 9 | -import javax.servlet.http.HttpServletRequest; | |
| 10 | -import javax.servlet.http.HttpSession; | |
| 11 | - | |
| 12 | -import org.slf4j.Logger; | |
| 13 | -import org.slf4j.LoggerFactory; | |
| 14 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 15 | -import org.springframework.stereotype.Controller; | |
| 16 | -import org.springframework.ui.Model; | |
| 17 | -import org.springframework.ui.ModelMap; | |
| 18 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 19 | -import org.springframework.web.bind.annotation.RequestParam; | |
| 20 | -import org.springframework.web.servlet.mvc.support.RedirectAttributes; | |
| 21 | -import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 22 | - | |
| 23 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 24 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 25 | -import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; | |
| 26 | -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 27 | -import itn.com.cmm.ComDefaultCodeVO; | |
| 28 | -import itn.com.cmm.EgovMessageSource; | |
| 29 | -import itn.com.cmm.LoginVO; | |
| 30 | -import itn.com.cmm.service.EgovCmmUseService; | |
| 31 | -import itn.com.cmm.service.EgovFileMngService; | |
| 32 | -import itn.com.cmm.service.EgovFileMngUtil; | |
| 33 | -import itn.com.cmm.service.FileVO; | |
| 34 | -import itn.com.cmm.util.RedirectUrlMaker; | |
| 35 | -import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; | |
| 36 | -import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 37 | -import itn.let.sym.site.service.EgovSiteManagerService; | |
| 38 | - | |
| 39 | -/** | |
| 40 | - * 개요 | |
| 41 | - * - 팝업창에 대한 Controller를 정의한다. | |
| 42 | - * | |
| 43 | - * 상세내용 | |
| 44 | - * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 45 | - * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자 화면 보기로 구분된다. | |
| 46 | - * @author 이창원 | |
| 47 | - * @version 1.0 | |
| 48 | - * @created 05-8-2009 오후 2:19:57 | |
| 49 | - * <pre> | |
| 50 | - * << 개정이력(Modification Information) >> | |
| 51 | - * | |
| 52 | - * 수정일 수정자 수정내용 | |
| 53 | - * ------- -------- --------------------------- | |
| 54 | - * 2025.02.24 이호영 최초 생성 | |
| 55 | - * | |
| 56 | - * </pre> | |
| 57 | - */ | |
| 58 | - | |
| 59 | -@Controller | |
| 60 | -public class MainPopupManageController { | |
| 61 | - | |
| 62 | - private static final Logger LOGGER = LoggerFactory.getLogger(MainPopupManageController.class); | |
| 63 | - | |
| 64 | - @Autowired | |
| 65 | - private DefaultBeanValidator beanValidator; | |
| 66 | - | |
| 67 | - /** EgovMessageSource */ | |
| 68 | - @Resource(name = "egovMessageSource") | |
| 69 | - EgovMessageSource egovMessageSource; | |
| 70 | - | |
| 71 | - /** EgovPropertyService */ | |
| 72 | - @Resource(name = "propertiesService") | |
| 73 | - protected EgovPropertyService propertiesService; | |
| 74 | - | |
| 75 | - /** EgovPopupManageService */ | |
| 76 | - @Resource(name = "subMainZoneManageService") | |
| 77 | - private SubMainZoneManageService subMainZoneManageService; | |
| 78 | - | |
| 79 | - /** cmmUseService */ | |
| 80 | - @Resource(name = "EgovCmmUseService") | |
| 81 | - private EgovCmmUseService cmmUseService; | |
| 82 | - | |
| 83 | - @Resource(name="EgovFileMngUtil") | |
| 84 | - private EgovFileMngUtil fileUtil; | |
| 85 | - | |
| 86 | - @Resource(name="EgovFileMngService") | |
| 87 | - private EgovFileMngService fileMngService; | |
| 88 | - | |
| 89 | - @Resource(name = "egovPopupZoneIdGnrService") | |
| 90 | - private EgovIdGnrService idgenService; | |
| 91 | - | |
| 92 | -// @Resource(name = "egovMainZoneIdGnrService") | |
| 93 | -// private EgovIdGnrService idgenServiceMain; | |
| 94 | - | |
| 95 | - @Resource(name = "egovSubMainZoneIdGnrService") | |
| 96 | - private EgovIdGnrService idgenServiceSubMain; | |
| 97 | - | |
| 98 | - @Resource(name = "egovSiteManagerService") | |
| 99 | - EgovSiteManagerService egovSiteManagerService; | |
| 100 | - | |
| 101 | - @Resource(name = "EgovFileMngService") | |
| 102 | - private EgovFileMngService fileService; | |
| 103 | - | |
| 104 | - | |
| 105 | - | |
| 106 | - | |
| 107 | - /*메인이미지 관리*/ | |
| 108 | - @RequestMapping(value="/uss/ion/bnr/pop/mainPopupList.do") | |
| 109 | - public String popupList(ModelMap model , MainzoneVO mainzoneVO , HttpSession session ) throws Exception { | |
| 110 | - LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 111 | - | |
| 112 | - | |
| 113 | - if(mainzoneVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 | |
| 114 | - mainzoneVO.setPageUnit(8); | |
| 115 | - }else { | |
| 116 | - mainzoneVO.setPageUnit(mainzoneVO.getPageUnit()); | |
| 117 | - } | |
| 118 | - | |
| 119 | - /** pageing */ | |
| 120 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 121 | - paginationInfo.setCurrentPageNo(mainzoneVO.getPageIndex()); | |
| 122 | - paginationInfo.setRecordCountPerPage(mainzoneVO.getPageUnit()); | |
| 123 | - paginationInfo.setPageSize(mainzoneVO.getPageSize()); | |
| 124 | - | |
| 125 | - mainzoneVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 126 | - mainzoneVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 127 | - mainzoneVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 128 | - | |
| 129 | - if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //각각의 사이트 | |
| 130 | - mainzoneVO.setSiteId(loginVO.getSiteId()); | |
| 131 | - } | |
| 132 | - List<?> mainzoneList = subMainZoneManageService.selectSubMainzoneList(mainzoneVO); | |
| 133 | - model.addAttribute("mainzoneList", mainzoneList); | |
| 134 | - | |
| 135 | - int totCnt = subMainZoneManageService.selectSubMainzoneCount(mainzoneVO); | |
| 136 | - | |
| 137 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 138 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 139 | - | |
| 140 | - return "uss/ion/bnr/sub/subMainZoneList"; | |
| 141 | - } | |
| 142 | - | |
| 143 | - | |
| 144 | - | |
| 145 | - /*알림창등록/수정 view*/ | |
| 146 | - @RequestMapping(value="/uss/ion/bnr/pop/mainPopupModify.do") | |
| 147 | - public String popupModify(@RequestParam Map<?, ?> commandMap, | |
| 148 | - HttpServletRequest request, Model model, HttpSession session) | |
| 149 | - throws Exception { | |
| 150 | - | |
| 151 | - MainzoneVO mainzoneVO = new MainzoneVO(); | |
| 152 | - if("Modify".equals((String)commandMap.get("pageType"))){ //수정 | |
| 153 | - String mazId = (String)commandMap.get("selectedId"); | |
| 154 | - mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(mazId); | |
| 155 | - String sNtceBgnde = mainzoneVO.getNtceBgnde(); | |
| 156 | - String sNtceEndde = mainzoneVO.getNtceEndde(); | |
| 157 | - | |
| 158 | - if(sNtceBgnde != null && sNtceEndde != null ) { | |
| 159 | - | |
| 160 | - mainzoneVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); | |
| 161 | - mainzoneVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); | |
| 162 | - | |
| 163 | - mainzoneVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); | |
| 164 | - mainzoneVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); | |
| 165 | - | |
| 166 | - //게시기간 시작일자(시) | |
| 167 | - model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 168 | - //게시기간 시작일자(분) | |
| 169 | - model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 170 | - //게시기간 종료일자(시) | |
| 171 | - model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 172 | - //게시기간 종료일자(분) | |
| 173 | - model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 174 | - | |
| 175 | - | |
| 176 | - } | |
| 177 | - | |
| 178 | - if(mainzoneVO != null){ | |
| 179 | - mainzoneVO.setBeSort(mainzoneVO.getSort()); | |
| 180 | - | |
| 181 | - FileVO fileVO = new FileVO(); | |
| 182 | - String atchFileId = mainzoneVO.getMainzoneImageFile(); | |
| 183 | - fileVO.setAtchFileId(atchFileId); | |
| 184 | - List<FileVO> fileList = fileService.selectFileInfs(fileVO); | |
| 185 | - model.addAttribute("fileList", fileList); | |
| 186 | - } | |
| 187 | - }else{ //등록 | |
| 188 | - | |
| 189 | - //게시기간 시작일자(시) | |
| 190 | - model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 191 | - //게시기간 시작일자(분) | |
| 192 | - model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 193 | - //게시기간 종료일자(시) | |
| 194 | - model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 195 | - //게시기간 종료일자(분) | |
| 196 | - model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 197 | - | |
| 198 | - } | |
| 199 | - | |
| 200 | - //model.addAttribute("sortList", sortList); | |
| 201 | - model.addAttribute("mainzoneVO", mainzoneVO); | |
| 202 | - System.out.println("mainzoneVO :: "+ mainzoneVO.toString()); | |
| 203 | - | |
| 204 | - /* 타겟 코드 */ | |
| 205 | - ComDefaultCodeVO vo = new ComDefaultCodeVO(); | |
| 206 | - vo.setCodeId("COM037"); | |
| 207 | - //List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); | |
| 208 | - //model.addAttribute("targetList", targetList); | |
| 209 | - | |
| 210 | - | |
| 211 | - return "uss/ion/bnr/sub/subMainZoneModify"; | |
| 212 | - } | |
| 213 | - | |
| 214 | - | |
| 215 | - | |
| 216 | - /*메인 이미지삭제 */ | |
| 217 | - @RequestMapping(value="/uss/ion/bnr/pop/mainPopupListDelete.do") | |
| 218 | - public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception { | |
| 219 | - LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 220 | - MainzoneVO mainzoneVO = new MainzoneVO(); | |
| 221 | - for(String id:del) { | |
| 222 | - try{ | |
| 223 | - mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(id); | |
| 224 | - }catch(Exception e){ | |
| 225 | - redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); | |
| 226 | - RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); | |
| 227 | - return redirectUrlMaker.getRedirectUrl(); | |
| 228 | - } | |
| 229 | - subMainZoneManageService.deleteSubMainzone(id); | |
| 230 | - if(null != loginVO && !"super".equals(loginVO.getSiteId())){ | |
| 231 | - mainzoneVO.setSiteId(loginVO.getSiteId()); | |
| 232 | - } | |
| 233 | - subMainZoneManageService.resetSubMainVOSort(mainzoneVO); | |
| 234 | - } | |
| 235 | - | |
| 236 | - redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); | |
| 237 | - RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); | |
| 238 | - return redirectUrlMaker.getRedirectUrl(); | |
| 239 | - } | |
| 240 | - | |
| 241 | - | |
| 242 | - | |
| 243 | - | |
| 244 | - | |
| 245 | - | |
| 246 | - | |
| 247 | - | |
| 248 | - | |
| 249 | - | |
| 250 | - /** | |
| 251 | - * 시간을 LIST를 반환한다. | |
| 252 | - * @return List | |
| 253 | - * @throws | |
| 254 | - */ | |
| 255 | - @SuppressWarnings("unused") | |
| 256 | - private List<ComDefaultCodeVO> getTimeHH() { | |
| 257 | - ArrayList<ComDefaultCodeVO> listHH = new ArrayList<ComDefaultCodeVO>(); | |
| 258 | - HashMap<?, ?> hmHHMM; | |
| 259 | - for (int i = 0; i <= 24; i++) { | |
| 260 | - String sHH = ""; | |
| 261 | - String strI = String.valueOf(i); | |
| 262 | - if (i < 10) { | |
| 263 | - sHH = "0" + strI; | |
| 264 | - } else { | |
| 265 | - sHH = strI; | |
| 266 | - } | |
| 267 | - | |
| 268 | - ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); | |
| 269 | - codeVO.setCode(sHH); | |
| 270 | - codeVO.setCodeNm(sHH); | |
| 271 | - | |
| 272 | - listHH.add(codeVO); | |
| 273 | - } | |
| 274 | - | |
| 275 | - return listHH; | |
| 276 | - } | |
| 277 | - | |
| 278 | - /** | |
| 279 | - * 분을 LIST를 반환한다. | |
| 280 | - * @return List | |
| 281 | - * @throws | |
| 282 | - */ | |
| 283 | - @SuppressWarnings("unused") | |
| 284 | - private List<ComDefaultCodeVO> getTimeMM() { | |
| 285 | - ArrayList<ComDefaultCodeVO> listMM = new ArrayList<ComDefaultCodeVO>(); | |
| 286 | - HashMap<?, ?> hmHHMM; | |
| 287 | - for (int i = 0; i <= 60; i++) { | |
| 288 | - | |
| 289 | - String sMM = ""; | |
| 290 | - String strI = String.valueOf(i); | |
| 291 | - if (i < 10) { | |
| 292 | - sMM = "0" + strI; | |
| 293 | - } else { | |
| 294 | - sMM = strI; | |
| 295 | - } | |
| 296 | - | |
| 297 | - ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); | |
| 298 | - codeVO.setCode(sMM); | |
| 299 | - codeVO.setCodeNm(sMM); | |
| 300 | - | |
| 301 | - listMM.add(codeVO); | |
| 302 | - } | |
| 303 | - return listMM; | |
| 304 | - } | |
| 305 | - | |
| 306 | -}(No newline at end of file) |
--- src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java
+++ src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java
... | ... | @@ -38,6 +38,7 @@ |
| 38 | 38 |
import itn.com.cmm.service.EgovFileMngUtil; |
| 39 | 39 |
import itn.com.cmm.service.FileVO; |
| 40 | 40 |
import itn.com.cmm.util.RedirectUrlMaker; |
| 41 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupVO; |
|
| 41 | 42 |
import itn.com.uss.ion.bnr.service.Banner; |
| 42 | 43 |
import itn.com.uss.ion.bnr.service.BannerVO; |
| 43 | 44 |
import itn.com.uss.ion.bnr.service.EgovBannerService; |
... | ... | @@ -114,6 +115,9 @@ |
| 114 | 115 |
|
| 115 | 116 |
@Resource(name = "egovSubMainZoneIdGnrService") |
| 116 | 117 |
private EgovIdGnrService idgenServiceSubMain; |
| 118 |
+ |
|
| 119 |
+ @Resource(name = "egovMainPopupIdGnrService") |
|
| 120 |
+ private EgovIdGnrService idgenServiceMainPopup; |
|
| 117 | 121 |
|
| 118 | 122 |
@Resource(name = "egovBannerService") |
| 119 | 123 |
private EgovBannerService egovBannerService; |
... | ... | @@ -390,6 +394,7 @@ |
| 390 | 394 |
public ModelAndView insertFmsFileInsertAjax(@RequestParam Map<?, ?> commandMap, |
| 391 | 395 |
@ModelAttribute("fmsFileVO") FmsFileVO fmsFileVO,
|
| 392 | 396 |
MainzoneVO mainzoneVO, |
| 397 |
+ MainPopupVO mainPopupVO, |
|
| 393 | 398 |
PopupzoneVO popupzoneVO, |
| 394 | 399 |
Banner banner, |
| 395 | 400 |
BannerVO bannerVO, |
... | ... | @@ -419,6 +424,8 @@ |
| 419 | 424 |
KeyStr = "MAZ_"; |
| 420 | 425 |
}else if("subMainzone".equals(fileVO.getMenuName())) { //메인비주얼
|
| 421 | 426 |
KeyStr = "SMAZ_"; |
| 427 |
+ }else if("mainPopup".equals(fileVO.getMenuName())) { //메인비주얼
|
|
| 428 |
+ KeyStr = "MPP_"; |
|
| 422 | 429 |
}else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼
|
| 423 | 430 |
KeyStr = "POZ_"; |
| 424 | 431 |
}else if("banner".equals(fileVO.getMenuName())) { //매뉴별 비주얼
|
... | ... | @@ -446,6 +453,9 @@ |
| 446 | 453 |
} else {
|
| 447 | 454 |
mainzoneVO.setMainzoneImage(orignlFileNm); |
| 448 | 455 |
mainzoneVO.setMainzoneImageFile(atchFileId); |
| 456 |
+ |
|
| 457 |
+ mainPopupVO.setMainzoneImage(orignlFileNm); |
|
| 458 |
+ mainPopupVO.setMainzoneImageFile(atchFileId); |
|
| 449 | 459 |
|
| 450 | 460 |
fmsFileVO.setFmsImage(orignlFileNm); |
| 451 | 461 |
fmsFileVO.setFmsImageFile(atchFileId); |
... | ... | @@ -482,14 +492,24 @@ |
| 482 | 492 |
egovPopupManageService.insertMainzone(mainzoneVO); |
| 483 | 493 |
mainzoneVO.setSortOver("D"); //앞쪽에 넣음
|
| 484 | 494 |
egovPopupManageService.resetMainVOSort(mainzoneVO); |
| 485 |
- }else if("subMainzone".equals(fileVO.getMenuName())) { // 서브 메인비주얼 새글
|
|
| 495 |
+ } |
|
| 496 |
+ else if("subMainzone".equals(fileVO.getMenuName())) { // 서브 메인비주얼 새글
|
|
| 486 | 497 |
String mainId = idgenServiceSubMain.getNextStringId(); |
| 487 | 498 |
mainzoneVO.setMazId(mainId); |
| 488 | 499 |
mainzoneVO.setRegisterId(loginVO.getUniqId()); |
| 489 | 500 |
egovPopupManageService.insertSubMainzone(mainzoneVO); |
| 490 | 501 |
mainzoneVO.setSortOver("D"); //앞쪽에 넣음
|
| 491 | 502 |
egovPopupManageService.resetSubMainVOSort(mainzoneVO); |
| 492 |
- }else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼
|
|
| 503 |
+ } |
|
| 504 |
+ else if("mainPopup".equals(fileVO.getMenuName())) { // 메인팝업 새글
|
|
| 505 |
+ String mainId = idgenServiceMainPopup.getNextStringId(); |
|
| 506 |
+ mainPopupVO.setPopId(mainId); |
|
| 507 |
+ mainPopupVO.setRegisterId(loginVO.getUniqId()); |
|
| 508 |
+ egovPopupManageService.insertMainPopup(mainPopupVO); |
|
| 509 |
+ mainPopupVO.setSortOver("D"); //앞쪽에 넣음
|
|
| 510 |
+ egovPopupManageService.resetMainPopup(mainPopupVO); |
|
| 511 |
+ } |
|
| 512 |
+ else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼
|
|
| 493 | 513 |
String pozId = idgenService.getNextStringId(); |
| 494 | 514 |
popupzoneVO.setPozId(pozId); |
| 495 | 515 |
popupzoneVO.setRegisterId(loginVO.getUniqId()); |
... | ... | @@ -538,7 +558,14 @@ |
| 538 | 558 |
if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
|
| 539 | 559 |
mainzoneVO.setSortOver("D");
|
| 540 | 560 |
} |
| 541 |
- egovPopupManageService.resetSubMainVOSort(mainzoneVO); |
|
| 561 |
+ egovPopupManageService.resetMainVOSort(mainzoneVO); |
|
| 562 |
+ }else if("mainPopup".equals(fileVO.getMenuName())) { // 메인팝업 새글
|
|
| 563 |
+ egovPopupManageService.updateMainPopup(mainPopupVO); |
|
| 564 |
+ if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
|
|
| 565 |
+ mainzoneVO.setSortOver("D");
|
|
| 566 |
+ } |
|
| 567 |
+ egovPopupManageService.resetMainPopup(mainPopupVO); |
|
| 568 |
+ |
|
| 542 | 569 |
}else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼
|
| 543 | 570 |
egovPopupManageService.updatePopupzone(popupzoneVO); |
| 544 | 571 |
if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
|
... | ... | @@ -575,7 +602,8 @@ |
| 575 | 602 |
} |
| 576 | 603 |
} |
| 577 | 604 |
modelAndView.addObject("result", "success");
|
| 578 |
- }catch (Exception e) {
|
|
| 605 |
+ }catch (Exception e) {
|
|
| 606 |
+ e.printStackTrace(); |
|
| 579 | 607 |
modelAndView.addObject("result", "fail");
|
| 580 | 608 |
} |
| 581 | 609 |
return modelAndView; |
--- src/main/java/itn/com/uss/ion/pwm/service/EgovPopupManageService.java
+++ src/main/java/itn/com/uss/ion/pwm/service/EgovPopupManageService.java
... | ... | @@ -3,6 +3,8 @@ |
| 3 | 3 |
import java.util.List; |
| 4 | 4 |
import java.util.Map; |
| 5 | 5 |
|
| 6 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupVO; |
|
| 7 |
+ |
|
| 6 | 8 |
/** |
| 7 | 9 |
* 개요 |
| 8 | 10 |
* - 팝업창에 대한 Service Interface를 정의한다. |
... | ... | @@ -167,4 +169,11 @@ |
| 167 | 169 |
//사용자 메인화면 롤링 배너 이미지 조회 |
| 168 | 170 |
public List<MainzoneVO> selectMainzoneListRolling() throws Exception; |
| 169 | 171 |
|
| 172 |
+ public void insertMainPopup(MainPopupVO mainPopupVO); |
|
| 173 |
+ |
|
| 174 |
+ public void resetMainPopup(MainPopupVO mainPopupVO) throws Exception; |
|
| 175 |
+ |
|
| 176 |
+ public void updateMainPopup(MainPopupVO mainPopupVO) throws Exception; |
|
| 177 |
+ |
|
| 178 |
+ |
|
| 170 | 179 |
}(No newline at end of file) |
--- src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java
+++ src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java
... | ... | @@ -1,9 +1,12 @@ |
| 1 | 1 |
package itn.com.uss.ion.pwm.service.impl; |
| 2 | 2 |
|
| 3 | 3 |
import java.math.BigDecimal; |
| 4 |
+import java.util.ArrayList; |
|
| 5 |
+import java.util.Comparator; |
|
| 4 | 6 |
import java.util.LinkedHashMap; |
| 5 | 7 |
import java.util.List; |
| 6 | 8 |
import java.util.Map; |
| 9 |
+import java.util.stream.IntStream; |
|
| 7 | 10 |
|
| 8 | 11 |
import javax.annotation.Resource; |
| 9 | 12 |
|
... | ... | @@ -12,6 +15,8 @@ |
| 12 | 15 |
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
| 13 | 16 |
import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
| 14 | 17 |
import egovframework.rte.psl.dataaccess.util.EgovMap; |
| 18 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupLinkVO; |
|
| 19 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupVO; |
|
| 15 | 20 |
import itn.com.uss.ion.pwm.service.EgovPopupManageService; |
| 16 | 21 |
import itn.com.uss.ion.pwm.service.MainzoneVO; |
| 17 | 22 |
import itn.com.uss.ion.pwm.service.PopupManageVO; |
... | ... | @@ -244,6 +249,10 @@ |
| 244 | 249 |
public void insertSubMainzone(MainzoneVO mainzoneVO) throws Exception {
|
| 245 | 250 |
dao.insertSubMainzone(mainzoneVO); |
| 246 | 251 |
} |
| 252 |
+ @Override |
|
| 253 |
+ public void resetMainPopup(MainPopupVO mainPopupVO) throws Exception {
|
|
| 254 |
+ dao.resetMainPopup(mainPopupVO); |
|
| 255 |
+ } |
|
| 247 | 256 |
|
| 248 | 257 |
@Override |
| 249 | 258 |
public void resetMainSort(MainzoneVO mainzoneVO) throws Exception {
|
... | ... | @@ -304,6 +313,7 @@ |
| 304 | 313 |
public void updateSubMainzone(MainzoneVO mainzoneVO) throws Exception {
|
| 305 | 314 |
dao.updateSubMainzone(mainzoneVO); |
| 306 | 315 |
} |
| 316 |
+ |
|
| 307 | 317 |
|
| 308 | 318 |
//사용자 메인화면 롤링 배너 이미지 조회 |
| 309 | 319 |
@Override |
... | ... | @@ -371,4 +381,47 @@ |
| 371 | 381 |
public void deleteSocial(String id) throws Exception {
|
| 372 | 382 |
dao.deleteSocial(id); |
| 373 | 383 |
} |
| 384 |
+ |
|
| 385 |
+ @Override |
|
| 386 |
+ public void insertMainPopup(MainPopupVO mainPopupVO) {
|
|
| 387 |
+ dao.insertMainPopup(mainPopupVO); |
|
| 388 |
+ |
|
| 389 |
+ List<MainPopupLinkVO> mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO); |
|
| 390 |
+ |
|
| 391 |
+ |
|
| 392 |
+ mainPopupLinkListVO.stream().forEach(t-> System.out.println(t.toString())); |
|
| 393 |
+ |
|
| 394 |
+ |
|
| 395 |
+ dao.insertMainPopupLinkInfo(mainPopupLinkListVO); |
|
| 396 |
+ } |
|
| 397 |
+ |
|
| 398 |
+ @Override |
|
| 399 |
+ public void updateMainPopup(MainPopupVO mainPopupVO) throws Exception {
|
|
| 400 |
+ |
|
| 401 |
+ dao.updateMainPopup(mainPopupVO); |
|
| 402 |
+ |
|
| 403 |
+ List<MainPopupLinkVO> mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO); |
|
| 404 |
+ |
|
| 405 |
+ dao.deleteMainPopupLinkInfo(mainPopupVO.getPopId()); |
|
| 406 |
+ |
|
| 407 |
+ dao.insertMainPopupLinkInfo(mainPopupLinkListVO); |
|
| 408 |
+ |
|
| 409 |
+ |
|
| 410 |
+ } |
|
| 411 |
+ |
|
| 412 |
+ private List<MainPopupLinkVO> getMainPopupLinkList(MainPopupVO mainPopupVO) {
|
|
| 413 |
+ |
|
| 414 |
+ List<MainPopupLinkVO> mainPopupLinkListVO = mainPopupVO.getMainPopupLinkList(); |
|
| 415 |
+ |
|
| 416 |
+ // 기존 sort 값을 숫자로 변환하여 오름차순 정렬 |
|
| 417 |
+ mainPopupLinkListVO.sort(Comparator.comparingInt(vo -> vo.getSort())); |
|
| 418 |
+ // 2. 정렬된 상태에서 sort 값을 연속적인 숫자로 변경 (1, 2, 3, ...) |
|
| 419 |
+ IntStream.range(0, mainPopupLinkListVO.size()) |
|
| 420 |
+ .forEach(i -> mainPopupLinkListVO.get(i).setSort(i + 1)); |
|
| 421 |
+ |
|
| 422 |
+ mainPopupLinkListVO.stream().forEach(t-> t.setPopId(mainPopupVO.getPopId())); |
|
| 423 |
+ return mainPopupLinkListVO; |
|
| 424 |
+ } |
|
| 425 |
+ |
|
| 426 |
+ |
|
| 374 | 427 |
}(No newline at end of file) |
--- src/main/java/itn/com/uss/ion/pwm/service/impl/PopupManageDAO.java
+++ src/main/java/itn/com/uss/ion/pwm/service/impl/PopupManageDAO.java
... | ... | @@ -5,6 +5,8 @@ |
| 5 | 5 |
|
| 6 | 6 |
import egovframework.rte.psl.dataaccess.util.EgovMap; |
| 7 | 7 |
import itn.com.cmm.service.impl.EgovComAbstractDAO; |
| 8 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupLinkVO; |
|
| 9 |
+import itn.com.uss.ion.bnr.pop.service.MainPopupVO; |
|
| 8 | 10 |
import itn.com.uss.ion.pwm.service.MainzoneVO; |
| 9 | 11 |
import itn.com.uss.ion.pwm.service.PopupManageVO; |
| 10 | 12 |
import itn.com.uss.ion.pwm.service.PopupzoneVO; |
... | ... | @@ -280,4 +282,30 @@ |
| 280 | 282 |
public void deleteSocial(String id) throws Exception{
|
| 281 | 283 |
delete("SocialManage.deleteSocial", id);
|
| 282 | 284 |
} |
| 285 |
+ |
|
| 286 |
+ public void insertMainPopup(MainPopupVO mainPopupVO) {
|
|
| 287 |
+ insert("MainzoneManage.insertMainPopup", mainPopupVO);
|
|
| 288 |
+ } |
|
| 289 |
+ |
|
| 290 |
+ public void insertMainPopupLinkInfo(List<MainPopupLinkVO> mainPopupLinkListVO) {
|
|
| 291 |
+ insert("MainzoneManage.insertMainPopupLinkInfo", mainPopupLinkListVO);
|
|
| 292 |
+ } |
|
| 293 |
+ |
|
| 294 |
+ public void resetMainPopup(MainPopupVO mainPopupVO) {
|
|
| 295 |
+// update("MainzoneManage.resetSubMainVOSort", mainzoneVO);
|
|
| 296 |
+ insert("MainzoneManage.resetMainPopup", mainPopupVO);
|
|
| 297 |
+ } |
|
| 298 |
+ |
|
| 299 |
+ public void updateMainPopup(MainPopupVO mainPopupVO) throws Exception{
|
|
| 300 |
+ update("MainzoneManage.updateMainPopup", mainPopupVO);
|
|
| 301 |
+ } |
|
| 302 |
+ |
|
| 303 |
+ public void updateMainPopupLinkInfo(MainPopupLinkVO mainPopupLinkVO) {
|
|
| 304 |
+ update("MainzoneManage.updateMainPopupLinkInfo", mainPopupLinkVO);
|
|
| 305 |
+ |
|
| 306 |
+ } |
|
| 307 |
+ |
|
| 308 |
+ public void deleteMainPopupLinkInfo(String popId) {
|
|
| 309 |
+ delete("MainzoneManage.deleteMainPopupLinkInfo", popId);
|
|
| 310 |
+ } |
|
| 283 | 311 |
}(No newline at end of file) |
--- src/main/resources/egovframework/spring/com/context-idgen.xml
+++ src/main/resources/egovframework/spring/com/context-idgen.xml
... | ... | @@ -2020,6 +2020,23 @@ |
| 2020 | 2020 |
<property name="fillChar" value="0" /> |
| 2021 | 2021 |
</bean> |
| 2022 | 2022 |
|
| 2023 |
+ <bean name="egovMainPopupIdGnrService" |
|
| 2024 |
+ class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl" |
|
| 2025 |
+ destroy-method="destroy"> |
|
| 2026 |
+ <property name="dataSource" ref="dataSource" /> |
|
| 2027 |
+ <property name="strategy" ref="mainPopupIdStrategy" /> |
|
| 2028 |
+ <property name="blockSize" value="10"/> |
|
| 2029 |
+ <property name="table" value="IDS"/> |
|
| 2030 |
+ <property name="tableName" value="MPP_ID"/> |
|
| 2031 |
+ </bean> |
|
| 2032 |
+ <!-- 메인상단 이미지 ID Generation Strategy Config --> |
|
| 2033 |
+ <bean name="mainPopupIdStrategy" |
|
| 2034 |
+ class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl"> |
|
| 2035 |
+ <property name="prefix" value="MPP_" /> |
|
| 2036 |
+ <property name="cipers" value="12" /> |
|
| 2037 |
+ <property name="fillChar" value="0" /> |
|
| 2038 |
+ </bean> |
|
| 2039 |
+ |
|
| 2023 | 2040 |
|
| 2024 | 2041 |
<!-- 컨텐츠 관리 ID Generation Strategy Config --> |
| 2025 | 2042 |
<bean name="egovCntManageIdGnrService" |
--- src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql-uss-ion-bnr.xml
+++ src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql-uss-ion-bnr.xml
... | ... | @@ -5,4 +5,5 @@ |
| 5 | 5 |
<sqlMapConfig> |
| 6 | 6 |
<sqlMap resource="egovframework/sqlmap/com/uss/ion/bnr/EgovBanner_SQL_Mysql.xml"/><!-- 배너 추가 --> |
| 7 | 7 |
<sqlMap resource="egovframework/sqlmap/let/uss/ion/bnr/SubMainZoneManage_SQL_Mysql.xml"/><!-- 서브팝업관리 --> |
| 8 |
+ <sqlMap resource="egovframework/sqlmap/let/uss/ion/bnr/MainPopupManage_SQL_Mysql.xml"/><!-- 서브팝업관리 --> |
|
| 8 | 9 |
</sqlMapConfig> |
--- src/main/resources/egovframework/sqlmap/let/uss/pwm/PopupManage_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/uss/pwm/PopupManage_SQL_Mysql.xml
... | ... | @@ -12,6 +12,10 @@ |
| 12 | 12 |
<typeAlias alias="PopupManageVO" type="itn.com.uss.ion.pwm.service.PopupManageVO" /> |
| 13 | 13 |
<typeAlias alias="popupzoneVO" type="itn.com.uss.ion.pwm.service.PopupzoneVO"/> |
| 14 | 14 |
<typeAlias alias="mainzoneVO" type="itn.com.uss.ion.pwm.service.MainzoneVO"/> |
| 15 |
+ |
|
| 16 |
+ <typeAlias alias="mainPopupVO" type="itn.com.uss.ion.bnr.pop.service.MainPopupVO"/> |
|
| 17 |
+ <typeAlias alias="mainPopupLinkVO" type="itn.com.uss.ion.bnr.pop.service.MainPopupLinkVO"/> |
|
| 18 |
+ |
|
| 15 | 19 |
<typeAlias alias="socialVO" type="itn.com.uss.ion.pwm.service.SocialVO"/> |
| 16 | 20 |
<typeAlias alias="sortVO" type="itn.com.uss.ion.pwm.service.SortVO"/> |
| 17 | 21 |
<!-- ::ResultMap 선언 --> |
... | ... | @@ -653,6 +657,8 @@ |
| 653 | 657 |
) |
| 654 | 658 |
</insert> |
| 655 | 659 |
|
| 660 |
+ |
|
| 661 |
+ |
|
| 656 | 662 |
<update id="MainzoneManage.resetMainSort" parameterClass="mainzoneVO"> |
| 657 | 663 |
UPDATE MAINZONE A , (SELECT ROW_NUMBER() OVER(ORDER BY SORT) AS SORT1 , MAZ_ID FROM MAINZONE |
| 658 | 664 |
WHERE 1=1 |
... | ... | @@ -837,6 +843,27 @@ |
| 837 | 843 |
WHERE A.MAZ_ID = B.MAZ_ID |
| 838 | 844 |
</update> |
| 839 | 845 |
|
| 846 |
+ <update id="MainzoneManage.resetMainPopup" parameterClass="mainPopupVO"> |
|
| 847 |
+ UPDATE MAIN_POPUP A , |
|
| 848 |
+ ( |
|
| 849 |
+ SELECT ROW_NUMBER() OVER |
|
| 850 |
+ ( |
|
| 851 |
+ ORDER BY SORT |
|
| 852 |
+ <isEqual property="sortOver" compareValue="A"> |
|
| 853 |
+ , MODDT ASC |
|
| 854 |
+ </isEqual> |
|
| 855 |
+ <isEqual property="sortOver" compareValue="D"> |
|
| 856 |
+ , MODDT DESC |
|
| 857 |
+ </isEqual> |
|
| 858 |
+ ) AS SORT1 , POP_ID |
|
| 859 |
+ FROM MAIN_POPUP |
|
| 860 |
+ WHERE 1=1 |
|
| 861 |
+ ORDER BY SORT1 |
|
| 862 |
+ ) B |
|
| 863 |
+ SET A.SORT = B.SORT1 |
|
| 864 |
+ WHERE A.POP_ID = B.POP_ID |
|
| 865 |
+ </update> |
|
| 866 |
+ |
|
| 840 | 867 |
|
| 841 | 868 |
<!-- 소설 관리자 리스트 --> |
| 842 | 869 |
<select id="SocialManage.selectSocialList" parameterClass="socialVO" resultClass="socialVO"> |
... | ... | @@ -1014,7 +1041,98 @@ |
| 1014 | 1041 |
AND MZ.USE_YN = 'Y' |
| 1015 | 1042 |
ORDER BY MZ.SORT |
| 1016 | 1043 |
|
| 1017 |
- |
|
| 1018 | 1044 |
</select> |
| 1019 | 1045 |
|
| 1046 |
+ |
|
| 1047 |
+ <insert id="MainzoneManage.insertMainPopup" parameterClass="mainPopupVO"> |
|
| 1048 |
+ INSERT INTO MAIN_POPUP ( |
|
| 1049 |
+ POP_ID |
|
| 1050 |
+ , CONTENT |
|
| 1051 |
+ , SORT |
|
| 1052 |
+ , DEL |
|
| 1053 |
+ , MAINZONE_IMAGE_FILE |
|
| 1054 |
+ , MAINZONE_IMAGE |
|
| 1055 |
+ , REGDT |
|
| 1056 |
+ , MODDT |
|
| 1057 |
+ , POP_NM |
|
| 1058 |
+ , USE_YN |
|
| 1059 |
+ , REGISTER_ID |
|
| 1060 |
+ , DEVICETYPE |
|
| 1061 |
+ , NTCE_BGNDE |
|
| 1062 |
+ , NTCE_ENDDE |
|
| 1063 |
+ ) VALUES ( |
|
| 1064 |
+ #popId# |
|
| 1065 |
+ , #content# |
|
| 1066 |
+ , #sort# |
|
| 1067 |
+ , #del# |
|
| 1068 |
+ , #mainzoneImageFile# |
|
| 1069 |
+ , #mainzoneImage# |
|
| 1070 |
+ , now() |
|
| 1071 |
+ , now() |
|
| 1072 |
+ , #popNm# |
|
| 1073 |
+ , #useYn# |
|
| 1074 |
+ , #registerId# |
|
| 1075 |
+ , #devicetype# |
|
| 1076 |
+ , #ntceBgnde# |
|
| 1077 |
+ , #ntceEndde# |
|
| 1078 |
+ ) |
|
| 1079 |
+ </insert> |
|
| 1080 |
+ |
|
| 1081 |
+ <insert id="MainzoneManage.insertMainPopupLinkInfo" parameterClass="java.util.List"> |
|
| 1082 |
+ INSERT INTO MAIN_POPUP_LINK ( |
|
| 1083 |
+ POP_ID |
|
| 1084 |
+ , MLINK |
|
| 1085 |
+ , COORDS |
|
| 1086 |
+ , SORT |
|
| 1087 |
+ ) |
|
| 1088 |
+ VALUES |
|
| 1089 |
+ <iterate conjunction=","> |
|
| 1090 |
+ ( |
|
| 1091 |
+ #[].popId# |
|
| 1092 |
+ , #[].mlink# |
|
| 1093 |
+ , #[].coords# |
|
| 1094 |
+ , #[].sort# |
|
| 1095 |
+ ) |
|
| 1096 |
+ </iterate> |
|
| 1097 |
+ |
|
| 1098 |
+ |
|
| 1099 |
+ </insert> |
|
| 1100 |
+ |
|
| 1101 |
+ |
|
| 1102 |
+ <update id="MainzoneManage.updateMainPopup" parameterClass="mainPopupVO"> |
|
| 1103 |
+ UPDATE MAIN_POPUP |
|
| 1104 |
+ SET |
|
| 1105 |
+ CONTENT = #content#, |
|
| 1106 |
+ SORT = #sort#, |
|
| 1107 |
+ DEL = #del#, |
|
| 1108 |
+ MAINZONE_IMAGE_FILE = #mainzoneImageFile#, |
|
| 1109 |
+ MAINZONE_IMAGE = #mainzoneImage#, |
|
| 1110 |
+ MODDT = now(), |
|
| 1111 |
+ POP_NM = #popNm#, |
|
| 1112 |
+ USE_YN = #useYn#, |
|
| 1113 |
+ <isNotEmpty property="deviceType"> |
|
| 1114 |
+ DEVICETYPE = #deviceType# , |
|
| 1115 |
+ </isNotEmpty> |
|
| 1116 |
+ NTCE_BGNDE = #ntceBgnde#, |
|
| 1117 |
+ NTCE_ENDDE = #ntceEndde# |
|
| 1118 |
+ WHERE POP_ID = #popId# |
|
| 1119 |
+ </update> |
|
| 1120 |
+ |
|
| 1121 |
+ <update id="MainzoneManage.updateMainPopupLinkInfo" parameterClass="mainPopupLinkVO"> |
|
| 1122 |
+ UPDATE MAIN_POPUP_LINK |
|
| 1123 |
+ SET |
|
| 1124 |
+ MLINK = #mlink# |
|
| 1125 |
+ , COORDS = #coords# |
|
| 1126 |
+ , SORT = #sort# |
|
| 1127 |
+ WHERE POP_ID = #popId# |
|
| 1128 |
+ </update> |
|
| 1129 |
+ |
|
| 1130 |
+ <delete id="MainzoneManage.deleteMainPopupLinkInfo" parameterClass="String"> |
|
| 1131 |
+ |
|
| 1132 |
+ |
|
| 1133 |
+ DELETE FROM MAIN_POPUP_LINK |
|
| 1134 |
+ WHERE POP_ID = #popId# |
|
| 1135 |
+ </delete> |
|
| 1136 |
+ |
|
| 1137 |
+ |
|
| 1020 | 1138 |
</sqlMap>(No newline at end of file) |
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?