-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 미션 기록 display 필드 추가 및 로직 변경 (#259)
- Loading branch information
Showing
8 changed files
with
110 additions
and
35 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
9 changes: 7 additions & 2 deletions
9
...n/java/com/depromeet/stonebed/domain/missionRecord/dao/MissionRecordRepositoryCustom.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,20 @@ | ||
package com.depromeet.stonebed.domain.missionRecord.dao; | ||
|
||
import com.depromeet.stonebed.domain.missionRecord.domain.MissionRecord; | ||
import com.depromeet.stonebed.domain.missionRecord.domain.MissionRecordDisplay; | ||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import org.springframework.data.domain.Pageable; | ||
|
||
public interface MissionRecordRepositoryCustom { | ||
List<MissionRecord> findByMemberIdWithPagination(Long memberId, Pageable pageable); | ||
List<MissionRecord> findByMemberIdWithPagination( | ||
Long memberId, List<MissionRecordDisplay> displays, Pageable pageable); | ||
|
||
List<MissionRecord> findByMemberIdAndCreatedAtFromWithPagination( | ||
Long memberId, LocalDateTime createdAt, Pageable pageable); | ||
Long memberId, | ||
LocalDateTime createdAt, | ||
List<MissionRecordDisplay> displays, | ||
Pageable pageable); | ||
|
||
void updateExpiredMissionsToNotCompleted(LocalDateTime dateTime); | ||
} |
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
14 changes: 14 additions & 0 deletions
14
src/main/java/com/depromeet/stonebed/domain/missionRecord/domain/MissionRecordDisplay.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,14 @@ | ||
package com.depromeet.stonebed.domain.missionRecord.domain; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum MissionRecordDisplay { | ||
PUBLIC("PUBLIC"), | ||
PRIVATE("PRIVATE"), | ||
FORBIDDEN("FORBIDDEN"), | ||
; | ||
private final String value; | ||
} |
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