Skip to content

Commit

Permalink
FIX - 자재 재고 수정 시, 최근 자재 조회 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yuseogi0218 authored Mar 19, 2024
1 parent 38cc22e commit c627a76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public IngredientStock findPreviousByIngredientIdAndDate(Long ingredientId, Loca
.join(ingredientStock.ingredient, ingredient)
.where(
ingredient.id.eq(ingredientId),
ingredientStock.createdAt.loe(date)
ingredientStock.createdAt.before(date)
)
.orderBy(ingredientStock.createdAt.desc())
.fetchFirst();
Expand Down

0 comments on commit c627a76

Please sign in to comment.