2024-06-12 관리자 로그인 검색 쿼리 수정

This commit is contained in:
myname 2024-06-12 10:04:45 +09:00
parent f01d1b95b9
commit 4ad4c9a37f
2 changed files with 10 additions and 3 deletions

View File

@ -120,7 +120,7 @@ public class EgovLoginLogController {
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);

View File

@ -270,7 +270,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#, '%')
@ -278,6 +278,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">
@ -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">