diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/entity/TnDailyUserLog.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/entity/TnDailyUserLog.java index 2646f06..d9f6f5f 100644 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/entity/TnDailyUserLog.java +++ b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/entity/TnDailyUserLog.java @@ -28,7 +28,7 @@ public class TnDailyUserLog { @Column(name = "log_dt") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate logDt; - + @Column(name = "log_cnt") private Long logCnt; diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/repository/UserLogsRepository.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/repository/UserLogsRepository.java index 181912a..9d175a3 100644 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/repository/UserLogsRepository.java +++ b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/repository/UserLogsRepository.java @@ -23,5 +23,5 @@ public interface UserLogsRepository extends JpaRepository + "ORDER BY log_dt asc", nativeQuery = true) List selectCountUser(@Param("startDate") String startDate, @Param("endDate") String endDate); - Optional findByLogDt(LocalDate logDt); + Optional findByLogDt(LocalDate logDt); } diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/service/AdminLogsService.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/service/AdminLogsService.java index 12ce23c..1814de3 100644 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/service/AdminLogsService.java +++ b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/logs/service/AdminLogsService.java @@ -2,7 +2,7 @@ package com.dbnt.kcscbackend.admin.logs.service; import com.dbnt.kcscbackend.admin.logs.entity.ThLoginLog; import com.dbnt.kcscbackend.admin.logs.entity.ThPrivacyLog; -import com.dbnt.kcscbackend.admin.logs.entity.TnDailyUserConnLog; +import com.dbnt.kcscbackend.admin.logs.entity.TnDailyUserLog; import com.dbnt.kcscbackend.admin.logs.repository.PrivacyLogsRepository; import com.dbnt.kcscbackend.admin.logs.repository.ThLoginLogRepository; import com.dbnt.kcscbackend.admin.logs.repository.UserLogsRepository; @@ -67,9 +67,9 @@ public class AdminLogsService extends EgovAbstractServiceImpl { // 로그인 기록이면 tn_daily_yser_log 카운트 조정 if(accessType.equals("Y")){ //오늘 일자 로그 조회 - TnDailyUserConnLog userConnLog = userLogsRepository.findByLogDt(LocalDate.now()).orElse(null); + TnDailyUserLog userConnLog = userLogsRepository.findByLogDt(LocalDate.now()).orElse(null); if(userConnLog==null){ - userConnLog = new TnDailyUserConnLog(); + userConnLog = new TnDailyUserLog(); userConnLog.setLogDt(LocalDate.now()); userConnLog.setLogCnt(0L); userConnLog.setMobileCnt(0L);