跨域bug修复2

This commit is contained in:
2026-04-14 15:56:57 +08:00
parent 74053bdbdc
commit fd3535f884
14 changed files with 65 additions and 65 deletions

View File

@@ -78,7 +78,6 @@ class ConductModel:
@staticmethod
async def get_all_records(
class_id: int = None,
limit: int = 100,
offset: int = 0,
start_date: str = None,
@@ -94,9 +93,7 @@ class ConductModel:
"""
params = []
if class_id:
sql += " AND s.class_id = %s"
params.append(class_id)
# 单班级系统,无需 class_id 过滤
if start_date:
sql += " AND DATE(cr.created_at) >= %s"