This commit is contained in:
msj
2026-09-22 16:48:01 +08:00
parent acd04828a1
commit a132eb47b2
2 changed files with 0 additions and 12 deletions
-2
View File
@@ -46,8 +46,6 @@ def update_students(stu_id:int
if not d:
raise HTTPException(status_code=400, detail='更新内容不能为空')
r = update_student_dao( stu_id=stu_id,update_data=d,db=db )
if r == 'conflict':
raise HTTPException(status_code=409, detail = '身份证号已被其他学生占用')
if r == 'error':
raise HTTPException(status_code=500, detail='更新失败,请稍后重试')
if not r: