Skip to content

Conversation

@PicturePark1101
Copy link
Contributor

@PicturePark1101 PicturePark1101 commented May 30, 2025

작업내용

공유된 임장은 필터링되도록 Fix

상세설명_ & 캡쳐

  • 공유할 임장 리스트 return 시 이미 공유된 임장은 필터링되도록 구현
	private List<Limjang> findUnsharedSharableNotes(Member member) {
		List<Limjang> notes = noteFinder.getAllByMemberWithAddressAndNotePriceWhereIsSharableIsTrueAndDeletedIsFalse(
			member);
		Set<Long> sharedNote = sharedNoteFinder.findAllIdByDeletedAtIsNullAndLimjang(notes);

		return notes.stream()
			.filter(note -> !sharedNote.contains(note.getLimjangId()))
			.toList();
	}
	@Query("SELECT s.sharedNoteId FROM SharedNote s WHERE s.limjang in :limjangs AND s.deletedAt is null ")
	Set<Long> findAllIdByDeletedAtIsNullAndLimjang(@Param("limjangs") List<Limjang> limjangs);

@PicturePark1101 PicturePark1101 self-assigned this May 30, 2025
@PicturePark1101 PicturePark1101 added 🐞 bugFix 버그 고침 진이 작업했습니다. 👊🏻 PULL REQUEST pr날릴때 labels May 30, 2025
@PicturePark1101 PicturePark1101 force-pushed the fix/#389 branch 5 times, most recently from b2f6452 to 06c4ad2 Compare June 1, 2025 07:11
@PicturePark1101 PicturePark1101 merged commit 1346fb5 into dev Jun 1, 2025
1 check passed
@PicturePark1101 PicturePark1101 deleted the fix/#389 branch June 1, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

진이 작업했습니다. 🐞 bugFix 버그 고침 👊🏻 PULL REQUEST pr날릴때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants