v2.0.1更新
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
# 更新学生总分
|
||||
|
||||
Reference in New Issue
Block a user