1. 程式人生 > >基於android的備忘錄系統,java專業畢業設計

基於android的備忘錄系統,java專業畢業設計

**基於android的備忘錄系統,java專業畢業設計** 基於android的備忘錄系統登入註冊介面

基於android的備忘錄系統mysql資料庫版本原始碼:

超級管理員表建立語句如下:


create table t_admin(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '超級管理員賬號',
	password varchar(100) comment '超級管理員密碼'
) comment '超級管理員';
insert into t_admin(username,password) values('admin','123456');

備忘錄表建立語句如下:


create table t_bwl(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '客戶',
	title varchar(100) comment '標題',
	content varchar(100) comment '內容',
	picUrl varchar(100) comment '圖片',
	insertDate datetime comment '入庫時間',
	isNeed varchar(100) comment '是否需要提醒',
	txTime datetime comment '提醒時間'
) comment '備忘錄';

客戶表建立語句如下:


create table t_customer(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	name varchar(100) comment '姓名',
	sex varchar(100) comment '性別',
	address varchar(100) comment '地址',
	mobile varchar(100) comment '手機',
	insertDate datetime comment ''
) comment '客戶';

記事本表建立語句如下:


create table t_jsb(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '客戶',
	title varchar(100) comment '標題',
	content varchar(100) comment '內容',
	insertDate datetime comment '入庫時間'
) comment '記事本';

我的建議表建立語句如下:


create table t_jy(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '客戶',
	title varchar(100) comment '標題',
	content varchar(100) comment '內容',
	insertDate datetime comment '入庫時間',
	status varchar(100) comment ''
) comment '我的建議';

訂單表建立語句如下:


create table t_order(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	productDetail varchar(100) comment '訂單詳細',
	allPrice varchar(100) comment '訂單總價格',
	status varchar(100) comment '狀態',
	orderNum varchar(100) comment ''
) comment '訂單';

產品表建立語句如下:


create table t_product(
	id int primary key auto_increment comment '主鍵',
	productName varchar(100) comment '產品名稱',
	productPic varchar(100) comment '圖片',
	price varchar(100) comment '價格',
	content varchar(100) comment '內容'
) comment '產品';

購物車表建立語句如下:


create table t_shopcar(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	num int comment '數量',
	customerId int comment ''
) comment '購物車';

普通員工表建立語句如下:


create table t_user(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	name varchar(100) comment '姓名',
	gh varchar(100) comment '工號',
	mobile varchar(100) comment '手機'
) comment '普通員工';

基於android的備忘錄系統oracle資料庫版本原始碼:

超級管理員表建立語句如下:


create table t_admin(
	id integer,
	username varchar(100),
	password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超級管理員欄位加註釋
comment on column t_admin.id is '主鍵';
comment on column t_admin.username is '超級管理員賬號';
comment on column t_admin.password is '超級管理員密碼';
--超級管理員表加註釋
comment on table t_admin is '超級管理員';

備忘錄表建立語句如下:


create table t_bwl(
	id integer,
	customerId int,
	title varchar(100),
	content varchar(100),
	picUrl varchar(100),
	insertDate datetime,
	isNeed varchar(100),
	txTime datetime
);
--備忘錄欄位加註釋
comment on column t_bwl.id is '主鍵';
comment on column t_bwl.customerId is '客戶';
comment on column t_bwl.title is '標題';
comment on column t_bwl.content is '內容';
comment on column t_bwl.picUrl is '圖片';
comment on column t_bwl.insertDate is '入庫時間';
comment on column t_bwl.isNeed is '是否需要提醒';
comment on column t_bwl.txTime is '提醒時間';
--備忘錄表加註釋
comment on table t_bwl is '備忘錄';

客戶表建立語句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	sex varchar(100),
	address varchar(100),
	mobile varchar(100),
	insertDate datetime
);
--客戶欄位加註釋
comment on column t_customer.id is '主鍵';
comment on column t_customer.username is '賬號';
comment on column t_customer.password is '密碼';
comment on column t_customer.name is '姓名';
comment on column t_customer.sex is '性別';
comment on column t_customer.address is '地址';
comment on column t_customer.mobile is '手機';
comment on column t_customer.insertDate is '';
--客戶表加註釋
comment on table t_customer is '客戶';

記事本表建立語句如下:


create table t_jsb(
	id integer,
	customerId int,
	title varchar(100),
	content varchar(100),
	insertDate datetime
);
--記事本欄位加註釋
comment on column t_jsb.id is '主鍵';
comment on column t_jsb.customerId is '客戶';
comment on column t_jsb.title is '標題';
comment on column t_jsb.content is '內容';
comment on column t_jsb.insertDate is '入庫時間';
--記事本表加註釋
comment on table t_jsb is '記事本';

我的建議表建立語句如下:


create table t_jy(
	id integer,
	customerId int,
	title varchar(100),
	content varchar(100),
	insertDate datetime,
	status varchar(100)
);
--我的建議欄位加註釋
comment on column t_jy.id is '主鍵';
comment on column t_jy.customerId is '客戶';
comment on column t_jy.title is '標題';
comment on column t_jy.content is '內容';
comment on column t_jy.insertDate is '入庫時間';
comment on column t_jy.status is '';
--我的建議表加註釋
comment on table t_jy is '我的建議';

訂單表建立語句如下:


create table t_order(
	id integer,
	customerId int,
	productDetail varchar(100),
	allPrice varchar(100),
	status varchar(100),
	orderNum varchar(100)
);
--訂單欄位加註釋
comment on column t_order.id is '主鍵';
comment on column t_order.customerId is '使用者';
comment on column t_order.productDetail is '訂單詳細';
comment on column t_order.allPrice is '訂單總價格';
comment on column t_order.status is '狀態';
comment on column t_order.orderNum is '';
--訂單表加註釋
comment on table t_order is '訂單';

產品表建立語句如下:


create table t_product(
	id integer,
	productName varchar(100),
	productPic varchar(100),
	price varchar(100),
	content varchar(100)
);
--產品欄位加註釋
comment on column t_product.id is '主鍵';
comment on column t_product.productName is '產品名稱';
comment on column t_product.productPic is '圖片';
comment on column t_product.price is '價格';
comment on column t_product.content is '內容';
--產品表加註釋
comment on table t_product is '產品';

購物車表建立語句如下:


create table t_shopcar(
	id integer,
	productId int,
	num int,
	customerId int
);
--購物車欄位加註釋
comment on column t_shopcar.id is '主鍵';
comment on column t_shopcar.productId is '產品';
comment on column t_shopcar.num is '數量';
comment on column t_shopcar.customerId is '';
--購物車表加註釋
comment on table t_shopcar is '購物車';

普通員工表建立語句如下:


create table t_user(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	gh varchar(100),
	mobile varchar(100)
);
--普通員工欄位加註釋
comment on column t_user.id is '主鍵';
comment on column t_user.username is '賬號';
comment on column t_user.password is '密碼';
comment on column t_user.name is '姓名';
comment on column t_user.gh is '工號';
comment on column t_user.mobile is '手機';
--普通員工表加註釋
comment on table t_user is '普通員工';

oracle特有,對應序列如下:


create sequence s_t_bwl;
create sequence s_t_customer;
create sequence s_t_jsb;
create sequence s_t_jy;
create sequence s_t_order;
create sequence s_t_product;
create sequence s_t_shopcar;
create sequence s_t_user;

基於android的備忘錄系統sqlserver資料庫版本原始碼:

超級管理員表建立語句如下:


--超級管理員
create table t_admin(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--超級管理員賬號
	password varchar(100)--超級管理員密碼
);
insert into t_admin(username,password) values('admin','123456');

備忘錄表建立語句如下:


--備忘錄表註釋
create table t_bwl(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--客戶
	title varchar(100),--標題
	content varchar(100),--內容
	picUrl varchar(100),--圖片
	insertDate datetime,--入庫時間
	isNeed varchar(100),--是否需要提醒
	txTime datetime--提醒時間
);

客戶表建立語句如下:


--客戶表註釋
create table t_customer(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	name varchar(100),--姓名
	sex varchar(100),--性別
	address varchar(100),--地址
	mobile varchar(100),--手機
	insertDate datetime--
);

記事本表建立語句如下:


--記事本表註釋
create table t_jsb(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--客戶
	title varchar(100),--標題
	content varchar(100),--內容
	insertDate datetime--入庫時間
);

我的建議表建立語句如下:


--我的建議表註釋
create table t_jy(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--客戶
	title varchar(100),--標題
	content varchar(100),--內容
	insertDate datetime,--入庫時間
	status varchar(100)--
);

訂單表建立語句如下:


--訂單表註釋
create table t_order(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	productDetail varchar(100),--訂單詳細
	allPrice varchar(100),--訂單總價格
	status varchar(100),--狀態
	orderNum varchar(100)--
);

產品表建立語句如下:


--產品表註釋
create table t_product(
	id int identity(1,1) primary key not null,--主鍵
	productName varchar(100),--產品名稱
	productPic varchar(100),--圖片
	price varchar(100),--價格
	content varchar(100)--內容
);

購物車表建立語句如下:


--購物車表註釋
create table t_shopcar(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	num int,--數量
	customerId int--
);

普通員工表建立語句如下:


--普通員工表註釋
create table t_user(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	name varchar(100),--姓名
	gh varchar(100),--工號
	mobile varchar(100)--手機
);

基於android的備忘錄系統登入後主頁

基於android的備忘錄系統spring springMVC hibernate框架物件(javaBean,pojo)設計:

備忘錄javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//備忘錄
@Table(name = "t_bwl")
public class Bwl {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客戶
private Integer customerId;
//標題
private String title;
//內容
private String content;
//圖片
private String picUrl;
//入庫時間
private Date insertDate;
//是否需要提醒
private String isNeed;
//提醒時間
private Date txTime;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPicUrl() {return picUrl;}
public void setPicUrl(String picUrl) {this.picUrl = picUrl;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getIsNeed() {return isNeed;}
public void setIsNeed(String isNeed) {this.isNeed = isNeed;}
public Date getTxTime() {return txTime;}
public void setTxTime(Date txTime) {this.txTime = txTime;}
}

客戶javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//客戶
@Table(name = "t_customer")
public class Customer {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼
private String password;
//姓名
private String name;
//性別
private String sex;
//地址
private String address;
//手機
private String mobile;
//
private Date insertDate;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

記事本javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//記事本
@Table(name = "t_jsb")
public class Jsb {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客戶
private Integer customerId;
//標題
private String title;
//內容
private String content;
//入庫時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

我的建議javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//我的建議
@Table(name = "t_jy")
public class Jy {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客戶
private Integer customerId;
//標題
private String title;
//內容
private String content;
//入庫時間
private Date insertDate;
//
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

訂單javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//訂單
@Table(name = "t_order")
public class Order {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//訂單詳細
private String productDetail;
//訂單總價格
private String allPrice;
//狀態
private String status;
//
private String orderNum;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getProductDetail() {return productDetail;}
public void setProductDetail(String productDetail) {this.productDetail = productDetail;}
public String getAllPrice() {return allPrice;}
public void setAllPrice(String allPrice) {this.allPrice = allPrice;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getOrderNum() {return orderNum;}
public void setOrderNum(String orderNum) {this.orderNum = orderNum;}
}

產品javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//產品
@Table(name = "t_product")
public class Product {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//產品名稱
private String productName;
//圖片
private String productPic;
//價格
private String price;
//內容
private String content;
public String getProductName() {return productName;}
public void setProductName(String productName) {this.productName = productName;}
public String getProductPic() {return productPic;}
public void setProductPic(String productPic) {this.productPic = productPic;}
public String getPrice() {return price;}
public void setPrice(String price) {this.price = price;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

購物車javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//購物車
@Table(name = "t_shopcar")
public class Shopcar {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//產品
private Integer productId;
//數量
private Integer num;
//
private Integer customerId;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

普通員工javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//普通員工
@Table(name = "t_user")
public class User {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼
private String password;
//姓名
private String name;
//工號
private String gh;
//手機
private String mobile;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}

基於android的備忘錄系統spring springMVC mybatis框架物件(javaBean,pojo)設計:

備忘錄javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//備忘錄
public class Bwl  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客戶
private Integer customerId;
//標題
private String title;
//內容
private String content;
//圖片
private String picUrl;
//入庫時間
private Date insertDate;
//是否需要提醒
private String isNeed;
//提醒時間
private Date txTime;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPicUrl() {return picUrl;}
public void setPicUrl(String picUrl) {this.picUrl = picUrl;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getIsNeed() {return isNeed;}
public void setIsNeed(String isNeed) {this.isNeed = isNeed;}
public Date getTxTime() {return txTime;}
public void setTxTime(Date txTime) {this.txTime = txTime;}
}

客戶javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//客戶
public class Customer  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼
private String password;
//姓名
private String name;
//性別
private String sex;
//地址
private String address;
//手機
private String mobile;
//
private Date insertDate;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

記事本javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//記事本
public class Jsb  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客戶
private Integer customerId;
//標題
private String title;
//內容
private String content;
//入庫時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

我的建議javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//我的建議
public class Jy  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//客戶
private Integer customerId;
//標題
private String title;
//內容
private String content;
//入庫時間
private Date insertDate;
//
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

訂單javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//訂單
public class Order  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//訂單詳細
private String productDetail;
//訂單總價格
private String allPrice;
//狀態
private String status;
//
private String orderNum;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getProductDetail() {return productDetail;}
public void setProductDetail(String productDetail) {this.productDetail = productDetail;}
public String getAllPrice() {return allPrice;}
public void setAllPrice(String allPrice) {this.allPrice = allPrice;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getOrderNum() {return orderNum;}
public void setOrderNum(String orderNum) {this.orderNum = orderNum;}
}

產品javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//產品
public class Product  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//產品名稱
private String productName;
//圖片
private String productPic;
//價格
private String price;
//內容
private String content;
public String getProductName() {return productName;}
public void setProductName(String productName) {this.productName = productName;}
public String getProductPic() {return productPic;}
public void setProductPic(String productPic) {this.productPic = productPic;}
public String getPrice() {return price;}
public void setPrice(String price) {this.price = price;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

購物車javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//購物車
public class Shopcar  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//產品
private Integer productId;
//數量
private Integer num;
//
private Integer customerId;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

普通員工javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//普通員工
public class User  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼
private String password;
//姓名
private String name;
//工號
private String gh;
//手機
private String mobile;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}