-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] #28 파일명 수정 및 DecisionService 수정
- Loading branch information
최경환
authored and
최경환
committed
Jan 23, 2025
1 parent
3d595dc
commit 73d45fa
Showing
18 changed files
with
111 additions
and
118 deletions.
There are no files selected for viewing
This file contains 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
4 changes: 2 additions & 2 deletions
4
.../java/com/wedit/weditapp/domain/bankAccounts/domain/repository/BankAccountRepository.java
This file contains 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,8 +1,8 @@ | ||
package com.wedit.weditapp.domain.bankAccounts.domain.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import com.wedit.weditapp.domain.bankAccounts.domain.BankAccounts; | ||
import com.wedit.weditapp.domain.bankAccounts.domain.BankAccount; | ||
|
||
public interface BankAccountRepository extends JpaRepository<BankAccounts, Long> { | ||
public interface BankAccountRepository extends JpaRepository<BankAccount, Long> { | ||
} | ||
|
This file contains 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 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 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 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
6 changes: 3 additions & 3 deletions
6
src/main/java/com/wedit/weditapp/domain/comments/domain/repository/CommentRepository.java
This file contains 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,11 +1,11 @@ | ||
package com.wedit.weditapp.domain.comments.domain.repository; | ||
|
||
import com.wedit.weditapp.domain.comments.domain.Comments; | ||
import com.wedit.weditapp.domain.comments.domain.Comment; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
|
||
public interface CommentRepository extends JpaRepository<Comments, Long> { | ||
Page<Comments> findByInvitationId(Long invitationId, Pageable pageable); | ||
public interface CommentRepository extends JpaRepository<Comment, Long> { | ||
Page<Comment> findByInvitationId(Long invitationId, Pageable pageable); | ||
} |
5 changes: 1 addition & 4 deletions
5
.../dto/request/CommentCreateRequestDTO.java → .../dto/request/CommentCreateRequestDto.java
This file contains 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
10 changes: 5 additions & 5 deletions
10
...ents/dto/response/CommentResponseDTO.java → ...ents/dto/response/CommentResponseDto.java
This file contains 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
12 changes: 5 additions & 7 deletions
12
...dto/response/PagedCommentResponseDTO.java → ...dto/response/PagedCommentResponseDto.java
This file contains 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 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 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: 9 additions & 6 deletions
15
src/main/java/com/wedit/weditapp/domain/decisions/domain/repository/DecisionRepository.java
This file contains 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,18 +1,21 @@ | ||
package com.wedit.weditapp.domain.decisions.domain.repository; | ||
|
||
import com.wedit.weditapp.domain.decisions.domain.Decisions; | ||
import com.wedit.weditapp.domain.decisions.domain.Decision; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
|
||
public interface DecisionRepository extends JpaRepository<Decisions, Long> { | ||
@Query("select count(d) from Decisions d where d.invitation.id = :invitationId") | ||
Integer getAllDecisionCount(@Param("invitationId") Long invitationId); | ||
public interface DecisionRepository extends JpaRepository<Decision, Long> { | ||
// 총 방명록 수 | ||
@Query("SELECT count(d) FROM Decision d WHERE d.invitation.id = :invitationId") | ||
Integer getTotalDecisionCount(@Param("invitationId") Long invitationId); | ||
|
||
@Query("select count(d) from Decisions d where d.invitation.id = :invitationId and d.side = 'GROOM'") | ||
// 신랑측 방명록 수 | ||
@Query("SELECT count(d) FROM Decision d WHERE d.invitation.id = :invitationId AND d.side = 'GROOM'") | ||
Integer getGroomDecisionCount(@Param("invitationId") Long invitationId); | ||
|
||
@Query("select count(d) from Decisions d where d.invitation.id = :invitationId and d.side = 'BRIDE'") | ||
// 신부측 방명록 수 | ||
@Query("SELECT count(d) FROM Decision d WHERE d.invitation.id = :invitationId AND d.side = 'BRIDE'") | ||
Integer getBrideDecisionCount(@Param("invitationId") Long invitationId); | ||
|
||
} |
Oops, something went wrong.