Skip to content

Commit

Permalink
[PBS-85][NguyenHCP] feat: update cancel reason of order
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhcp2004 committed Oct 29, 2024
1 parent b37841c commit 38c94fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ApiResponse<OrderResponse> updateOrder(@RequestBody OrderUpdateRequest request)
orderService.updateOrderUpdateAt(request.getId());
return ApiResponse.<OrderResponse>builder()
.data(orderService.updateOrder(request))
.message("Update order successfully")
.message("Cập nhật hóa đơn thành công")
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public class OrderDetail {
@Temporal(TemporalType.TIMESTAMP)
LocalDateTime updatedAt;

@Column(name = "cancelReason")
String cancelReason;

@PrePersist
protected void onCreate() {
this.createdAt = LocalDateTime.now();
Expand Down

0 comments on commit 38c94fc

Please sign in to comment.