党建信息管理系统

党建信息管理系统登录注册界面

党建信息管理系统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_dy(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	dyName varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '图片'
) comment '党员';

活动表创建语句如下:


create table t_hd(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容',
	status varchar(100) comment '状态',
	remark varchar(100) comment '结语'
) comment '活动';

活动报名表创建语句如下:


create table t_hdlist(
	id int primary key auto_increment comment '主键',
	dyId int comment '党员',
	hdId int comment '活动'
) comment '活动报名';

通知表创建语句如下:


create table t_tz(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容',
	fj varchar(100) comment '文件',
	showDate datetime comment '日期'
) comment '通知';

文章表创建语句如下:


create table t_wz(
	id int primary key auto_increment comment '主键',
	dyId int comment '党员',
	title varchar(100) comment '文章名称',
	content varchar(100) comment '内容',
	isbf varchar(100) comment '是否发布'
) comment '文章';

新闻表创建语句如下:


create table t_xw(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容',
	showDate datetime comment '日期'
) comment '新闻';

党建信息管理系统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_dy(
	id integer,
	username varchar(100),
	password varchar(100),
	dyName varchar(100),
	sex varchar(100),
	age varchar(100),
	phone varchar(100),
	pic varchar(100)
);
--党员字段加注释
comment on column t_dy.id is '主键';
comment on column t_dy.username is '账号';
comment on column t_dy.password is '密码';
comment on column t_dy.dyName is '姓名';
comment on column t_dy.sex is '性别';
comment on column t_dy.age is '年龄';
comment on column t_dy.phone is '电话';
comment on column t_dy.pic is '图片';
--党员表加注释
comment on table t_dy is '党员';

活动表创建语句如下:


create table t_hd(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	status varchar(100),
	remark varchar(100)
);
--活动字段加注释
comment on column t_hd.id is '主键';
comment on column t_hd.title is '标题';
comment on column t_hd.pic is '图片';
comment on column t_hd.content is '内容';
comment on column t_hd.status is '状态';
comment on column t_hd.remark is '结语';
--活动表加注释
comment on table t_hd is '活动';

活动报名表创建语句如下:


create table t_hdlist(
	id integer,
	dyId int,
	hdId int
);
--活动报名字段加注释
comment on column t_hdlist.id is '主键';
comment on column t_hdlist.dyId is '党员';
comment on column t_hdlist.hdId is '活动';
--活动报名表加注释
comment on table t_hdlist is '活动报名';

通知表创建语句如下:


create table t_tz(
	id integer,
	title varchar(100),
	content varchar(100),
	fj varchar(100),
	showDate datetime
);
--通知字段加注释
comment on column t_tz.id is '主键';
comment on column t_tz.title is '标题';
comment on column t_tz.content is '内容';
comment on column t_tz.fj is '文件';
comment on column t_tz.showDate is '日期';
--通知表加注释
comment on table t_tz is '通知';

文章表创建语句如下:


create table t_wz(
	id integer,
	dyId int,
	title varchar(100),
	content varchar(100),
	isbf varchar(100)
);
--文章字段加注释
comment on column t_wz.id is '主键';
comment on column t_wz.dyId is '党员';
comment on column t_wz.title is '文章名称';
comment on column t_wz.content is '内容';
comment on column t_wz.isbf is '是否发布';
--文章表加注释
comment on table t_wz is '文章';

新闻表创建语句如下:


create table t_xw(
	id integer,
	title varchar(100),
	content varchar(100),
	showDate datetime
);
--新闻字段加注释
comment on column t_xw.id is '主键';
comment on column t_xw.title is '标题';
comment on column t_xw.content is '内容';
comment on column t_xw.showDate is '日期';
--新闻表加注释
comment on table t_xw is '新闻';

oracle特有,对应序列如下:


create sequence s_t_dy;
create sequence s_t_hd;
create sequence s_t_hdlist;
create sequence s_t_tz;
create sequence s_t_wz;
create sequence s_t_xw;

党建信息管理系统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_dy(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	dyName varchar(100),--姓名
	sex varchar(100),--性别
	age varchar(100),--年龄
	phone varchar(100),--电话
	pic varchar(100)--图片
);

活动表创建语句如下:


--活动表注释
create table t_hd(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100),--内容
	status varchar(100),--状态
	remark varchar(100)--结语
);

活动报名表创建语句如下:


--活动报名表注释
create table t_hdlist(
	id int identity(1,1) primary key not null,--主键
	dyId int,--党员
	hdId int--活动
);

通知表创建语句如下:


--通知表注释
create table t_tz(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	content varchar(100),--内容
	fj varchar(100),--文件
	showDate datetime--日期
);

文章表创建语句如下:


--文章表注释
create table t_wz(
	id int identity(1,1) primary key not null,--主键
	dyId int,--党员
	title varchar(100),--文章名称
	content varchar(100),--内容
	isbf varchar(100)--是否发布
);

新闻表创建语句如下:


--新闻表注释
create table t_xw(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	content varchar(100),--内容
	showDate datetime--日期
);

党建信息管理系统登录后主页

党建信息管理系统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_dy")
public class Dy {
//主键
@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 dyName;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//图片
private String pic;
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 getDyName() {return dyName;}
public void setDyName(String dyName) {this.dyName = dyName;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
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;}
}

活动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_hd")
public class Hd {
//主键
@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 pic;
//内容
private String content;
//状态
private String status;
//结语
private String remark;
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 String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
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_hdlist")
public class Hdlist {
//主键
@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 dyId;
//活动
private Integer hdId;
public Integer getDyId() {return dyId;}
public void setDyId(Integer dyId) {this.dyId = dyId;}
public Integer getHdId() {return hdId;}
public void setHdId(Integer hdId) {this.hdId = hdId;}
}

通知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_tz")
public class Tz {
//主键
@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 fj;
//日期
private Date showDate;
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 getFj() {return fj;}
public void setFj(String fj) {this.fj = fj;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

文章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_wz")
public class Wz {
//主键
@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 dyId;
//文章名称
private String title;
//内容
private String content;
//是否发布
private String isbf;
public Integer getDyId() {return dyId;}
public void setDyId(Integer dyId) {this.dyId = dyId;}
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 getIsbf() {return isbf;}
public void setIsbf(String isbf) {this.isbf = isbf;}
}

新闻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_xw")
public class Xw {
//主键
@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 Date showDate;
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 getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

党建信息管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

党员javaBean创建语句如下:


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

//党员
public class Dy  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 dyName;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//图片
private String pic;
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 getDyName() {return dyName;}
public void setDyName(String dyName) {this.dyName = dyName;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
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;}
}

活动javaBean创建语句如下:


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

//活动
public class Hd  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//图片
private String pic;
//内容
private String content;
//状态
private String status;
//结语
private String remark;
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 String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
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 Hdlist  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//党员
private Integer dyId;
//活动
private Integer hdId;
public Integer getDyId() {return dyId;}
public void setDyId(Integer dyId) {this.dyId = dyId;}
public Integer getHdId() {return hdId;}
public void setHdId(Integer hdId) {this.hdId = hdId;}
}

通知javaBean创建语句如下:


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

//通知
public class Tz  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 fj;
//日期
private Date showDate;
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 getFj() {return fj;}
public void setFj(String fj) {this.fj = fj;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

文章javaBean创建语句如下:


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

//文章
public class Wz  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//党员
private Integer dyId;
//文章名称
private String title;
//内容
private String content;
//是否发布
private String isbf;
public Integer getDyId() {return dyId;}
public void setDyId(Integer dyId) {this.dyId = dyId;}
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 getIsbf() {return isbf;}
public void setIsbf(String isbf) {this.isbf = isbf;}
}

新闻javaBean创建语句如下:


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

//新闻
public class Xw  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 Date showDate;
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 getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

源代码下载点这里

评论