diff --git a/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java b/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java index c076bf5c..9cc40282 100644 --- a/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java +++ b/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java @@ -1798,13 +1798,27 @@ public class MjonMsgController { searchVO.setSearchSortAuthYN("Y"); } - + System.out.println("searchVO.getSearchCondition2() : "+ searchVO.getSearchCondition2()); if("N".equals(searchVO.getSearchCondition2())) { searchVO.setPhmType("03"); //거부조회 - }else { + }else if(StringUtils.isEmpty(searchVO.getSearchCondition2())){ + searchVO.setPhmType(""); + }else if( + "Y".equals(searchVO.getSearchCondition2()) + || "H".equals(searchVO.getSearchCondition2()) + || "C".equals(searchVO.getSearchCondition2()) + + ){ searchVO.setPhmType("01"); //발신조회 } + /* + if(pattern.equals("/uss/ion/msg/SendNumberList.do") || pattern.equals("/web/msg/SendNumberList.do")) { + searchVO.setPhmType("01"); //발신조회 + }else { + searchVO.setPhmType("03"); //거부조회 + } + */ if(pattern.equals("/uss/ion/msg/SendNumberList.do") || pattern.equals("/web/msg/SendNumberList.do")) { // searchVO.setPhmType("01"); //발신조회 diff --git a/src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml b/src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml index 406f6583..486e155c 100644 --- a/src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml +++ b/src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml @@ -1589,6 +1589,7 @@