myname 2024-06-12
2024-06-12 관리자 로그인 검색 쿼리 수정
@4ad4c9a37f74bf87bf52c8e677b1b128ece8da41
src/main/java/itn/let/sym/log/clg/web/EgovLoginLogController.java
--- src/main/java/itn/let/sym/log/clg/web/EgovLoginLogController.java
+++ src/main/java/itn/let/sym/log/clg/web/EgovLoginLogController.java
@@ -120,7 +120,7 @@
     		loginLog.setSearchStartDate(beforeMonthDay);
     	}		
     	
-		List<LoginLog> adminLogList  = loginLogService.selectAmdinLog(loginLog);
+		List<LoginLog> adminLogList  = loginLogService.selectAmdinLog(loginLog);		
 		int adminLogListCnt = loginLogService.selectAmdinLogTotCnt(loginLog);
 		paginationInfo.setTotalRecordCount(adminLogListCnt);
 		model.addAttribute("paginationInfo", paginationInfo);
src/main/resources/egovframework/sqlmap/let/sym/log/clg/EgovLoginLog_SQL_Mysql.xml
--- src/main/resources/egovframework/sqlmap/let/sym/log/clg/EgovLoginLog_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/sym/log/clg/EgovLoginLog_SQL_Mysql.xml
@@ -270,13 +270,16 @@
 	        AND a.CONECT_ID != ''
 			<isNotEmpty property="searchKeyword">
                 <isEqual prepend="AND" property="searchCondition" compareValue="">
-				 	( a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')  OR  a.URL LIKE CONCAT('%' , #searchKeyword#, '%') )
+				 	( a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')  OR  a.URL LIKE CONCAT('%' , #searchKeyword#, '%') OR  c.EMPLYR_ID LIKE CONCAT('%' , #searchKeyword#, '%') )
                 </isEqual>
                 <isEqual prepend="AND" property="searchCondition" compareValue="1">
 				 	a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')
                 </isEqual>
                  <isEqual prepend="AND" property="searchCondition" compareValue="2">
 				 	a.URL LIKE CONCAT('%' , #searchKeyword#, '%')
+                </isEqual>
+                <isEqual prepend="AND" property="searchCondition" compareValue="3">
+				 	c.EMPLYR_ID LIKE CONCAT('%' , #searchKeyword#, '%')
                 </isEqual>
             </isNotEmpty>
 
@@ -302,6 +305,7 @@
 	
 	<!-- 관리자 로그 접속 TOTCNT  -->
 	<select id="LoginLogDAO.selectAmdinLogTotCnt" parameterClass="loginLog" resultClass="int">
+		/*	LoginLogDAO.selectAmdinLogTotCnt	*/
 	    SELECT
         	COUNT(0)             
 	    FROM
@@ -312,7 +316,7 @@
 	        AND a.CONECT_ID != '' 
 	        <isNotEmpty property="searchKeyword">
                 <isEqual prepend="AND" property="searchCondition" compareValue="">
-				 	( a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')  OR  a.URL LIKE CONCAT('%' , #searchKeyword#, '%') )
+				 	( a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')  OR  a.URL LIKE CONCAT('%' , #searchKeyword#, '%')   OR  c.EMPLYR_ID LIKE CONCAT('%' , #searchKeyword#, '%') )
                 </isEqual>
                 <isEqual prepend="AND" property="searchCondition" compareValue="1">
 				 	a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')
@@ -320,6 +324,9 @@
                  <isEqual prepend="AND" property="searchCondition" compareValue="2">
 				 	a.URL LIKE CONCAT('%' , #searchKeyword#, '%')
                 </isEqual>
+                <isEqual prepend="AND" property="searchCondition" compareValue="3">
+				 	c.EMPLYR_ID LIKE CONCAT('%' , #searchKeyword#, '%')
+                </isEqual>
             </isNotEmpty>
             
 			<isNotEmpty prepend="AND" property="searchStartDate">
Add a comment
List