基于SSM的線上作業管理系統mysql資料庫建立語句
基于SSM的線上作業管理系統oracle資料庫建立語句
基于SSM的線上作業管理系統sqlserver資料庫建立語句
基于SSM的線上作業管理系統spring+springMVC+hibernate架構對象(javaBean,pojo)設計
基于SSM的線上作業管理系統spring+springMVC+mybatis架構對象(javaBean,pojo)設計
基于SSM的線上作業管理系統登入注冊界面
基于SSM的線上作業管理系統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’);
SQLCopy
收貨位址表建立語句如下:
create table t_address(
id int primary key auto_increment comment ‘主鍵’,
customerId int comment ‘使用者’,
province varchar(100) comment ‘省’,
city varchar(100) comment ‘市’,
area varchar(100) comment ‘區’,
phone varchar(100) comment ‘電話’,
lxr varchar(100) comment ‘聯系人’,
xxdz varchar(100) comment ‘詳細位址’
) comment ‘收貨位址’;
SQLCopy
分類表建立語句如下:
create table t_bk(
id int primary key auto_increment comment ‘主鍵’,
bkName varchar(100) comment ‘分類名稱’
) comment ‘分類’;
SQLCopy
标簽表建立語句如下:
create table t_bq(
id int primary key auto_increment comment ‘主鍵’,
bqName varchar(100) comment ‘标簽’
) comment ‘标簽’;
SQLCopy
建議表建立語句如下:
create table t_contact(
id int primary key auto_increment comment ‘主鍵’,
customerId int comment ‘使用者’,
phone varchar(100) comment ‘聯系方式’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’
) comment ‘建議’;
SQLCopy
積分兌換産品表建立語句如下:
create table t_jfdh(
id int primary key auto_increment comment ‘主鍵’,
jfName varchar(100) comment ‘積分産品名稱’,
jfCost int comment ‘積分數量’,
jfPic varchar(100) comment ‘産品圖檔’
) comment ‘積分兌換産品’;
SQLCopy
庫存表建立語句如下:
create table t_kc(
id int primary key auto_increment comment ‘主鍵’,
productId int comment ‘産品’,
kcNum int comment ‘庫存數量’,
insertDate datetime comment ‘日期’
) comment ‘庫存’;
SQLCopy
學生課程選擇表建立語句如下:
create table t_kcxz(
id int primary key auto_increment comment ‘主鍵’,
customerId int comment ‘學生’,
productId int comment ‘課程’,
teacherId int comment ‘老師’
) comment ‘學生課程選擇’;
SQLCopy
課程作業表建立語句如下:
create table t_kczy(
id int primary key auto_increment comment ‘主鍵’,
productId int comment ‘課程’,
teacherId int comment ‘老師’,
kczyName varchar(100) comment ‘作業标題’,
fileUrl1 varchar(100) comment ‘作業附件’,
fileUrl2 varchar(100) comment ‘答案附件’,
content varchar(100) comment ‘作業說明’
) comment ‘課程作業’;
SQLCopy
課程作業表建立語句如下:
create table t_kczylist(
id int primary key auto_increment comment ‘主鍵’,
kczyId int comment ‘課程作業’,
customerId int comment ‘使用者’,
insertDate datetime comment ‘上傳日期’,
zyfile varchar(100) comment ‘我的作業’,
df int comment ‘打分’,
remark varchar(100) comment ‘說明’,
status varchar(100) comment ‘狀态’,
teacherId int comment ‘’
) comment ‘課程作業’;
SQLCopy
産品表建立語句如下:
create table t_kecheng(
id int primary key auto_increment comment ‘主鍵’,
productName varchar(100) comment ‘産品名稱’,
productPic1 varchar(100) comment ‘圖檔1’,
productPic2 varchar(100) comment ‘圖檔2’,
productPic3 varchar(100) comment ‘圖檔3’,
productPic4 varchar(100) comment ‘圖檔4’,
price int comment ‘價格’,
oldPrice int comment ‘原價’,
content varchar(100) comment ‘内容’,
nums int comment ‘數量’,
tjxj varchar(100) comment ‘推薦星級’,
status varchar(100) comment ‘狀态’,
typesId int comment ‘分類’,
jf int comment ‘積分’,
userId int comment ‘商家’,
bqId int comment ‘标簽’,
djl int comment ‘點選量’
) comment ‘産品’;
SQLCopy
産品點選表建立語句如下:
create table t_kechengclick(
id int primary key auto_increment comment ‘主鍵’,
productId int comment ‘産品’,
customerId int comment ‘使用者’,
insertDate datetime comment ‘日期’
) comment ‘産品點選’;
SQLCopy
輪播圖表建立語句如下:
create table t_lbt(
id int primary key auto_increment comment ‘主鍵’,
pic varchar(100) comment ‘圖檔’
) comment ‘輪播圖’;
SQLCopy
資訊交流表建立語句如下:
create table t_message(
id int primary key auto_increment comment ‘主鍵’,
customerId int comment ‘使用者’,
messageContent varchar(100) comment ‘内容’,
types int comment ‘’,
insertDate datetime comment ‘時間’
) comment ‘資訊交流’;
SQLCopy
訂單表建立語句如下:
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 ‘訂單編号’,
pl varchar(100) comment ‘物流資訊’,
insertDate datetime comment ‘日期’,
userId int comment ‘’,
orderDate varchar(100) comment ‘’,
address varchar(100) comment ‘位址’,
lxr varchar(100) comment ‘聯系人’,
lxfs varchar(100) comment ‘聯系方式’,
pj varchar(100) comment ‘評價’,
back varchar(100) comment ‘回複’
) comment ‘訂單’;
SQLCopy
訂單詳情表建立語句如下:
create table t_orderlist(
id int primary key auto_increment comment ‘主鍵’,
customerId int comment ‘使用者’,
orderId int comment ‘訂單’,
productId int comment ‘菜品’
) comment ‘訂單詳情’;
SQLCopy
評論表建立語句如下:
create table t_pinglun(
id int primary key auto_increment comment ‘主鍵’,
wdxxId int comment ‘評論資訊’,
customerId int comment ‘評論人’,
content varchar(100) comment ‘評論内容’,
insertDate datetime comment ‘評論日期’
) comment ‘評論’;
SQLCopy
表建立語句如下:
create table t_pinglun_product(
id int primary key auto_increment comment ‘主鍵’,
productId int comment ‘評論資訊’,
customerId int comment ‘評論人’,
content varchar(100) comment ‘評論内容’,
insertDate datetime comment ‘評論日期’
) comment ‘’;
SQLCopy
收藏表建立語句如下:
create table t_sc(
id int primary key auto_increment comment ‘主鍵’,
customerId int comment ‘使用者’,
productId int comment ‘産品’,
insertDate datetime comment ‘日期’
) comment ‘收藏’;
SQLCopy
購物車表建立語句如下:
create table t_shopcar(
id int primary key auto_increment comment ‘主鍵’,
productId int comment ‘産品’,
num int comment ‘數量’,
customerId int comment ‘’
) comment ‘購物車’;
SQLCopy
客戶表建立語句如下:
create table t_student(
id int primary key auto_increment comment ‘主鍵’,
username varchar(100) comment ‘賬号’,
password varchar(100) comment ‘密碼’,
customerName varchar(100) comment ‘姓名’,
sex varchar(100) comment ‘性别’,
address varchar(100) comment ‘位址’,
phone varchar(100) comment ‘手機’,
account int comment ‘賬戶’,
jf int comment ‘積分’,
headPic varchar(100) comment ‘頭像’
) comment ‘客戶’;
SQLCopy
分類表建立語句如下:
create table t_types(
id int primary key auto_increment comment ‘主鍵’,
typesName varchar(100) comment ‘分類’
) comment ‘分類’;
SQLCopy
普通員工表建立語句如下:
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 ‘普通員工’;
SQLCopy
我的消息表建立語句如下:
create table t_wdxx(
id int primary key auto_increment comment ‘主鍵’,
customerId int comment ‘我’,
title varchar(100) comment ‘标題’,
pic varchar(100) comment ‘圖檔’,
content varchar(100) comment ‘内容’,
zan int comment ‘贊’,
insertDate datetime comment ‘釋出日期’,
nologin varchar(100) comment ‘遊客是否可見’,
bkId int comment ‘’
) comment ‘我的消息’;
SQLCopy
消息表建立語句如下:
create table t_xiaoxi(
id int primary key auto_increment comment ‘主鍵’,
customerId int comment ‘使用者’,
title varchar(100) comment ‘标題’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’
) comment ‘消息’;
SQLCopy
資訊表建立語句如下:
create table t_zx(
id int primary key auto_increment comment ‘主鍵’,
title varchar(100) comment ‘标題’,
content varchar(100) comment ‘内容’,
pic varchar(100) comment ‘圖檔’
) comment ‘資訊’;
SQLCopy
基于SSM的線上作業管理系統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 ‘超級管理者’;
SQLCopy
收貨位址表建立語句如下:
create table t_address(
id integer,
customerId int,
province varchar(100),
city varchar(100),
area varchar(100),
phone varchar(100),
lxr varchar(100),
xxdz varchar(100)
);
–收貨位址字段加注釋
comment on column t_address.id is ‘主鍵’;
comment on column t_address.customerId is ‘使用者’;
comment on column t_address.province is ‘省’;
comment on column t_address.city is ‘市’;
comment on column t_address.area is ‘區’;
comment on column t_address.phone is ‘電話’;
comment on column t_address.lxr is ‘聯系人’;
comment on column t_address.xxdz is ‘詳細位址’;
–收貨位址表加注釋
comment on table t_address is ‘收貨位址’;
SQLCopy
分類表建立語句如下:
create table t_bk(
id integer,
bkName varchar(100)
);
–分類字段加注釋
comment on column t_bk.id is ‘主鍵’;
comment on column t_bk.bkName is ‘分類名稱’;
–分類表加注釋
comment on table t_bk is ‘分類’;
SQLCopy
标簽表建立語句如下:
create table t_bq(
id integer,
bqName varchar(100)
);
–标簽字段加注釋
comment on column t_bq.id is ‘主鍵’;
comment on column t_bq.bqName is ‘标簽’;
–标簽表加注釋
comment on table t_bq is ‘标簽’;
SQLCopy
建議表建立語句如下:
create table t_contact(
id integer,
customerId int,
phone varchar(100),
content varchar(100),
insertDate datetime
);
–建議字段加注釋
comment on column t_contact.id is ‘主鍵’;
comment on column t_contact.customerId is ‘使用者’;
comment on column t_contact.phone is ‘聯系方式’;
comment on column t_contact.content is ‘内容’;
comment on column t_contact.insertDate is ‘日期’;
–建議表加注釋
comment on table t_contact is ‘建議’;
SQLCopy
積分兌換産品表建立語句如下:
create table t_jfdh(
id integer,
jfName varchar(100),
jfCost int,
jfPic varchar(100)
);
–積分兌換産品字段加注釋
comment on column t_jfdh.id is ‘主鍵’;
comment on column t_jfdh.jfName is ‘積分産品名稱’;
comment on column t_jfdh.jfCost is ‘積分數量’;
comment on column t_jfdh.jfPic is ‘産品圖檔’;
–積分兌換産品表加注釋
comment on table t_jfdh is ‘積分兌換産品’;
SQLCopy
庫存表建立語句如下:
create table t_kc(
id integer,
productId int,
kcNum int,
insertDate datetime
);
–庫存字段加注釋
comment on column t_kc.id is ‘主鍵’;
comment on column t_kc.productId is ‘産品’;
comment on column t_kc.kcNum is ‘庫存數量’;
comment on column t_kc.insertDate is ‘日期’;
–庫存表加注釋
comment on table t_kc is ‘庫存’;
SQLCopy
學生課程選擇表建立語句如下:
create table t_kcxz(
id integer,
customerId int,
productId int,
teacherId int
);
–學生課程選擇字段加注釋
comment on column t_kcxz.id is ‘主鍵’;
comment on column t_kcxz.customerId is ‘學生’;
comment on column t_kcxz.productId is ‘課程’;
comment on column t_kcxz.teacherId is ‘老師’;
–學生課程選擇表加注釋
comment on table t_kcxz is ‘學生課程選擇’;
SQLCopy
課程作業表建立語句如下:
create table t_kczy(
id integer,
productId int,
teacherId int,
kczyName varchar(100),
fileUrl1 varchar(100),
fileUrl2 varchar(100),
content varchar(100)
);
–課程作業字段加注釋
comment on column t_kczy.id is ‘主鍵’;
comment on column t_kczy.productId is ‘課程’;
comment on column t_kczy.teacherId is ‘老師’;
comment on column t_kczy.kczyName is ‘作業标題’;
comment on column t_kczy.fileUrl1 is ‘作業附件’;
comment on column t_kczy.fileUrl2 is ‘答案附件’;
comment on column t_kczy.content is ‘作業說明’;
–課程作業表加注釋
comment on table t_kczy is ‘課程作業’;
SQLCopy
課程作業表建立語句如下:
create table t_kczylist(
id integer,
kczyId int,
customerId int,
insertDate datetime,
zyfile varchar(100),
df int,
remark varchar(100),
status varchar(100),
teacherId int
);
–課程作業字段加注釋
comment on column t_kczylist.id is ‘主鍵’;
comment on column t_kczylist.kczyId is ‘課程作業’;
comment on column t_kczylist.customerId is ‘使用者’;
comment on column t_kczylist.insertDate is ‘上傳日期’;
comment on column t_kczylist.zyfile is ‘我的作業’;
comment on column t_kczylist.df is ‘打分’;
comment on column t_kczylist.remark is ‘說明’;
comment on column t_kczylist.status is ‘狀态’;
comment on column t_kczylist.teacherId is ‘’;
–課程作業表加注釋
comment on table t_kczylist is ‘課程作業’;
SQLCopy
産品表建立語句如下:
create table t_kecheng(
id integer,
productName varchar(100),
productPic1 varchar(100),
productPic2 varchar(100),
productPic3 varchar(100),
productPic4 varchar(100),
price int,
oldPrice int,
content varchar(100),
nums int,
tjxj varchar(100),
status varchar(100),
typesId int,
jf int,
userId int,
bqId int,
djl int
);
–産品字段加注釋
comment on column t_kecheng.id is ‘主鍵’;
comment on column t_kecheng.productName is ‘産品名稱’;
comment on column t_kecheng.productPic1 is ‘圖檔1’;
comment on column t_kecheng.productPic2 is ‘圖檔2’;
comment on column t_kecheng.productPic3 is ‘圖檔3’;
comment on column t_kecheng.productPic4 is ‘圖檔4’;
comment on column t_kecheng.price is ‘價格’;
comment on column t_kecheng.oldPrice is ‘原價’;
comment on column t_kecheng.content is ‘内容’;
comment on column t_kecheng.nums is ‘數量’;
comment on column t_kecheng.tjxj is ‘推薦星級’;
comment on column t_kecheng.status is ‘狀态’;
comment on column t_kecheng.typesId is ‘分類’;
comment on column t_kecheng.jf is ‘積分’;
comment on column t_kecheng.userId is ‘商家’;
comment on column t_kecheng.bqId is ‘标簽’;
comment on column t_kecheng.djl is ‘點選量’;
–産品表加注釋
comment on table t_kecheng is ‘産品’;
SQLCopy
産品點選表建立語句如下:
create table t_kechengclick(
id integer,
productId int,
customerId int,
insertDate datetime
);
–産品點選字段加注釋
comment on column t_kechengclick.id is ‘主鍵’;
comment on column t_kechengclick.productId is ‘産品’;
comment on column t_kechengclick.customerId is ‘使用者’;
comment on column t_kechengclick.insertDate is ‘日期’;
–産品點選表加注釋
comment on table t_kechengclick is ‘産品點選’;
SQLCopy
輪播圖表建立語句如下:
create table t_lbt(
id integer,
pic varchar(100)
);
–輪播圖字段加注釋
comment on column t_lbt.id is ‘主鍵’;
comment on column t_lbt.pic is ‘圖檔’;
–輪播圖表加注釋
comment on table t_lbt is ‘輪播圖’;
SQLCopy
資訊交流表建立語句如下:
create table t_message(
id integer,
customerId int,
messageContent varchar(100),
types int,
insertDate datetime
);
–資訊交流字段加注釋
comment on column t_message.id is ‘主鍵’;
comment on column t_message.customerId is ‘使用者’;
comment on column t_message.messageContent is ‘内容’;
comment on column t_message.types is ‘’;
comment on column t_message.insertDate is ‘時間’;
–資訊交流表加注釋
comment on table t_message is ‘資訊交流’;
SQLCopy
訂單表建立語句如下:
create table t_order(
id integer,
customerId int,
productDetail varchar(100),
allPrice varchar(100),
status varchar(100),
orderNum varchar(100),
pl varchar(100),
insertDate datetime,
userId int,
orderDate varchar(100),
address varchar(100),
lxr varchar(100),
lxfs varchar(100),
pj varchar(100),
back 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 column t_order.pl is ‘物流資訊’;
comment on column t_order.insertDate is ‘日期’;
comment on column t_order.userId is ‘’;
comment on column t_order.orderDate is ‘’;
comment on column t_order.address is ‘位址’;
comment on column t_order.lxr is ‘聯系人’;
comment on column t_order.lxfs is ‘聯系方式’;
comment on column t_order.pj is ‘評價’;
comment on column t_order.back is ‘回複’;
–訂單表加注釋
comment on table t_order is ‘訂單’;
SQLCopy
訂單詳情表建立語句如下:
create table t_orderlist(
id integer,
customerId int,
orderId int,
productId int
);
–訂單詳情字段加注釋
comment on column t_orderlist.id is ‘主鍵’;
comment on column t_orderlist.customerId is ‘使用者’;
comment on column t_orderlist.orderId is ‘訂單’;
comment on column t_orderlist.productId is ‘菜品’;
–訂單詳情表加注釋
comment on table t_orderlist is ‘訂單詳情’;
SQLCopy
評論表建立語句如下:
create table t_pinglun(
id integer,
wdxxId int,
customerId int,
content varchar(100),
insertDate datetime
);
–評論字段加注釋
comment on column t_pinglun.id is ‘主鍵’;
comment on column t_pinglun.wdxxId is ‘評論資訊’;
comment on column t_pinglun.customerId is ‘評論人’;
comment on column t_pinglun.content is ‘評論内容’;
comment on column t_pinglun.insertDate is ‘評論日期’;
–評論表加注釋
comment on table t_pinglun is ‘評論’;
SQLCopy
表建立語句如下:
create table t_pinglun_product(
id integer,
productId int,
customerId int,
content varchar(100),
insertDate datetime
);
–字段加注釋
comment on column t_pinglun_product.id is ‘主鍵’;
comment on column t_pinglun_product.productId is ‘評論資訊’;
comment on column t_pinglun_product.customerId is ‘評論人’;
comment on column t_pinglun_product.content is ‘評論内容’;
comment on column t_pinglun_product.insertDate is ‘評論日期’;
–表加注釋
comment on table t_pinglun_product is ‘’;
SQLCopy
收藏表建立語句如下:
create table t_sc(
id integer,
customerId int,
productId int,
insertDate datetime
);
–收藏字段加注釋
comment on column t_sc.id is ‘主鍵’;
comment on column t_sc.customerId is ‘使用者’;
comment on column t_sc.productId is ‘産品’;
comment on column t_sc.insertDate is ‘日期’;
–收藏表加注釋
comment on table t_sc is ‘收藏’;
SQLCopy
購物車表建立語句如下:
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 ‘購物車’;
SQLCopy
客戶表建立語句如下:
create table t_student(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
sex varchar(100),
address varchar(100),
phone varchar(100),
account int,
jf int,
headPic varchar(100)
);
–客戶字段加注釋
comment on column t_student.id is ‘主鍵’;
comment on column t_student.username is ‘賬号’;
comment on column t_student.password is ‘密碼’;
comment on column t_student.customerName is ‘姓名’;
comment on column t_student.sex is ‘性别’;
comment on column t_student.address is ‘位址’;
comment on column t_student.phone is ‘手機’;
comment on column t_student.account is ‘賬戶’;
comment on column t_student.jf is ‘積分’;
comment on column t_student.headPic is ‘頭像’;
–客戶表加注釋
comment on table t_student is ‘客戶’;
SQLCopy
分類表建立語句如下:
create table t_types(
id integer,
typesName varchar(100)
);
–分類字段加注釋
comment on column t_types.id is ‘主鍵’;
comment on column t_types.typesName is ‘分類’;
–分類表加注釋
comment on table t_types is ‘分類’;
SQLCopy
普通員工表建立語句如下:
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 ‘普通員工’;
SQLCopy
我的消息表建立語句如下:
create table t_wdxx(
id integer,
customerId int,
title varchar(100),
pic varchar(100),
content varchar(100),
zan int,
insertDate datetime,
nologin varchar(100),
bkId int
);
–我的消息字段加注釋
comment on column t_wdxx.id is ‘主鍵’;
comment on column t_wdxx.customerId is ‘我’;
comment on column t_wdxx.title is ‘标題’;
comment on column t_wdxx.pic is ‘圖檔’;
comment on column t_wdxx.content is ‘内容’;
comment on column t_wdxx.zan is ‘贊’;
comment on column t_wdxx.insertDate is ‘釋出日期’;
comment on column t_wdxx.nologin is ‘遊客是否可見’;
comment on column t_wdxx.bkId is ‘’;
–我的消息表加注釋
comment on table t_wdxx is ‘我的消息’;
SQLCopy
消息表建立語句如下:
create table t_xiaoxi(
id integer,
customerId int,
title varchar(100),
content varchar(100),
insertDate datetime
);
–消息字段加注釋
comment on column t_xiaoxi.id is ‘主鍵’;
comment on column t_xiaoxi.customerId is ‘使用者’;
comment on column t_xiaoxi.title is ‘标題’;
comment on column t_xiaoxi.content is ‘内容’;
comment on column t_xiaoxi.insertDate is ‘日期’;
–消息表加注釋
comment on table t_xiaoxi is ‘消息’;
SQLCopy
資訊表建立語句如下:
create table t_zx(
id integer,
title varchar(100),
content varchar(100),
pic varchar(100)
);
–資訊字段加注釋
comment on column t_zx.id is ‘主鍵’;
comment on column t_zx.title is ‘标題’;
comment on column t_zx.content is ‘内容’;
comment on column t_zx.pic is ‘圖檔’;
–資訊表加注釋
comment on table t_zx is ‘資訊’;
SQLCopy
oracle特有,對應序列如下:
create sequence s_t_address;
create sequence s_t_bk;
create sequence s_t_bq;
create sequence s_t_contact;
create sequence s_t_jfdh;
create sequence s_t_kc;
create sequence s_t_kcxz;
create sequence s_t_kczy;
create sequence s_t_kczylist;
create sequence s_t_kecheng;
create sequence s_t_kechengclick;
create sequence s_t_lbt;
create sequence s_t_message;
create sequence s_t_order;
create sequence s_t_orderlist;
create sequence s_t_pinglun;
create sequence s_t_pinglun_product;
create sequence s_t_sc;
create sequence s_t_shopcar;
create sequence s_t_student;
create sequence s_t_types;
create sequence s_t_user;
create sequence s_t_wdxx;
create sequence s_t_xiaoxi;
create sequence s_t_zx;
SQLCopy
基于SSM的線上作業管理系統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’);
SQLCopy
收貨位址表建立語句如下:
–收貨位址表注釋
create table t_address(
id int identity(1,1) primary key not null,–主鍵
customerId int,–使用者
province varchar(100),–省
city varchar(100),–市
area varchar(100),–區
phone varchar(100),–電話
lxr varchar(100),–聯系人
xxdz varchar(100)–詳細位址
);
SQLCopy
分類表建立語句如下:
–分類表注釋
create table t_bk(
id int identity(1,1) primary key not null,–主鍵
bkName varchar(100)–分類名稱
);
SQLCopy
标簽表建立語句如下:
–标簽表注釋
create table t_bq(
id int identity(1,1) primary key not null,–主鍵
bqName varchar(100)–标簽
);
SQLCopy
建議表建立語句如下:
–建議表注釋
create table t_contact(
id int identity(1,1) primary key not null,–主鍵
customerId int,–使用者
phone varchar(100),–聯系方式
content varchar(100),–内容
insertDate datetime–日期
);
SQLCopy
積分兌換産品表建立語句如下:
–積分兌換産品表注釋
create table t_jfdh(
id int identity(1,1) primary key not null,–主鍵
jfName varchar(100),–積分産品名稱
jfCost int,–積分數量
jfPic varchar(100)–産品圖檔
);
SQLCopy
庫存表建立語句如下:
–庫存表注釋
create table t_kc(
id int identity(1,1) primary key not null,–主鍵
productId int,–産品
kcNum int,–庫存數量
insertDate datetime–日期
);
SQLCopy
學生課程選擇表建立語句如下:
–學生課程選擇表注釋
create table t_kcxz(
id int identity(1,1) primary key not null,–主鍵
customerId int,–學生
productId int,–課程
teacherId int–老師
);
SQLCopy
課程作業表建立語句如下:
–課程作業表注釋
create table t_kczy(
id int identity(1,1) primary key not null,–主鍵
productId int,–課程
teacherId int,–老師
kczyName varchar(100),–作業标題
fileUrl1 varchar(100),–作業附件
fileUrl2 varchar(100),–答案附件
content varchar(100)–作業說明
);
SQLCopy
課程作業表建立語句如下:
–課程作業表注釋
create table t_kczylist(
id int identity(1,1) primary key not null,–主鍵
kczyId int,–課程作業
customerId int,–使用者
insertDate datetime,–上傳日期
zyfile varchar(100),–我的作業
df int,–打分
remark varchar(100),–說明
status varchar(100),–狀态
teacherId int–
);
SQLCopy
産品表建立語句如下:
–産品表注釋
create table t_kecheng(
id int identity(1,1) primary key not null,–主鍵
productName varchar(100),–産品名稱
productPic1 varchar(100),–圖檔1
productPic2 varchar(100),–圖檔2
productPic3 varchar(100),–圖檔3
productPic4 varchar(100),–圖檔4
price int,–價格
oldPrice int,–原價
content varchar(100),–内容
nums int,–數量
tjxj varchar(100),–推薦星級
status varchar(100),–狀态
typesId int,–分類
jf int,–積分
userId int,–商家
bqId int,–标簽
djl int–點選量
);
SQLCopy
産品點選表建立語句如下:
–産品點選表注釋
create table t_kechengclick(
id int identity(1,1) primary key not null,–主鍵
productId int,–産品
customerId int,–使用者
insertDate datetime–日期
);
SQLCopy
輪播圖表建立語句如下:
–輪播圖表注釋
create table t_lbt(
id int identity(1,1) primary key not null,–主鍵
pic varchar(100)–圖檔
);
SQLCopy
資訊交流表建立語句如下:
–資訊交流表注釋
create table t_message(
id int identity(1,1) primary key not null,–主鍵
customerId int,–使用者
messageContent varchar(100),–内容
types int,–
insertDate datetime–時間
);
SQLCopy
訂單表建立語句如下:
–訂單表注釋
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),–訂單編号
pl varchar(100),–物流資訊
insertDate datetime,–日期
userId int,–
orderDate varchar(100),–
address varchar(100),–位址
lxr varchar(100),–聯系人
lxfs varchar(100),–聯系方式
pj varchar(100),–評價
back varchar(100)–回複
);
SQLCopy
訂單詳情表建立語句如下:
–訂單詳情表注釋
create table t_orderlist(
id int identity(1,1) primary key not null,–主鍵
customerId int,–使用者
orderId int,–訂單
productId int–菜品
);
SQLCopy
評論表建立語句如下:
–評論表注釋
create table t_pinglun(
id int identity(1,1) primary key not null,–主鍵
wdxxId int,–評論資訊
customerId int,–評論人
content varchar(100),–評論内容
insertDate datetime–評論日期
);
SQLCopy
表建立語句如下:
–表注釋
create table t_pinglun_product(
id int identity(1,1) primary key not null,–主鍵
productId int,–評論資訊
customerId int,–評論人
content varchar(100),–評論内容
insertDate datetime–評論日期
);
SQLCopy
收藏表建立語句如下:
–收藏表注釋
create table t_sc(
id int identity(1,1) primary key not null,–主鍵
customerId int,–使用者
productId int,–産品
insertDate datetime–日期
);
SQLCopy
購物車表建立語句如下:
–購物車表注釋
create table t_shopcar(
id int identity(1,1) primary key not null,–主鍵
productId int,–産品
num int,–數量
customerId int–
);
SQLCopy
客戶表建立語句如下:
–客戶表注釋
create table t_student(
id int identity(1,1) primary key not null,–主鍵
username varchar(100),–賬号
password varchar(100),–密碼
customerName varchar(100),–姓名
sex varchar(100),–性别
address varchar(100),–位址
phone varchar(100),–手機
account int,–賬戶
jf int,–積分
headPic varchar(100)–頭像
);
SQLCopy
分類表建立語句如下:
–分類表注釋
create table t_types(
id int identity(1,1) primary key not null,–主鍵
typesName varchar(100)–分類
);
SQLCopy
普通員工表建立語句如下:
–普通員工表注釋
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)–手機
);
SQLCopy
我的消息表建立語句如下:
–我的消息表注釋
create table t_wdxx(
id int identity(1,1) primary key not null,–主鍵
customerId int,–我
title varchar(100),–标題
pic varchar(100),–圖檔
content varchar(100),–内容
zan int,–贊
insertDate datetime,–釋出日期
nologin varchar(100),–遊客是否可見
bkId int–
);
SQLCopy
消息表建立語句如下:
–消息表注釋
create table t_xiaoxi(
id int identity(1,1) primary key not null,–主鍵
customerId int,–使用者
title varchar(100),–标題
content varchar(100),–内容
insertDate datetime–日期
);
SQLCopy
資訊表建立語句如下:
–資訊表注釋
create table t_zx(
id int identity(1,1) primary key not null,–主鍵
title varchar(100),–标題
content varchar(100),–内容
pic varchar(100)–圖檔
);
SQLCopy
基于SSM的線上作業管理系統登入後首頁
基于SSM的線上作業管理系統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_address”)
public class Address {
//主鍵
@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 province;
//市
private String city;
//區
private String area;
//電話
private String phone;
//聯系人
private String lxr;
//詳細位址
private String xxdz;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getProvince() {return province;}
public void setProvince(String province) {this.province = province;}
public String getCity() {return city;}
public void setCity(String city) {this.city = city;}
public String getArea() {return area;}
public void setArea(String area) {this.area = area;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getLxr() {return lxr;}
public void setLxr(String lxr) {this.lxr = lxr;}
public String getXxdz() {return xxdz;}
public void setXxdz(String xxdz) {this.xxdz = xxdz;}
}
JavaCopy
分類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_bk”)
public class Bk {
//主鍵
@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 bkName;
public String getBkName() {return bkName;}
public void setBkName(String bkName) {this.bkName = bkName;}
}
JavaCopy
标簽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_bq”)
public class Bq {
//主鍵
@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 bqName;
public String getBqName() {return bqName;}
public void setBqName(String bqName) {this.bqName = bqName;}
}
JavaCopy
建議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_contact”)
public class Contact {
//主鍵
@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 phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}
JavaCopy
積分兌換産品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_jfdh”)
public class Jfdh {
//主鍵
@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 jfName;
//積分數量
private Integer jfCost;
//産品圖檔
private String jfPic;
public String getJfName() {return jfName;}
public void setJfName(String jfName) {this.jfName = jfName;}
public Integer getJfCost() {return jfCost;}
public void setJfCost(Integer jfCost) {this.jfCost = jfCost;}
public String getJfPic() {return jfPic;}
public void setJfPic(String jfPic) {this.jfPic = jfPic;}
}
JavaCopy
庫存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_kc”)
public class Kc {
//主鍵
@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 kcNum;
//日期
private Date insertDate;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getKcNum() {return kcNum;}
public void setKcNum(Integer kcNum) {this.kcNum = kcNum;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
學生課程選擇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_kcxz”)
public class Kcxz {
//主鍵
@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 Integer productId;
//老師
private Integer teacherId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
}
JavaCopy
課程作業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_kczy”)
public class Kczy {
//主鍵
@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 teacherId;
//作業标題
private String kczyName;
//作業附件
private String fileUrl1;
//答案附件
private String fileUrl2;
//作業說明
private String content;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public String getKczyName() {return kczyName;}
public void setKczyName(String kczyName) {this.kczyName = kczyName;}
public String getFileUrl1() {return fileUrl1;}
public void setFileUrl1(String fileUrl1) {this.fileUrl1 = fileUrl1;}
public String getFileUrl2() {return fileUrl2;}
public void setFileUrl2(String fileUrl2) {this.fileUrl2 = fileUrl2;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}
JavaCopy
課程作業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_kczylist”)
public class Kczylist {
//主鍵
@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 kczyId;
//使用者
private Integer customerId;
//上傳日期
private Date insertDate;
//我的作業
private String zyfile;
//打分
private Integer df;
//說明
private String remark;
//狀态
private String status;
//
private Integer teacherId;
public Integer getKczyId() {return kczyId;}
public void setKczyId(Integer kczyId) {this.kczyId = kczyId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getZyfile() {return zyfile;}
public void setZyfile(String zyfile) {this.zyfile = zyfile;}
public Integer getDf() {return df;}
public void setDf(Integer df) {this.df = df;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
}
JavaCopy
産品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_kecheng”)
public class Kecheng {
//主鍵
@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;
//圖檔1
private String productPic1;
//圖檔2
private String productPic2;
//圖檔3
private String productPic3;
//圖檔4
private String productPic4;
//價格
private Integer price;
//原價
private Integer oldPrice;
//内容
private String content;
//數量
private Integer nums;
//推薦星級
private String tjxj;
//狀态
private String status;
//分類
private Integer typesId;
//積分
private Integer jf;
//商家
private Integer userId;
//标簽
private Integer bqId;
//點選量
private Integer djl;
public String getProductName() {return productName;}
public void setProductName(String productName) {this.productName = productName;}
public String getProductPic1() {return productPic1;}
public void setProductPic1(String productPic1) {this.productPic1 = productPic1;}
public String getProductPic2() {return productPic2;}
public void setProductPic2(String productPic2) {this.productPic2 = productPic2;}
public String getProductPic3() {return productPic3;}
public void setProductPic3(String productPic3) {this.productPic3 = productPic3;}
public String getProductPic4() {return productPic4;}
public void setProductPic4(String productPic4) {this.productPic4 = productPic4;}
public Integer getPrice() {return price;}
public void setPrice(Integer price) {this.price = price;}
public Integer getOldPrice() {return oldPrice;}
public void setOldPrice(Integer oldPrice) {this.oldPrice = oldPrice;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getNums() {return nums;}
public void setNums(Integer nums) {this.nums = nums;}
public String getTjxj() {return tjxj;}
public void setTjxj(String tjxj) {this.tjxj = tjxj;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public Integer getJf() {return jf;}
public void setJf(Integer jf) {this.jf = jf;}
public Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
public Integer getBqId() {return bqId;}
public void setBqId(Integer bqId) {this.bqId = bqId;}
public Integer getDjl() {return djl;}
public void setDjl(Integer djl) {this.djl = djl;}
}
JavaCopy
産品點選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_kechengclick”)
public class Kechengclick {
//主鍵
@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 customerId;
//日期
private Date insertDate;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
輪播圖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_lbt”)
public class Lbt {
//主鍵
@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 pic;
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}
JavaCopy
資訊交流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_message”)
public class Message {
//主鍵
@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 messageContent;
//
private Integer types;
//時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getMessageContent() {return messageContent;}
public void setMessageContent(String messageContent) {this.messageContent = messageContent;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
訂單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;
//物流資訊
private String pl;
//日期
private Date insertDate;
//
private Integer userId;
//
private String orderDate;
//位址
private String address;
//聯系人
private String lxr;
//聯系方式
private String lxfs;
//評價
private String pj;
//回複
private String back;
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;}
public String getPl() {return pl;}
public void setPl(String pl) {this.pl = pl;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
public String getOrderDate() {return orderDate;}
public void setOrderDate(String orderDate) {this.orderDate = orderDate;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getLxr() {return lxr;}
public void setLxr(String lxr) {this.lxr = lxr;}
public String getLxfs() {return lxfs;}
public void setLxfs(String lxfs) {this.lxfs = lxfs;}
public String getPj() {return pj;}
public void setPj(String pj) {this.pj = pj;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
}
JavaCopy
訂單詳情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_orderlist”)
public class Orderlist {
//主鍵
@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 Integer orderId;
//菜品
private Integer productId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getOrderId() {return orderId;}
public void setOrderId(Integer orderId) {this.orderId = orderId;}
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
}
JavaCopy
評論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_pinglun”)
public class Pinglun {
//主鍵
@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 wdxxId;
//評論人
private Integer customerId;
//評論内容
private String content;
//評論日期
private Date insertDate;
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}
JavaCopy
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_pinglun_product”)
public class Pinglun_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 Integer productId;
//評論人
private Integer customerId;
//評論内容
private String content;
//評論日期
private Date insertDate;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}
JavaCopy
收藏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_sc”)
public class Sc {
//主鍵
@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 Integer productId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
購物車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;}
}
JavaCopy
客戶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_student”)
public class Student {
//主鍵
@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 customerName;
//性别
private String sex;
//位址
private String address;
//手機
private String phone;
//賬戶
private Integer account;
//積分
private Integer jf;
//頭像
private String headPic;
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 getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
public Integer getJf() {return jf;}
public void setJf(Integer jf) {this.jf = jf;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}
JavaCopy
分類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_types”)
public class Types {
//主鍵
@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 typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}
JavaCopy
普通員工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;}
}
JavaCopy
我的消息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_wdxx”)
public class Wdxx {
//主鍵
@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 pic;
//内容
private String content;
//贊
private Integer zan;
//釋出日期
private Date insertDate;
//遊客是否可見
private String nologin;
//
private Integer bkId;
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getZan() {return zan;}
public void setZan(Integer zan) {this.zan = zan;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getNologin() {return nologin;}
public void setNologin(String nologin) {this.nologin = nologin;}
public Integer getBkId() {return bkId;}
public void setBkId(Integer bkId) {this.bkId = bkId;}
}
JavaCopy
消息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_xiaoxi”)
public class Xiaoxi {
//主鍵
@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;}
}
JavaCopy
資訊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_zx”)
public class Zx {
//主鍵
@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 title;
//内容
private String content;
//圖檔
private String pic;
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}
JavaCopy
基于SSM的線上作業管理系統spring+springMVC+mybatis架構對象(javaBean,pojo)設計:
收貨位址javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//收貨位址
public class Address extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//省
private String province;
//市
private String city;
//區
private String area;
//電話
private String phone;
//聯系人
private String lxr;
//詳細位址
private String xxdz;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getProvince() {return province;}
public void setProvince(String province) {this.province = province;}
public String getCity() {return city;}
public void setCity(String city) {this.city = city;}
public String getArea() {return area;}
public void setArea(String area) {this.area = area;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getLxr() {return lxr;}
public void setLxr(String lxr) {this.lxr = lxr;}
public String getXxdz() {return xxdz;}
public void setXxdz(String xxdz) {this.xxdz = xxdz;}
}
JavaCopy
分類javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//分類
public class Bk extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分類名稱
private String bkName;
public String getBkName() {return bkName;}
public void setBkName(String bkName) {this.bkName = bkName;}
}
JavaCopy
标簽javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//标簽
public class Bq extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标簽
private String bqName;
public String getBqName() {return bqName;}
public void setBqName(String bqName) {this.bqName = bqName;}
}
JavaCopy
建議javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//建議
public class Contact extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//聯系方式
private String phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}
JavaCopy
積分兌換産品javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//積分兌換産品
public class Jfdh extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//積分産品名稱
private String jfName;
//積分數量
private Integer jfCost;
//産品圖檔
private String jfPic;
public String getJfName() {return jfName;}
public void setJfName(String jfName) {this.jfName = jfName;}
public Integer getJfCost() {return jfCost;}
public void setJfCost(Integer jfCost) {this.jfCost = jfCost;}
public String getJfPic() {return jfPic;}
public void setJfPic(String jfPic) {this.jfPic = jfPic;}
}
JavaCopy
庫存javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//庫存
public class Kc extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//産品
private Integer productId;
//庫存數量
private Integer kcNum;
//日期
private Date insertDate;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getKcNum() {return kcNum;}
public void setKcNum(Integer kcNum) {this.kcNum = kcNum;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
學生課程選擇javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//學生課程選擇
public class Kcxz extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//學生
private Integer customerId;
//課程
private Integer productId;
//老師
private Integer teacherId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
}
JavaCopy
課程作業javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//課程作業
public class Kczy extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//課程
private Integer productId;
//老師
private Integer teacherId;
//作業标題
private String kczyName;
//作業附件
private String fileUrl1;
//答案附件
private String fileUrl2;
//作業說明
private String content;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public String getKczyName() {return kczyName;}
public void setKczyName(String kczyName) {this.kczyName = kczyName;}
public String getFileUrl1() {return fileUrl1;}
public void setFileUrl1(String fileUrl1) {this.fileUrl1 = fileUrl1;}
public String getFileUrl2() {return fileUrl2;}
public void setFileUrl2(String fileUrl2) {this.fileUrl2 = fileUrl2;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}
JavaCopy
課程作業javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//課程作業
public class Kczylist extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//課程作業
private Integer kczyId;
//使用者
private Integer customerId;
//上傳日期
private Date insertDate;
//我的作業
private String zyfile;
//打分
private Integer df;
//說明
private String remark;
//狀态
private String status;
//
private Integer teacherId;
public Integer getKczyId() {return kczyId;}
public void setKczyId(Integer kczyId) {this.kczyId = kczyId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getZyfile() {return zyfile;}
public void setZyfile(String zyfile) {this.zyfile = zyfile;}
public Integer getDf() {return df;}
public void setDf(Integer df) {this.df = df;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
}
JavaCopy
産品javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//産品
public class Kecheng extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//産品名稱
private String productName;
//圖檔1
private String productPic1;
//圖檔2
private String productPic2;
//圖檔3
private String productPic3;
//圖檔4
private String productPic4;
//價格
private Integer price;
//原價
private Integer oldPrice;
//内容
private String content;
//數量
private Integer nums;
//推薦星級
private String tjxj;
//狀态
private String status;
//分類
private Integer typesId;
//積分
private Integer jf;
//商家
private Integer userId;
//标簽
private Integer bqId;
//點選量
private Integer djl;
public String getProductName() {return productName;}
public void setProductName(String productName) {this.productName = productName;}
public String getProductPic1() {return productPic1;}
public void setProductPic1(String productPic1) {this.productPic1 = productPic1;}
public String getProductPic2() {return productPic2;}
public void setProductPic2(String productPic2) {this.productPic2 = productPic2;}
public String getProductPic3() {return productPic3;}
public void setProductPic3(String productPic3) {this.productPic3 = productPic3;}
public String getProductPic4() {return productPic4;}
public void setProductPic4(String productPic4) {this.productPic4 = productPic4;}
public Integer getPrice() {return price;}
public void setPrice(Integer price) {this.price = price;}
public Integer getOldPrice() {return oldPrice;}
public void setOldPrice(Integer oldPrice) {this.oldPrice = oldPrice;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getNums() {return nums;}
public void setNums(Integer nums) {this.nums = nums;}
public String getTjxj() {return tjxj;}
public void setTjxj(String tjxj) {this.tjxj = tjxj;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public Integer getJf() {return jf;}
public void setJf(Integer jf) {this.jf = jf;}
public Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
public Integer getBqId() {return bqId;}
public void setBqId(Integer bqId) {this.bqId = bqId;}
public Integer getDjl() {return djl;}
public void setDjl(Integer djl) {this.djl = djl;}
}
JavaCopy
産品點選javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//産品點選
public class Kechengclick extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//産品
private Integer productId;
//使用者
private Integer customerId;
//日期
private Date insertDate;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
輪播圖javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//輪播圖
public class Lbt extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//圖檔
private String pic;
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}
JavaCopy
資訊交流javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//資訊交流
public class Message extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//内容
private String messageContent;
//
private Integer types;
//時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getMessageContent() {return messageContent;}
public void setMessageContent(String messageContent) {this.messageContent = messageContent;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
訂單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;
//物流資訊
private String pl;
//日期
private Date insertDate;
//
private Integer userId;
//
private String orderDate;
//位址
private String address;
//聯系人
private String lxr;
//聯系方式
private String lxfs;
//評價
private String pj;
//回複
private String back;
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;}
public String getPl() {return pl;}
public void setPl(String pl) {this.pl = pl;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
public String getOrderDate() {return orderDate;}
public void setOrderDate(String orderDate) {this.orderDate = orderDate;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getLxr() {return lxr;}
public void setLxr(String lxr) {this.lxr = lxr;}
public String getLxfs() {return lxfs;}
public void setLxfs(String lxfs) {this.lxfs = lxfs;}
public String getPj() {return pj;}
public void setPj(String pj) {this.pj = pj;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
}
JavaCopy
訂單詳情javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//訂單詳情
public class Orderlist extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//訂單
private Integer orderId;
//菜品
private Integer productId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getOrderId() {return orderId;}
public void setOrderId(Integer orderId) {this.orderId = orderId;}
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
}
JavaCopy
評論javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//評論
public class Pinglun extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//評論資訊
private Integer wdxxId;
//評論人
private Integer customerId;
//評論内容
private String content;
//評論日期
private Date insertDate;
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}
JavaCopy
javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//
public class Pinglun_product extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//評論資訊
private Integer productId;
//評論人
private Integer customerId;
//評論内容
private String content;
//評論日期
private Date insertDate;
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}
JavaCopy
收藏javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//收藏
public class Sc extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//産品
private Integer productId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
購物車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;}
}
JavaCopy
客戶javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//客戶
public class Student 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 customerName;
//性别
private String sex;
//位址
private String address;
//手機
private String phone;
//賬戶
private Integer account;
//積分
private Integer jf;
//頭像
private String headPic;
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 getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
public Integer getJf() {return jf;}
public void setJf(Integer jf) {this.jf = jf;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}
JavaCopy
分類javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//分類
public class Types extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分類
private String typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}
JavaCopy
普通員工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;}
}
JavaCopy
我的消息javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//我的消息
public class Wdxx 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 pic;
//内容
private String content;
//贊
private Integer zan;
//釋出日期
private Date insertDate;
//遊客是否可見
private String nologin;
//
private Integer bkId;
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getZan() {return zan;}
public void setZan(Integer zan) {this.zan = zan;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getNologin() {return nologin;}
public void setNologin(String nologin) {this.nologin = nologin;}
public Integer getBkId() {return bkId;}
public void setBkId(Integer bkId) {this.bkId = bkId;}
}
JavaCopy
消息javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//消息
public class Xiaoxi 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;}
}
JavaCopy
資訊javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//資訊
public class Zx extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标題
private String title;
//内容
private String content;
//圖檔
private String pic;
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}