From 07c8e9a5f1fb69527510542f22dccf7d4aaaa984 Mon Sep 17 00:00:00 2001 From: myname Date: Thu, 16 Nov 2023 17:36:26 +0900 Subject: [PATCH] =?UTF-8?q?2023-11-16=2017:36=20=EC=84=A4=EB=AC=B8=20?= =?UTF-8?q?=EC=BF=BC=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qmc/web/EgovQustnrManageController.java | 13 ++++- .../olp/qmc/EgovQustnrManage_SQL_Tibero.xml | 47 +++++++++++-------- .../qqm/EgovQustnrQestnManage_SQL_Tibero.xml | 17 +++++-- .../qri/EgovQustnrRespondInfo_SQL_Tibero.xml | 6 ++- .../jsp/uss/olp/qmc/EgovQustnrManageList.jsp | 10 ++-- .../tngrVisitEdu/eduEnd/eduEndDetail.jsp | 4 ++ 6 files changed, 65 insertions(+), 32 deletions(-) diff --git a/src/main/java/kcc/let/uss/olp/qmc/web/EgovQustnrManageController.java b/src/main/java/kcc/let/uss/olp/qmc/web/EgovQustnrManageController.java index cdca17ad..361b6507 100644 --- a/src/main/java/kcc/let/uss/olp/qmc/web/EgovQustnrManageController.java +++ b/src/main/java/kcc/let/uss/olp/qmc/web/EgovQustnrManageController.java @@ -201,9 +201,18 @@ public class EgovQustnrManageController { List resultList = egovQustnrManageService.selectQustnrManageList(searchVO) ; - //System.out.println(((EgovMap)resultList.get(0)).get("totcnt")); + //System.out.println((long)((EgovMap)resultList.get(0)).get("totcnt")); + String s_totCnt = String.valueOf(((EgovMap)resultList.get(0)).get("totcnt")); - paginationInfo.setTotalRecordCount( resultList.size()> 0 ? ((int)((EgovMap)resultList.get(0)).get("totcnt")) : 0); + System.out.println(s_totCnt); + + if (resultList.size()> 0) { + paginationInfo.setTotalRecordCount( Integer.parseInt(s_totCnt)); + }else { + paginationInfo.setTotalRecordCount( 0); + } + + //paginationInfo.setTotalRecordCount( resultList.size()> 0 ? ((int)((EgovMap)resultList.get(0)).get("totcnt")) : 0); model.addAttribute("resultList", resultList); model.addAttribute("paginationInfo", paginationInfo); diff --git a/src/main/resources/egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Tibero.xml b/src/main/resources/egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Tibero.xml index 4ed0e21e..bcf9b544 100644 --- a/src/main/resources/egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Tibero.xml +++ b/src/main/resources/egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Tibero.xml @@ -33,21 +33,22 @@ + /* QustnrManage.selectQustnrManage */ - AND ( QUSTNR_SJ LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') OR FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') ) ) + AND ( QUSTNR_SJ LIKE '%'||#searchKeyword#||'%' + OR FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE '%'||#searchKeyword#||'%' + ) + ) - AND QUSTNR_SJ LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') + AND QUSTNR_SJ LIKE '%'||#searchKeyword#||'%' - AND FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE CONCAT(CONCAT('%', #searchKeyword#), '%') ) + AND FRST_REGISTER_ID IN (SELECT ESNTL_ID FROM COMVNUSERMASTER WHERE USER_NM LIKE '%'||#searchKeyword#||'%' ) @@ -133,6 +138,7 @@ + /* QustnrManage.selectQustnrManageDetail */ + /* QustnrQestnManage.selectQustnrQestnManage */ diff --git a/src/main/resources/egovframework/sqlmap/let/uss/olp/qri/EgovQustnrRespondInfo_SQL_Tibero.xml b/src/main/resources/egovframework/sqlmap/let/uss/olp/qri/EgovQustnrRespondInfo_SQL_Tibero.xml index 9457f878..5092bfea 100644 --- a/src/main/resources/egovframework/sqlmap/let/uss/olp/qri/EgovQustnrRespondInfo_SQL_Tibero.xml +++ b/src/main/resources/egovframework/sqlmap/let/uss/olp/qri/EgovQustnrRespondInfo_SQL_Tibero.xml @@ -188,7 +188,11 @@ diff --git a/src/main/webapp/WEB-INF/jsp/uss/olp/qmc/EgovQustnrManageList.jsp b/src/main/webapp/WEB-INF/jsp/uss/olp/qmc/EgovQustnrManageList.jsp index 83c46c51..fc337aa4 100644 --- a/src/main/webapp/WEB-INF/jsp/uss/olp/qmc/EgovQustnrManageList.jsp +++ b/src/main/webapp/WEB-INF/jsp/uss/olp/qmc/EgovQustnrManageList.jsp @@ -276,8 +276,8 @@ - - + + @@ -285,11 +285,11 @@ <%-- --%> <%-- --%> - ${resultInfo.qustnrQesitmCnt} - ${resultInfo.rrspnsResultCnt} + ${resultInfo.qustnrqesitmcnt} + ${resultInfo.rrspnsresultcnt} ${resultInfo.frstRegisterNm} - ${resultInfo.qestnrBeginDe}~${resultInfo.qestnrEndDe} + ${resultInfo.qestnrbeginde}~${resultInfo.qestnrendde} diff --git a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduEnd/eduEndDetail.jsp b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduEnd/eduEndDetail.jsp index bc9ab73c..bd5dc8b9 100644 --- a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduEnd/eduEndDetail.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduEnd/eduEndDetail.jsp @@ -52,6 +52,10 @@ $("input:text[numberOnly]").on("keyup", function(){ $(this).val($(this).val().replace(/[^0-9]/g,"")); }); + + $("input:text[numberOnly]").on("blur", function(){ + $(this).val($(this).val().replace(/[^0-9]/g,"")); + }); } function replyCalculation(){