基於spring網際網路支付系統的設計,javaweb課程設計
阿新 • • 發佈:2018-12-30
**基於spring網際網路支付系統的設計,javaweb課程設計**
- 基於spring網際網路支付系統的設計mysql資料庫建立語句
- 基於spring網際網路支付系統的設計oracle資料庫建立語句
- 基於spring網際網路支付系統的設計sqlserver資料庫建立語句
- 基於spring網際網路支付系統的設計spring springMVC hibernate框架物件(javaBean,pojo)設計
- 基於spring網際網路支付系統的設計spring springMVC mybatis框架物件(javaBean,pojo)設計
基於spring網際網路支付系統的設計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_ck(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
v1 varchar(100) comment '存款說明',
v3 varchar(100) comment '存款物件',
je int comment '存款金額',
insertDate datetime comment '日期'
) comment '存款';
使用者表建立語句如下:
create table t_customer( id int primary key auto_increment comment '主鍵', username varchar(100) comment '賬號', password varchar(100) comment '密碼', customerName varchar(100) comment '姓名', age varchar(100) comment '年齡', sex varchar(100) comment '性別', phone varchar(100) comment '電話', address varchar(100) comment '地址', idcard varchar(100) comment '身份證', account int comment '我的金額' ) comment '使用者';
繳費業務表建立語句如下:
create table t_jf(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
ywName varchar(100) comment '業務名稱',
je int comment '金額',
insertDate datetime comment '日期'
) comment '繳費業務';
日誌表建立語句如下:
create table t_log(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
types varchar(100) comment '型別',
insertDate datetime comment '日期',
je int comment '金額'
) comment '日誌';
取款表建立語句如下:
create table t_qk(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
v1 varchar(100) comment '取款說明',
je int comment '存款金額',
insertDate datetime comment '日期'
) comment '取款';
業務表建立語句如下:
create table t_yw(
id int primary key auto_increment comment '主鍵',
ywName varchar(100) comment '業務名稱',
je int comment '金額'
) comment '業務';
基於spring網際網路支付系統的設計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_ck(
id integer,
customerId int,
v1 varchar(100),
v3 varchar(100),
je int,
insertDate datetime
);
--存款欄位加註釋
comment on column t_ck.id is '主鍵';
comment on column t_ck.customerId is '使用者';
comment on column t_ck.v1 is '存款說明';
comment on column t_ck.v3 is '存款物件';
comment on column t_ck.je is '存款金額';
comment on column t_ck.insertDate is '日期';
--存款表加註釋
comment on table t_ck is '存款';
使用者表建立語句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
age varchar(100),
sex varchar(100),
phone varchar(100),
address varchar(100),
idcard varchar(100),
account int
);
--使用者欄位加註釋
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.customerName is '姓名';
comment on column t_customer.age is '年齡';
comment on column t_customer.sex is '性別';
comment on column t_customer.phone is '電話';
comment on column t_customer.address is '地址';
comment on column t_customer.idcard is '身份證';
comment on column t_customer.account is '我的金額';
--使用者表加註釋
comment on table t_customer is '使用者';
繳費業務表建立語句如下:
create table t_jf(
id integer,
customerId int,
ywName varchar(100),
je int,
insertDate datetime
);
--繳費業務欄位加註釋
comment on column t_jf.id is '主鍵';
comment on column t_jf.customerId is '使用者';
comment on column t_jf.ywName is '業務名稱';
comment on column t_jf.je is '金額';
comment on column t_jf.insertDate is '日期';
--繳費業務表加註釋
comment on table t_jf is '繳費業務';
日誌表建立語句如下:
create table t_log(
id integer,
customerId int,
types varchar(100),
insertDate datetime,
je int
);
--日誌欄位加註釋
comment on column t_log.id is '主鍵';
comment on column t_log.customerId is '使用者';
comment on column t_log.types is '型別';
comment on column t_log.insertDate is '日期';
comment on column t_log.je is '金額';
--日誌表加註釋
comment on table t_log is '日誌';
取款表建立語句如下:
create table t_qk(
id integer,
customerId int,
v1 varchar(100),
je int,
insertDate datetime
);
--取款欄位加註釋
comment on column t_qk.id is '主鍵';
comment on column t_qk.customerId is '使用者';
comment on column t_qk.v1 is '取款說明';
comment on column t_qk.je is '存款金額';
comment on column t_qk.insertDate is '日期';
--取款表加註釋
comment on table t_qk is '取款';
業務表建立語句如下:
create table t_yw(
id integer,
ywName varchar(100),
je int
);
--業務欄位加註釋
comment on column t_yw.id is '主鍵';
comment on column t_yw.ywName is '業務名稱';
comment on column t_yw.je is '金額';
--業務表加註釋
comment on table t_yw is '業務';
oracle特有,對應序列如下:
create sequence s_t_ck;
create sequence s_t_customer;
create sequence s_t_jf;
create sequence s_t_log;
create sequence s_t_qk;
create sequence s_t_yw;
基於spring網際網路支付系統的設計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_ck(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
v1 varchar(100),--存款說明
v3 varchar(100),--存款物件
je int,--存款金額
insertDate datetime--日期
);
使用者表建立語句如下:
--使用者表註釋
create table t_customer(
id int identity(1,1) primary key not null,--主鍵
username varchar(100),--賬號
password varchar(100),--密碼
customerName varchar(100),--姓名
age varchar(100),--年齡
sex varchar(100),--性別
phone varchar(100),--電話
address varchar(100),--地址
idcard varchar(100),--身份證
account int--我的金額
);
繳費業務表建立語句如下:
--繳費業務表註釋
create table t_jf(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
ywName varchar(100),--業務名稱
je int,--金額
insertDate datetime--日期
);
日誌表建立語句如下:
--日誌表註釋
create table t_log(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
types varchar(100),--型別
insertDate datetime,--日期
je int--金額
);
取款表建立語句如下:
--取款表註釋
create table t_qk(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
v1 varchar(100),--取款說明
je int,--存款金額
insertDate datetime--日期
);
業務表建立語句如下:
--業務表註釋
create table t_yw(
id int identity(1,1) primary key not null,--主鍵
ywName varchar(100),--業務名稱
je int--金額
);
基於spring網際網路支付系統的設計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_ck")
public class Ck {
//主鍵
@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 v1;
//存款物件
private String v3;
//存款金額
private Integer je;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
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_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 customerName;
//年齡
private String age;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
//身份證
private String idcard;
//我的金額
private Integer account;
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 getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
}
繳費業務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_jf")
public class Jf {
//主鍵
@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 ywName;
//金額
private Integer je;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getYwName() {return ywName;}
public void setYwName(String ywName) {this.ywName = ywName;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
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_log")
public class Log {
//主鍵
@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 types;
//日期
private Date insertDate;
//金額
private Integer je;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
}
取款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_qk")
public class Qk {
//主鍵
@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 v1;
//存款金額
private Integer je;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
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_yw")
public class Yw {
//主鍵
@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 ywName;
//金額
private Integer je;
public String getYwName() {return ywName;}
public void setYwName(String ywName) {this.ywName = ywName;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
}
基於spring網際網路支付系統的設計spring springMVC mybatis框架物件(javaBean,pojo)設計:
存款javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//存款
public class Ck extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//存款說明
private String v1;
//存款物件
private String v3;
//存款金額
private Integer je;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
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 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 customerName;
//年齡
private String age;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
//身份證
private String idcard;
//我的金額
private Integer account;
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 getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
}
繳費業務javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//繳費業務
public class Jf extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//業務名稱
private String ywName;
//金額
private Integer je;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getYwName() {return ywName;}
public void setYwName(String ywName) {this.ywName = ywName;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
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 Log extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//型別
private String types;
//日期
private Date insertDate;
//金額
private Integer je;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
}
取款javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//取款
public class Qk extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//取款說明
private String v1;
//存款金額
private Integer je;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
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 Yw extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//業務名稱
private String ywName;
//金額
private Integer je;
public String getYwName() {return ywName;}
public void setYwName(String ywName) {this.ywName = ywName;}
public Integer getJe() {return je;}
public void setJe(Integer je) {this.je = je;}
}