[KC-116] shp 파일 다운로드 이력 추가

This commit is contained in:
2026-01-19 17:42:12 +09:00
parent 183b4df7f8
commit a586c440fb
6 changed files with 41 additions and 19 deletions

View File

@@ -46,7 +46,7 @@ public class AuditLogCoreService
return auditLogRepository.findLogByAccount(searchRange, searchValue);
}
public Page<AuditLogDto.Basic> findLogByAccount(
public Page<AuditLogDto.DownloadRes> findLogByAccount(
AuditLogDto.searchReq searchReq, DownloadReq downloadReq) {
return auditLogRepository.findDownloadLog(searchReq, downloadReq);
}

View File

@@ -16,7 +16,8 @@ public interface AuditLogRepositoryCustom {
Page<AuditLogDto.UserAuditList> findLogByAccount(
AuditLogDto.searchReq searchReq, String searchValue);
Page<AuditLogDto.Basic> findDownloadLog(AuditLogDto.searchReq searchReq, DownloadReq downloadReq);
Page<AuditLogDto.DownloadRes> findDownloadLog(
AuditLogDto.searchReq searchReq, DownloadReq downloadReq);
Page<AuditLogDto.DailyDetail> findLogByDailyResult(
AuditLogDto.searchReq searchReq, LocalDate logDate);

View File

@@ -160,7 +160,8 @@ public class AuditLogRepositoryImpl extends QuerydslRepositorySupport
}
@Override
public Page<AuditLogDto.Basic> findDownloadLog(AuditLogDto.searchReq searchReq, DownloadReq req) {
public Page<AuditLogDto.DownloadRes> findDownloadLog(
AuditLogDto.searchReq searchReq, DownloadReq req) {
Pageable pageable = searchReq.toPageable();
BooleanBuilder whereBuilder = new BooleanBuilder();
@@ -183,21 +184,14 @@ public class AuditLogRepositoryImpl extends QuerydslRepositorySupport
}
}
List<AuditLogDto.Basic> foundContent =
List<AuditLogDto.DownloadRes> foundContent =
queryFactory
.select(
Projections.constructor(
AuditLogDto.Basic.class,
auditLogEntity.id,
auditLogEntity.userUid,
auditLogEntity.eventType,
auditLogEntity.eventStatus,
auditLogEntity.menuUid,
auditLogEntity.ipAddress,
auditLogEntity.requestUri,
auditLogEntity.requestBody,
auditLogEntity.errorLogUid,
auditLogEntity.createdDate))
AuditLogDto.DownloadRes.class,
memberEntity.name,
memberEntity.employeeNo,
auditLogEntity.createdDate.as("downloadDttm")))
.from(auditLogEntity)
.leftJoin(memberEntity)
.on(auditLogEntity.userUid.eq(memberEntity.id))