|
|
|
@ -44,7 +44,7 @@ public class DeptAddStuPunchServlet extends HttpServlet { //定义一个继承
|
|
|
|
|
sql = "insert into stupunchin values(?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
|
|
|
|
Object[] objects1 = {sno, sispunch, spunchdate, spunchtime, sishot, siscough, sisseem, sisdiagnose, sstatus};
|
|
|
|
|
//SQL插入语句:向stupunchin表插入包含9个字段的新记录
|
|
|
|
|
//参数绑定:将表单参数按顺序填入占位符。
|
|
|
|
|
//参数绑定:将表单参数按顺序填入占位符
|
|
|
|
|
|
|
|
|
|
int num = DeptAdminDao.executeUpdate(sql, objects1);//执行更新:调用DAO方法executeUpdate执行插入,返回受影响的行数。
|
|
|
|
|
|
|
|
|
|