branch_shen
shen 3 months ago
parent 193fa5b67e
commit d3c44841ef

@ -55,6 +55,7 @@ public class StudentController {
this.studentService = studentService;
}
/**
*
*

@ -54,6 +54,7 @@ public interface StudentDao {
@Delete("delete from students where sno = #{sno}")
void delete(String sno) throws Exception;
/**
*
* @param student

@ -22,6 +22,8 @@ public class Student implements Serializable {
public Student() {
}
// 全参构造函数,用于创建具有所有属性的学生对象
public Student(Integer id, String name, String sex, String sno, String stu_class, String phone, String place, String dorm_id, String teacher, Integer status) {
this.id = id;

@ -10,6 +10,7 @@ import java.util.List;
*/
public interface StudentService {
/**
*
* @param page

@ -76,6 +76,7 @@
</table>
</form>
<!-- jQuery脚本 -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
@ -144,6 +145,7 @@
layer.msg('添加失败,请联系管理员'); // 如果操作失败,显示错误消息
if (${sessionScope.adminInfo.power == 1}) { // 根据用户权限不同,跳转到不同的页面
// 宿舍管理员权限2秒后跳转到宿舍管理员页面
setTimeout(function () {window.location.href = '${pageContext.request.contextPath}/dorm/byDorm_leader?uid=${sessionScope.adminInfo.uid}';}, 2000);
return false;
}

@ -194,6 +194,7 @@
});
});
});
</script>
</body>
</html>

@ -129,6 +129,7 @@
</tr>
</c:forEach>
</tbody>
</table>
</div>
@ -224,6 +225,7 @@
layer.close(index);
});
}
</script>
</body>
</html>

@ -167,6 +167,7 @@
<a class="next" href="${pageContext.request.contextPath}/dorm/findStudent?name=${sessionScope.adminInfo.name}&page=${pageInfo.pageNum+1}&size=${pageInfo.pageSize}&keyword=${param.keyword}">下一页</a>
</c:if>
<!-- 尾页链接 -->
<a class="next" href="${pageContext.request.contextPath}/dorm/findStudent?name=${sessionScope.adminInfo.name}&page=${pageInfo.pages}&size=${pageInfo.pageSize}&keyword=${param.keyword}">尾页</a>
</div>
</div>

Loading…
Cancel
Save