This commit is contained in:
Chenx221 2023-06-02 13:29:07 +08:00
parent 3caf0d5caa
commit 4a286b0c17
6 changed files with 189 additions and 0 deletions

View File

@ -0,0 +1,6 @@
package cyou.chenx221.dao.impl;
import cyou.chenx221.dao.AdminDao;
public class AdminDaoImpl implements AdminDao {
}

View File

@ -0,0 +1,6 @@
package cyou.chenx221.dao.impl;
import cyou.chenx221.dao.ScoreDao;
public class ScoreDaoImpl implements ScoreDao {
}

View File

@ -0,0 +1,6 @@
package cyou.chenx221.dao.impl;
import cyou.chenx221.dao.StudentDao;
public class StudentDaoImpl implements StudentDao {
}

View File

@ -1,4 +1,61 @@
package cyou.chenx221.modal;
public class Admin {
// 管理员id 管理员姓名 管理员用户名 管理员密码
private int id;
private String name;
private String username;
private String password;
public Admin() {
}
public Admin(int id, String name, String username, String password) {
this.id = id;
this.name = name;
this.username = username;
this.password = password;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
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;
}
@Override
public String toString() {
return "Admin{" +
"id=" + id +
", name='" + name + '\'' +
", username='" + username + '\'' +
", password='" + password + '\'' +
'}';
}
}

View File

@ -1,4 +1,61 @@
package cyou.chenx221.modal;
public class Score {
// 成绩id 学生id 课程 成绩
private int id;
private int studentId;
private String course;
private double score;
public Score() {
}
public Score(int id, int studentId, String course, double score) {
this.id = id;
this.studentId = studentId;
this.course = course;
this.score = score;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getStudentId() {
return studentId;
}
public void setStudentId(int studentId) {
this.studentId = studentId;
}
public String getCourse() {
return course;
}
public void setCourse(String course) {
this.course = course;
}
public double getScore() {
return score;
}
public void setScore(double score) {
this.score = score;
}
@Override
public String toString() {
return "Score{" +
"id=" + id +
", studentId=" + studentId +
", course='" + course + '\'' +
", score=" + score +
'}';
}
}

View File

@ -1,4 +1,61 @@
package cyou.chenx221.modal;
public class Student {
// 学号 姓名 年龄 性别
private String id;
private String name;
private int age;
private String sex;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
@Override
public String toString() {
return "Student{" +
"id='" + id + '\'' +
", name='" + name + '\'' +
", age=" + age +
", sex='" + sex + '\'' +
'}';
}
public Student() {
}
public Student(String id, String name, int age, String sex) {
this.id = id;
this.name = name;
this.age = age;
this.sex = sex;
}
}