-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Added OrderRepositoryCustom #81
feat: Added OrderRepositoryCustom #81
Conversation
koreanMike513
commented
Jan 29, 2025
- querydsl 로직을 사용한 custom repository 를 추가하였습니다.
- test 도 우선적으로 추가 수정을 염두하면서 써보았습니다.
} | ||
|
||
private BooleanExpression eqStatus(String status) { | ||
return (status != null && !status.equals("ALL")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
왜 all은 체크대상이 되지 않는지 명확하지가 않습니다
} | ||
|
||
@Test | ||
@DisplayName("AAA") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Production에 merge할 수 없는 draft는 mr에 포함 안시키는게 좋습니다
List<Order> orders = new ArrayList<>(); | ||
|
||
for (int i = 1; i <= 20; i++) { | ||
OrderStatus status = (i % 3 == 0) ? OrderStatus.READY : (i % 2 == 0 ? OrderStatus.IN_PROGRESS : OrderStatus.DONE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전반적인 로직에 magic number와 연산이 많아 의도를 파악하기가 힘듭니다