This commit is contained in:
zlwu committed 2026-08-17 09:22:31 +08:00
1 parent 42ad896456
commit 6b2147aa46
66 files changed
+617071 -28046

No files matched your search

+6
View File
@@ -607,6 +607,9 @@ def list_personnel(
personnel_affiliation: Optional[str] = Query(
default=None, alias="personnelAffiliation", description="人员归属 self/carrier"
),
personnel_type: Optional[str] = Query(
default=None, alias="personnelType", description="人员类型 driver/escort"
),
page: int = Query(default=1, ge=1),
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
db: Session = Depends(get_db),
@@ -624,6 +627,9 @@ def list_personnel(
if personnel_affiliation:
query = query.filter(PlPersonnel.personnel_affiliation == personnel_affiliation)
if personnel_type:
query = query.filter(PlPersonnel.personnel_type == personnel_type)
if q:
query = query.filter(
or_(