개인정보 로그현황 시/분 표시
parent
bc9f30c502
commit
cf69ff4893
|
|
@ -8,6 +8,7 @@ import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
||||||
import EgovPaging from 'components/EgovPaging';
|
import EgovPaging from 'components/EgovPaging';
|
||||||
|
|
||||||
import { itemIdxByPage } from 'utils/calc';
|
import { itemIdxByPage } from 'utils/calc';
|
||||||
|
import {format} from "date-fns";
|
||||||
|
|
||||||
function PrivacyConnections(props) {
|
function PrivacyConnections(props) {
|
||||||
// console.group("EgovAdminPrivacyList");
|
// console.group("EgovAdminPrivacyList");
|
||||||
|
|
@ -66,7 +67,7 @@ function PrivacyConnections(props) {
|
||||||
<div>{item.targetUserId}</div>
|
<div>{item.targetUserId}</div>
|
||||||
<div>{item.accessType === "PRV_LIST" ? "사용자현황 조회" : item.accessType === "PRV_VIEW" ? "User 상세조회" : "User 수정"}</div>
|
<div>{item.accessType === "PRV_LIST" ? "사용자현황 조회" : item.accessType === "PRV_VIEW" ? "User 상세조회" : "User 수정"}</div>
|
||||||
<div>{item.ipAddress}</div>
|
<div>{item.ipAddress}</div>
|
||||||
<div>{item.accessDt}</div>
|
<div>{item.accessDt ? format(item.accessDt, "yyyy-MM-dd HH:mm") : ""}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -122,7 +123,7 @@ function PrivacyConnections(props) {
|
||||||
<span>수정 ID</span>
|
<span>수정 ID</span>
|
||||||
<span>타입</span>
|
<span>타입</span>
|
||||||
<span>접속IP</span>
|
<span>접속IP</span>
|
||||||
<span>변경일자</span>
|
<span>일자</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="result">
|
<div className="result">
|
||||||
{listTag}
|
{listTag}
|
||||||
|
|
|
||||||
|
|
@ -3,17 +3,14 @@ package com.dbnt.kcscbackend.admin.logs.entity;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import com.dbnt.kcscbackend.config.common.BoardParams;
|
import com.dbnt.kcscbackend.config.common.BoardParams;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
|
@ -45,8 +42,7 @@ public class ThPrivacyLog extends BoardParams implements Serializable {
|
||||||
private String ipAddress;
|
private String ipAddress;
|
||||||
|
|
||||||
@Column(name = "access_dt")
|
@Column(name = "access_dt")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
private LocalDateTime accessDt;
|
||||||
private LocalDate accessDt;
|
|
||||||
|
|
||||||
@Column(name = "session_id")
|
@Column(name = "session_id")
|
||||||
private String sessionId;
|
private String sessionId;
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public class AdminLogsService extends EgovAbstractServiceImpl {
|
||||||
public void insertPrivacyLog(String userId, String ipAddress, String accessType, String targetUserId){
|
public void insertPrivacyLog(String userId, String ipAddress, String accessType, String targetUserId){
|
||||||
ThPrivacyLog log = new ThPrivacyLog();
|
ThPrivacyLog log = new ThPrivacyLog();
|
||||||
log.setUserId(userId);
|
log.setUserId(userId);
|
||||||
log.setAccessDt(LocalDate.now());
|
log.setAccessDt(LocalDateTime.now());
|
||||||
log.setIpAddress(ipAddress);
|
log.setIpAddress(ipAddress);
|
||||||
log.setAccessType(accessType);
|
log.setAccessType(accessType);
|
||||||
log.setTargetUserId(targetUserId);
|
log.setTargetUserId(targetUserId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue