基于Java的团级部队人员管理系统的设计与实现

基于Java的团级部队人员管理系统的设计与实现登录注册界面

基于Java的团级部队人员管理系统的设计与实现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_jlcf(
	id int primary key auto_increment comment '主键',
	ryId int comment '人员',
	cfnr varchar(100) comment '处罚内容',
	cfsj datetime comment '处罚时间'
) comment '纪律处罚记录';

考核得分表创建语句如下:


create table t_khdf(
	id int primary key auto_increment comment '主键',
	ryId int comment '人员',
	xljhId int comment '训练计划',
	df varchar(100) comment '得分',
	py varchar(100) comment '评语'
) comment '考核得分';

人员表创建语句如下:


create table t_ry(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	ryName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '头像',
	idcard varchar(100) comment '身份证',
	yj varchar(100) comment '营级',
	lj varchar(100) comment '连级',
	pj varchar(100) comment '排级',
	bj varchar(100) comment '班级',
	ssId int comment '宿舍'
) comment '人员';

设备管理表创建语句如下:


create table t_sbgl(
	id int primary key auto_increment comment '主键',
	types varchar(100) comment '类型',
	beginDate datetime comment '开始时间',
	endDate datetime comment '结束时间',
	jsr varchar(100) comment '经手人',
	remark varchar(100) comment '备注'
) comment '设备管理';

宿舍表创建语句如下:


create table t_ss(
	id int primary key auto_increment comment '主键',
	ssName varchar(100) comment '宿舍编号'
) comment '宿舍';

训练计划表创建语句如下:


create table t_xljh(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '训练计划',
	sjd varchar(100) comment '时间段',
	content varchar(100) comment '内容'
) comment '训练计划';

基于Java的团级部队人员管理系统的设计与实现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_jlcf(
	id integer,
	ryId int,
	cfnr varchar(100),
	cfsj datetime
);
--纪律处罚记录字段加注释
comment on column t_jlcf.id is '主键';
comment on column t_jlcf.ryId is '人员';
comment on column t_jlcf.cfnr is '处罚内容';
comment on column t_jlcf.cfsj is '处罚时间';
--纪律处罚记录表加注释
comment on table t_jlcf is '纪律处罚记录';

考核得分表创建语句如下:


create table t_khdf(
	id integer,
	ryId int,
	xljhId int,
	df varchar(100),
	py varchar(100)
);
--考核得分字段加注释
comment on column t_khdf.id is '主键';
comment on column t_khdf.ryId is '人员';
comment on column t_khdf.xljhId is '训练计划';
comment on column t_khdf.df is '得分';
comment on column t_khdf.py is '评语';
--考核得分表加注释
comment on table t_khdf is '考核得分';

人员表创建语句如下:


create table t_ry(
	id integer,
	username varchar(100),
	password varchar(100),
	ryName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	pic varchar(100),
	idcard varchar(100),
	yj varchar(100),
	lj varchar(100),
	pj varchar(100),
	bj varchar(100),
	ssId int
);
--人员字段加注释
comment on column t_ry.id is '主键';
comment on column t_ry.username is '账号';
comment on column t_ry.password is '密码';
comment on column t_ry.ryName is '姓名';
comment on column t_ry.age is '年龄';
comment on column t_ry.sex is '性别';
comment on column t_ry.phone is '电话';
comment on column t_ry.pic is '头像';
comment on column t_ry.idcard is '身份证';
comment on column t_ry.yj is '营级';
comment on column t_ry.lj is '连级';
comment on column t_ry.pj is '排级';
comment on column t_ry.bj is '班级';
comment on column t_ry.ssId is '宿舍';
--人员表加注释
comment on table t_ry is '人员';

设备管理表创建语句如下:


create table t_sbgl(
	id integer,
	types varchar(100),
	beginDate datetime,
	endDate datetime,
	jsr varchar(100),
	remark varchar(100)
);
--设备管理字段加注释
comment on column t_sbgl.id is '主键';
comment on column t_sbgl.types is '类型';
comment on column t_sbgl.beginDate is '开始时间';
comment on column t_sbgl.endDate is '结束时间';
comment on column t_sbgl.jsr is '经手人';
comment on column t_sbgl.remark is '备注';
--设备管理表加注释
comment on table t_sbgl is '设备管理';

宿舍表创建语句如下:


create table t_ss(
	id integer,
	ssName varchar(100)
);
--宿舍字段加注释
comment on column t_ss.id is '主键';
comment on column t_ss.ssName is '宿舍编号';
--宿舍表加注释
comment on table t_ss is '宿舍';

训练计划表创建语句如下:


create table t_xljh(
	id integer,
	title varchar(100),
	sjd varchar(100),
	content varchar(100)
);
--训练计划字段加注释
comment on column t_xljh.id is '主键';
comment on column t_xljh.title is '训练计划';
comment on column t_xljh.sjd is '时间段';
comment on column t_xljh.content is '内容';
--训练计划表加注释
comment on table t_xljh is '训练计划';

oracle特有,对应序列如下:


create sequence s_t_jlcf;
create sequence s_t_khdf;
create sequence s_t_ry;
create sequence s_t_sbgl;
create sequence s_t_ss;
create sequence s_t_xljh;

基于Java的团级部队人员管理系统的设计与实现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_jlcf(
	id int identity(1,1) primary key not null,--主键
	ryId int,--人员
	cfnr varchar(100),--处罚内容
	cfsj datetime--处罚时间
);

考核得分表创建语句如下:


--考核得分表注释
create table t_khdf(
	id int identity(1,1) primary key not null,--主键
	ryId int,--人员
	xljhId int,--训练计划
	df varchar(100),--得分
	py varchar(100)--评语
);

人员表创建语句如下:


--人员表注释
create table t_ry(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	ryName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	pic varchar(100),--头像
	idcard varchar(100),--身份证
	yj varchar(100),--营级
	lj varchar(100),--连级
	pj varchar(100),--排级
	bj varchar(100),--班级
	ssId int--宿舍
);

设备管理表创建语句如下:


--设备管理表注释
create table t_sbgl(
	id int identity(1,1) primary key not null,--主键
	types varchar(100),--类型
	beginDate datetime,--开始时间
	endDate datetime,--结束时间
	jsr varchar(100),--经手人
	remark varchar(100)--备注
);

宿舍表创建语句如下:


--宿舍表注释
create table t_ss(
	id int identity(1,1) primary key not null,--主键
	ssName varchar(100)--宿舍编号
);

训练计划表创建语句如下:


--训练计划表注释
create table t_xljh(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--训练计划
	sjd varchar(100),--时间段
	content varchar(100)--内容
);

基于Java的团级部队人员管理系统的设计与实现登录后主页

基于Java的团级部队人员管理系统的设计与实现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_jlcf")
public class Jlcf {
//主键
@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 ryId;
//处罚内容
private String cfnr;
//处罚时间
private Date cfsj;
public Integer getRyId() {return ryId;}
public void setRyId(Integer ryId) {this.ryId = ryId;}
public String getCfnr() {return cfnr;}
public void setCfnr(String cfnr) {this.cfnr = cfnr;}
public Date getCfsj() {return cfsj;}
public void setCfsj(Date cfsj) {this.cfsj = cfsj;}
}

考核得分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_khdf")
public class Khdf {
//主键
@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 ryId;
//训练计划
private Integer xljhId;
//得分
private String df;
//评语
private String py;
public Integer getRyId() {return ryId;}
public void setRyId(Integer ryId) {this.ryId = ryId;}
public Integer getXljhId() {return xljhId;}
public void setXljhId(Integer xljhId) {this.xljhId = xljhId;}
public String getDf() {return df;}
public void setDf(String df) {this.df = df;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
}

人员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_ry")
public class Ry {
//主键
@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 ryName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
//身份证
private String idcard;
//营级
private String yj;
//连级
private String lj;
//排级
private String pj;
//班级
private String bj;
//宿舍
private Integer ssId;
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 getRyName() {return ryName;}
public void setRyName(String ryName) {this.ryName = ryName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getYj() {return yj;}
public void setYj(String yj) {this.yj = yj;}
public String getLj() {return lj;}
public void setLj(String lj) {this.lj = lj;}
public String getPj() {return pj;}
public void setPj(String pj) {this.pj = pj;}
public String getBj() {return bj;}
public void setBj(String bj) {this.bj = bj;}
public Integer getSsId() {return ssId;}
public void setSsId(Integer ssId) {this.ssId = ssId;}
}

设备管理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_sbgl")
public class Sbgl {
//主键
@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 types;
//开始时间
private Date beginDate;
//结束时间
private Date endDate;
//经手人
private String jsr;
//备注
private String remark;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getBeginDate() {return beginDate;}
public void setBeginDate(Date beginDate) {this.beginDate = beginDate;}
public Date getEndDate() {return endDate;}
public void setEndDate(Date endDate) {this.endDate = endDate;}
public String getJsr() {return jsr;}
public void setJsr(String jsr) {this.jsr = jsr;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

宿舍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_ss")
public class Ss {
//主键
@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 ssName;
public String getSsName() {return ssName;}
public void setSsName(String ssName) {this.ssName = ssName;}
}

训练计划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_xljh")
public class Xljh {
//主键
@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 sjd;
//内容
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getSjd() {return sjd;}
public void setSjd(String sjd) {this.sjd = sjd;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

基于Java的团级部队人员管理系统的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

纪律处罚记录javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//纪律处罚记录
public class Jlcf  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//人员
private Integer ryId;
//处罚内容
private String cfnr;
//处罚时间
private Date cfsj;
public Integer getRyId() {return ryId;}
public void setRyId(Integer ryId) {this.ryId = ryId;}
public String getCfnr() {return cfnr;}
public void setCfnr(String cfnr) {this.cfnr = cfnr;}
public Date getCfsj() {return cfsj;}
public void setCfsj(Date cfsj) {this.cfsj = cfsj;}
}

考核得分javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//考核得分
public class Khdf  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//人员
private Integer ryId;
//训练计划
private Integer xljhId;
//得分
private String df;
//评语
private String py;
public Integer getRyId() {return ryId;}
public void setRyId(Integer ryId) {this.ryId = ryId;}
public Integer getXljhId() {return xljhId;}
public void setXljhId(Integer xljhId) {this.xljhId = xljhId;}
public String getDf() {return df;}
public void setDf(String df) {this.df = df;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
}

人员javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//人员
public class Ry  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 ryName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
//身份证
private String idcard;
//营级
private String yj;
//连级
private String lj;
//排级
private String pj;
//班级
private String bj;
//宿舍
private Integer ssId;
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 getRyName() {return ryName;}
public void setRyName(String ryName) {this.ryName = ryName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getYj() {return yj;}
public void setYj(String yj) {this.yj = yj;}
public String getLj() {return lj;}
public void setLj(String lj) {this.lj = lj;}
public String getPj() {return pj;}
public void setPj(String pj) {this.pj = pj;}
public String getBj() {return bj;}
public void setBj(String bj) {this.bj = bj;}
public Integer getSsId() {return ssId;}
public void setSsId(Integer ssId) {this.ssId = ssId;}
}

设备管理javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//设备管理
public class Sbgl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型
private String types;
//开始时间
private Date beginDate;
//结束时间
private Date endDate;
//经手人
private String jsr;
//备注
private String remark;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getBeginDate() {return beginDate;}
public void setBeginDate(Date beginDate) {this.beginDate = beginDate;}
public Date getEndDate() {return endDate;}
public void setEndDate(Date endDate) {this.endDate = endDate;}
public String getJsr() {return jsr;}
public void setJsr(String jsr) {this.jsr = jsr;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

宿舍javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//宿舍
public class Ss  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//宿舍编号
private String ssName;
public String getSsName() {return ssName;}
public void setSsName(String ssName) {this.ssName = ssName;}
}

训练计划javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//训练计划
public class Xljh  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//训练计划
private String title;
//时间段
private String sjd;
//内容
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getSjd() {return sjd;}
public void setSjd(String sjd) {this.sjd = sjd;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

源代码下载点这里

评论