-
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.
[HOTFIX/1.1.5] hotfix: Hotfix v1.1.5 릴리즈 (#162)
- Loading branch information
Showing
12 changed files
with
103 additions
and
36 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,16 @@ | ||
name: "Pull Request 오토 템플릿 추가" | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update_pr_templates: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: tzkhan/pr-update-action@v2 # https://github.com/tzkhan/pr-update-action | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
base-branch-regex: 'main' | ||
head-branch-regex: '(release|hotfix)\/\d+.\d+.\d+' # release 또는 hotfix 브랜치 reges (ex: release/1.0.0) | ||
title-template: '[%headbranch%] ' # PR Title Prefix 템플릿 (배포 속성) (ex: [RELEASE/1.0.0]) |
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
8 changes: 8 additions & 0 deletions
8
family/src/main/java/com/oing/repository/FamilyRepositoryCustom.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.oing.repository; | ||
|
||
public interface FamilyRepositoryCustom { | ||
|
||
int countByScoreDistinct(); | ||
|
||
int countByScoreGreaterThanEqualScoreDistinct(int familyScore); | ||
} |
35 changes: 35 additions & 0 deletions
35
family/src/main/java/com/oing/repository/FamilyRepositoryCustomImpl.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,35 @@ | ||
package com.oing.repository; | ||
|
||
import com.querydsl.jpa.impl.JPAQueryFactory; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
import static com.oing.domain.QFamily.family; | ||
|
||
@RequiredArgsConstructor | ||
public class FamilyRepositoryCustomImpl implements FamilyRepositoryCustom { | ||
|
||
private final JPAQueryFactory queryFactory; | ||
|
||
@Override | ||
public int countByScoreDistinct() { | ||
return queryFactory | ||
.select(family.score) | ||
.from(family) | ||
.groupBy(family.score) | ||
.fetch() | ||
.size(); | ||
} | ||
|
||
@Override | ||
public int countByScoreGreaterThanEqualScoreDistinct(int familyScore) { | ||
return queryFactory | ||
.select(family.score) | ||
.from(family) | ||
.where(family.score.goe(familyScore)) | ||
.groupBy(family.score) | ||
.fetch() | ||
.size(); | ||
} | ||
|
||
|
||
} |
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