-
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.
Merge pull request #90 from kakao-tech-campus-2nd-step3/Weekly
7주차 산출물(Weekly -> Develop)
- Loading branch information
Showing
82 changed files
with
3,136 additions
and
469 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
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
11 changes: 11 additions & 0 deletions
11
src/main/java/com/example/sinitto/callback/dto/CallbackUsageHistoryResponse.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.example.sinitto.callback.dto; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
public record CallbackUsageHistoryResponse( | ||
Long callbackId, | ||
String seniorName, | ||
LocalDateTime postTime, | ||
String status | ||
) { | ||
} |
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
8 changes: 8 additions & 0 deletions
8
...ain/java/com/example/sinitto/callback/exception/MemberHasInProgressCallbackException.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.example.sinitto.callback.exception; | ||
|
||
public class MemberHasInProgressCallbackException extends ConflictException { | ||
|
||
public MemberHasInProgressCallbackException(String message) { | ||
super(message); | ||
} | ||
} |
13 changes: 12 additions & 1 deletion
13
src/main/java/com/example/sinitto/callback/repository/CallbackRepository.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,15 +1,26 @@ | ||
package com.example.sinitto.callback.repository; | ||
|
||
import com.example.sinitto.callback.entity.Callback; | ||
import com.example.sinitto.member.entity.Senior; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface CallbackRepository extends JpaRepository<Callback, Long> { | ||
|
||
Page<Callback> findAll(Pageable pageable); | ||
Page<Callback> findAllByStatus(Callback.Status status, Pageable pageable); | ||
|
||
Optional<Callback> findByAssignedMemberIdAndStatus(Long memberId, Callback.Status status); | ||
|
||
boolean existsByAssignedMemberIdAndStatus(Long memberId, Callback.Status status); | ||
|
||
Page<Callback> findAllBySeniorIn(List<Senior> seniors, Pageable pageable); | ||
|
||
List<Callback> findAllByStatusAndPendingCompleteTimeBefore(Callback.Status status, LocalDateTime dateTime); | ||
|
||
boolean existsBySeniorAndStatusIn(Senior senior, List<Callback.Status> statuses); | ||
} |
Oops, something went wrong.