대시보드 관리자로그관리 성능개선
This commit is contained in:
parent
6f2ba59159
commit
cdb006a4b7
@ -859,7 +859,7 @@ public class EgovMainController {
|
|||||||
// 최신날짜 우선순위 조회
|
// 최신날짜 우선순위 조회
|
||||||
loginLog.setSearchSortCnd("creatDt");
|
loginLog.setSearchSortCnd("creatDt");
|
||||||
loginLog.setSearchSortOrd("desc");
|
loginLog.setSearchSortOrd("desc");
|
||||||
adminLogList = loginLogService.selectAmdinLog(loginLog);
|
adminLogList = loginLogService.selectAmdinLogDashboard(loginLog);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
isSuccess = false;
|
isSuccess = false;
|
||||||
|
|||||||
@ -57,6 +57,8 @@ public interface EgovLoginLogService {
|
|||||||
|
|
||||||
public void logInsertAdminLoginLog(LoginLog loginLog) throws Exception;
|
public void logInsertAdminLoginLog(LoginLog loginLog) throws Exception;
|
||||||
|
|
||||||
|
public List<LoginLog> selectAmdinLogDashboard(LoginLog loginLog) throws Exception;
|
||||||
|
|
||||||
public List<LoginLog> selectAmdinLog(LoginLog loginLog) throws Exception;
|
public List<LoginLog> selectAmdinLog(LoginLog loginLog) throws Exception;
|
||||||
|
|
||||||
public int selectAmdinLogTotCnt(LoginLog loginLog) throws Exception;
|
public int selectAmdinLogTotCnt(LoginLog loginLog) throws Exception;
|
||||||
|
|||||||
@ -123,6 +123,11 @@ public class EgovLoginLogServiceImpl extends EgovAbstractServiceImpl implements
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<LoginLog> selectAmdinLogDashboard(LoginLog loginLog) throws Exception {
|
||||||
|
return loginLogDAO.selectAmdinLogDashboard(loginLog);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<LoginLog> selectAmdinLog(LoginLog loginLog) throws Exception {
|
public List<LoginLog> selectAmdinLog(LoginLog loginLog) throws Exception {
|
||||||
return loginLogDAO.selectAmdinLog(loginLog);
|
return loginLogDAO.selectAmdinLog(loginLog);
|
||||||
|
|||||||
@ -98,6 +98,11 @@ public class LoginLogDAO extends EgovAbstractDAO {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public List<LoginLog> selectAmdinLogDashboard(LoginLog loginLog) throws Exception{
|
||||||
|
return (List<LoginLog>)list("LoginLogDAO.selectAmdinLogDashboard", loginLog);
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public List<LoginLog> selectAmdinLog(LoginLog loginLog) throws Exception{
|
public List<LoginLog> selectAmdinLog(LoginLog loginLog) throws Exception{
|
||||||
return (List<LoginLog>)list("LoginLogDAO.selectAmdinLog", loginLog);
|
return (List<LoginLog>)list("LoginLogDAO.selectAmdinLog", loginLog);
|
||||||
|
|||||||
@ -225,8 +225,32 @@
|
|||||||
, now())
|
, now())
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
<!-- 관리자 대시보드 접속 리스트 -->
|
||||||
|
<select id="LoginLogDAO.selectAmdinLogDashboard" parameterClass="loginLog" resultClass="loginLog">
|
||||||
|
SELECT
|
||||||
|
COUNT(1) OVER() AS totCnt ,
|
||||||
|
a.ADMINLOG_ID logId ,
|
||||||
|
b.USER_NM loginNm,
|
||||||
|
DATE_FORMAT(a.CREAT_DT, '%Y-%m-%d %T' ) creatDt,
|
||||||
|
a.CONECT_IP loginIp,
|
||||||
|
a.PROGRM_FILE_NM AS progrmFileNm,
|
||||||
|
a.MENU_NM AS menuNm,
|
||||||
|
a.APPRO_NM AS approNm,
|
||||||
|
b.USER_ID AS loginId,
|
||||||
|
a.URL AS url
|
||||||
|
FROM
|
||||||
|
LETTNADMINLOG a INNER JOIN COMVNUSERMASTER b
|
||||||
|
ON a.CONECT_ID = b.ESNTL_ID
|
||||||
|
INNER JOIN lettnemplyrinfo c
|
||||||
|
ON b.USER_ID = c.EMPLYR_ID
|
||||||
|
WHERE 1=1
|
||||||
|
AND a.CONECT_ID != ''
|
||||||
|
AND a.CREAT_DT > DATE_ADD(NOW(), INTERVAL -1 DAY)
|
||||||
|
ORDER BY a.CREAT_DT DESC
|
||||||
|
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||||
|
</select>
|
||||||
|
|
||||||
<!-- 관리자 대쉬보드 접속 리스트 -->
|
<!-- 관리자 로그 접속 리스트 -->
|
||||||
<select id="LoginLogDAO.selectAmdinLog" parameterClass="loginLog" resultClass="loginLog">
|
<select id="LoginLogDAO.selectAmdinLog" parameterClass="loginLog" resultClass="loginLog">
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(1) OVER() AS totCnt ,
|
COUNT(1) OVER() AS totCnt ,
|
||||||
@ -268,7 +292,7 @@
|
|||||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 관리자 대쉬보드 접속 TOTCNT -->
|
<!-- 관리자 로그 접속 TOTCNT -->
|
||||||
<select id="LoginLogDAO.selectAmdinLogTotCnt" parameterClass="loginLog" resultClass="int">
|
<select id="LoginLogDAO.selectAmdinLogTotCnt" parameterClass="loginLog" resultClass="int">
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(0)
|
COUNT(0)
|
||||||
|
|||||||
@ -290,7 +290,7 @@
|
|||||||
sHtml += " <td title='" + item.creatDt + "'>" + item.creatDt.substr(5, 11) + "</td>";
|
sHtml += " <td title='" + item.creatDt + "'>" + item.creatDt.substr(5, 11) + "</td>";
|
||||||
sHtml += " <td title='" + item.loginIp + "'>" + item.loginIp + "</td>";
|
sHtml += " <td title='" + item.loginIp + "'>" + item.loginIp + "</td>";
|
||||||
sHtml += " <td title='" + item.menuNm + "'>" + item.menuNm + "</td>";
|
sHtml += " <td title='" + item.menuNm + "'>" + item.menuNm + "</td>";
|
||||||
sHtml += " <td title='" + item.loginId + "'>" + item.loginId + "</td>";
|
sHtml += " <td title='" + item.loginNm + "(" + item.loginId + ")'>" + item.loginNm + "</td>";
|
||||||
sHtml += "</tr>";
|
sHtml += "</tr>";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user