📄 orders.java
字号:
package jdbcbook.shopping.form;
import org.apache.struts.action.ActionForm;
import java.sql.Timestamp;
import java.math.BigDecimal;
public class Orders extends ActionForm
{
// 定义订单状态常量
public static final int STATUS_ORIGN = 0;
public static final int STATUS_FINISHED = 1;
public static final int STATUS_CANCEL = 2;
// 主键
private int id;
public int getId( )
{
return this.id;
}
public void setId( int id )
{
this.id = id;
}
// 下订单的时间
private Timestamp orderdate;
public Timestamp getOrderdate( )
{
return this.orderdate;
}
public void setOrderdate( Timestamp orderdate )
{
this.orderdate = orderdate;
}
// 订货人
private int userinfoid;
public int getUserinfoid( )
{
return this.userinfoid;
}
public void setUserinfoid( int userinfoid )
{
this.userinfoid = userinfoid;
}
// 收货人姓名
private String name;
public String getName( )
{
return this.name;
}
public void setName( String name )
{
this.name = name;
}
// 收货人邮政编码
private String postcode;
public String getPostcode( )
{
return this.postcode;
}
public void setPostcode( String postcode )
{
this.postcode = postcode;
}
// 收货人地址
private String address;
public String getAddress( )
{
return this.address;
}
public void setAddress( String address )
{
this.address = address;
}
// 收货人电子邮件
private String email;
public String getEmail( )
{
return this.email;
}
public void setEmail( String email )
{
this.email = email;
}
// 收货人电话
private String telp;
public String getTelp( )
{
return this.telp;
}
public void setTelp( String telp )
{
this.telp = telp;
}
// 订单状态
private int status;
public int getStatus( )
{
return this.status;
}
public void setStatus( int status )
{
this.status = status;
}
// 总费用
private BigDecimal totalfee;
public BigDecimal getTotalfee( )
{
return this.totalfee;
}
public void setTotalfee( BigDecimal totalfee )
{
this.totalfee = totalfee;
}
// 是否是未处理订单
public boolean isNotDispose()
{
return this.status==STATUS_ORIGN;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -