This commit is contained in:
2025-11-12 21:27:46 +08:00
11 changed files with 609 additions and 43 deletions

View File

@@ -130,3 +130,7 @@ class CheckpointService(BaseService[Checkpoint]):
if not section_ids:
return []
return db.query(Checkpoint).filter(Checkpoint.section_id.in_(section_ids)).all()
def get_by_section_ids(self, db: Session, section_ids: List[str]) -> List[Checkpoint]:
"""根据多个section_id批量获取观测点数据"""
return db.query(Checkpoint).filter(Checkpoint.section_id.in_(section_ids)).all()