Skip to content

Commit

Permalink
Merge pull request #403 from softeerbootcamp-2nd/bugfix/default-optio…
Browse files Browse the repository at this point in the history
…n-hmg

[BUG FIX] #402: HMG 데이터 0 이하일 시 없는 것으로 판단하도록 변경
  • Loading branch information
tank3a authored Aug 22, 2023
2 parents 78a2584 + 916d084 commit 4178938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 4178938

Please sign in to comment.