-
Notifications
You must be signed in to change notification settings - Fork 0
fix: 제휴 지도 & 신고 기능 수정 사항 (20250930) #249
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7f3e134
chore: DS 파일 git ignore
yongjun0511 3c69397
refactor: 만료된 제휴가 보이지 않도록 수정
yongjun0511 dbc6a3b
feat: 24시간 이내에 댓글 신고 횟수 제한
yongjun0511 038e015
refactor: 스웨거 문서 업데이트
yongjun0511 9e01f01
chore: CI/CD test
yongjun0511 42ca468
chore: CI/CD test
yongjun0511 237efea
fix: 공백 제거
yongjun0511 379c3cf
fix: CI/CD 수정 완료
yongjun0511 547eaf1
fix: gemini 수정 사항 반영
yongjun0511 5c5752a
fix: writtenAt 필드 수정
yongjun0511 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/ssu/eatssu/domain/report/repository/ReportRepository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,22 @@ | ||
| package ssu.eatssu.domain.report.repository; | ||
|
|
||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
| import org.springframework.data.jpa.repository.Query; | ||
| import org.springframework.data.repository.query.Param; | ||
| import ssu.eatssu.domain.review.entity.Report; | ||
|
|
||
| import java.time.LocalDateTime; | ||
|
|
||
| public interface ReportRepository extends JpaRepository<Report, Long> { | ||
|
|
||
| @Query(""" | ||
| SELECT count(r) > 0 | ||
| FROM Report r | ||
| WHERE r.user.id = :userId | ||
| AND r.review.id = :reviewId | ||
| AND r.createdDate >= :threshold | ||
| """) | ||
| boolean existsRecentReport(@Param("userId") Long userId, | ||
| @Param("reviewId") Long reviewId, | ||
| @Param("threshold") LocalDateTime threshold); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스타일 가이드 3번 규칙에 따라 와일드카드(
*) import는 사용하지 않는 것이 좋습니다.1 코드의 가독성을 높이고 불필요한 클래스가 네임스페이스에 포함되는 것을 방지하기 위해, 필요한 static 멤버만 명시적으로 import하는 것을 권장합니다.Style Guide References
Footnotes
Do not use wildcard when importing libraries ↩