v2.0.1更新

This commit is contained in:
2026-05-26 08:39:12 +08:00
parent cb0c367eb7
commit c575d711ee
34 changed files with 750 additions and 204 deletions

View File

@@ -31,7 +31,8 @@ class ConductService:
points_change: int,
reason: str,
recorder_id: int,
recorder_name: str
recorder_name: str,
related_type: str = 'manual'
) -> Dict[str, Any]:
"""批量加减分"""
# 输入校验
@@ -94,13 +95,13 @@ class ConductService:
fail_count += 1
continue
# 创建记录
record_id = await ConductModel.create_record(
student_id=student_id,
points_change=points_change,
reason=reason,
recorder_id=recorder_id,
recorder_name=recorder_name
recorder_name=recorder_name,
related_type=related_type
)
# 更新学生总分