branch_shen
shen 3 months ago
parent 193fa5b67e
commit d3c44841ef

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

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

@ -22,6 +22,8 @@ public class Student implements Serializable {
public Student() { 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) { 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; this.id = id;

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

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

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

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

Loading…
Cancel
Save