--- src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
+++ src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
... | ... | @@ -200,6 +200,17 @@ |
| 200 | 200 |
, HttpServletRequest request |
| 201 | 201 |
, ModelMap model) throws Exception{
|
| 202 | 202 |
|
| 203 |
+ |
|
| 204 |
+ |
|
| 205 |
+ // 요청의 호스트명을 가져오기 |
|
| 206 |
+ String hostName = request.getServerName(); |
|
| 207 |
+ |
|
| 208 |
+ // 외부에서 선거발송 페이지로 들어오는걸 막음 |
|
| 209 |
+ // 20250102 이호영 |
|
| 210 |
+ if (!"localhost".equals(hostName)) {
|
|
| 211 |
+ return "redirect:/web/mjon/msgdata/selectMsgDataView.do"; |
|
| 212 |
+ } |
|
| 213 |
+ |
|
| 203 | 214 |
String categoryType = cateCode.getCateType(); |
| 204 | 215 |
|
| 205 | 216 |
if(categoryType == null) {
|
... | ... | @@ -265,7 +276,6 @@ |
| 265 | 276 |
model.addAttribute("addrVO", searchVO);
|
| 266 | 277 |
} |
| 267 | 278 |
|
| 268 |
- /** pageing */ |
|
| 269 | 279 |
PaginationInfo paginationInfo = new PaginationInfo(); |
| 270 | 280 |
paginationInfo.setCurrentPageNo(letterVO.getPageIndex()); |
| 271 | 281 |
paginationInfo.setRecordCountPerPage(letterVO.getPageUnit()); |
--- src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainTWDataController.java
+++ src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainTWDataController.java
... | ... | @@ -189,6 +189,17 @@ |
| 189 | 189 |
, HttpServletRequest request |
| 190 | 190 |
, ModelMap model) throws Exception{
|
| 191 | 191 |
|
| 192 |
+ |
|
| 193 |
+ |
|
| 194 |
+ // 요청의 호스트명을 가져오기 |
|
| 195 |
+ String hostName = request.getServerName(); |
|
| 196 |
+ |
|
| 197 |
+ // 외부에서 선거발송 페이지로 들어오는걸 막음 |
|
| 198 |
+ // 20250102 이호영 |
|
| 199 |
+ if (!"localhost".equals(hostName)) {
|
|
| 200 |
+ return "redirect:/web/mjon/msgdata/selectMsgDataView.do"; |
|
| 201 |
+ } |
|
| 202 |
+ |
|
| 192 | 203 |
String categoryType = cateCode.getCateType(); |
| 193 | 204 |
|
| 194 | 205 |
if(categoryType == null) {
|
... | ... | @@ -254,7 +265,6 @@ |
| 254 | 265 |
model.addAttribute("addrVO", searchVO);
|
| 255 | 266 |
} |
| 256 | 267 |
|
| 257 |
- /** pageing */ |
|
| 258 | 268 |
PaginationInfo paginationInfo = new PaginationInfo(); |
| 259 | 269 |
paginationInfo.setCurrentPageNo(letterVO.getPageIndex()); |
| 260 | 270 |
paginationInfo.setRecordCountPerPage(letterVO.getPageUnit()); |
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?