-
Notifications
You must be signed in to change notification settings - Fork 1
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 #484 from team-yello/staging
[deploy] 2.0.3v
- Loading branch information
Showing
35 changed files
with
1,129 additions
and
512 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lombok.copyableAnnotations += org.springframework.beans.factory.annotation.Qualifier |
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
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/yello/server/domain/statistics/dto/SignUpVO.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,12 @@ | ||
package com.yello.server.domain.statistics.dto; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record SignUpVO( | ||
Long count, | ||
Long maleCount, | ||
Long femaleCount | ||
) { | ||
|
||
} |
58 changes: 58 additions & 0 deletions
58
src/main/java/com/yello/server/domain/statistics/entity/StatisticsDaily.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,58 @@ | ||
package com.yello.server.domain.statistics.entity; | ||
|
||
import com.yello.server.domain.statistics.dto.SignUpVO; | ||
import com.yello.server.global.common.entity.JsonConverter; | ||
import com.yello.server.global.common.entity.ZonedDateTimeConverter; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Convert; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import java.time.ZonedDateTime; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
import org.hibernate.annotations.DynamicInsert; | ||
|
||
@Entity | ||
@Getter | ||
@SuperBuilder | ||
@DynamicInsert | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class StatisticsDaily { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
@Column(nullable = false) | ||
@Convert(converter = ZonedDateTimeConverter.class) | ||
private ZonedDateTime startAt; | ||
|
||
@Column(nullable = false) | ||
@Convert(converter = ZonedDateTimeConverter.class) | ||
private ZonedDateTime endAt; | ||
|
||
/** | ||
* json | ||
*/ | ||
@Column | ||
@Convert(converter = JsonConverter.class) | ||
private SignUpVO signUp; | ||
|
||
/** | ||
* json | ||
*/ | ||
@Column | ||
private String revenue; | ||
|
||
/** | ||
* json | ||
*/ | ||
@Column | ||
private String vote; | ||
} |
8 changes: 8 additions & 0 deletions
8
...main/java/com/yello/server/domain/statistics/repository/StatisticsDailyJpaRepository.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.yello.server.domain.statistics.repository; | ||
|
||
import com.yello.server.domain.statistics.entity.StatisticsDaily; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface StatisticsDailyJpaRepository extends JpaRepository<StatisticsDaily, Long> { | ||
|
||
} |
Oops, something went wrong.