学籍管理系统

学籍管理系统
学籍管理系统登录注册界面

学籍管理系统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_kc(
	id int primary key auto_increment comment '主键',
	kcName varchar(100) comment '课程名称',
	xf int comment '学分'
) comment '课程';

基础值配置表创建语句如下:


create table t_pz(
	id int primary key auto_increment comment '主键',
	lest int comment '预警值',
	zd int comment '毕业最低学分'
) comment '基础值配置';

学生学籍信息表创建语句如下:


create table t_student(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	studentName varchar(100) comment '姓名',
	pic varchar(100) comment '头像',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '电话',
	idcard varchar(100) comment '身份证',
	birthday varchar(100) comment '出生日期',
	xuejh varchar(100) comment '学籍号',
	ds varchar(100) comment '是否独生子女',
	bj varchar(100) comment '班级',
	address varchar(100) comment '家庭住址',
	jhr varchar(100) comment '监护人信息'
) comment '学生学籍信息';

老师表创建语句如下:


create table t_teacher(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	teacherName varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '电话',
	idcard varchar(100) comment '身份证'
) comment '老师';

通知表创建语句如下:


create table t_tz(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	wj varchar(100) comment '文件',
	content varchar(100) comment '内容',
	showDate varchar(100) comment '显示日期'
) comment '通知';

学生获取学分情况表创建语句如下:


create table t_xsxf(
	id int primary key auto_increment comment '主键',
	studentId int comment '',
	kcName varchar(100) comment '课程名称',
	df int comment '获得学分',
	ydxf int comment '应得学分',
	remark varchar(100) 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_kc(
	id integer,
	kcName varchar(100),
	xf int
);
--课程字段加注释
comment on column t_kc.id is '主键';
comment on column t_kc.kcName is '课程名称';
comment on column t_kc.xf is '学分';
--课程表加注释
comment on table t_kc is '课程';

基础值配置表创建语句如下:


create table t_pz(
	id integer,
	lest int,
	zd int
);
--基础值配置字段加注释
comment on column t_pz.id is '主键';
comment on column t_pz.lest is '预警值';
comment on column t_pz.zd is '毕业最低学分';
--基础值配置表加注释
comment on table t_pz is '基础值配置';

学生学籍信息表创建语句如下:

扫描二维码关注公众号,回复: 5193589 查看本文章

create table t_student(
	id integer,
	username varchar(100),
	password varchar(100),
	studentName varchar(100),
	pic varchar(100),
	sex varchar(100),
	age varchar(100),
	phone varchar(100),
	idcard varchar(100),
	birthday varchar(100),
	xuejh varchar(100),
	ds varchar(100),
	bj varchar(100),
	address varchar(100),
	jhr varchar(100)
);
--学生学籍信息字段加注释
comment on column t_student.id is '主键';
comment on column t_student.username is '账号';
comment on column t_student.password is '密码';
comment on column t_student.studentName is '姓名';
comment on column t_student.pic is '头像';
comment on column t_student.sex is '性别';
comment on column t_student.age is '年龄';
comment on column t_student.phone is '电话';
comment on column t_student.idcard is '身份证';
comment on column t_student.birthday is '出生日期';
comment on column t_student.xuejh is '学籍号';
comment on column t_student.ds is '是否独生子女';
comment on column t_student.bj is '班级';
comment on column t_student.address is '家庭住址';
comment on column t_student.jhr is '监护人信息';
--学生学籍信息表加注释
comment on table t_student is '学生学籍信息';

老师表创建语句如下:


create table t_teacher(
	id integer,
	username varchar(100),
	password varchar(100),
	teacherName varchar(100),
	sex varchar(100),
	age varchar(100),
	phone varchar(100),
	idcard varchar(100)
);
--老师字段加注释
comment on column t_teacher.id is '主键';
comment on column t_teacher.username is '账号';
comment on column t_teacher.password is '密码';
comment on column t_teacher.teacherName is '姓名';
comment on column t_teacher.sex is '性别';
comment on column t_teacher.age is '年龄';
comment on column t_teacher.phone is '电话';
comment on column t_teacher.idcard is '身份证';
--老师表加注释
comment on table t_teacher is '老师';

通知表创建语句如下:


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

学生获取学分情况表创建语句如下:


create table t_xsxf(
	id integer,
	studentId int,
	kcName varchar(100),
	df int,
	ydxf int,
	remark varchar(100)
);
--学生获取学分情况字段加注释
comment on column t_xsxf.id is '主键';
comment on column t_xsxf.studentId is '';
comment on column t_xsxf.kcName is '课程名称';
comment on column t_xsxf.df is '获得学分';
comment on column t_xsxf.ydxf is '应得学分';
comment on column t_xsxf.remark is '备注';
--学生获取学分情况表加注释
comment on table t_xsxf is '学生获取学分情况';

oracle特有,对应序列如下:


create sequence s_t_kc;
create sequence s_t_pz;
create sequence s_t_student;
create sequence s_t_teacher;
create sequence s_t_tz;
create sequence s_t_xsxf;

学籍管理系统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_kc(
	id int identity(1,1) primary key not null,--主键
	kcName varchar(100),--课程名称
	xf int--学分
);

基础值配置表创建语句如下:


--基础值配置表注释
create table t_pz(
	id int identity(1,1) primary key not null,--主键
	lest int,--预警值
	zd int--毕业最低学分
);

学生学籍信息表创建语句如下:


--学生学籍信息表注释
create table t_student(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	studentName varchar(100),--姓名
	pic varchar(100),--头像
	sex varchar(100),--性别
	age varchar(100),--年龄
	phone varchar(100),--电话
	idcard varchar(100),--身份证
	birthday varchar(100),--出生日期
	xuejh varchar(100),--学籍号
	ds varchar(100),--是否独生子女
	bj varchar(100),--班级
	address varchar(100),--家庭住址
	jhr varchar(100)--监护人信息
);

老师表创建语句如下:


--老师表注释
create table t_teacher(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	teacherName varchar(100),--姓名
	sex varchar(100),--性别
	age varchar(100),--年龄
	phone varchar(100),--电话
	idcard varchar(100)--身份证
);

通知表创建语句如下:


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

学生获取学分情况表创建语句如下:


--学生获取学分情况表注释
create table t_xsxf(
	id int identity(1,1) primary key not null,--主键
	studentId int,--
	kcName varchar(100),--课程名称
	df int,--获得学分
	ydxf int,--应得学分
	remark varchar(100)--备注
);

学籍管理系统登录后主页

学籍管理系统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_kc")
public class Kc {
//主键
@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 kcName;
//学分
private Integer xf;
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
public Integer getXf() {return xf;}
public void setXf(Integer xf) {this.xf = xf;}
}

基础值配置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_pz")
public class Pz {
//主键
@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 lest;
//毕业最低学分
private Integer zd;
public Integer getLest() {return lest;}
public void setLest(Integer lest) {this.lest = lest;}
public Integer getZd() {return zd;}
public void setZd(Integer zd) {this.zd = zd;}
}

学生学籍信息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_student")
public class Student {
//主键
@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 studentName;
//头像
private String pic;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//身份证
private String idcard;
//出生日期
private String birthday;
//学籍号
private String xuejh;
//是否独生子女
private String ds;
//班级
private String bj;
//家庭住址
private String address;
//监护人信息
private String jhr;
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 getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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 getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getBirthday() {return birthday;}
public void setBirthday(String birthday) {this.birthday = birthday;}
public String getXuejh() {return xuejh;}
public void setXuejh(String xuejh) {this.xuejh = xuejh;}
public String getDs() {return ds;}
public void setDs(String ds) {this.ds = ds;}
public String getBj() {return bj;}
public void setBj(String bj) {this.bj = bj;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getJhr() {return jhr;}
public void setJhr(String jhr) {this.jhr = jhr;}
}

老师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_teacher")
public class Teacher {
//主键
@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 teacherName;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//身份证
private String idcard;
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 getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
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 getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
}

通知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 pic;
//文件
private String wj;
//内容
private String content;
//显示日期
private String showDate;
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 getWj() {return wj;}
public void setWj(String wj) {this.wj = wj;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getShowDate() {return showDate;}
public void setShowDate(String 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_xsxf")
public class Xsxf {
//主键
@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 studentId;
//课程名称
private String kcName;
//获得学分
private Integer df;
//应得学分
private Integer ydxf;
//备注
private String remark;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
public Integer getDf() {return df;}
public void setDf(Integer df) {this.df = df;}
public Integer getYdxf() {return ydxf;}
public void setYdxf(Integer ydxf) {this.ydxf = ydxf;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

学籍管理系统spring springMVC mybatis框架对象(javaBean,pojo)设计:

课程javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//课程
public class Kc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程名称
private String kcName;
//学分
private Integer xf;
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
public Integer getXf() {return xf;}
public void setXf(Integer xf) {this.xf = xf;}
}

基础值配置javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//基础值配置
public class Pz  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//预警值
private Integer lest;
//毕业最低学分
private Integer zd;
public Integer getLest() {return lest;}
public void setLest(Integer lest) {this.lest = lest;}
public Integer getZd() {return zd;}
public void setZd(Integer zd) {this.zd = zd;}
}

学生学籍信息javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//学生学籍信息
public class Student  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 studentName;
//头像
private String pic;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//身份证
private String idcard;
//出生日期
private String birthday;
//学籍号
private String xuejh;
//是否独生子女
private String ds;
//班级
private String bj;
//家庭住址
private String address;
//监护人信息
private String jhr;
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 getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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 getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getBirthday() {return birthday;}
public void setBirthday(String birthday) {this.birthday = birthday;}
public String getXuejh() {return xuejh;}
public void setXuejh(String xuejh) {this.xuejh = xuejh;}
public String getDs() {return ds;}
public void setDs(String ds) {this.ds = ds;}
public String getBj() {return bj;}
public void setBj(String bj) {this.bj = bj;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getJhr() {return jhr;}
public void setJhr(String jhr) {this.jhr = jhr;}
}

老师javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//老师
public class Teacher  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 teacherName;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//身份证
private String idcard;
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 getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
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 getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
}

通知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 pic;
//文件
private String wj;
//内容
private String content;
//显示日期
private String showDate;
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 getWj() {return wj;}
public void setWj(String wj) {this.wj = wj;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
}

学生获取学分情况javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//学生获取学分情况
public class Xsxf  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//
private Integer studentId;
//课程名称
private String kcName;
//获得学分
private Integer df;
//应得学分
private Integer ydxf;
//备注
private String remark;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
public Integer getDf() {return df;}
public void setDf(Integer df) {this.df = df;}
public Integer getYdxf() {return ydxf;}
public void setYdxf(Integer ydxf) {this.ydxf = ydxf;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

猜你喜欢

转载自blog.csdn.net/weixin_44062395/article/details/87380566