Skip to content

Commit

Permalink
๐ŸŽจ ์•„์ด ๋ชฉ๋ก ์‹ ์ฒญ ํ˜„ํ™ฉ ์ตœ์‹ ๊ฑธ๋กœ (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juye0nLee authored Dec 7, 2024
1 parent 5a936c0 commit f8c6512
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 @@ -12,7 +12,7 @@
public interface ApplyRepository extends JpaRepository<Apply, Long> {
List<Apply> findAllByChild_IdOrderByCreateAtDesc(Long childId);
Optional<Apply> findById (Long applyId);
Apply findFirstByChild_IdOrderByCreateAt(Long childID);
Apply findFirstByChild_IdOrderByCreateAtDesc(Long childID);
Optional<Apply> findFirstByStatusOrderByCreateAtDesc(Status status);
List<Apply> findAllByStatus(Status status);
List<Apply> findAllByOrderByCreateAtDesc();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ivory/ivory/service/ChildService.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public CustomApiResponse<?> getChildren(Long memberId) {

String recentApplyStatus = "์•„์ง ์‹ ์ฒญ ๋‚ด์—ญ์ด ์—†์Šต๋‹ˆ๋‹ค";
//์‹ ์ฒญ ์ƒํƒœ
Apply apply = applyRepository.findFirstByChild_IdOrderByCreateAt(child.getId());
Apply apply = applyRepository.findFirstByChild_IdOrderByCreateAtDesc(child.getId());
if (apply != null) {
recentApplyStatus = getStatus(apply.getStatus());
}
Expand Down

0 comments on commit f8c6512

Please sign in to comment.