feat(backend): write storage cert and insurance at sample level in quick-register.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
edabf70287
commit
50400ad19c
6 files changed
+406
-32
No files matched your search
@@ -126,7 +126,6 @@ async def quick_register_sample_info(
|
||||
items = [
|
||||
{"sampleCode": it.sample_code, "protocolId": it.protocol_id} for it in (body.items or [])
|
||||
]
|
||||
protocol_ids = [it["protocolId"] for it in items]
|
||||
kind = (body.kind or "").strip()
|
||||
source = (body.reception_source or "").strip()
|
||||
attachments = body.attachments or ""
|
||||
@@ -149,7 +148,7 @@ async def quick_register_sample_info(
|
||||
return error_response(400, "储存证仅支持细胞存储样本")
|
||||
result = quick_svc.batch_handle_storage_certs(
|
||||
db,
|
||||
protocol_ids=protocol_ids,
|
||||
items=items,
|
||||
tenant_no=tenant_no,
|
||||
user=user,
|
||||
user_id=user_id,
|
||||
@@ -163,7 +162,7 @@ async def quick_register_sample_info(
|
||||
return error_response(400, "保险仅支持细胞存储样本")
|
||||
result = quick_svc.batch_handle_insurance(
|
||||
db,
|
||||
protocol_ids=protocol_ids,
|
||||
items=items,
|
||||
tenant_no=tenant_no,
|
||||
user=user,
|
||||
user_id=user_id,
|
||||
|
||||
Reference in new issue
Block a user