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