diff --git "a/19 \345\224\220\345\233\275\344\272\256/20230603.md" "b/19 \345\224\220\345\233\275\344\272\256/20230603.md"
new file mode 100644
index 0000000000000000000000000000000000000000..c2bf6f53f97273e1e98ff416c637b7d37f93a224
--- /dev/null
+++ "b/19 \345\224\220\345\233\275\344\272\256/20230603.md"
@@ -0,0 +1,257 @@
+<%@ page import="Tool.DbJbdc" %>
+<%@ page import="java.sql.ResultSet" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+
+ 学生信息
+
+
+
+
+ 编号 | 姓名 | 性别 | 操作 |
+ <%
+ String sql="select * from student";
+ ResultSet rs = DbJbdc.Query(sql);
+ while (rs.next()){
+ int id = rs.getInt("id");
+ String name = rs.getString("name");
+ String sex = rs.getString("sex");
+
+ %>
+
+ <%=id%> |
+ <%=name%> |
+ <%=sex%> |
+ 修改 删除 |
+
+
+
+ <%
+ }
+ %>
+
+
+
+
+
+
+```
+
+```java
+package servlet;
+
+public class student {
+ private int id;
+ private String name;
+ private String sex;
+
+ public student() {
+ }
+
+ public student(int id, String name, String sex) {
+ this.id = id;
+ this.name = name;
+ this.sex = sex;
+ }
+
+ 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 getSex() {
+ return sex;
+ }
+
+ public void setSex(String sex) {
+ this.sex = sex;
+ }
+}
+
+```
+
+```java
+package servlet;
+
+import Tool.DbJbdc;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.annotation.WebServlet;
+import jakarta.servlet.http.HttpServlet;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+
+import java.io.IOException;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+
+
+@WebServlet(name = "updateById", value = "/updateById")
+public class updateById extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ response.setContentType("text/html;charset=utf-8");
+ request.setCharacterEncoding("utf-8");
+
+ String id = request.getParameter("id");
+ String sql ="select * from student where id=?";
+ try {
+ ResultSet rs = DbJbdc.Query(sql, id);
+ rs.next();
+ int id1 = rs.getInt("id");
+ String name = rs.getString("name");
+ String sex = rs.getString("sex");
+ student stu = new student(id1, name, sex);
+ request.setAttribute("student",stu);
+ request.getRequestDispatcher("/edit.jsp").forward(request,response);
+ } catch (SQLException e) {
+ throw new RuntimeException(e);
+ } catch (ClassNotFoundException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+}
+
+```
+
+```java
+package servlet;
+
+import Tool.DbJbdc;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.annotation.WebServlet;
+import jakarta.servlet.http.HttpServlet;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+
+import java.io.IOException;
+import java.sql.SQLException;
+
+
+@WebServlet(name = "deleteById", value = "/deleteById")
+public class deleteById extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ response.setContentType("text/html;charset=utf-8");
+ request.setCharacterEncoding("utf-8");
+ String id = request.getParameter("id");
+ String sql="delete from student where id=?";
+ try {
+ int i = DbJbdc.Update(sql, id);
+ if (i>0){
+ response.getWriter().write("");
+// response.sendRedirect("/index.jsp");
+ }else {
+ response.getWriter().write("删除失败");
+ }
+ } catch (SQLException | ClassNotFoundException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+}
+
+```
+
+```java
+package servlet;
+
+import Tool.DbJbdc;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.annotation.WebServlet;
+import jakarta.servlet.http.HttpServlet;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+
+import java.io.IOException;
+import java.sql.SQLException;
+
+
+@WebServlet(name = "saveUpdate", value = "/saveUpdate")
+public class saveUpdate extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ response.setContentType("text/html;charset=utf-8");
+ request.setCharacterEncoding("utf-8");
+
+ String id = request.getParameter("id");
+ String name = request.getParameter("name");
+ String sex = request.getParameter("sex");
+
+ String sql ="update student set name=? , sex=? where id=?";
+ try {
+ int i = DbJbdc.Update(sql, name, sex,id);
+ if (i>0){
+ response.getWriter().write("");
+ // response.sendRedirect("/index.jsp");
+ }else {
+ response.getWriter().write("修改失败");
+ }
+ } catch (SQLException e) {
+ throw new RuntimeException(e);
+ } catch (ClassNotFoundException e) {
+ throw new RuntimeException(e);
+ }
+ }
+}
+
+```
+
+
+
+```jsp
+<%@ page import="servlet.student" %><%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-05-27
+ Time: 16:55
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ 修改学生
+
+
+<%
+ student stu = (student) request.getAttribute("student");
+%>
+
+
+
+
+```
\ No newline at end of file
diff --git "a/19 \345\224\220\345\233\275\344\272\256/20230606.md" "b/19 \345\224\220\345\233\275\344\272\256/20230606.md"
new file mode 100644
index 0000000000000000000000000000000000000000..e76a9c6bda20377c81b10343b1cd810b18bedc07
--- /dev/null
+++ "b/19 \345\224\220\345\233\275\344\272\256/20230606.md"
@@ -0,0 +1,475 @@
+```java
+package bean;
+
+public class attence {
+ private int id;
+ private String time;
+ private int type;
+ private int sid;
+ private String stuName;
+ private String name;
+ private int aid;
+
+ @Override
+ public String toString() {
+ return "attence{" +
+ "id=" + id +
+ ", time='" + time + '\'' +
+ ", type=" + type +
+ ", sid=" + sid +
+ ", stuName='" + stuName + '\'' +
+ ", name='" + name + '\'' +
+ ", aid=" + aid +
+ '}';
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getTime() {
+ return time;
+ }
+
+ public void setTime(String time) {
+ this.time = time;
+ }
+
+ public int getType() {
+ return type;
+ }
+
+ public void setType(int type) {
+ this.type = type;
+ }
+
+ public int getSid() {
+ return sid;
+ }
+
+ public void setSid(int sid) {
+ this.sid = sid;
+ }
+
+ public String getStuName() {
+ return stuName;
+ }
+
+ public void setStuName(String stuName) {
+ this.stuName = stuName;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getAid() {
+ return aid;
+ }
+
+ public void setAid(int aid) {
+ this.aid = aid;
+ }
+
+ public attence(int id, String time, int type, int sid, String stuName, String name, int aid) {
+ this.id = id;
+ this.time = time;
+ this.type = type;
+ this.sid = sid;
+ this.stuName = stuName;
+ this.name = name;
+ this.aid = aid;
+ }
+
+ public attence() {
+ }
+}
+
+```
+
+```java
+package bean;
+
+public class student {
+ private int id;
+ private String name;
+
+ @Override
+ public String toString() {
+ return "student{" +
+ "id=" + id +
+ ", name='" + name + '\'' +
+ '}';
+ }
+
+ 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 student(int id, String name) {
+ this.id = id;
+ this.name = name;
+ }
+
+ public student() {
+ }
+}
+
+```
+
+```java
+package servlet;
+
+import bean.student;
+import util.DBUtil;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.servlet.annotation.*;
+import java.io.IOException;
+import java.sql.*;
+import java.util.ArrayList;
+
+@WebServlet("/add")
+public class add extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ String sql="select * from student";
+ ArrayList list = new ArrayList<>();
+ Connection conn = null;
+ PreparedStatement pst = null;
+ ResultSet rs = null;
+ try {
+ conn = DBUtil.getConn();
+ pst = conn.prepareStatement(sql);
+ rs = pst.executeQuery();
+ while (rs.next()){
+ int id = rs.getInt(1);
+ String name = rs.getString(2);
+ student student = new student(id, name);
+ list.add(student);
+
+
+ }
+ } catch (SQLException e) {
+ throw new RuntimeException(e);
+ } finally {
+ DBUtil.close(conn,pst,rs);
+ }
+
+
+ request.setAttribute("list",list);
+
+
+ request.getRequestDispatcher("/WEB-INF/from.jsp").forward(request,response);
+
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+}
+
+```
+
+```java
+package servlet;
+
+import bean.attence;
+import util.DBUtil;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.servlet.annotation.*;
+import java.io.IOException;
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.ArrayList;
+
+@WebServlet("/list")
+public class list extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ String sql="select * from student s,attence a where s.sid=a.sid";
+ ArrayList list = new ArrayList<>();
+ Connection conn = null;
+ PreparedStatement pst = null;
+ ResultSet rs = null;
+ try {
+ conn = DBUtil.getConn();
+ pst = conn.prepareStatement(sql);
+ rs = pst.executeQuery();
+ while (rs.next()){
+ int id = rs.getInt(1);
+ String name = rs.getString(2);
+ int aid = rs.getInt(3);
+ String time = rs.getString(4);
+ int type = rs.getInt(5);
+ String sutName = rs.getString(6);
+ attence att = new attence(id,time,type,0,sutName,name,aid);
+ list.add(att);
+
+
+ }
+ } catch (SQLException e) {
+ throw new RuntimeException(e);
+ } finally {
+ DBUtil.close(conn,pst,rs);
+ }
+
+ request.setAttribute("list",list);
+ request.getRequestDispatcher("/WEB-INF/list.jsp").forward(request,response);
+
+
+
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+}
+
+```
+
+```java
+package servlet;
+
+import util.DBUtil;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.servlet.annotation.*;
+import java.io.IOException;
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.SQLException;
+
+@WebServlet("/save")
+public class save extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ request.setCharacterEncoding("utf-8");
+ int sid = Integer.parseInt(request.getParameter("sid"));
+ String time = request.getParameter("time");
+ int type = Integer.parseInt(request.getParameter("type"));
+
+ String sql="insert into attence values (?,?,?,?)";
+
+ int i = 0;
+ Connection conn = null;
+ PreparedStatement pst = null;
+ try {
+ conn = DBUtil.getConn();
+ pst = conn.prepareStatement(sql);
+ pst.setInt(1,0);
+ pst.setString(2,time);
+ pst.setInt(3,type);
+ pst.setInt(4,sid);
+ i = pst.executeUpdate();
+ } catch (SQLException e) {
+ throw new RuntimeException(e);
+ } finally {
+ DBUtil.close(conn,pst,null);
+ }
+ if (i>0){
+ response.sendRedirect("/list");
+ }else {
+ request.setAttribute("msg","添加失败");
+ request.getRequestDispatcher("/WEB-INF/msg.jsp").forward(request,response);
+ }
+
+
+ }
+}
+```
+
+```java
+package util;
+
+import java.sql.*;
+
+public class DBUtil {
+ static String url = "jdbc:mysql:///attdb?useSSL=false&useUnicode=true&characterEncoding=utf8";
+ static String user = "root";
+ static String pwd = "root";
+ static {
+ try {
+ Class.forName("com.mysql.jdbc.Driver");
+ } catch (ClassNotFoundException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ public static Connection getConn() throws SQLException {
+ Connection conn = DriverManager.getConnection(url, user, pwd);
+ return conn;
+ }
+
+ public static void close(Connection conn, PreparedStatement pst, ResultSet rs) {
+ try {
+ if (rs != null) {
+ rs.close();
+ }
+ if (pst != null) {
+ pst.close();
+ }
+ if (conn != null) {
+ conn.close();
+ }
+ } catch (SQLException e) {
+ throw new RuntimeException(e);
+ }
+
+ }
+}
+```
+
+```jsp
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-05
+ Time: 10:17
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
+
+
+
+```
+
+```jsp
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-05
+ Time: 09:41
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+ 考勤编号 |
+ 学生编号 |
+ 学生姓名 |
+ 出勤时间 |
+ 出勤状况 |
+
+
+ ${attence.aid} |
+ ${attence.id} |
+ ${attence.name} |
+ ${attence.time} |
+ ${attence.type} |
+
+
+
+
+
+
+
+
+
+
+
+```
+
+```jsp
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ 提醒
+
+
+${msg}
+
+返回列表
+
+
+```
+