Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix/#346] 단일 워크북 조회시 포함 아티클 정렬이 day 순으로 되어있지 않은 문제 해결 #347

Merged
merged 2 commits into from
Aug 17, 2024

Conversation

belljun3395
Copy link
Collaborator

🎫 연관 이슈

resolved: #346

💁‍♂️ PR 내용

  • 단일 워크북 조회시 포함 아티클 정렬이 day 순으로 되어있지 않은 문제 해결

🙏 작업

  • 단일 워크북 조회시 포함 아티클 정렬이 day 순으로 되어있지 않은 문제 해결

🙈 PR 참고 사항

📸 스크린샷

스크린샷 2024-08-15 오전 9 08 21

🤖 테스트 체크리스트

  • 체크 미완료
  • 체크 완료

@github-actions github-actions bot added the fix 기능을 고칠 때 사용됩니다 label Aug 15, 2024
.on(MappingWorkbookArticle.MAPPING_WORKBOOK_ARTICLE.ARTICLE_ID.eq(ArticleMst.ARTICLE_MST.ID))
.join(ArticleIfo.ARTICLE_IFO)
.on(ArticleMst.ARTICLE_MST.ID.eq(ArticleIfo.ARTICLE_IFO.ARTICLE_MST_ID))
.where(MappingWorkbookArticle.MAPPING_WORKBOOK_ARTICLE.WORKBOOK_ID.eq(query.workbookId))
.and(ArticleMst.ARTICLE_MST.DELETED_AT.isNull)
.orderBy(MappingWorkbookArticle.MAPPING_WORKBOOK_ARTICLE.DAY_COL)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

orderBy로 순서 명시해주었습니다.

.leftJoin(ArticleMst.ARTICLE_MST)
.join(ArticleMst.ARTICLE_MST)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftjoin이 불필요한 경우라 join으로 변경했습니다. (이번 PR과는 관계없지만..)

@belljun3395 belljun3395 requested a review from hun-ca August 16, 2024 05:17
@belljun3395 belljun3395 merged commit 7d01f3c into dev Aug 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 기능을 고칠 때 사용됩니다
Projects
None yet
Development

Successfully merging this pull request may close these issues.

단일 워크북 조회시 포함 아티클 정렬이 day 순으로 되어있지 않은 문제 해결
1 participant