Skip to content

Commit

Permalink
๐ŸŽจ ํ•™๋ถ€๋ชจver ์‹ ์ฒญ ๋ชฉ๋ก ์ตœ์‹ ์ˆœ ์ •๋ ฌ ์ˆ˜์ • (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juye0nLee authored Dec 7, 2024
1 parent 2eeae57 commit 8a1bd93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@Repository
public interface ApplyRepository extends JpaRepository<Apply, Long> {
List<Apply> findAllByChild_Id(Long childId);
List<Apply> findAllByChild_IdOrderByCreateAtDesc(Long childId);
Optional<Apply> findById (Long applyId);
Apply findFirstByChild_IdOrderByCreateAt(Long childID);
Optional<Apply> findFirstByStatusOrderByCreateAtDesc(Status status);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ivory/ivory/service/ApplyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public CustomApiResponse<?> getApplyList(Long childId, Long currentMemberId) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "๋ณธ์ธ ์ž๋…€์˜ ์‹ ์ฒญ ๋‚ด์—ญ๋งŒ ์กฐํšŒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.");
}

List<Apply> applyList = applyRepository.findAllByChild_Id(child.get().getId());
List<Apply> applyList = applyRepository.findAllByChild_IdOrderByCreateAtDesc(child.get().getId());

//์‘๋‹ต dto ์ƒ์„ฑ
List<ApplyListDto> applyListDto = new ArrayList<>();
Expand Down

0 comments on commit 8a1bd93

Please sign in to comment.