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
... | ... | @@ -120,7 +120,7 @@ |
| 120 | 120 |
loginLog.setSearchStartDate(beforeMonthDay); |
| 121 | 121 |
} |
| 122 | 122 |
|
| 123 |
- List<LoginLog> adminLogList = loginLogService.selectAmdinLog(loginLog); |
|
| 123 |
+ List<LoginLog> adminLogList = loginLogService.selectAmdinLog(loginLog); |
|
| 124 | 124 |
int adminLogListCnt = loginLogService.selectAmdinLogTotCnt(loginLog); |
| 125 | 125 |
paginationInfo.setTotalRecordCount(adminLogListCnt); |
| 126 | 126 |
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
... | ... | @@ -270,13 +270,16 @@ |
| 270 | 270 |
AND a.CONECT_ID != '' |
| 271 | 271 |
<isNotEmpty property="searchKeyword"> |
| 272 | 272 |
<isEqual prepend="AND" property="searchCondition" compareValue=""> |
| 273 |
- ( a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%') OR a.URL LIKE CONCAT('%' , #searchKeyword#, '%') )
|
|
| 273 |
+ ( a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%') OR a.URL LIKE CONCAT('%' , #searchKeyword#, '%') OR c.EMPLYR_ID LIKE CONCAT('%' , #searchKeyword#, '%') )
|
|
| 274 | 274 |
</isEqual> |
| 275 | 275 |
<isEqual prepend="AND" property="searchCondition" compareValue="1"> |
| 276 | 276 |
a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')
|
| 277 | 277 |
</isEqual> |
| 278 | 278 |
<isEqual prepend="AND" property="searchCondition" compareValue="2"> |
| 279 | 279 |
a.URL LIKE CONCAT('%' , #searchKeyword#, '%')
|
| 280 |
+ </isEqual> |
|
| 281 |
+ <isEqual prepend="AND" property="searchCondition" compareValue="3"> |
|
| 282 |
+ c.EMPLYR_ID LIKE CONCAT('%' , #searchKeyword#, '%')
|
|
| 280 | 283 |
</isEqual> |
| 281 | 284 |
</isNotEmpty> |
| 282 | 285 |
|
... | ... | @@ -302,6 +305,7 @@ |
| 302 | 305 |
|
| 303 | 306 |
<!-- 관리자 로그 접속 TOTCNT --> |
| 304 | 307 |
<select id="LoginLogDAO.selectAmdinLogTotCnt" parameterClass="loginLog" resultClass="int"> |
| 308 |
+ /* LoginLogDAO.selectAmdinLogTotCnt */ |
|
| 305 | 309 |
SELECT |
| 306 | 310 |
COUNT(0) |
| 307 | 311 |
FROM |
... | ... | @@ -312,7 +316,7 @@ |
| 312 | 316 |
AND a.CONECT_ID != '' |
| 313 | 317 |
<isNotEmpty property="searchKeyword"> |
| 314 | 318 |
<isEqual prepend="AND" property="searchCondition" compareValue=""> |
| 315 |
- ( a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%') OR a.URL LIKE CONCAT('%' , #searchKeyword#, '%') )
|
|
| 319 |
+ ( a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%') OR a.URL LIKE CONCAT('%' , #searchKeyword#, '%') OR c.EMPLYR_ID LIKE CONCAT('%' , #searchKeyword#, '%') )
|
|
| 316 | 320 |
</isEqual> |
| 317 | 321 |
<isEqual prepend="AND" property="searchCondition" compareValue="1"> |
| 318 | 322 |
a.MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')
|
... | ... | @@ -320,6 +324,9 @@ |
| 320 | 324 |
<isEqual prepend="AND" property="searchCondition" compareValue="2"> |
| 321 | 325 |
a.URL LIKE CONCAT('%' , #searchKeyword#, '%')
|
| 322 | 326 |
</isEqual> |
| 327 |
+ <isEqual prepend="AND" property="searchCondition" compareValue="3"> |
|
| 328 |
+ c.EMPLYR_ID LIKE CONCAT('%' , #searchKeyword#, '%')
|
|
| 329 |
+ </isEqual> |
|
| 323 | 330 |
</isNotEmpty> |
| 324 | 331 |
|
| 325 | 332 |
<isNotEmpty prepend="AND" property="searchStartDate"> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?