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

[BUG FIX] #402: HMG 데이터 0 이하일 시 없는 것으로 판단하도록 변경 #403

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public List<DefaultOptionDto> getDefaultOptionList(int carId) {
.optionName(data.getOptionName())
.optionCategoryName(data.getOptionCategoryName())
.optionImage(data.getOptionImage())
.hasHmgData(data.getOptionUsedCount() != null).build()).collect(Collectors.toList());
.hasHmgData(data.getOptionUsedCount() > 0).build()).collect(Collectors.toList());
}

//TODO: RuntimeException 처리
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ void getDefaultOptionList() {
.optionName("적외선 무릎 워머")
.optionCategoryName("악세사리")
.optionImage("/images/options/sub/warmer.jpg")
.optionUsedCount(0.0)
.build();
OptionShortMappedDto data3 = OptionShortMappedDto.builder()
.optionId(3)
Expand Down