Implement TODO tasks
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package dev.model;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class Order {
|
||||
@@ -12,4 +13,18 @@ public class Order {
|
||||
|
||||
private double totalPrice;
|
||||
|
||||
public Order(int id, int userId, Timestamp createdAt, double totalPrice) {
|
||||
this.id=id;
|
||||
this.userId=userId;
|
||||
this.createdAt= createdAt.toLocalDateTime();
|
||||
this.totalPrice=totalPrice;
|
||||
}
|
||||
|
||||
public int getUserId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public double getTotalPrice() {
|
||||
return totalPrice;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user