📄 shoppingcart.java
字号:
/*
* Created on 2005-10-31
* Author 曹汕
* Version 1.0
* Copyright by CS.SSPKU Inc. All rights reserved.
*/
package com.struts.business;
import java.io.Serializable;
/**
* @author cs
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Shoppingcart implements Serializable{
//购物车行ID,保留
private int id;
//会员ID,保留
private int memberId;
//商品ID
private int productId;
//商品名称
private String productName;
//商品定价
private double standardPrice;
//商品会员价
private double memberPrice;
//商品数量
private int quantity;
//行状态,保留
private int status;
//备注
private String remark;
public Shoppingcart(){}
/**
* @return Returns the id.
*/
public int getId() {
return id;
}
/**
* @param id The id to set.
*/
public void setId(int id) {
this.id = id;
}
/**
* @return Returns the memberId.
*/
public int getMemberId() {
return memberId;
}
/**
* @param memberId The memberId to set.
*/
public void setMemberId(int memberId) {
this.memberId = memberId;
}
/**
* @return Returns the memberPrice.
*/
public double getMemberPrice() {
return memberPrice;
}
/**
* @param memberPrice The memberPrice to set.
*/
public void setMemberPrice(double memberPrice) {
this.memberPrice = memberPrice;
}
/**
* @return Returns the productId.
*/
public int getProductId() {
return productId;
}
/**
* @param productId The productId to set.
*/
public void setProductId(int productId) {
this.productId = productId;
}
/**
* @return Returns the productName.
*/
public String getProductName() {
return productName;
}
/**
* @param productName The productName to set.
*/
public void setProductName(String productName) {
this.productName = productName;
}
/**
* @return Returns the quantity.
*/
public int getQuantity() {
return quantity;
}
/**
* @param quantity The quantity to set.
*/
public void setQuantity(int quantity) {
this.quantity = quantity;
}
/**
* @return Returns the remark.
*/
public String getRemark() {
return remark;
}
/**
* @param remark The remark to set.
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* @return Returns the standardPrice.
*/
public double getStandardPrice() {
return standardPrice;
}
/**
* @param standardPrice The standardPrice to set.
*/
public void setStandardPrice(double standardPrice) {
this.standardPrice = standardPrice;
}
/**
* @return Returns the status.
*/
public int getStatus() {
return status;
}
/**
* @param status The status to set.
*/
public void setStatus(int status) {
this.status = status;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -