📄 orderitem.java
字号:
package com.ghy.data.order;
import java.io.Serializable;
public class OrderItem implements Serializable{
private String orderid = null;
private String bookid = null;
private int amount = 1;
private int price = 0;
private String bookname = null;
private int subtotal = 0 ;
private String checked = null ;
public OrderItem() {
super();
// TODO Auto-generated constructor stub
}
public String getChecked() {
return checked;
}
public void setChecked(String checked) {
this.checked = checked;
}
/**
* @return the orderid
*/
public String getOrderid() {
return orderid;
}
/**
* @param orderid the orderid to set
*/
public void setOrderid(String orderid) {
this.orderid = orderid;
}
/**
* @return the bookid
*/
public String getBookid() {
return bookid;
}
/**
* @param bookid the bookid to set
*/
public void setBookid(String bookid) {
this.bookid = bookid;
}
/**
* @return the amount
*/
public int getAmount() {
return amount;
}
/**
* @param amount the amount to set
*/
public void setAmount(int amount) {
this.amount = amount;
}
/**
* @return the price
*/
public int getPrice() {
return price;
}
/**
* @param price the price to set
*/
public void setPrice(int price) {
this.price = price;
}
/**
* @return the bookname
*/
public String getBookname() {
return bookname;
}
/**
* @param bookname the bookname to set
*/
public void setBookname(String bookname) {
this.bookname = bookname;
}
/**
* @return the subtotal
*/
public int getSubtotal() {
return subtotal;
}
/**
* @param subtotal the subtotal to set
*/
public void setSubtotal() {
this.subtotal = this.amount * this.price;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -