1. 程式人生 > >基於ssm的質檢業務管理系統的設計與實現

基於ssm的質檢業務管理系統的設計與實現

**基於ssm的質檢業務管理系統的設計與實現** 基於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');

使用者表建立語句如下:


create table t_customer(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	customerName varchar(100) comment '企業名稱',
	fr varchar(100) comment '法人代表名稱',
	sex varchar(100) comment '性別',
	phone varchar(100) comment '電話',
	address varchar(100) comment '地址'
) comment '使用者';

質檢專案表建立語句如下:


create table t_sq(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '企業',
	xmId int comment '檢驗專案',
	insertDate datetime comment '送檢日期',
	va1 varchar(100) comment '資訊錄入',
	va2 varchar(100) comment '反饋檢驗結果',
	vaId int comment '任務管理方',
	vb1 varchar(100) comment '檢驗資料',
	vbId int comment '檢驗方',
	vc1 varchar(100) comment '審批結果',
	vcId int comment '審批人',
	status varchar(100) comment '狀態'
) comment '質檢專案';

管理方表建立語句如下:


create table t_va(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	vaName varchar(100) comment '管理方名稱',
	sex varchar(100) comment '性別',
	phone varchar(100) comment '電話',
	address varchar(100) comment '地址'
) comment '管理方';

檢驗方表建立語句如下:


create table t_vb(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	vbName varchar(100) comment '檢驗方名稱',
	sex varchar(100) comment '性別',
	phone varchar(100) comment '電話',
	address varchar(100) comment '地址'
) comment '檢驗方';

稽核人表建立語句如下:


create table t_vc(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	vcName varchar(100) comment '稽核人名稱',
	sex varchar(100) comment '性別',
	phone varchar(100) comment '電話',
	address varchar(100) comment '地址'
) comment '稽核人';

質檢專案表建立語句如下:


create table t_xm(
	id int primary key auto_increment comment '主鍵',
	xmName varchar(100) comment '專案名稱',
	xmContent varchar(100) comment '專案描述'
) comment '質檢專案';

基於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 '超級管理員';

使用者表建立語句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	fr varchar(100),
	sex varchar(100),
	phone varchar(100),
	address varchar(100)
);
--使用者欄位加註釋
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.fr is '法人代表名稱';
comment on column t_customer.sex is '性別';
comment on column t_customer.phone is '電話';
comment on column t_customer.address is '地址';
--使用者表加註釋
comment on table t_customer is '使用者';

質檢專案表建立語句如下:


create table t_sq(
	id integer,
	customerId int,
	xmId int,
	insertDate datetime,
	va1 varchar(100),
	va2 varchar(100),
	vaId int,
	vb1 varchar(100),
	vbId int,
	vc1 varchar(100),
	vcId int,
	status varchar(100)
);
--質檢專案欄位加註釋
comment on column t_sq.id is '主鍵';
comment on column t_sq.customerId is '企業';
comment on column t_sq.xmId is '檢驗專案';
comment on column t_sq.insertDate is '送檢日期';
comment on column t_sq.va1 is '資訊錄入';
comment on column t_sq.va2 is '反饋檢驗結果';
comment on column t_sq.vaId is '任務管理方';
comment on column t_sq.vb1 is '檢驗資料';
comment on column t_sq.vbId is '檢驗方';
comment on column t_sq.vc1 is '審批結果';
comment on column t_sq.vcId is '審批人';
comment on column t_sq.status is '狀態';
--質檢專案表加註釋
comment on table t_sq is '質檢專案';

管理方表建立語句如下:


create table t_va(
	id integer,
	username varchar(100),
	password varchar(100),
	vaName varchar(100),
	sex varchar(100),
	phone varchar(100),
	address varchar(100)
);
--管理方欄位加註釋
comment on column t_va.id is '主鍵';
comment on column t_va.username is '賬號';
comment on column t_va.password is '密碼';
comment on column t_va.vaName is '管理方名稱';
comment on column t_va.sex is '性別';
comment on column t_va.phone is '電話';
comment on column t_va.address is '地址';
--管理方表加註釋
comment on table t_va is '管理方';

檢驗方表建立語句如下:


create table t_vb(
	id integer,
	username varchar(100),
	password varchar(100),
	vbName varchar(100),
	sex varchar(100),
	phone varchar(100),
	address varchar(100)
);
--檢驗方欄位加註釋
comment on column t_vb.id is '主鍵';
comment on column t_vb.username is '賬號';
comment on column t_vb.password is '密碼';
comment on column t_vb.vbName is '檢驗方名稱';
comment on column t_vb.sex is '性別';
comment on column t_vb.phone is '電話';
comment on column t_vb.address is '地址';
--檢驗方表加註釋
comment on table t_vb is '檢驗方';

稽核人表建立語句如下:


create table t_vc(
	id integer,
	username varchar(100),
	password varchar(100),
	vcName varchar(100),
	sex varchar(100),
	phone varchar(100),
	address varchar(100)
);
--稽核人欄位加註釋
comment on column t_vc.id is '主鍵';
comment on column t_vc.username is '賬號';
comment on column t_vc.password is '密碼';
comment on column t_vc.vcName is '稽核人名稱';
comment on column t_vc.sex is '性別';
comment on column t_vc.phone is '電話';
comment on column t_vc.address is '地址';
--稽核人表加註釋
comment on table t_vc is '稽核人';

質檢專案表建立語句如下:


create table t_xm(
	id integer,
	xmName varchar(100),
	xmContent varchar(100)
);
--質檢專案欄位加註釋
comment on column t_xm.id is '主鍵';
comment on column t_xm.xmName is '專案名稱';
comment on column t_xm.xmContent is '專案描述';
--質檢專案表加註釋
comment on table t_xm is '質檢專案';

oracle特有,對應序列如下:


create sequence s_t_customer;
create sequence s_t_sq;
create sequence s_t_va;
create sequence s_t_vb;
create sequence s_t_vc;
create sequence s_t_xm;

基於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');

使用者表建立語句如下:


--使用者表註釋
create table t_customer(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	customerName varchar(100),--企業名稱
	fr varchar(100),--法人代表名稱
	sex varchar(100),--性別
	phone varchar(100),--電話
	address varchar(100)--地址
);

質檢專案表建立語句如下:


--質檢專案表註釋
create table t_sq(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--企業
	xmId int,--檢驗專案
	insertDate datetime,--送檢日期
	va1 varchar(100),--資訊錄入
	va2 varchar(100),--反饋檢驗結果
	vaId int,--任務管理方
	vb1 varchar(100),--檢驗資料
	vbId int,--檢驗方
	vc1 varchar(100),--審批結果
	vcId int,--審批人
	status varchar(100)--狀態
);

管理方表建立語句如下:


--管理方表註釋
create table t_va(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	vaName varchar(100),--管理方名稱
	sex varchar(100),--性別
	phone varchar(100),--電話
	address varchar(100)--地址
);

檢驗方表建立語句如下:


--檢驗方表註釋
create table t_vb(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	vbName varchar(100),--檢驗方名稱
	sex varchar(100),--性別
	phone varchar(100),--電話
	address varchar(100)--地址
);

稽核人表建立語句如下:


--稽核人表註釋
create table t_vc(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	vcName varchar(100),--稽核人名稱
	sex varchar(100),--性別
	phone varchar(100),--電話
	address varchar(100)--地址
);

質檢專案表建立語句如下:


--質檢專案表註釋
create table t_xm(
	id int identity(1,1) primary key not null,--主鍵
	xmName varchar(100),--專案名稱
	xmContent varchar(100)--專案描述
);

基於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_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 fr;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
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 getFr() {return fr;}
public void setFr(String fr) {this.fr = fr;}
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;}
}

質檢專案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_sq")
public class Sq {
//主鍵
@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 xmId;
//送檢日期
private Date insertDate;
//資訊錄入
private String va1;
//反饋檢驗結果
private String va2;
//任務管理方
private Integer vaId;
//檢驗資料
private String vb1;
//檢驗方
private Integer vbId;
//審批結果
private String vc1;
//審批人
private Integer vcId;
//狀態
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getXmId() {return xmId;}
public void setXmId(Integer xmId) {this.xmId = xmId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getVa1() {return va1;}
public void setVa1(String va1) {this.va1 = va1;}
public String getVa2() {return va2;}
public void setVa2(String va2) {this.va2 = va2;}
public Integer getVaId() {return vaId;}
public void setVaId(Integer vaId) {this.vaId = vaId;}
public String getVb1() {return vb1;}
public void setVb1(String vb1) {this.vb1 = vb1;}
public Integer getVbId() {return vbId;}
public void setVbId(Integer vbId) {this.vbId = vbId;}
public String getVc1() {return vc1;}
public void setVc1(String vc1) {this.vc1 = vc1;}
public Integer getVcId() {return vcId;}
public void setVcId(Integer vcId) {this.vcId = vcId;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

管理方javaBean建立語句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//管理方
@Table(name = "t_va")
public class Va {
//主鍵
@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 vaName;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
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 getVaName() {return vaName;}
public void setVaName(String vaName) {this.vaName = vaName;}
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;}
}

檢驗方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_vb")
public class Vb {
//主鍵
@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 vbName;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
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 getVbName() {return vbName;}
public void setVbName(String vbName) {this.vbName = vbName;}
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;}
}

稽核人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_vc")
public class Vc {
//主鍵
@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 vcName;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
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 getVcName() {return vcName;}
public void setVcName(String vcName) {this.vcName = vcName;}
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;}
}

質檢專案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_xm")
public class Xm {
//主鍵
@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 xmName;
//專案描述
private String xmContent;
public String getXmName() {return xmName;}
public void setXmName(String xmName) {this.xmName = xmName;}
public String getXmContent() {return xmContent;}
public void setXmContent(String xmContent) {this.xmContent = xmContent;}
}

基於ssm的質檢業務管理系統的設計與實現spring springMVC mybatis框架物件(javaBean,pojo)設計:

使用者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 fr;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
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 getFr() {return fr;}
public void setFr(String fr) {this.fr = fr;}
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;}
}

質檢專案javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//質檢專案
public class Sq  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//企業
private Integer customerId;
//檢驗專案
private Integer xmId;
//送檢日期
private Date insertDate;
//資訊錄入
private String va1;
//反饋檢驗結果
private String va2;
//任務管理方
private Integer vaId;
//檢驗資料
private String vb1;
//檢驗方
private Integer vbId;
//審批結果
private String vc1;
//審批人
private Integer vcId;
//狀態
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getXmId() {return xmId;}
public void setXmId(Integer xmId) {this.xmId = xmId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getVa1() {return va1;}
public void setVa1(String va1) {this.va1 = va1;}
public String getVa2() {return va2;}
public void setVa2(String va2) {this.va2 = va2;}
public Integer getVaId() {return vaId;}
public void setVaId(Integer vaId) {this.vaId = vaId;}
public String getVb1() {return vb1;}
public void setVb1(String vb1) {this.vb1 = vb1;}
public Integer getVbId() {return vbId;}
public void setVbId(Integer vbId) {this.vbId = vbId;}
public String getVc1() {return vc1;}
public void setVc1(String vc1) {this.vc1 = vc1;}
public Integer getVcId() {return vcId;}
public void setVcId(Integer vcId) {this.vcId = vcId;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

管理方javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//管理方
public class Va  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 vaName;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
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 getVaName() {return vaName;}
public void setVaName(String vaName) {this.vaName = vaName;}
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;}
}

檢驗方javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//檢驗方
public class Vb  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 vbName;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
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 getVbName() {return vbName;}
public void setVbName(String vbName) {this.vbName = vbName;}
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;}
}

稽核人javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//稽核人
public class Vc  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 vcName;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
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 getVcName() {return vcName;}
public void setVcName(String vcName) {this.vcName = vcName;}
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;}
}

質檢專案javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//質檢專案
public class Xm  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//專案名稱
private String xmName;
//專案描述
private String xmContent;
public String getXmName() {return xmName;}
public void setXmName(String xmName) {this.xmName = xmName;}
public String getXmContent() {return xmContent;}
public void setXmContent(String xmContent) {this.xmContent = xmContent;}
}