feat: support off-shelf location registration
This commit is contained in:
@@ -18,7 +18,7 @@ router = APIRouter()
|
||||
"model": ErrorResponse,
|
||||
},
|
||||
409: {
|
||||
"description": "该总排号已存在货位记录",
|
||||
"description": "重复上架或已下架",
|
||||
"model": ErrorResponse,
|
||||
},
|
||||
},
|
||||
@@ -29,4 +29,5 @@ def create_location(req: LocationRequest, db: Session = Depends(get_db)):
|
||||
zongpai_no=record.zongpai_no,
|
||||
location_code=record.location_code,
|
||||
created_at=record.created_at.isoformat(),
|
||||
previous_location=getattr(record, "previous_location", None),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user