From 272299579a18bb301d46948282f0cabccd68d05a Mon Sep 17 00:00:00 2001 From: wjdtkdgns Date: Sun, 13 Aug 2023 23:42:44 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20spotless=20=EC=A0=81=EC=9A=A9=20#95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/api/search/service/SearchArchivingUseCase.java | 7 ++++++- .../repository/ArchivingCustomRepositoryImpl.java | 3 ++- .../content/repository/TagCustomRepositoryImpl.java | 4 +--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Api/src/main/java/allchive/server/api/search/service/SearchArchivingUseCase.java b/Api/src/main/java/allchive/server/api/search/service/SearchArchivingUseCase.java index 8fc38d1a..ddb55a13 100644 --- a/Api/src/main/java/allchive/server/api/search/service/SearchArchivingUseCase.java +++ b/Api/src/main/java/allchive/server/api/search/service/SearchArchivingUseCase.java @@ -112,7 +112,12 @@ private SliceResponse getCommunityArchivings( Slice archivingSlices = archivingAdaptor .querySliceArchivingByKeywordExceptBlockOrderByTagArchvingIds( - archivingIdList, blockList, keyword, pageable, tagArchivingIds, userId) + archivingIdList, + blockList, + keyword, + pageable, + tagArchivingIds, + userId) .map(archiving -> ArchivingResponse.of(archiving, Boolean.FALSE)); return SliceResponse.of(archivingSlices); } diff --git a/Domain/src/main/java/allchive/server/domain/domains/archiving/repository/ArchivingCustomRepositoryImpl.java b/Domain/src/main/java/allchive/server/domain/domains/archiving/repository/ArchivingCustomRepositoryImpl.java index 51879087..4e765f48 100644 --- a/Domain/src/main/java/allchive/server/domain/domains/archiving/repository/ArchivingCustomRepositoryImpl.java +++ b/Domain/src/main/java/allchive/server/domain/domains/archiving/repository/ArchivingCustomRepositoryImpl.java @@ -100,7 +100,8 @@ public Slice querySliceArchivingByUserIdAndKeywordsOrderByTagArchving List archivings = queryFactory .selectFrom(archiving) - .where(userIdEq(userId), + .where( + userIdEq(userId), titleContainOrIdIn(keyword, tagArchivingIds), deleteStatusFalse()) .orderBy(idIn(tagArchivingIds), createdAtDesc()) diff --git a/Domain/src/main/java/allchive/server/domain/domains/content/repository/TagCustomRepositoryImpl.java b/Domain/src/main/java/allchive/server/domain/domains/content/repository/TagCustomRepositoryImpl.java index 903fb0da..a8f5b9ad 100644 --- a/Domain/src/main/java/allchive/server/domain/domains/content/repository/TagCustomRepositoryImpl.java +++ b/Domain/src/main/java/allchive/server/domain/domains/content/repository/TagCustomRepositoryImpl.java @@ -30,9 +30,7 @@ public List queryTagByTagIdIn(List tagIds) { @Override public List queryTagByUserIdContainName(Long userId, String name) { - return queryFactory.selectFrom(tag) - .where(userIdEq(userId), titleContain(name)) - .fetch(); + return queryFactory.selectFrom(tag).where(userIdEq(userId), titleContain(name)).fetch(); } private BooleanExpression tagUserIdEq(Long userId) {