Skip to content

Commit

Permalink
[#119] chore: update boot version to 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang committed Nov 30, 2023
1 parent 6bfdd7e commit b792937
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ buildscript {

plugins {
id 'java'
id 'org.springframework.boot' version '3.2.0-M1'
id 'io.spring.dependency-management' version '1.1.2'
id 'org.springframework.boot' version '3.2.0'
id 'io.spring.dependency-management' version '1.1.4'
id 'jacoco'
id 'org.sonarqube' version '4.2.1.3168'
}
Expand All @@ -26,7 +26,6 @@ configurations {

repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ default Category getById(Long id) {
return findById(id).orElseThrow(NotFoundCategoryException::new);
}

@Query("SELECT c FROM Category c WHERE c.owner.id = :memberId AND c.parent = null")
@Query("SELECT c FROM Category c WHERE c.owner.id = :memberId AND c.parent IS NULL")
List<Category> findAllRootByMemberId(@Param("memberId") Long memberId);

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ default Category getById(Long id) {
return findById(id).orElseThrow(NotFoundCategoryException::new);
}

@Query("SELECT c FROM Category c WHERE c.blog.name.value = :blogName AND c.parent = null")
@Query("SELECT c FROM Category c WHERE c.blog.name.value = :blogName AND c.parent IS NULL")
List<Category> findAllRootByBlogName(@Param("blogName") String blogName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@

public interface PostViewStatisticDao {

List<PostViewStatistic> findByPost(
Post post,
StatisticQueryCondition condition
);
List<PostViewStatistic> findByPost(Post post, StatisticQueryCondition condition);

@RequiredArgsConstructor
@Component
Expand All @@ -27,7 +24,8 @@ class PostViewStatisticDaoImpl implements PostViewStatisticDao {
public List<PostViewStatistic> findByPost(Post post, StatisticQueryCondition condition) {
return query.selectFrom(postViewStatistic)
.where(
postViewStatistic.postId.eq(post.getPostId()),
postViewStatistic.postId.id.eq(post.getPostId().getId()),
postViewStatistic.postId.blogId.eq(post.getPostId().getBlogId()),
postViewStatistic.statisticDate.between(
condition.startDayInclude(),
condition.lastDayInclude()
Expand Down

0 comments on commit b792937

Please sign in to comment.