基于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;}
}

评论