|
|
|
@ -31,7 +31,9 @@ async function selectStudent(req, res) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (selectedStudent) {
|
|
|
|
|
res.send({ student: selectedStudent });
|
|
|
|
|
res.send({ student_name: selectedStudent.student_name,
|
|
|
|
|
student_id: selectedStudent.student_id
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
res.status(404).send({ message: '无学生数据' });
|
|
|
|
|
}
|
|
|
|
|