Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#116 - 유저정보 조회 버그 수정 #118

Merged
merged 2 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/java/com/dodal/meet/configuration/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
@Profile({"local", "dev"})
public class SwaggerConfig {
@Bean
public OpenAPI openAPI(@Value("${project.version}") String version,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public interface CategoryEntityRepository extends JpaRepository<CategoryEntity,
Optional<CategoryEntity> findByCategoryValue(String categoryValue);

@Query(
"SELECT c FROM CategoryEntity c JOIN FETCH c.hashTagEntities WHERE c IN " +
"(SELECT t.categoryEntity FROM TagEntity t WHERE t IN :tagEntityList)"
"SELECT distinct c FROM CategoryEntity c JOIN FETCH c.hashTagEntities WHERE c.categoryValue IN " +
"(SELECT distinct substring(t.tagValue, 1, 3) FROM TagEntity t WHERE t IN :tagEntityList)"
)
List<CategoryEntity> findAllByTagEntity(@Param("tagEntityList") List<TagEntity> tagEntityList);
}
Loading