Skip to content

Commit

Permalink
chore: 깃 충돌 문제 해결(#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
whereami2048 committed May 21, 2024
1 parent 036e217 commit 96aafc9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ class ExperienceGetService(
tagReader.readIdsByNameContains(search) +
strongPointReader.readIdsByNameContains(search)

println(experiencesIds.filter { })
val searchExperiences = experienceReader.readByIds(experiencesIds)
val bookmarkExperienceIds = bookMarkReader.readByExperienceIds(experiencesIds).map { it.experienceId }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ class ExperienceReader(
return experiences.filter {
it.contents.map { content ->
content.question.contains(search) || content.answer.contains(search)
}.contains(true) }.map { it.id }

}.contains(true)
}.map { it.id }
}
fun readByYear(year: Int): List<Experience> {
return experienceRepository.findByYear(year)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public List<Experience> findByIds(List<UUID> experienceIds) {

public List<Experience> findByTitleContains(String search) {
List<ExperienceJpaEntity> experienceJpaEntities = experienceJpaRepository.findByTitleContaining(search);
return experienceJpaEntities.stream().map(experienceMapper::toExperienceDomainEntity).toList();
}

public List<Experience> findByUserIdAndParentTagId(UUID userId, UUID parentTagId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public Tag findById(UUID tagId) {
@Override
public List<Tag> findByNameContains(String search) {
List<TagJpaEntity> tagJpaEntities = tagJpaRepository.findByNameContaining(search);
return tagJpaEntities.stream().map(tagMapper::toDomainEntity).toList();
}

public List<Tag> findAllChildTagsByParentTagId(UUID parentTagId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ public interface TagJpaRepository extends JpaRepository<TagJpaEntity, UUID> {
List<TagJpaEntity> findAllByUserIdAndParentTagIdIsNull(UUID userId);
List<TagJpaEntity> findAllByUserIdAndParentTagId(UUID parentTagId, UUID parentId);
List<TagJpaEntity> findByNameContaining(String search);
List<TagJpaEntity> findAllByUserIdAndParentTagId(UUID userId, UUID parentId);
List<TagJpaEntity> findAllByParentTagId(UUID parentTagId);
}

0 comments on commit 96aafc9

Please sign in to comment.