src/com/demo/model/OrderItem.java
(完整代码) 965Bpackage com.demo.model;
/**
* 实体类-订单商品信息
* @author shao
*/
public class OrderItem {
/**
* create table orderitem
(
id varchar(40) primary key,
quantity int,
price double,
order_id varchar(40),
clothes_id varchar(40),
constraint order_id_FK foreign key(order_id) references orders(id),
constraint clothes_id_FK foreign key(clothes_id) references clothes(id)
);
*/
private String id;
private Clothes clothes;
private int quantity;
private double price;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Clothes getClothes() {
return clothes;
}
public void setClothes(Clothes clothes) {
this.clothes = clothes;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。