From 0433a9fb214f3f8b1a744580bd6d0d2ddf42bd2a Mon Sep 17 00:00:00 2001 From: Chan531 Date: Fri, 13 Dec 2024 15:53:44 +0900 Subject: [PATCH] =?UTF-8?q?delete:=20=EC=A3=BC=EC=84=9D=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EB=A9=94=EC=86=8C=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tiki/server/document/adapter/DocumentFinder.java | 4 ---- .../tiki/server/document/repository/DocumentRepository.java | 4 ---- .../com/tiki/server/document/service/DocumentService.java | 5 ----- 3 files changed, 13 deletions(-) diff --git a/src/main/java/com/tiki/server/document/adapter/DocumentFinder.java b/src/main/java/com/tiki/server/document/adapter/DocumentFinder.java index acf7a7d..772db6d 100644 --- a/src/main/java/com/tiki/server/document/adapter/DocumentFinder.java +++ b/src/main/java/com/tiki/server/document/adapter/DocumentFinder.java @@ -28,10 +28,6 @@ public Document findById(final long documentId) { .orElseThrow(() -> new DocumentException(INVALID_DOCUMENT)); } - // public List findAllByTeamIdAndAccessiblePosition(long teamId, Position accessiblePosition) { - // return documentRepository.findAllByTeamIdAndAccessiblePosition(teamId, accessiblePosition); - // } - public List findAllByTeamId(long teamId) { return documentRepository.findAllByTeamId(teamId); } diff --git a/src/main/java/com/tiki/server/document/repository/DocumentRepository.java b/src/main/java/com/tiki/server/document/repository/DocumentRepository.java index 97cb8a8..8013da3 100644 --- a/src/main/java/com/tiki/server/document/repository/DocumentRepository.java +++ b/src/main/java/com/tiki/server/document/repository/DocumentRepository.java @@ -12,10 +12,6 @@ public interface DocumentRepository extends JpaRepository { List findAllByFolderId(long folderId); - // @Query("select d from Document d join fetch d.timeBlock t " - // + "where t.team.id = :teamId and t.accessiblePosition = :position order by d.createdAt asc") - // List findAllByTeamIdAndAccessiblePosition(long teamId, Position position); - List findAllByTeamId(long teamId); List findAllByTeamIdAndFolderIdOrderByCreatedAtDesc(long teamId, Long folderId); diff --git a/src/main/java/com/tiki/server/document/service/DocumentService.java b/src/main/java/com/tiki/server/document/service/DocumentService.java index 3781c20..9c1020e 100644 --- a/src/main/java/com/tiki/server/document/service/DocumentService.java +++ b/src/main/java/com/tiki/server/document/service/DocumentService.java @@ -100,11 +100,6 @@ public DeletedDocumentsGetResponse getTrash(final long memberId, final long team return DeletedDocumentsGetResponse.from(deletedDocuments); } - // private DocumentsGetResponse getAllDocumentsByType(final long teamId, final Position accessiblePosition) { - // List documents = documentFinder.findAllByTeamIdAndAccessiblePosition(teamId, accessiblePosition); - // return DocumentsGetResponse.from(documents); - // } - private void validateFolder(final Long folderId, final long teamId) { if (folderId == null) { return;