Skip to content

Commit

Permalink
Fix: build 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
marinesnow34 committed Nov 21, 2023
1 parent 31cafa7 commit cbf3aba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ public CurrentRes getCurrent(String orderId) {
}

private void verifyOrderCurrent(Order order) {
if (order.getProgress().equals(Progress.ORDER) ||
order.getProgress().equals(Progress.MAKE) ||
order.getProgress().equals(Progress.COMPLETE) ||
order.getProgress().equals(Progress.PICKUP)) {
if (order.getProgress().equals(Progress.ORDER)
|| order.getProgress().equals(Progress.MAKE)
|| order.getProgress().equals(Progress.COMPLETE)
|| order.getProgress().equals(Progress.PICKUP)) {
return;
}
throw new BusinessLogicException(ExceptionCode.ORDER_NOT_CURRENT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ public CurrentRes orderToCurrentRes(Order order) {
.orderNum(order.getId())
.progress(order.getProgress())
.orderName(order.getOrderName())
// .estimatedTime(order.getEstimatedTime().format(DateTimeFormatter.ofPattern(TIME_FORMAT)))
.estimatedTime(order.getEstimatedTime() != null ?
order.getEstimatedTime().format(DateTimeFormatter.ofPattern(TIME_FORMAT)) : null)
.estimatedTime(order.getEstimatedTime() != null
? order.getEstimatedTime().format(DateTimeFormatter.ofPattern(TIME_FORMAT)) : null)
.build();
}
}

0 comments on commit cbf3aba

Please sign in to comment.