update
This commit is contained in:
parent
128db38845
commit
a01fd23708
@ -563,7 +563,7 @@ async def cancel_order(
|
|||||||
|
|
||||||
@router.get("/deliveryman/list", response_model=ResponseModel)
|
@router.get("/deliveryman/list", response_model=ResponseModel)
|
||||||
async def get_deliveryman_orders(
|
async def get_deliveryman_orders(
|
||||||
statuses: Optional[List[OrderStatus]] = None,
|
status: Optional[str] = None,
|
||||||
building_id: Optional[int] = None,
|
building_id: Optional[int] = None,
|
||||||
skip: int = 0,
|
skip: int = 0,
|
||||||
limit: int = 20,
|
limit: int = 20,
|
||||||
@ -577,7 +577,8 @@ async def get_deliveryman_orders(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# 状态筛选
|
# 状态筛选
|
||||||
if statuses:
|
if status:
|
||||||
|
statuses = status.split(",")
|
||||||
query = query.filter(ShippingOrderDB.status.in_(statuses))
|
query = query.filter(ShippingOrderDB.status.in_(statuses))
|
||||||
|
|
||||||
# 楼栋筛选
|
# 楼栋筛选
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user