Merge branch 'hylee'

This commit is contained in:
hehihoho3@gmail.com 2025-01-02 09:36:30 +09:00
commit 898eb39430
2 changed files with 22 additions and 2 deletions

View File

@ -200,6 +200,17 @@ public class MjonMsgCampainDataController {
, HttpServletRequest request
, ModelMap model) throws Exception{
// 요청의 호스트명을 가져오기
String hostName = request.getServerName();
// 외부에서 선거발송 페이지로 들어오는걸 막음
// 20250102 이호영
if (!"localhost".equals(hostName)) {
return "redirect:/web/mjon/msgdata/selectMsgDataView.do";
}
String categoryType = cateCode.getCateType();
if(categoryType == null) {
@ -265,7 +276,6 @@ public class MjonMsgCampainDataController {
model.addAttribute("addrVO", searchVO);
}
/** pageing */
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(letterVO.getPageIndex());
paginationInfo.setRecordCountPerPage(letterVO.getPageUnit());

View File

@ -189,6 +189,17 @@ public class MjonMsgCampainTWDataController {
, HttpServletRequest request
, ModelMap model) throws Exception{
// 요청의 호스트명을 가져오기
String hostName = request.getServerName();
// 외부에서 선거발송 페이지로 들어오는걸 막음
// 20250102 이호영
if (!"localhost".equals(hostName)) {
return "redirect:/web/mjon/msgdata/selectMsgDataView.do";
}
String categoryType = cateCode.getCateType();
if(categoryType == null) {
@ -254,7 +265,6 @@ public class MjonMsgCampainTWDataController {
model.addAttribute("addrVO", searchVO);
}
/** pageing */
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(letterVO.getPageIndex());
paginationInfo.setRecordCountPerPage(letterVO.getPageUnit());