This commit is contained in:
zlwu committed 2026-06-30 09:19:06 +08:00
1 parent 1ca2668112
commit 5b3edb1700
278 files changed
+53761 -36931

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
# Web 镜像构建上下文为仓库根目录(deploy/docker/web-admin/Dockerfile)
# 后端镜像使用 backend/ 子目录上下文,不受本文件影响
backend/
miniprogram/
mobile-ui/
docs/
openspec/
.cursor/
.agents/
dist/
*.tar.gz
# web-admin/.dockerignore 在根上下文下不生效,须在此显式排除
web-admin/node_modules
web-admin/dist
web-admin/.git
web-admin/graphify-out
web-admin/src/graphify-out
web-admin/.husky
web-admin/CHANGELOG*
web-admin/demo-*.html
web-admin/playwright-report
web-admin/test-results
web-admin/.DS_Store
web-admin/**/*.local
web-admin/.env
web-admin/.env.*
!web-admin/.env.docker
+1
View File
@@ -0,0 +1 @@
22137
+2
View File
@@ -9,6 +9,7 @@ from app.api.leave import router as leave_router
from app.api.operations import router as operations_router
from app.api.ethnic import router as ethnic_router
from app.api.sample_reception import router as sample_reception_router
from app.api.sample_production_reception import router as sample_production_reception_router
from app.api.qc import router as qc_router
from app.api.research_donation import router as research_donation_router
from app.api.production import router as production_router
@@ -44,6 +45,7 @@ __all__ = [
"operations_router",
"ethnic_router",
"sample_reception_router",
"sample_production_reception_router",
"qc_router",
"research_donation_router",
"production_router",
+6 -1
View File
@@ -946,7 +946,12 @@ async def list_sample_codes(
query = query.filter(BizSampleCode.issued_user_id == uid)
query = apply_data_scope(query, BizSampleCode, user, db, tenant_no)
total = query.count()
items = query.order_by(BizSampleCode.create_time.desc()).offset((page - 1) * pageSize).limit(pageSize).all()
items = (
query.order_by(BizSampleCode.create_time.desc(), BizSampleCode.sample_code.desc())
.offset((page - 1) * pageSize)
.limit(pageSize)
.all()
)
result_list = [sample_code_svc._row_to_dict(r) for r in items]
used_codes = collection_protocol_svc.get_sample_codes_used_in_protocol_samples(
db,
+22 -6
View File
@@ -43,6 +43,21 @@ def _get_current_user_id(user: dict) -> str:
return str(user_id)
def _protocol_accessible(
db: Session, protocol_id: str, tenant_no: str, user: dict
) -> bool:
"""与列表接口一致:按租户 + 角色数据权限判断是否可访问该协议单。"""
from app.core.data_scope import apply_data_scope
q = db.query(BizCollectionProtocol).filter(
BizCollectionProtocol.id == protocol_id,
BizCollectionProtocol.del_flag == 0,
BizCollectionProtocol.tenant_no == tenant_no,
)
q = apply_data_scope(q, BizCollectionProtocol, user, db, tenant_no)
return q.first() is not None
_CAMEL_TO_SNAKE_DATETIME = {
"newbornDeliveryTime": "newborn_delivery_time",
"sampleCollectTime": "sample_collect_time",
@@ -150,10 +165,9 @@ async def get_collection_protocol_detail(
db: Session = Depends(get_db),
):
tenant_no = _get_tenant_no(db, user)
current_user_id = _get_current_user_id(user)
bundle = cp_svc.get_protocol_detail_bundle(
db, protocol_id, tenant_no, scope_collector_user_id=current_user_id
)
if not _protocol_accessible(db, protocol_id, tenant_no, user):
return error_response(404, "协议单不存在或无权查看")
bundle = cp_svc.get_protocol_detail_bundle(db, protocol_id, tenant_no)
if not bundle:
return error_response(404, "协议单不存在或无权查看")
return success_response(bundle)
@@ -301,6 +315,8 @@ async def update_collection_protocol(
):
tenant_no = _get_tenant_no(db, user)
user_id = _get_current_user_id(user)
if not _protocol_accessible(db, protocol_id, tenant_no, user):
return error_response(404, "协议单不存在或无权操作")
try:
payload = body.model_dump(exclude_unset=True, by_alias=False)
sub_keys = {
@@ -321,7 +337,6 @@ async def update_collection_protocol(
protocol_id,
tenant_no=tenant_no,
user_id=user_id,
scope_collector_user_id=user_id,
**{k: v for k, v in main_payload.items() if v is not None},
)
_persist_protocol_sub_resources(
@@ -349,12 +364,13 @@ async def delete_collection_protocol(
):
tenant_no = _get_tenant_no(db, user)
user_id = _get_current_user_id(user)
if not _protocol_accessible(db, protocol_id, tenant_no, user):
return error_response(404, "协议单不存在或无权操作")
try:
cp_svc.soft_delete_collection_protocol(
db,
protocol_id,
tenant_no=tenant_no,
scope_collector_user_id=user_id,
user_id=user_id,
)
return success_response(None, message="删除成功")
+1 -1
View File
@@ -635,7 +635,7 @@ async def list_storage_slot_select_options(
availableOnly: Optional[bool] = Query(None, alias="availableOnly"),
includeSlotIds: Optional[str] = Query(None, alias="includeSlotIds"),
page: int = Query(1, ge=1),
pageSize: int = Query(100, ge=1, le=200, alias="pageSize"),
pageSize: int = Query(20, ge=1, le=50, alias="pageSize"),
user: dict = Depends(require_admin_or_super_admin),
db: Session = Depends(get_db),
):
+34
View File
@@ -2549,6 +2549,39 @@ async def get_cell_product_max_passage_seq(
)
@router.get("/cell-products/max-suffix-seq")
async def get_cell_product_max_suffix_seq(
productCode: str = Query(..., alias="productCode"),
user: dict = Depends(require_admin_or_super_admin),
db: Session = Depends(get_db),
):
"""查询 `{productCode}-XX` 在细胞产品库中的最大两位序号。"""
tenant_no = _get_tenant_no(db, user)
base = (productCode or "").strip()
if not base:
return error_response(400, "产品编码不能为空")
max_seq = cell_product_svc.get_max_product_suffix_seq(db, tenant_no, base)
return success_response({"maxSeq": max_seq, "nextSeq": max_seq + 1})
@router.get("/cell-products/check-code")
async def check_cell_product_code(
productCode: str = Query(..., alias="productCode"),
excludeId: Optional[str] = Query(None, alias="excludeId"),
user: dict = Depends(require_admin_or_super_admin),
db: Session = Depends(get_db),
):
"""检查产品编码是否已被占用(编辑时可排除当前记录)。"""
tenant_no = _get_tenant_no(db, user)
code = (productCode or "").strip()
if not code:
return error_response(400, "产品编码不能为空")
exists = cell_product_svc.product_code_exists(
db, tenant_no, code, exclude_id=excludeId
)
return success_response({"exists": exists, "productCode": code})
@router.get("/cell-products")
async def list_cell_products(
page: int = Query(1, ge=1),
@@ -2623,6 +2656,7 @@ async def create_cell_product(
create_dept_id="",
data=body,
items=items,
require_storage_slot=False,
)
elif qty > 1:
created = cell_product_svc.create_cell_products_by_quantity(
@@ -0,0 +1,243 @@
"""生产部门样本接收 API"""
from typing import Optional
from fastapi import APIRouter, Depends, Query
from pydantic import BaseModel, ConfigDict, Field
from sqlalchemy.orm import Session
from app.core.database import get_db
from app.core.menu_guard import require_any_menu_code, require_menu_code
from app.core.response import error_response, success_response
from app.core.utils import parse_datetime
from app.crud import sample_production_reception as prod_rec_svc
from app.crud import sample_reception as sr_svc
from app.models.models import SysUser
router = APIRouter(prefix="/web/admin", tags=["生产管理"])
PRODUCTION_RECEPTION_READ_MENU_CODES = (
"production:work-order:list",
"production:my-task:list",
"biz:sampleReception:list",
"production:sample-reception-completion:list",
)
PRODUCTION_RECEPTION_WRITE_MENU_CODES = (
"production:work-order:list",
"production:my-task:list",
)
def _get_tenant_no(db: Session, user: dict) -> str:
user_id = user.get("user_id")
if not user_id:
raise PermissionError("用户身份信息缺失,无法确定租户")
sys_user = db.query(SysUser).filter(SysUser.id == user_id).first()
if not sys_user or not sys_user.tenant_no:
raise PermissionError("用户租户信息缺失")
return sys_user.tenant_no
def _get_current_user_id(user: dict) -> str:
user_id = user.get("user_id")
if not user_id:
raise PermissionError("用户身份信息缺失")
return str(user_id)
class ProductionReceptionBody(BaseModel):
model_config = ConfigDict(populate_by_name=True)
reception_id: Optional[str] = Field(None, alias="receptionId")
sample_code: Optional[str] = Field(None, alias="sampleCode")
source_type: Optional[str] = Field("cell_storage", alias="sourceType")
sample_type_name: Optional[str] = Field(None, alias="sampleTypeName")
handler_user_id: Optional[str] = Field(None, alias="handlerUserId")
handler_name: Optional[str] = Field(None, alias="handlerName")
process_time: str = Field(..., alias="processTime")
original_blood_weight_g: Optional[float] = Field(None, alias="originalBloodWeightG")
hes_volume_ml: Optional[float] = Field(None, alias="hesVolumeMl")
blood_type: Optional[str] = Field(None, alias="bloodType")
infectious_four_test_result: Optional[str] = Field(None, alias="infectiousFourTestResult")
enriched_blood_weight_g: Optional[float] = Field(None, alias="enrichedBloodWeightG")
cryopreservation_volume_ml: Optional[float] = Field(None, alias="cryopreservationVolumeMl")
inoculation_amount: Optional[float] = Field(None, alias="inoculationAmount")
cryopreservation_time: Optional[str] = Field(None, alias="cryopreservationTime")
storage_total_tubes: Optional[int] = Field(None, alias="storageTotalTubes")
available_cell_count_1e7: Optional[float] = Field(None, alias="availableCellCount1e7")
original_blood_volume_ml: Optional[float] = Field(None, alias="originalBloodVolumeMl")
nucleated_cell_count_1e8: Optional[float] = Field(None, alias="nucleatedCellCount1e8")
remark: Optional[str] = None
def _body_to_payload(body: ProductionReceptionBody) -> dict:
cryo_time = parse_datetime(body.cryopreservation_time) if body.cryopreservation_time else None
process_time = parse_datetime(body.process_time)
if not process_time:
raise ValueError("处理时间格式无效")
return {
"handlerUserId": body.handler_user_id,
"handlerName": body.handler_name,
"processTime": process_time,
"sampleTypeName": body.sample_type_name,
"originalBloodWeightG": body.original_blood_weight_g,
"hesVolumeMl": body.hes_volume_ml,
"bloodType": body.blood_type,
"infectiousFourTestResult": body.infectious_four_test_result,
"enrichedBloodWeightG": body.enriched_blood_weight_g,
"cryopreservationVolumeMl": body.cryopreservation_volume_ml,
"inoculationAmount": body.inoculation_amount,
"cryopreservationTime": cryo_time,
"storageTotalTubes": body.storage_total_tubes,
"availableCellCount1e7": body.available_cell_count_1e7,
"originalBloodVolumeMl": body.original_blood_volume_ml,
"nucleatedCellCount1e8": body.nucleated_cell_count_1e8,
"remark": body.remark,
}
def _resolve_reception_id(
db: Session,
*,
tenant_no: str,
reception_id: Optional[str],
sample_code: Optional[str],
source_type: Optional[str],
) -> str:
rid = (reception_id or "").strip()
if rid:
return rid
code = (sample_code or "").strip()
if not code:
raise ValueError("请提供 receptionId 或 sampleCode")
result = sr_svc.get_reception_by_sample_code(
db, sample_code=code, source_type=source_type, tenant_no=tenant_no
)
found = (result.get("receptionId") or "").strip()
if not found:
raise ValueError("请先完成质检样本接收登记")
return found
@router.get("/production-sample-receptions/by-sample-code")
async def get_production_reception_by_sample_code(
sampleCode: str = Query(..., alias="sampleCode"),
sourceType: Optional[str] = Query(None, alias="sourceType"),
db: Session = Depends(get_db),
user: dict = Depends(require_any_menu_code(*PRODUCTION_RECEPTION_READ_MENU_CODES)),
):
try:
tenant_no = _get_tenant_no(db, user)
base = sr_svc.get_reception_by_sample_code(
db, sample_code=sampleCode, source_type=sourceType, tenant_no=tenant_no
)
reception_id = base.get("receptionId")
qc_reception = None
production_reception = None
if reception_id:
qc_reception = sr_svc.get_reception_by_id(db, reception_id, tenant_no)
production_reception = prod_rec_svc.get_by_reception_id(db, reception_id, tenant_no)
return success_response(
{
"receptionId": reception_id,
"sampleInfo": base.get("sampleInfo"),
"qcReception": qc_reception,
"productionReception": production_reception,
}
)
except PermissionError as e:
return error_response(403, str(e))
except Exception as e:
return error_response(400, str(e))
@router.get("/production-sample-receptions/{row_id}")
async def get_production_reception_detail(
row_id: str,
db: Session = Depends(get_db),
user: dict = Depends(require_any_menu_code(*PRODUCTION_RECEPTION_READ_MENU_CODES)),
):
try:
tenant_no = _get_tenant_no(db, user)
item = prod_rec_svc.get_by_id(db, row_id, tenant_no)
if not item:
return error_response(404, "生产接收记录不存在")
return success_response(item)
except PermissionError as e:
return error_response(403, str(e))
except Exception as e:
return error_response(400, str(e))
@router.post("/production-sample-receptions")
async def post_production_reception(
body: ProductionReceptionBody,
db: Session = Depends(get_db),
user: dict = Depends(require_any_menu_code(*PRODUCTION_RECEPTION_WRITE_MENU_CODES)),
):
try:
tenant_no = _get_tenant_no(db, user)
user_id = _get_current_user_id(user)
sys_user = db.query(SysUser).filter(SysUser.id == user_id).first()
dept_id = (sys_user.dept_id or "") if sys_user else ""
reception_id = _resolve_reception_id(
db,
tenant_no=tenant_no,
reception_id=body.reception_id,
sample_code=body.sample_code,
source_type=body.source_type,
)
payload = _body_to_payload(body)
type_name = (body.sample_type_name or "").strip()
if not type_name:
sample_info = sr_svc.get_reception_by_sample_code(
db,
sample_code=(body.sample_code or "").strip(),
source_type=body.source_type,
tenant_no=tenant_no,
).get("sampleInfo")
if isinstance(sample_info, dict):
type_name = str(sample_info.get("sampleTypeName") or "")
obj = prod_rec_svc.create_production_reception(
db,
reception_id=reception_id,
tenant_no=tenant_no,
user_id=user_id,
create_dept_id=dept_id,
data=payload,
sample_type_name=type_name,
)
return success_response(prod_rec_svc.get_by_id(db, obj.id, tenant_no))
except PermissionError as e:
return error_response(403, str(e))
except ValueError as e:
return error_response(400, str(e))
except Exception as e:
return error_response(400, str(e))
@router.put("/production-sample-receptions/{row_id}")
async def put_production_reception(
row_id: str,
body: ProductionReceptionBody,
db: Session = Depends(get_db),
user: dict = Depends(require_any_menu_code(*PRODUCTION_RECEPTION_WRITE_MENU_CODES)),
):
try:
tenant_no = _get_tenant_no(db, user)
user_id = _get_current_user_id(user)
payload = _body_to_payload(body)
obj = prod_rec_svc.update_production_reception(
db,
row_id=row_id,
tenant_no=tenant_no,
user_id=user_id,
data=payload,
)
return success_response(prod_rec_svc.get_by_id(db, obj.id, tenant_no))
except PermissionError as e:
return error_response(403, str(e))
except ValueError as e:
return error_response(400, str(e))
except Exception as e:
return error_response(400, str(e))
-8
View File
@@ -314,8 +314,6 @@ class SampleReceptionUpdateBody(BaseModel):
handler_user_id: Optional[str] = Field(None, alias="handlerUserId")
handler_name: Optional[str] = Field(None, alias="handlerName")
receive_temperature: Optional[str] = Field(None, alias="receiveTemperature")
volume_ml: Optional[float] = Field(None, alias="volumeMl")
net_weight_g: Optional[float] = Field(None, alias="netWeightG")
checks: List[ReceptionCheckSubmit] = Field(default_factory=list)
accept_conclusion: str = Field(..., alias="acceptConclusion")
receive_attachments: Optional[str] = Field(None, alias="receiveAttachments")
@@ -331,8 +329,6 @@ class SampleReceptionCreateBody(BaseModel):
handler_user_id: Optional[str] = Field(None, alias="handlerUserId")
handler_name: Optional[str] = Field(None, alias="handlerName")
receive_temperature: Optional[str] = Field(None, alias="receiveTemperature")
volume_ml: Optional[float] = Field(None, alias="volumeMl")
net_weight_g: Optional[float] = Field(None, alias="netWeightG")
checks: List[ReceptionCheckSubmit] = Field(default_factory=list)
accept_conclusion: str = Field(..., alias="acceptConclusion")
receive_attachments: Optional[str] = Field(None, alias="receiveAttachments")
@@ -405,8 +401,6 @@ async def post_sample_reception(
handler_user_id=body.handler_user_id or user_id,
handler_name=body.handler_name,
receive_temperature=body.receive_temperature,
volume_ml=body.volume_ml,
net_weight_g=body.net_weight_g,
checks=checks_payload,
accept_conclusion=body.accept_conclusion,
receive_attachments=body.receive_attachments,
@@ -448,8 +442,6 @@ async def put_sample_reception(
handler_user_id=body.handler_user_id or user_id,
handler_name=body.handler_name,
receive_temperature=body.receive_temperature,
volume_ml=body.volume_ml,
net_weight_g=body.net_weight_g,
checks=checks_payload,
accept_conclusion=body.accept_conclusion,
receive_attachments=body.receive_attachments,
+105 -8
View File
@@ -91,7 +91,8 @@ def _row_to_dict(c: BizCellProduct) -> Dict[str, Any]:
"productTypeId": c.product_type_id or "",
"productTypeName": "",
"specId": c.spec_id or "",
"specName": "",
"specText": c.spec_text or "",
"specName": c.spec_text or "",
"batchNo": c.batch_no or "",
"storageSlotId": c.storage_slot_id or "",
"storageSlotName": "",
@@ -234,7 +235,13 @@ def _enrich_product_dicts(
sid = item.get("specId") or ""
slot_id = item.get("storageSlotId") or ""
item["productTypeName"] = type_map.get(tid, "") if tid else ""
item["specName"] = spec_map.get(sid, "") if sid else ""
stored_spec = (item.get("specText") or item.get("spec_text") or "").strip()
if stored_spec:
item["specName"] = stored_spec
elif sid:
item["specName"] = spec_map.get(sid, "")
else:
item["specName"] = (item.get("specName") or "").strip()
item["storageSlotName"] = slot_map.get(slot_id, "") if slot_id else ""
# 来源信息
src_type = item.get("sourceType", "")
@@ -319,7 +326,10 @@ def list_cell_products(
page_size = min(max(1, page_size), 100)
rows = (
_filtered()
.order_by(BizCellProduct.create_time.desc())
.order_by(
BizCellProduct.create_time.desc(),
BizCellProduct.product_code.asc(),
)
.offset((page - 1) * page_size)
.limit(page_size)
.all()
@@ -370,6 +380,7 @@ def create_cell_product(
product_name=(data.product_name or "").strip(),
product_type_id=(data.product_type_id or "").strip() or None,
spec_id=(data.spec_id or "").strip() or None,
spec_text=(getattr(data, "spec_name", None) or "").strip() or None,
batch_no=(data.batch_no or "").strip() or None,
storage_slot_id=(data.storage_slot_id or "").strip() or None,
passage=((data.passage or "").strip() or None) if getattr(data, "passage", None) else None,
@@ -430,12 +441,21 @@ def update_cell_product(
old_slot_id = (obj.storage_slot_id or "").strip()
slot_change_requested = data.storage_slot_id is not None
if getattr(data, "product_code", None) is not None:
code = (data.product_code or "").strip()
if code and code != (obj.product_code or "").strip():
if product_code_exists(db, tenant_no, code, exclude_id=obj.id):
raise ValueError(f"产品编码 {code} 已存在")
obj.product_code = code
if data.product_name is not None:
obj.product_name = (data.product_name or "").strip()
if data.product_type_id is not None:
obj.product_type_id = (data.product_type_id or "").strip() or None
if data.spec_id is not None:
obj.spec_id = (data.spec_id or "").strip() or None
if getattr(data, "spec_name", None) is not None:
obj.spec_text = (data.spec_name or "").strip() or None
if data.batch_no is not None:
obj.batch_no = (data.batch_no or "").strip() or None
if data.storage_slot_id is not None:
@@ -553,6 +573,18 @@ def get_next_code(db: Session, tenant_no: str) -> str:
_PRODUCT_CODE_SUFFIX_RE = re.compile(r"^(.+)-(\d{2})$")
_PASSAGE_PRODUCT_CODE_RE = re.compile(r"^(.+)-(P\d+)-(\d{2})$", re.IGNORECASE)
def normalize_passage_product_base(code: str) -> str:
"""去掉末尾 -P{n}-XX 或 -XX,得到代次产品编码的基础前缀。"""
c = (code or "").strip()
if not c:
return ""
m = _PASSAGE_PRODUCT_CODE_RE.match(c)
if m:
return m.group(1).strip()
return normalize_product_code_base(c)
def get_max_passage_product_seq(
@@ -562,7 +594,7 @@ def get_max_passage_product_seq(
passage: str,
) -> int:
"""查询 `{base_code}-{passage}-XX` 形式产品编码在库中的最大两位序号(无匹配则 0)。"""
base = (base_code or "").strip()
base = normalize_passage_product_base(base_code)
passage = (passage or "").strip()
if not base or not passage:
return 0
@@ -607,6 +639,57 @@ def get_max_passage_product_seq_map(
return result
def get_max_product_suffix_seq(
db: Session,
tenant_no: str,
base_code: str,
) -> int:
"""查询 `{base_code}-XX` 形式产品编码在库中的最大两位序号(无匹配则 0)。"""
base = normalize_product_code_base((base_code or "").strip())
if not base:
return 0
prefix = f"{base}-"
suffix_re = re.compile(rf"^{re.escape(base)}-(\d{{2}})$")
rows = (
db.query(BizCellProduct.product_code)
.filter(
BizCellProduct.tenant_no == tenant_no,
BizCellProduct.product_code.like(f"{prefix}%"),
BizCellProduct.del_flag == 0,
)
.all()
)
max_seq = 0
for (code,) in rows:
m = suffix_re.match((code or "").strip())
if not m:
continue
try:
max_seq = max(max_seq, int(m.group(1)))
except ValueError:
continue
return max_seq
def product_code_exists(
db: Session,
tenant_no: str,
product_code: str,
exclude_id: Optional[str] = None,
) -> bool:
code = (product_code or "").strip()
if not code:
return False
q = db.query(BizCellProduct.id).filter(
BizCellProduct.tenant_no == tenant_no,
BizCellProduct.product_code == code,
BizCellProduct.del_flag == 0,
)
if exclude_id:
q = q.filter(BizCellProduct.id != exclude_id)
return q.first() is not None
def normalize_product_code_base(code: str) -> str:
"""去掉末尾 -01/-02 等序号,得到多份入库时的基础编码。"""
c = (code or "").strip()
@@ -735,19 +818,33 @@ def create_cell_products_batch(
occupancy_svc.assert_slot_vacant(db, slot_id, tenant_no=tenant_no)
now = datetime.now()
created: List[BizCellProduct] = []
for code, slot_id in zip(codes, slot_ids):
for it, slot_id in zip(items, slot_ids):
code = (getattr(it, "product_code", None) or "").strip()
item_passage = (getattr(it, "passage", None) or "").strip() or None
if not item_passage and getattr(data, "passage", None):
item_passage = (data.passage or "").strip() or None
item_spec = (getattr(it, "spec_name", None) or "").strip() or None
if not item_spec and getattr(data, "spec_name", None):
item_spec = (data.spec_name or "").strip() or None
item_expected = getattr(it, "expected_cell_count", None)
if item_expected is None:
item_expected = data.expected_cell_count if hasattr(data, "expected_cell_count") else None
item_viability = getattr(it, "viability", None)
if item_viability is None:
item_viability = data.viability if hasattr(data, "viability") else None
obj = BizCellProduct(
id=generate_uuid(),
product_code=code,
product_name=(data.product_name or "").strip(),
product_type_id=(data.product_type_id or "").strip() or None,
spec_id=(data.spec_id or "").strip() or None,
spec_text=item_spec,
batch_no=(data.batch_no or "").strip() or None,
storage_slot_id=slot_id,
passage=((data.passage or "").strip() or None) if getattr(data, "passage", None) else None,
passage=item_passage,
freeze_date=data.freeze_date if hasattr(data, "freeze_date") else None,
expected_cell_count=data.expected_cell_count if hasattr(data, "expected_cell_count") else None,
viability=data.viability if hasattr(data, "viability") else None,
expected_cell_count=item_expected,
viability=item_viability,
product_status=data.product_status or "frozen",
source_type=data.source_type or "manual",
quantity=1,
+14 -12
View File
@@ -249,30 +249,28 @@ def list_payments(
# ─── submit receipt (dfj → jfqrz) ────────────────────────
_VALID_TRANSFER_TYPES = frozenset({"wxzz", "zzbzz", "yhkzz", "xj"})
def _apply_submit_receipt(
row: BizPilotPayment,
db: Session,
*,
tenant_no: str,
row: BizPilotPayment,
user_id: Optional[str],
remark: Optional[str] = None,
transfer_attachments: Optional[str] = None,
transfer_amount: Optional[Any] = None,
transfer_type: Optional[str] = None,
) -> None:
from app.crud.dict_data import normalize_transfer_type
if row.pay_status != "dfj":
raise ValueError("仅待缴费状态可提交缴费确认")
plan_amount = Decimal(str(row.amount or 0))
if transfer_amount is not None and Decimal(str(transfer_amount)) != plan_amount:
raise ValueError("实缴金额须与计划金额一致")
if transfer_type is not None:
normalized = transfer_type.strip()
if not normalized:
raise ValueError("请选择转账方式")
if normalized not in _VALID_TRANSFER_TYPES:
raise ValueError("转账方式无效")
row.transfer_type = normalized
row.transfer_type = normalize_transfer_type(
db, value=transfer_type, tenant_no=tenant_no
)
row.pay_status = "jfqrz"
row.transfer_amount = plan_amount
if remark is not None:
@@ -296,7 +294,9 @@ def submit_receipt(
) -> BizPilotPayment:
row = _get_or_raise(db, payment_id=payment_id, tenant_no=tenant_no)
_apply_submit_receipt(
row,
db,
tenant_no=tenant_no,
row=row,
user_id=user_id,
remark=remark,
transfer_attachments=transfer_attachments,
@@ -327,7 +327,9 @@ def batch_submit_receipt(
if row.pay_status != "dfj":
continue
_apply_submit_receipt(
row,
db,
tenant_no=tenant_no,
row=row,
user_id=user_id,
remark=remark,
transfer_attachments=transfer_attachments,
+17 -12
View File
@@ -1274,6 +1274,9 @@ def get_protocol_detail_bundle(
item["unitName"] = unit_name_map.get(s.unit_id or "", "")
item["transport"] = transport_by_sample.get(s.id)
item["sampleReception"] = reception_by_sample.get(s.id)
item["productionReception"] = (reception_by_sample.get(s.id) or {}).get(
"productionReception"
)
item["qcInfo"] = qc_by_sample.get(s.id)
item["processQcInfoList"] = process_qc_by_sample.get(s.id, [])
item["productionInfo"] = production_by_sample.get(s.id)
@@ -1841,9 +1844,6 @@ def _get_payment_detail_or_raise(
return d
_VALID_TRANSFER_TYPES = frozenset({"wxzz", "zzbzz", "yhkzz", "xj"})
def _parse_transfer_time_value(value: Any) -> Optional[datetime]:
if value is None or value == "":
return None
@@ -1855,20 +1855,21 @@ def _parse_transfer_time_value(value: Any) -> Optional[datetime]:
def _apply_payment_detail_draft_fields(
d: BizProtocolPaymentDetail,
db: Session,
*,
tenant_no: str,
d: BizProtocolPaymentDetail,
user_id: Optional[str],
fields: Dict[str, Any],
) -> None:
from app.crud.dict_data import normalize_transfer_type
if d.pay_status != "dfj":
raise ValueError("仅待缴费状态可编辑缴费明细")
if "transfer_type" in fields:
normalized = (fields.get("transfer_type") or "").strip()
if not normalized:
raise ValueError("请选择转账方式")
if normalized not in _VALID_TRANSFER_TYPES:
raise ValueError("转账方式无效")
d.transfer_type = normalized
d.transfer_type = normalize_transfer_type(
db, value=str(fields.get("transfer_type") or ""), tenant_no=tenant_no
)
if "transfer_amount" in fields:
amount = fields.get("transfer_amount")
if amount is None or amount == "":
@@ -1904,7 +1905,9 @@ def update_payment_detail_draft(
draft_fields: Dict[str, Any],
) -> BizProtocolPaymentDetail:
d = _get_payment_detail_or_raise(db, detail_id=detail_id, tenant_no=tenant_no)
_apply_payment_detail_draft_fields(d, user_id=user_id, fields=draft_fields)
_apply_payment_detail_draft_fields(
db, tenant_no=tenant_no, d=d, user_id=user_id, fields=draft_fields
)
db.add(d)
db.commit()
db.refresh(d)
@@ -1933,7 +1936,9 @@ def submit_receipt_finance(
) -> BizProtocolPaymentDetail:
d = _get_payment_detail_or_raise(db, detail_id=detail_id, tenant_no=tenant_no)
if draft_fields:
_apply_payment_detail_draft_fields(d, user_id=user_id, fields=draft_fields)
_apply_payment_detail_draft_fields(
db, tenant_no=tenant_no, d=d, user_id=user_id, fields=draft_fields
)
_validate_receipt_finance_submit_ready(d)
_apply_submit_receipt_finance(d, user_id=user_id)
db.add(d)
+42 -1
View File
@@ -143,6 +143,9 @@ def soft_delete_dict_data(db: Session, data_id: str) -> None:
db.commit()
TRANSFER_TYPE_DICT = "zzfs"
def list_dict_data_options(
db: Session, *, dict_type_code: str, tenant_no: Optional[str] = None
) -> List[Dict[str, str]]:
@@ -151,10 +154,48 @@ def list_dict_data_options(
)
if tenant_no:
q = q.filter(SysDictData.tenant_no == tenant_no)
rows = q.order_by(SysDictData.create_time.desc()).all()
rows = q.order_by(SysDictData.order_num.asc(), SysDictData.create_time.desc()).all()
return [{"label": r.dict_label, "value": r.dict_value} for r in rows]
def is_dict_value_valid(
db: Session,
*,
dict_type_code: str,
value: str,
tenant_no: Optional[str] = None,
) -> bool:
normalized = (value or "").strip()
if not normalized:
return False
q = db.query(SysDictData.id).filter(
and_(
SysDictData.dict_type == dict_type_code,
SysDictData.dict_value == normalized,
SysDictData.del_flag == 0,
)
)
if tenant_no:
q = q.filter(SysDictData.tenant_no == tenant_no)
return q.first() is not None
def normalize_transfer_type(
db: Session,
*,
value: str,
tenant_no: str,
) -> str:
normalized = (value or "").strip()
if not normalized:
raise ValueError("请选择转账方式")
if not is_dict_value_valid(
db, dict_type_code=TRANSFER_TYPE_DICT, value=normalized, tenant_no=tenant_no
):
raise ValueError("转账方式无效")
return normalized
def total_pages(total: int, page_size: int) -> int:
if total <= 0:
return 0
+6 -16
View File
@@ -129,30 +129,20 @@ def get_equipment(db: Session, equipment_id: str) -> Optional[BizEquipment]:
def equipment_is_referenced(db: Session, equipment_id: str) -> bool:
from app.models.models import BizProcess, BizProcessRouteStep
from app.models.models import BizProductionTask
eid = (equipment_id or "").strip()
if not eid:
return False
proc_hit = (
db.query(BizProcess.id)
task_hit = (
db.query(BizProductionTask.id)
.filter(
BizProcess.del_flag == 0,
func.find_in_set(eid, BizProcess.equipment_ids) > 0,
BizProductionTask.del_flag == 0,
func.find_in_set(eid, BizProductionTask.equipment_ids) > 0,
)
.first()
)
if proc_hit:
return True
step_hit = (
db.query(BizProcessRouteStep.id)
.filter(
BizProcessRouteStep.del_flag == 0,
func.find_in_set(eid, BizProcessRouteStep.equipment_ids) > 0,
)
.first()
)
return step_hit is not None
return task_hit is not None
def equipment_code_exists(
+2 -10
View File
@@ -9,7 +9,6 @@ from sqlalchemy import and_, func, or_
from sqlalchemy.orm import Session
from app.core.utils import generate_uuid
from app.crud.equipment_snapshot import parse_equipment_ids, resolve_equipment_list_snapshot
from app.models.models import (
BizProcess,
BizProcessCategory,
@@ -81,8 +80,6 @@ def _row_to_dict(p: BizProcess) -> Dict[str, Any]:
"categoryId": p.category_id or "",
"processName": p.process_name,
"description": p.description or "",
"equipmentIds": parse_equipment_ids(p.equipment_ids),
"equipmentName": p.equipment_name or "",
"estimatedDuration": p.estimated_duration or "",
"sopIds": p.sop_ids or "",
"tenantNo": p.tenant_no,
@@ -327,15 +324,14 @@ def create_process(
if process_code_exists(db, pc, tenant_no):
raise ValueError("工艺编码已存在")
now = datetime.now()
eids, enames = resolve_equipment_list_snapshot(db, equipment_ids, tenant_no)
obj = BizProcess(
id=generate_uuid(),
process_code=pc,
process_name=(process_name or "").strip() or pc,
category_id=(category_id or "").strip() or None,
description=(description or "").strip() or None,
equipment_ids=eids,
equipment_name=enames,
equipment_ids=None,
equipment_name=None,
estimated_duration=(estimated_duration or "").strip() or None,
sop_ids=(sop_ids or "").strip() or None,
tenant_no=tenant_no,
@@ -417,10 +413,6 @@ def update_process(
obj.category_id = (category_id or "").strip() or None
if description is not None:
obj.description = (description or "").strip() or None
if equipment_ids is not _UNSET:
eids, enames = resolve_equipment_list_snapshot(db, equipment_ids, obj.tenant_no)
obj.equipment_ids = eids
obj.equipment_name = enames
if estimated_duration is not None:
obj.estimated_duration = (estimated_duration or "").strip() or None
if sop_ids is not None:
+2 -13
View File
@@ -9,7 +9,6 @@ from sqlalchemy import and_, func, or_
from sqlalchemy.orm import Session
from app.core.utils import generate_uuid
from app.crud.equipment_snapshot import parse_equipment_ids, resolve_equipment_list_snapshot
from app.models.models import (
BizCellProductType,
BizProcess,
@@ -56,8 +55,6 @@ def _step_row_to_dict(s: BizProcessRouteStep) -> Dict[str, Any]:
"categoryId": s.category_id or "",
"processName": s.process_name or "",
"description": s.description or "",
"equipmentIds": parse_equipment_ids(s.equipment_ids),
"equipmentName": s.equipment_name or "",
"estimatedDuration": s.estimated_duration or "",
"sopIds": s.sop_ids or "",
"remark": s.remark or "",
@@ -377,8 +374,7 @@ def add_step(db: Session, *, route_id: str, process_id: str, step_order: Optiona
step_order=step_order,
process_code=proc.process_code, category_id=proc.category_id,
process_name=proc.process_name, description=proc.description,
equipment_ids=proc.equipment_ids,
equipment_name=proc.equipment_name, estimated_duration=proc.estimated_duration,
estimated_duration=proc.estimated_duration,
sop_ids=proc.sop_ids,
tenant_no=tenant_no, order_num=0,
remark=None, create_by=user_id, create_dept_id="",
@@ -440,12 +436,6 @@ def update_step(db: Session, step_id: str, *, user_id: Optional[str] = None, **k
val = kwargs.get(field)
if val is not None:
setattr(step, field, (val or "").strip() or None)
if "equipment_ids" in kwargs:
eids, enames = resolve_equipment_list_snapshot(
db, kwargs.get("equipment_ids"), step.tenant_no
)
step.equipment_ids = eids
step.equipment_name = enames
step.update_by = user_id
step.update_time = datetime.now()
db.add(step)
@@ -502,8 +492,7 @@ def copy_step(db: Session, step_id: str, *, tenant_no: str = "zkxw",
step_order=new_order,
process_code=src.process_code, category_id=src.category_id,
process_name=new_name, description=src.description,
equipment_ids=src.equipment_ids,
equipment_name=src.equipment_name, estimated_duration=src.estimated_duration,
estimated_duration=src.estimated_duration,
sop_ids=src.sop_ids,
tenant_no=tenant_no, order_num=0,
remark=src.remark, create_by=user_id, create_dept_id="",
+63 -20
View File
@@ -42,7 +42,11 @@ from app.models.models import (
SysUser,
)
from app.crud import storage_occupancy as occupancy_svc
from app.crud.cell_product import _row_to_dict as _cp_row_to_dict, _enrich_product_dicts as _cp_enrich
from app.crud.cell_product import (
_row_to_dict as _cp_row_to_dict,
_enrich_product_dicts as _cp_enrich,
product_code_exists as _cp_product_code_exists,
)
from app.models.research_donation import BizResearchDonation, BizResearchDonationSample
@@ -284,6 +288,8 @@ def _task_to_dict(t: BizProductionTask, *, work_order_no: str = "") -> Dict[str,
"conclusionLabel": _production_conclusion_label(getattr(t, "conclusion", None)),
"remark": t.remark or "",
"attachments": t.attachments or "",
"equipmentIds": parse_equipment_ids(getattr(t, "equipment_ids", None)),
"equipmentName": getattr(t, "equipment_name", None) or "",
"tenantNo": t.tenant_no,
"orderNum": t.order_num if t.order_num is not None else 0,
"createTime": _fmt_dt(t.create_time),
@@ -300,8 +306,6 @@ def _step_to_dict(s: BizProductionTaskStep) -> Dict[str, Any]:
"categoryId": s.category_id or "",
"processName": s.process_name or "",
"description": s.description or "",
"equipmentIds": parse_equipment_ids(s.equipment_ids),
"equipmentName": s.equipment_name or "",
"estimatedDuration": s.estimated_duration or "",
"actualDuration": s.actual_duration or "",
"sopIds": s.sop_ids or "",
@@ -405,7 +409,7 @@ def _task_input_to_dict(i: BizProductionTaskInput, *, product_dict: Optional[Dic
if product_dict:
for key in [
"productCode", "productName", "productTypeId", "productTypeName",
"specId", "specName", "passage", "batchNo", "storageSlotName",
"specId", "specName", "specText", "passage", "batchNo", "storageSlotName",
"expectedCellCount", "viability", "freezeDate", "expiryDate",
"productStatus", "productImages", "storageSlotId",
]:
@@ -430,7 +434,7 @@ def _task_output_to_dict(o: BizProductionTaskOutput, *, product_dict: Optional[D
if product_dict:
for key in [
"productCode", "productName", "productTypeId", "productTypeName",
"specId", "specName", "passage", "batchNo", "storageSlotName",
"specId", "specName", "specText", "passage", "batchNo", "storageSlotName",
"expectedCellCount", "viability", "freezeDate", "expiryDate",
"productStatus", "productImages",
]:
@@ -682,8 +686,7 @@ def _clone_route_to_task(
step_order=rs.step_order,
process_code=rs.process_code, category_id=rs.category_id,
process_name=rs.process_name, description=rs.description,
equipment_ids=rs.equipment_ids,
equipment_name=rs.equipment_name, estimated_duration=rs.estimated_duration,
estimated_duration=rs.estimated_duration,
sop_ids=rs.sop_ids,
step_status="dzx",
tenant_no=tenant_no, order_num=0,
@@ -1556,6 +1559,13 @@ def get_production_task_detail(
result = _task_to_dict(task, work_order_no=wo.work_order_no if wo else "")
if wo:
wo_type = getattr(wo, "work_order_type", None) or "inbound"
result["workOrderType"] = wo_type
if wo_type == "outbound":
result["bizType"] = getattr(wo, "biz_type", None) or ""
elif wo_type == "inbound":
result["receptionSource"] = (
getattr(wo, "reception_source", "cell_storage") or "cell_storage"
)
result["sampleCode"] = wo.sample_code or ""
if wo.reception_id:
rec = (
@@ -1796,6 +1806,10 @@ def update_production_task(
val = data.get(field)
if val is not None:
setattr(task, field, (val or "").strip() or None)
if "equipment_ids" in data:
eids, enames = resolve_equipment_list_snapshot(db, data.get("equipment_ids"), tenant_no)
task.equipment_ids = eids
task.equipment_name = enames
task.update_by = user_id
task.update_time = datetime.now()
db.add(task)
@@ -1949,8 +1963,6 @@ def add_task_step(
category_id=proc.category_id,
process_name=proc.process_name,
description=proc.description,
equipment_ids=proc.equipment_ids,
equipment_name=proc.equipment_name,
estimated_duration=proc.estimated_duration,
sop_ids=proc.sop_ids,
step_status="dzx",
@@ -2023,7 +2035,6 @@ def add_task_step(
db.commit()
else:
# 无 process_id 时,使用前端传来的字段直接创建(兼容旧逻辑)
eids, enames = resolve_equipment_list_snapshot(db, data.get("equipment_ids"), tenant_no)
step = BizProductionTaskStep(
id=generate_uuid(), task_id=task_id,
step_order=step_order,
@@ -2031,8 +2042,6 @@ def add_task_step(
category_id=(data.get("category_id") or "").strip() or None,
process_name=(data.get("process_name") or "").strip() or None,
description=(data.get("description") or "").strip() or None,
equipment_ids=eids,
equipment_name=enames,
estimated_duration=(data.get("estimated_duration") or "").strip() or None,
actual_duration=(data.get("actual_duration") or "").strip() or None,
sop_ids=(data.get("sop_ids") or "").strip() or None,
@@ -2095,10 +2104,6 @@ def update_task_step(
setattr(step, field, int(val))
else:
setattr(step, field, (val or "").strip() or None)
if "equipment_ids" in data:
eids, enames = resolve_equipment_list_snapshot(db, data.get("equipment_ids"), tenant_no)
step.equipment_ids = eids
step.equipment_name = enames
if data.get("started_time"):
parsed = parse_datetime(str(data["started_time"]).strip())
if parsed is None:
@@ -2477,12 +2482,47 @@ def _create_occupancy_for_product(db: Session, product: BizCellProduct, tenant_n
)
def _update_product_from_output(product: BizCellProduct, it: Dict[str, Any], user_id, now):
def _output_item_has_spec(it: Dict[str, Any]) -> bool:
return any(k in it for k in ("spec_text", "specText", "spec_name", "specName"))
def _output_item_spec_text(it: Dict[str, Any]) -> Optional[str]:
for key in ("spec_text", "specText", "spec_name", "specName"):
if key not in it:
continue
val = it[key]
if val is None:
return None
s = str(val).strip()
return s or None
val = it.get("spec_text") or it.get("specText") or it.get("spec_name") or it.get("specName")
if val is None:
return None
s = str(val).strip()
return s or None
def _update_product_from_output(
db: Session,
product: BizCellProduct,
it: Dict[str, Any],
tenant_no: str,
user_id,
now,
):
"""从 output item 更新细胞产品字段"""
new_code = it.get("product_code") if it.get("product_code") is not None else it.get("productCode")
if new_code is not None:
code = (str(new_code) or "").strip()
if code and code != (product.product_code or "").strip():
if _cp_product_code_exists(db, tenant_no, code, exclude_id=product.id):
raise ValueError(f"产品编码 {code} 已存在")
product.product_code = code
field_map = [
("product_name", "product_name", "productName"),
("product_type_id", "product_type_id", "productTypeId"),
("spec_id", "spec_id", "specId"),
("spec_text", "spec_text", "specText"),
("batch_no", "batch_no", "batchNo"),
("storage_slot_id", "storage_slot_id", "storageSlotId"),
("unit", "unit", "unit"),
@@ -2493,6 +2533,9 @@ def _update_product_from_output(product: BizCellProduct, it: Dict[str, Any], use
val = it.get(snake_key) if it.get(snake_key) is not None else it.get(camel_key)
if val is not None:
setattr(product, db_field, (str(val) or "").strip() or None)
spec_text = _output_item_spec_text(it)
if _output_item_has_spec(it):
product.spec_text = spec_text
for num_field, snake_key, camel_key in [
("expected_cell_count", "expected_cell_count", "expectedCellCount"),
("viability", "viability", "viability"),
@@ -2580,7 +2623,7 @@ def set_task_outputs(
).first()
if product:
old_slot_id = product.storage_slot_id
_update_product_from_output(product, it, user_id, now)
_update_product_from_output(db, product, it, tenant_no, user_id, now)
new_slot_id = product.storage_slot_id
db.add(product)
if old_slot_id != new_slot_id:
@@ -2607,6 +2650,7 @@ def set_task_outputs(
product_name=(it.get("product_name") or it.get("productName") or "").strip(),
product_type_id=(it.get("product_type_id") or it.get("productTypeId") or "").strip() or None,
spec_id=(it.get("spec_id") or it.get("specId") or "").strip() or None,
spec_text=_output_item_spec_text(it),
passage=(it.get("passage") or "").strip() or None,
batch_no=(it.get("batch_no") or it.get("batchNo") or "").strip() or None,
storage_slot_id=(it.get("storage_slot_id") or it.get("storageSlotId") or "").strip() or None,
@@ -2701,8 +2745,7 @@ def copy_task_step(db: Session, step_id: str, *, tenant_no: str = "zkxw",
step_order=new_order,
process_code=src.process_code, category_id=src.category_id,
process_name=new_name, description=src.description,
equipment_ids=src.equipment_ids,
equipment_name=src.equipment_name, estimated_duration=src.estimated_duration,
estimated_duration=src.estimated_duration,
actual_duration=src.actual_duration, sop_ids=src.sop_ids,
step_status="dzx",
tenant_no=tenant_no, order_num=0,
@@ -351,6 +351,7 @@ def _attach_reception_detail(
reception_detail = sample_reception_svc.get_reception_by_id(db, wo.reception_id, tenant_no)
if reception_detail:
out["reception"] = reception_detail
out["productionReception"] = reception_detail.get("productionReception")
return
rec = (
db.query(BizSampleReception)
+1
View File
@@ -1913,6 +1913,7 @@ def get_work_order_detail(
)
if reception_detail:
out["reception"] = reception_detail
out["productionReception"] = reception_detail.get("productionReception")
else:
rec = (
db.query(BizSampleReception)
+3
View File
@@ -826,6 +826,9 @@ def get_donation_detail(
item["unitName"] = unit_name_map.get(s.unit_id or "", "")
item["transport"] = transport_by_sample.get(s.id)
item["sampleReception"] = reception_by_sample.get(s.id)
item["productionReception"] = (reception_by_sample.get(s.id) or {}).get(
"productionReception"
)
item["qcInfo"] = qc_by_sample.get(s.id)
item["processQcInfoList"] = process_qc_by_sample.get(s.id, [])
item["productionInfo"] = production_by_sample.get(s.id)
+1 -1
View File
@@ -105,7 +105,7 @@ def list_sample_codes(
page_size = min(max(1, page_size), 100)
rows = (
_filtered()
.order_by(BizSampleCode.create_time.desc())
.order_by(BizSampleCode.create_time.desc(), BizSampleCode.sample_code.desc())
.offset((page - 1) * page_size)
.limit(page_size)
.all()
@@ -0,0 +1,365 @@
"""生产部门样本接收 CRUD"""
from __future__ import annotations
from datetime import datetime
from typing import Any, Dict, List, Optional, Set, Tuple
from sqlalchemy.orm import Session
from app.core.utils import generate_uuid
from app.models.models import BizSampleProductionReception, BizSampleReception, SysUser
from app.crud import production_task_step_assignee as step_assignee_svc
PRODUCTION_RECEPTION_HANDLER_ROLE = step_assignee_svc.PRODUCTION_STEP_ASSIGNEE_ROLE
SAMPLE_TYPE_PERINATAL_HSC = "围产期造血干细胞"
SAMPLE_TYPE_UC_MSC = "脐带间充质干细胞"
INFECTIOUS_FOUR_LABELS = {"zc": "正常", "bzc": "不正常"}
# (source, sample_type_name) -> required writable field keys (camelCase API)
FIELD_PROFILES: Dict[Tuple[str, str], List[str]] = {
("cell_storage", SAMPLE_TYPE_PERINATAL_HSC): [
"originalBloodWeightG",
"hesVolumeMl",
"bloodType",
"infectiousFourTestResult",
"enrichedBloodWeightG",
"cryopreservationVolumeMl",
],
("cell_storage", SAMPLE_TYPE_UC_MSC): [
"inoculationAmount",
"cryopreservationTime",
"storageTotalTubes",
"availableCellCount1e7",
],
("research_donation", SAMPLE_TYPE_UC_MSC): [
"inoculationAmount",
"cryopreservationTime",
],
("research_donation", SAMPLE_TYPE_PERINATAL_HSC): [
"originalBloodVolumeMl",
"nucleatedCellCount1e8",
],
}
ALL_TYPE_FIELDS = {
"originalBloodWeightG",
"hesVolumeMl",
"bloodType",
"infectiousFourTestResult",
"enrichedBloodWeightG",
"cryopreservationVolumeMl",
"inoculationAmount",
"cryopreservationTime",
"storageTotalTubes",
"availableCellCount1e7",
"originalBloodVolumeMl",
"nucleatedCellCount1e8",
}
def _fmt_dt(t: Optional[datetime]) -> str:
return t.strftime("%Y-%m-%d %H:%M:%S") if t else ""
def _dec(v: Any) -> Optional[float]:
if v is None:
return None
return float(v)
def _int_val(v: Any) -> Optional[int]:
if v is None or v == "":
return None
return int(v)
def resolve_field_profile(source: str, sample_type_name: str) -> List[str]:
src = (source or "cell_storage").strip()
name = (sample_type_name or "").strip()
return list(FIELD_PROFILES.get((src, name), []))
def _row_to_dict(row: BizSampleProductionReception) -> Dict[str, Any]:
result = row.infectious_four_test_result or ""
return {
"id": row.id,
"receptionId": row.reception_id,
"sampleCode": row.sample_code or "",
"receptionSource": row.reception_source or "cell_storage",
"sampleTypeName": row.sample_type_name or "",
"handlerUserId": row.handler_user_id or "",
"handlerName": row.handler_name or "",
"processTime": _fmt_dt(row.process_time),
"originalBloodWeightG": _dec(row.original_blood_weight_g),
"hesVolumeMl": _dec(row.hes_volume_ml),
"bloodType": row.blood_type or "",
"infectiousFourTestResult": result,
"infectiousFourTestResultLabel": INFECTIOUS_FOUR_LABELS.get(result, result),
"enrichedBloodWeightG": _dec(row.enriched_blood_weight_g),
"cryopreservationVolumeMl": _dec(row.cryopreservation_volume_ml),
"inoculationAmount": _dec(row.inoculation_amount),
"cryopreservationTime": _fmt_dt(row.cryopreservation_time),
"storageTotalTubes": row.storage_total_tubes,
"availableCellCount1e7": _dec(row.available_cell_count_1e7),
"originalBloodVolumeMl": _dec(row.original_blood_volume_ml),
"nucleatedCellCount1e8": _dec(row.nucleated_cell_count_1e8),
"remark": row.remark or "",
"createTime": _fmt_dt(row.create_time),
"updateTime": _fmt_dt(row.update_time),
}
def _validate_handler_user_id(
db: Session, handler_user_id: str, tenant_no: str
) -> str:
uid = (handler_user_id or "").strip()
if not uid:
raise ValueError("请选择处理人")
step_assignee_svc.validate_assignee_user_ids(
db, [uid], tenant_no, required_role_name=PRODUCTION_RECEPTION_HANDLER_ROLE
)
return uid
def _get_qc_reception(
db: Session, *, reception_id: str, tenant_no: str
) -> BizSampleReception:
rec = (
db.query(BizSampleReception)
.filter(
BizSampleReception.id == reception_id,
BizSampleReception.tenant_no == tenant_no,
BizSampleReception.del_flag == 0,
)
.first()
)
if not rec:
raise ValueError("关联的质检接收记录不存在")
if (rec.accept_conclusion or "").strip() == "bj":
raise ValueError("样本已拒收,无法登记生产接收信息")
return rec
def _validate_payload(
data: Dict[str, Any],
*,
source: str,
sample_type_name: str,
) -> None:
required = {"handlerUserId", "processTime"} | set(
resolve_field_profile(source, sample_type_name)
)
for key in required:
val = data.get(key)
if val is None or (isinstance(val, str) and not val.strip()):
raise ValueError(f"请填写必填字段:{key}")
infectious = data.get("infectiousFourTestResult")
if infectious is not None and str(infectious).strip():
if str(infectious).strip() not in INFECTIOUS_FOUR_LABELS:
raise ValueError("传染四项检测结果无效")
def _apply_payload_to_row(
row: BizSampleProductionReception,
data: Dict[str, Any],
*,
source: str,
sample_type_name: str,
) -> None:
profile_keys = set(resolve_field_profile(source, sample_type_name))
allowed = profile_keys | {"handlerUserId", "handlerName", "processTime", "remark"}
row.handler_user_id = str(data.get("handlerUserId") or "").strip() or None
row.handler_name = str(data.get("handlerName") or "").strip() or None
pt = data.get("processTime")
if isinstance(pt, datetime):
row.process_time = pt
row.remark = str(data.get("remark") or "").strip() or None
def _set_decimal(attr: str, key: str) -> None:
if key not in allowed:
setattr(row, attr, None)
return
setattr(row, attr, data.get(key))
row.original_blood_weight_g = data.get("originalBloodWeightG") if "originalBloodWeightG" in allowed else None
row.hes_volume_ml = data.get("hesVolumeMl") if "hesVolumeMl" in allowed else None
row.blood_type = (
str(data.get("bloodType") or "").strip() or None if "bloodType" in allowed else None
)
row.infectious_four_test_result = (
str(data.get("infectiousFourTestResult") or "").strip() or None
if "infectiousFourTestResult" in allowed
else None
)
row.enriched_blood_weight_g = (
data.get("enrichedBloodWeightG") if "enrichedBloodWeightG" in allowed else None
)
row.cryopreservation_volume_ml = (
data.get("cryopreservationVolumeMl") if "cryopreservationVolumeMl" in allowed else None
)
row.inoculation_amount = data.get("inoculationAmount") if "inoculationAmount" in allowed else None
ct = data.get("cryopreservationTime")
row.cryopreservation_time = ct if "cryopreservationTime" in allowed and ct else None
row.storage_total_tubes = (
_int_val(data.get("storageTotalTubes")) if "storageTotalTubes" in allowed else None
)
row.available_cell_count_1e7 = (
data.get("availableCellCount1e7") if "availableCellCount1e7" in allowed else None
)
row.original_blood_volume_ml = (
data.get("originalBloodVolumeMl") if "originalBloodVolumeMl" in allowed else None
)
row.nucleated_cell_count_1e8 = (
data.get("nucleatedCellCount1e8") if "nucleatedCellCount1e8" in allowed else None
)
def get_by_reception_id(
db: Session, reception_id: str, tenant_no: str
) -> Optional[Dict[str, Any]]:
row = (
db.query(BizSampleProductionReception)
.filter(
BizSampleProductionReception.reception_id == reception_id,
BizSampleProductionReception.tenant_no == tenant_no,
BizSampleProductionReception.del_flag == 0,
)
.first()
)
return _row_to_dict(row) if row else None
def get_map_by_reception_ids(
db: Session, reception_ids: List[str], tenant_no: str
) -> Dict[str, Dict[str, Any]]:
if not reception_ids:
return {}
rows = (
db.query(BizSampleProductionReception)
.filter(
BizSampleProductionReception.reception_id.in_(reception_ids),
BizSampleProductionReception.tenant_no == tenant_no,
BizSampleProductionReception.del_flag == 0,
)
.all()
)
return {r.reception_id: _row_to_dict(r) for r in rows}
def get_by_id(db: Session, row_id: str, tenant_no: str) -> Optional[Dict[str, Any]]:
row = (
db.query(BizSampleProductionReception)
.filter(
BizSampleProductionReception.id == row_id,
BizSampleProductionReception.tenant_no == tenant_no,
BizSampleProductionReception.del_flag == 0,
)
.first()
)
return _row_to_dict(row) if row else None
def create_production_reception(
db: Session,
*,
reception_id: str,
tenant_no: str,
user_id: Optional[str],
create_dept_id: str,
data: Dict[str, Any],
sample_type_name: str = "",
) -> BizSampleProductionReception:
qc = _get_qc_reception(db, reception_id=reception_id, tenant_no=tenant_no)
exists = (
db.query(BizSampleProductionReception)
.filter(
BizSampleProductionReception.reception_id == reception_id,
BizSampleProductionReception.tenant_no == tenant_no,
BizSampleProductionReception.del_flag == 0,
)
.first()
)
if exists:
raise ValueError("该样本已登记生产接收信息,请使用编辑")
source = (qc.reception_source or "cell_storage").strip()
type_name = (sample_type_name or data.get("sampleTypeName") or "").strip()
_validate_payload(data, source=source, sample_type_name=type_name)
handler_name = str(data.get("handlerName") or "").strip()
handler_user_id = _validate_handler_user_id(
db, str(data.get("handlerUserId") or ""), tenant_no
)
if handler_user_id and not handler_name:
u = db.query(SysUser).filter(SysUser.id == handler_user_id).first()
if u:
handler_name = u.nick_name or ""
row = BizSampleProductionReception(
id=generate_uuid(),
reception_id=reception_id,
sample_code=(qc.sample_code or "").strip() or None,
reception_source=source,
sample_type_name=type_name or None,
tenant_no=tenant_no,
create_by=user_id,
create_dept_id=create_dept_id or "",
update_by=user_id,
)
data = dict(data)
data["handlerUserId"] = handler_user_id
data["handlerName"] = handler_name
_apply_payload_to_row(row, data, source=source, sample_type_name=type_name)
db.add(row)
db.commit()
db.refresh(row)
return row
def update_production_reception(
db: Session,
*,
row_id: str,
tenant_no: str,
user_id: Optional[str],
data: Dict[str, Any],
) -> BizSampleProductionReception:
row = (
db.query(BizSampleProductionReception)
.filter(
BizSampleProductionReception.id == row_id,
BizSampleProductionReception.tenant_no == tenant_no,
BizSampleProductionReception.del_flag == 0,
)
.first()
)
if not row:
raise ValueError("生产接收记录不存在")
_get_qc_reception(db, reception_id=row.reception_id, tenant_no=tenant_no)
source = (row.reception_source or "cell_storage").strip()
type_name = (row.sample_type_name or "").strip()
_validate_payload(data, source=source, sample_type_name=type_name)
handler_name = str(data.get("handlerName") or "").strip()
handler_user_id = _validate_handler_user_id(
db, str(data.get("handlerUserId") or ""), tenant_no
)
if handler_user_id and not handler_name:
u = db.query(SysUser).filter(SysUser.id == handler_user_id).first()
if u:
handler_name = u.nick_name or ""
data = dict(data)
data["handlerUserId"] = handler_user_id
data["handlerName"] = handler_name
_apply_payload_to_row(row, data, source=source, sample_type_name=type_name)
row.update_by = user_id
row.update_time = datetime.now()
db.add(row)
db.commit()
db.refresh(row)
return row
+82 -10
View File
@@ -10,6 +10,7 @@ from sqlalchemy.orm import Session
from app.core.utils import generate_uuid
from app.crud.collection_protocol import urls_to_attachment_list
from app.crud import sample_reception_check_result as check_result_svc
from app.crud import sample_production_reception as prod_reception_svc
from app.models.models import (
BizCellSampleType,
BizCollectionProtocol,
@@ -28,6 +29,9 @@ from app.models.research_donation import (
BizResearchDonationSample,
BizResearchDonationSampleTransport,
)
from app.services.web_auth_roles import get_user_role_names
SAMPLE_RECEPTION_EDIT_ROLE = "质量主管"
# 科研捐赠表默认 general_ci,样本接收等为 unicode_ci,跨表比较需统一
_UNICODE_CI = "utf8mb4_unicode_ci"
@@ -71,8 +75,6 @@ def _reception_to_dict(
"handlerUserId": r.handler_user_id or "",
"handlerName": r.handler_name or "",
"receiveTemperature": r.receive_temperature or "",
"volumeMl": _dec(r.volume_ml),
"netWeightG": _dec(r.net_weight_g),
"checkResults": check_results or [],
"acceptConclusion": r.accept_conclusion or "",
"labStorageCode": r.lab_storage_code or "",
@@ -294,6 +296,12 @@ def _donation_rows_to_sample_list_items(
rec.receive_attachments, db, tenant_no
)
items.append(item)
rec_ids = [str(item.get("id") or "") for item in items if item.get("id")]
if rec_ids:
production_map = prod_reception_svc.get_map_by_reception_ids(db, rec_ids, tenant_no)
for item in items:
rid = str(item.get("id") or "")
item["productionReception"] = production_map.get(rid) if rid else None
return items
@@ -450,6 +458,12 @@ def _rows_to_sample_list_items(
rec.receive_attachments, db, tenant_no
)
items.append(item)
reception_ids = [str(item.get("id") or "") for item in items if item.get("id")]
if reception_ids:
production_map = prod_reception_svc.get_map_by_reception_ids(db, reception_ids, tenant_no)
for item in items:
rid = str(item.get("id") or "")
item["productionReception"] = production_map.get(rid) if rid else None
return items
@@ -665,6 +679,12 @@ def list_received_protocol_samples(
return items, int(total)
def _finalize_reception_detail(db: Session, item: Optional[Dict[str, Any]], tenant_no: str) -> Optional[Dict[str, Any]]:
if not item:
return item
return _attach_production_reception(db, item, tenant_no)
def get_reception_by_id(
db: Session, reception_id: str, tenant_no: str
) -> Optional[Dict[str, Any]]:
@@ -689,7 +709,7 @@ def get_reception_by_id(
out["receiveAttachmentFiles"] = urls_to_attachment_list(
rec.receive_attachments, db, tenant_no
)
return out
return _finalize_reception_detail(db, out, tenant_no)
rows = (
_donation_sample_detail_rows_query(db)
.filter(_donation_sample_id_col(BizResearchDonationSample.id) == dsid)
@@ -703,7 +723,7 @@ def get_reception_by_id(
out["receiveAttachmentFiles"] = urls_to_attachment_list(
rec.receive_attachments, db, tenant_no
)
return out
return _finalize_reception_detail(db, out, tenant_no)
items = _donation_rows_to_sample_list_items(
db, rows, tenant_no, reception_map={dsid: rec}
)
@@ -730,7 +750,7 @@ def get_reception_by_id(
out["receiveAttachmentFiles"] = urls_to_attachment_list(
rec.receive_attachments, db, tenant_no
)
return out
return _finalize_reception_detail(db, out, tenant_no)
def create_sample_reception(
@@ -866,8 +886,6 @@ def create_sample_reception(
handler_user_id=handler_user_id,
handler_name=handler_display or None,
receive_temperature=(receive_temperature or "").strip() or None,
volume_ml=volume_ml,
net_weight_g=net_weight_g,
check_packaging=0,
check_sealing=0,
check_no_damage=0,
@@ -997,6 +1015,21 @@ def create_sample_reception(
return obj
def _can_edit_sample_reception(
db: Session,
user_id: Optional[str],
rec: BizSampleReception,
) -> bool:
"""已接收记录:仅经手人或「质量主管」角色可编辑。"""
uid = (user_id or "").strip()
if not uid:
return False
handler_id = (rec.handler_user_id or "").strip()
if handler_id and handler_id == uid:
return True
return SAMPLE_RECEPTION_EDIT_ROLE in get_user_role_names(db, uid)
def update_sample_reception(
db: Session,
*,
@@ -1028,6 +1061,9 @@ def update_sample_reception(
if not rec:
raise ValueError("接收记录不存在")
if not _can_edit_sample_reception(db, user_id, rec):
raise PermissionError("仅该接收记录的经手人或质量主管可编辑")
conclusion = (accept_conclusion or "").strip()
if conclusion not in ("js", "bj"):
raise ValueError("接收结论无效")
@@ -1073,8 +1109,6 @@ def update_sample_reception(
rec.handler_user_id = handler_user_id
rec.handler_name = handler_display or None
rec.receive_temperature = (receive_temperature or "").strip() or None
rec.volume_ml = volume_ml
rec.net_weight_g = net_weight_g
rec.accept_conclusion = conclusion
rec.receive_attachments = (receive_attachments or "").strip() or None
rec.remark = (remark or "").strip() or None
@@ -1112,6 +1146,24 @@ def update_sample_reception(
return rec
def _attach_production_reception(
db: Session,
item: Dict[str, Any],
tenant_no: str,
*,
production_map: Optional[Dict[str, Dict[str, Any]]] = None,
) -> Dict[str, Any]:
rid = str(item.get("id") or "").strip()
if not rid:
item["productionReception"] = None
return item
if production_map is not None:
item["productionReception"] = production_map.get(rid)
else:
item["productionReception"] = prod_reception_svc.get_by_reception_id(db, rid, tenant_no)
return item
def _reception_detail_item(
db: Session,
rec: BizSampleReception,
@@ -1129,6 +1181,18 @@ def _reception_detail_item(
return item
def _reception_detail_item_with_production(
db: Session,
rec: BizSampleReception,
tenant_no: str,
*,
results_map: Optional[Dict[str, List[Dict[str, Any]]]] = None,
production_map: Optional[Dict[str, Dict[str, Any]]] = None,
) -> Dict[str, Any]:
item = _reception_detail_item(db, rec, tenant_no, results_map=results_map)
return _attach_production_reception(db, item, tenant_no, production_map=production_map)
def _reception_sample_code(db: Session, rec: BizSampleReception) -> str:
code = (rec.sample_code or "").strip()
if code:
@@ -1177,6 +1241,7 @@ def get_receptions_map_for_samples(
results_map = check_result_svc.list_results_by_reception_ids(
db, reception_ids, tenant_no
)
production_map = prod_reception_svc.get_map_by_reception_ids(db, reception_ids, tenant_no)
out: Dict[str, Dict[str, Any]] = {}
for sid, raw_code in sample_code_by_id.items():
code = (raw_code or "").strip()
@@ -1185,7 +1250,9 @@ def get_receptions_map_for_samples(
rec = code_to_rec.get(code)
if not rec:
continue
out[sid] = _reception_detail_item(db, rec, tenant_no, results_map=results_map)
out[sid] = _reception_detail_item_with_production(
db, rec, tenant_no, results_map=results_map, production_map=production_map
)
return out
@@ -1210,6 +1277,7 @@ def get_receptions_map_for_donation_samples(
return {}
reception_ids = [r.id for r in rows]
results_map = check_result_svc.list_results_by_reception_ids(db, reception_ids, tenant_no)
production_map = prod_reception_svc.get_map_by_reception_ids(db, reception_ids, tenant_no)
out: Dict[str, Dict[str, Any]] = {}
for rec in rows:
sid = rec.donation_sample_id
@@ -1222,6 +1290,7 @@ def get_receptions_map_for_donation_samples(
item["receiveAttachmentFiles"] = urls_to_attachment_list(
rec.receive_attachments, db, tenant_no
)
_attach_production_reception(db, item, tenant_no, production_map=production_map)
out[sid] = item
return out
@@ -1467,4 +1536,7 @@ def get_reception_by_sample_code(
return {
"receptionId": reception.id if reception else None,
"sampleInfo": sample_info,
"productionReception": (
prod_reception_svc.get_by_reception_id(db, reception.id, tenant_no) if reception else None
),
}
+268 -53
View File
@@ -5,7 +5,7 @@ from datetime import datetime
import re
from typing import Any, Dict, List, Optional
from sqlalchemy import and_, case, func, or_
from sqlalchemy import and_, case, false, func, or_
from sqlalchemy.orm import Session
from app.core.utils import generate_uuid
@@ -13,6 +13,7 @@ from app.models.models import BizStorageFacility, BizStorageFacilitySlot
from app.services.storage_facility_code import (
assert_sibling_node_code_unique,
build_full_slot_code,
build_node_code_path,
cascade_refresh_slot_name_snapshots_for_nodes,
cascade_refresh_slot_name_snapshots_for_slots,
decode_slot_layout_order,
@@ -299,7 +300,12 @@ def list_slots(
q = q.filter(BizStorageFacilitySlot.tenant_no == tenant_no)
rows = q.order_by(BizStorageFacilitySlot.order_num.asc(), BizStorageFacilitySlot.create_time.asc()).all()
facility_by_id = load_facility_map(db, tenant_no or "") if tenant_no else {}
return [_slot_to_dict(x, facility_by_id) for x in rows]
items = [_slot_to_dict(x, facility_by_id) for x in rows]
if tenant_no:
from app.crud import storage_occupancy as occupancy_svc
items = occupancy_svc.enrich_slots_with_stored_cell_products(db, tenant_no, items)
return items
def _is_slot_available_row(row: Dict[str, Any]) -> bool:
@@ -323,12 +329,114 @@ def _slot_available_filter():
)
def _apply_slot_select_query_filters(
def _facility_node_ids_matching_keyword(
db: Session,
tenant_no: str,
keyword: str,
) -> set[str]:
like = f"%{keyword.strip()}%"
return {
row[0]
for row in db.query(BizStorageFacility.id)
.filter(
BizStorageFacility.tenant_no == tenant_no,
BizStorageFacility.del_flag == 0,
or_(
BizStorageFacility.node_name.like(like),
BizStorageFacility.node_code.like(like),
),
)
.all()
}
def _slot_matches_select_keyword(
slot: BizStorageFacilitySlot,
keyword: str,
facility_by_id: Dict[str, BizStorageFacility],
matching_node_ids: set[str],
) -> bool:
"""下拉关键词:完整 fullSlotCode 子串 + 备注 + 设施节点名/编号。"""
kw = keyword.strip().lower()
if not kw:
return True
row = _slot_to_dict(slot, facility_by_id)
display = _slot_select_display_name(row).lower()
if kw in display:
return True
remark = (row.get("remark") or "").lower()
if kw in remark:
return True
if slot.facility_node_id in matching_node_ids:
return True
return False
def _leaf_node_ids_for_path_prefix(
facility_by_id: Dict[str, BizStorageFacility],
path_prefix: str,
) -> set[str]:
"""按设施 node_code 路径前缀/子串匹配叶子节点(储物格挂在节点上)。"""
prefix = (path_prefix or "").strip().lower()
if not prefix:
return set()
result: set[str] = set()
for node_id in facility_by_id:
path = build_node_code_path(node_id, facility_by_id).lower()
if not path:
continue
if (
prefix in path
or path in prefix
or path.startswith(f"{prefix}-")
or prefix.startswith(f"{path}-")
):
result.add(node_id)
return result
def _build_slot_keyword_sql_filters(
db: Session,
tenant_no: str,
keyword: str,
facility_by_id: Dict[str, BizStorageFacility],
matching_node_ids: set[str],
):
"""SQL 预筛:slot_code / remark / 设施节点 + 路径型关键词分段,缩小 Python 校验范围。"""
kw = keyword.strip()
like = f"%{kw}%"
filters = [
BizStorageFacilitySlot.slot_code.like(like),
BizStorageFacilitySlot.remark.like(like),
]
if matching_node_ids:
filters.append(BizStorageFacilitySlot.facility_node_id.in_(list(matching_node_ids)))
if "-" in kw:
prefix, slot_part = kw.rsplit("-", 1)
prefix = prefix.strip()
slot_part = slot_part.strip()
if slot_part:
filters.append(BizStorageFacilitySlot.slot_code.like(f"%{slot_part}%"))
if prefix:
path_node_ids = _leaf_node_ids_for_path_prefix(facility_by_id, prefix)
if path_node_ids:
filters.append(BizStorageFacilitySlot.facility_node_id.in_(list(path_node_ids)))
return filters
# ---------------------------------------------------------------------------
# Slot select options (remote dropdown)
# ---------------------------------------------------------------------------
SLOT_SELECT_DEFAULT_PAGE_SIZE = 20
SLOT_SELECT_MAX_PAGE_SIZE = 50
SLOT_SELECT_KEYWORD_SCAN_LIMIT = 120
def _apply_slot_select_base_filters(
query,
*,
tenant_no: str,
keyword: Optional[str] = None,
available_only: bool = False,
include_slot_ids: Optional[List[str]] = None,
):
@@ -346,35 +454,121 @@ def _apply_slot_select_query_filters(
)
else:
filtered = filtered.filter(availability)
kw = (keyword or "").strip()
if kw:
like = f"%{kw}%"
matching_node_ids = [
row[0]
for row in db.query(BizStorageFacility.id)
.filter(
BizStorageFacility.tenant_no == tenant_no,
BizStorageFacility.del_flag == 0,
or_(
BizStorageFacility.node_name.like(like),
BizStorageFacility.node_code.like(like),
),
)
.all()
]
keyword_filters = [
BizStorageFacilitySlot.slot_code.like(like),
BizStorageFacilitySlot.remark.like(like),
]
if matching_node_ids:
keyword_filters.append(
BizStorageFacilitySlot.facility_node_id.in_(matching_node_ids)
)
filtered = filtered.filter(or_(*keyword_filters))
return filtered
def _search_slot_select_matched_ids(
db: Session,
filtered,
tenant_no: str,
keyword: str,
*,
max_results: int,
) -> List[str]:
"""关键词匹配储物格 ID(限量扫描,路径型编码优先精确匹配)。"""
kw = (keyword or "").strip()
if not kw or max_results <= 0:
return []
facility_by_id = load_facility_map(db, tenant_no)
path_cache = {
node_id: build_node_code_path(node_id, facility_by_id) for node_id in facility_by_id
}
matching_node_ids = _facility_node_ids_matching_keyword(db, tenant_no, kw)
matched_ids: List[str] = []
seen: set[str] = set()
def collect(rows: List[BizStorageFacilitySlot]) -> bool:
for slot in rows:
sid = slot.id
if sid in seen:
continue
if _slot_matches_select_keyword(slot, kw, facility_by_id, matching_node_ids):
seen.add(sid)
matched_ids.append(sid)
if len(matched_ids) >= max_results:
return True
return False
order_clause = (
BizStorageFacilitySlot.order_num.asc(),
BizStorageFacilitySlot.create_time.asc(),
)
# 快路径:完整路径型编码 3-1-1-53 → 路径 3-1-1 + 格位 53
if "-" in kw:
prefix, slot_part = kw.rsplit("-", 1)
prefix = prefix.strip()
slot_part = slot_part.strip()
if prefix and slot_part:
prefix_lower = prefix.lower()
exact_nodes = [
node_id
for node_id, path in path_cache.items()
if path.lower() == prefix_lower
]
if exact_nodes:
exact_rows = (
filtered.filter(
BizStorageFacilitySlot.facility_node_id.in_(exact_nodes),
BizStorageFacilitySlot.slot_code.like(f"{slot_part}%"),
)
.order_by(*order_clause)
.limit(max(max_results * 2, 10))
.all()
)
if collect(exact_rows):
return matched_ids
keyword_filters = _build_slot_keyword_sql_filters(
db, tenant_no, kw, facility_by_id, matching_node_ids
)
sql_q = filtered.filter(or_(*keyword_filters)).order_by(*order_clause)
offset = 0
batch_size = 40
while len(matched_ids) < max_results and offset < SLOT_SELECT_KEYWORD_SCAN_LIMIT:
rows = sql_q.offset(offset).limit(batch_size).all()
if not rows:
break
if collect(rows):
return matched_ids
offset += batch_size
return matched_ids
def _apply_slot_select_query_filters(
db: Session,
query,
*,
tenant_no: str,
keyword: Optional[str] = None,
available_only: bool = False,
include_slot_ids: Optional[List[str]] = None,
):
"""兼容旧调用:无关键词时等同 base;有关键词时返回 ID 过滤后的 query。"""
filtered = _apply_slot_select_base_filters(
query,
available_only=available_only,
include_slot_ids=include_slot_ids,
)
kw = (keyword or "").strip()
if not kw:
return filtered
matched_ids = _search_slot_select_matched_ids(
db,
filtered,
tenant_no,
kw,
max_results=SLOT_SELECT_KEYWORD_SCAN_LIMIT,
)
if not matched_ids:
return filtered.filter(false())
return filtered.filter(BizStorageFacilitySlot.id.in_(matched_ids))
def list_slot_select_options(
db: Session,
*,
@@ -384,36 +578,57 @@ def list_slot_select_options(
available_only: bool = False,
include_slot_ids: Optional[List[str]] = None,
page: int = 1,
page_size: int = 100,
page_size: int = SLOT_SELECT_DEFAULT_PAGE_SIZE,
) -> tuple[List[Dict[str, Any]], int]:
"""Paginated storage slot options for remote select; filter & paginate in SQL."""
filtered = _apply_slot_select_query_filters(
db,
"""储物格下拉远程选项:默认 20 条;关键词检索限量扫描 + 路径快路径。"""
page = max(int(page or 1), 1)
page_size = max(
min(int(page_size or SLOT_SELECT_DEFAULT_PAGE_SIZE), SLOT_SELECT_MAX_PAGE_SIZE),
1,
)
need_count = page * page_size
filtered = _apply_slot_select_base_filters(
query,
tenant_no=tenant_no,
keyword=keyword,
available_only=available_only,
include_slot_ids=include_slot_ids,
)
total = (
filtered.order_by(None).with_entities(func.count(BizStorageFacilitySlot.id)).scalar()
or 0
kw = (keyword or "").strip()
order_clause = (
BizStorageFacilitySlot.order_num.asc(),
BizStorageFacilitySlot.create_time.asc(),
)
page = max(int(page or 1), 1)
page_size = max(min(int(page_size or 100), 200), 1)
start = (page - 1) * page_size
rows = (
filtered.order_by(
BizStorageFacilitySlot.order_num.asc(),
BizStorageFacilitySlot.create_time.asc(),
if kw:
matched_ids = _search_slot_select_matched_ids(
db,
filtered,
tenant_no,
kw,
max_results=need_count,
)
total = len(matched_ids)
page_ids = matched_ids[(page - 1) * page_size : page * page_size]
if not page_ids:
return [], total
rows_by_id = {
row.id: row
for row in filtered.filter(BizStorageFacilitySlot.id.in_(page_ids)).all()
}
rows = [rows_by_id[sid] for sid in page_ids if sid in rows_by_id]
else:
total = (
filtered.order_by(None)
.with_entities(func.count(BizStorageFacilitySlot.id))
.scalar()
or 0
)
rows = (
filtered.order_by(*order_clause)
.offset((page - 1) * page_size)
.limit(page_size)
.all()
)
.offset(start)
.limit(page_size)
.all()
)
if not rows:
return [], int(total)
+97 -2
View File
@@ -170,6 +170,99 @@ def _row_to_dict(c: BizStorageSlotOccupancy) -> Dict[str, Any]:
}
def _load_cell_product_map(
db: Session,
tenant_no: str,
product_ids: List[str],
) -> Dict[str, Dict[str, Any]]:
ids = [i for i in { (x or "").strip() for x in product_ids } if i]
if not ids:
return {}
from app.crud.cell_product import product_to_response
q = db.query(BizCellProduct).filter(
BizCellProduct.id.in_(ids),
BizCellProduct.del_flag == 0,
)
if tenant_no:
q = q.filter(BizCellProduct.tenant_no == tenant_no)
return {p.id: product_to_response(db, tenant_no, p) for p in q.all()}
def _attach_cell_product_fields(item: Dict[str, Any], cp: Dict[str, Any]) -> None:
item["cellProduct"] = cp
item["productTypeName"] = cp.get("productTypeName") or ""
item["specName"] = cp.get("specName") or ""
item["passage"] = cp.get("passage") or ""
item["batchNo"] = cp.get("batchNo") or ""
item["productStatus"] = cp.get("productStatus") or ""
item["expectedCellCount"] = cp.get("expectedCellCount")
item["viability"] = cp.get("viability")
freeze = cp.get("freezeDate") or ""
expiry = cp.get("expiryDate") or ""
item["freezeDate"] = freeze[:10] if freeze else ""
item["expiryDate"] = expiry[:10] if expiry else ""
item["cellProductSourceTypeLabel"] = cp.get("sourceTypeLabel") or ""
def enrich_occupancy_items(
db: Session,
tenant_no: str,
items: List[Dict[str, Any]],
) -> List[Dict[str, Any]]:
cp_ids = [
(i.get("itemId") or "").strip()
for i in items
if (i.get("itemType") or "") == "cell_product" and (i.get("itemId") or "").strip()
]
cp_map = _load_cell_product_map(db, tenant_no, cp_ids)
for item in items:
if (item.get("itemType") or "") != "cell_product":
continue
cp = cp_map.get((item.get("itemId") or "").strip())
if cp:
_attach_cell_product_fields(item, cp)
return items
def enrich_slots_with_stored_cell_products(
db: Session,
tenant_no: str,
slots: List[Dict[str, Any]],
) -> List[Dict[str, Any]]:
slot_ids = [s.get("id") for s in slots if int(s.get("occupiedCount") or 0) > 0 and s.get("id")]
if not slot_ids:
return slots
occs = (
db.query(BizStorageSlotOccupancy)
.filter(
BizStorageSlotOccupancy.slot_id.in_(slot_ids),
BizStorageSlotOccupancy.occupancy_status == "stored",
BizStorageSlotOccupancy.del_flag == 0,
)
.all()
)
occ_by_slot = {o.slot_id: o for o in occs}
cp_ids = [
o.item_id
for o in occs
if (o.item_type or "") == "cell_product" and (o.item_id or "").strip()
]
cp_map = _load_cell_product_map(db, tenant_no, cp_ids)
for slot in slots:
occ = occ_by_slot.get(slot.get("id"))
if not occ:
continue
slot["storedItemType"] = occ.item_type or ""
slot["storedItemCode"] = occ.item_code or ""
slot["storedItemName"] = occ.item_name or ""
if (occ.item_type or "") == "cell_product" and (occ.item_id or "").strip():
cp = cp_map.get(occ.item_id)
if cp:
slot["storedCellProduct"] = cp
return slots
def _refresh_slot_cache(db: Session, slot_id: str) -> None:
"""刷新 slot 的 occupied_count / last_item_type / last_stored_at / slot_status"""
slot = db.query(BizStorageFacilitySlot).filter(
@@ -349,7 +442,8 @@ def list_occupancies(
.limit(page_size)
.all()
)
return {"items": [_row_to_dict(r) for r in rows], "total": int(total)}
items = enrich_occupancy_items(db, tenant_no, [_row_to_dict(r) for r in rows])
return {"items": items, "total": int(total)}
def list_occupancy_history(
@@ -408,4 +502,5 @@ def list_occupancy_history(
.limit(page_size)
.all()
)
return {"items": [_row_to_dict(r) for r in rows], "total": int(total)}
items = enrich_occupancy_items(db, tenant_no, [_row_to_dict(r) for r in rows])
return {"items": items, "total": int(total)}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "label": "sample_production_reception.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L1"}, {"id": "api_sample_production_reception_get_tenant_no", "label": "_get_tenant_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L31"}, {"id": "api_sample_production_reception_get_current_user_id", "label": "_get_current_user_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L41"}, {"id": "api_sample_production_reception_productionreceptionbody", "label": "ProductionReceptionBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L48"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "api_sample_production_reception_body_to_payload", "label": "_body_to_payload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L73"}, {"id": "api_sample_production_reception_resolve_reception_id", "label": "_resolve_reception_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L99"}, {"id": "api_sample_production_reception_get_production_reception_by_sample_code", "label": "get_production_reception_by_sample_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L123"}, {"id": "api_sample_production_reception_get_production_reception_detail", "label": "get_production_reception_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L155"}, {"id": "api_sample_production_reception_post_production_reception", "label": "post_production_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L173"}, {"id": "api_sample_production_reception_put_production_reception", "label": "put_production_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L220"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "target": "app_core_database", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "target": "app_core_menu_guard", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "target": "app_core_response", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py", "source_location": "L10", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_production_reception_py", "target": "app_core_utils", "relation": "impoLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_process_route_py", "label": "process_route.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L1"}, {"id": "crud_process_route_route_row_to_dict", "label": "_route_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L32"}, {"id": "crud_process_route_step_row_to_dict", "label": "_step_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L48"}, {"id": "crud_process_route_step_reagent_row_to_dict", "label": "_step_reagent_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L64"}, {"id": "crud_process_route_step_consumable_row_to_dict", "label": "_step_consumable_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L79"}, {"id": "crud_process_route_step_output_row_to_dict", "label": "_step_output_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L94"}, {"id": "crud_process_route_step_data_collection_row_to_dict", "label": "_step_data_collection_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L106"}, {"id": "crud_process_route_list_routes", "label": "list_routes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L121"}, {"id": "crud_process_route_get_route", "label": "get_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L165"}, {"id": "crud_process_route_get_route_detail", "label": "get_route_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L171"}, {"id": "crud_process_route_create_route", "label": "create_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L209"}, {"id": "crud_process_route_update_route", "label": "update_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L240"}, {"id": "crud_process_route_set_current_route", "label": "set_current_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L256"}, {"id": "crud_process_route_soft_delete_sub_records", "label": "_soft_delete_sub_records()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L282"}, {"id": "crud_process_route_create_step_reagent", "label": "_create_step_reagent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L292"}, {"id": "crud_process_route_create_step_consumable", "label": "_create_step_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L308"}, {"id": "crud_process_route_create_step_output", "label": "_create_step_output()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L324"}, {"id": "crud_process_route_create_step_data_collection", "label": "_create_step_data_collection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L337"}, {"id": "crud_process_route_add_step", "label": "add_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L353"}, {"id": "crud_process_route_update_step", "label": "update_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L428"}, {"id": "crud_process_route_reorder_steps", "label": "reorder_steps()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L447"}, {"id": "crud_process_route_copy_step", "label": "copy_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L461"}, {"id": "crud_process_route_soft_delete_step", "label": "soft_delete_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L565"}, {"id": "crud_process_route_soft_delete_routLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L1"}, {"id": "crud_production_task_require_requisition_for_catalog_material", "label": "_require_requisition_for_catalog_material()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L49"}, {"id": "crud_production_task_production_conclusion_label", "label": "_production_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L101"}, {"id": "crud_production_task_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L108"}, {"id": "crud_production_task_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L112"}, {"id": "crud_production_task_enrich_outbound_task_items", "label": "_enrich_outbound_task_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L119"}, {"id": "crud_production_task_generate_task_no", "label": "_generate_task_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L253"}, {"id": "crud_production_task_task_to_dict", "label": "_task_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L267"}, {"id": "crud_production_task_step_to_dict", "label": "_step_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L294"}, {"id": "crud_production_task_step_reagent_to_dict", "label": "_step_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L321"}, {"id": "crud_production_task_step_configured_reagent_to_dict", "label": "_step_configured_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L338"}, {"id": "crud_production_task_step_consumable_to_dict", "label": "_step_consumable_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L354"}, {"id": "crud_production_task_step_output_to_dict", "label": "_step_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L371"}, {"id": "crud_production_task_step_data_collection_to_dict", "label": "_step_data_collection_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L383"}, {"id": "crud_production_task_task_input_to_dict", "label": "_task_input_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L395"}, {"id": "crud_production_task_task_output_to_dict", "label": "_task_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L417"}, {"id": "crud_production_task_soft_delete_sub", "label": "_soft_delete_sub()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L442"}, {"id": "crud_production_task_resolve_sub_table_order_num", "label": "_resolve_sub_table_order_num()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L455"}, {"id": "crud_production_task_empty_step_sub_tables", "label": "_empty_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L464"}, {"id": "crud_production_task_batch_load_step_sub_tables", "label": "_batch_load_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L474"}, {"id": "crud_production_task_step_sub_tables_to_dict", "label": "_step_sub_tables_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L574"}, {"id": "crud_production_task_clone_step_reagents", "label": "_clone_step_reagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_locatiLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "label": "equipment.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L1"}, {"id": "crud_equipment_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L17"}, {"id": "crud_equipment_norm_status", "label": "_norm_status()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L23"}, {"id": "crud_equipment_parse_date", "label": "_parse_date()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L39"}, {"id": "crud_equipment_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L57"}, {"id": "crud_equipment_list_equipments", "label": "list_equipments()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L77"}, {"id": "crud_equipment_get_equipment", "label": "get_equipment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L123"}, {"id": "crud_equipment_equipment_is_referenced", "label": "equipment_is_referenced()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L131"}, {"id": "crud_equipment_equipment_code_exists", "label": "equipment_code_exists()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L148"}, {"id": "crud_equipment_create_equipment", "label": "create_equipment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L163"}, {"id": "crud_equipment_update_equipment", "label": "update_equipment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L212"}, {"id": "crud_equipment_soft_delete_equipment", "label": "soft_delete_equipment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L269"}, {"id": "crud_equipment_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L281"}, {"id": "crud_equipment_rationale_1", "label": "\u8bbe\u5907 CRUD\uff08biz_equipment\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "target": "math", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "target": "decimal", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "target": "sqlalchemy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L10", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "target": "app_core_utils", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py", "source_location": "L12", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_equipment_py", "target": "app_models_models", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00codeLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_process_route_py", "label": "process_route.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L1"}, {"id": "crud_process_route_route_row_to_dict", "label": "_route_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L33"}, {"id": "crud_process_route_step_row_to_dict", "label": "_step_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L49"}, {"id": "crud_process_route_step_reagent_row_to_dict", "label": "_step_reagent_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L65"}, {"id": "crud_process_route_step_consumable_row_to_dict", "label": "_step_consumable_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L80"}, {"id": "crud_process_route_step_output_row_to_dict", "label": "_step_output_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L95"}, {"id": "crud_process_route_step_data_collection_row_to_dict", "label": "_step_data_collection_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L107"}, {"id": "crud_process_route_list_routes", "label": "list_routes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L122"}, {"id": "crud_process_route_get_route", "label": "get_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L166"}, {"id": "crud_process_route_get_route_detail", "label": "get_route_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L172"}, {"id": "crud_process_route_create_route", "label": "create_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L210"}, {"id": "crud_process_route_update_route", "label": "update_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L241"}, {"id": "crud_process_route_set_current_route", "label": "set_current_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L257"}, {"id": "crud_process_route_soft_delete_sub_records", "label": "_soft_delete_sub_records()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L283"}, {"id": "crud_process_route_create_step_reagent", "label": "_create_step_reagent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L293"}, {"id": "crud_process_route_create_step_consumable", "label": "_create_step_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L309"}, {"id": "crud_process_route_create_step_output", "label": "_create_step_output()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L325"}, {"id": "crud_process_route_create_step_data_collection", "label": "_create_step_data_collection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L338"}, {"id": "crud_process_route_add_step", "label": "add_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L354"}, {"id": "crud_process_route_update_step", "label": "update_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L429"}, {"id": "crud_process_route_reorder_steps", "label": "reorder_steps()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L448"}, {"id": "crud_process_route_copy_step", "label": "copy_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L462"}, {"id": "crud_process_route_soft_delete_step", "label": "soft_delete_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L566"}, {"id": "crud_process_route_soft_delete_routLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_models_models_py", "label": "models.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L1"}, {"id": "models_models_userrole", "label": "UserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L10"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysuser", "label": "SysUser", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L22"}, {"id": "base", "label": "Base", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysrole", "label": "SysRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L48"}, {"id": "models_models_sysuserrole", "label": "SysUserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L68"}, {"id": "models_models_sysrolemenu", "label": "SysRoleMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L87"}, {"id": "models_models_sysroledatascopedetail", "label": "SysRoleDataScopeDetail", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L106"}, {"id": "models_models_sysmenu", "label": "SysMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L126"}, {"id": "models_models_sysdept", "label": "SysDept", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L152"}, {"id": "models_models_systenant", "label": "SysTenant", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L175"}, {"id": "models_models_syssite", "label": "SysSite", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L195"}, {"id": "models_models_syspost", "label": "SysPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L221"}, {"id": "models_models_sysuserpost", "label": "SysUserPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L241"}, {"id": "models_models_bizitemunit", "label": "BizItemUnit", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L260"}, {"id": "models_models_bizexpresscompany", "label": "BizExpressCompany", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L279"}, {"id": "models_models_bizcustomer", "label": "BizCustomer", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L299"}, {"id": "models_models_bizcellsampletype", "label": "BizCellSampleType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L322"}, {"id": "models_models_bizcollectionregion", "label": "BizCollectionRegion", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L345"}, {"id": "models_models_bizcollectionhospital", "label": "BizCollectionHospital", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L363"}, {"id": "models_models_bizcollectionprotocolno", "label": "BizCollectionProtocolNo", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L382"}, {"id": "models_models_bizbiznosequence", "label": "BizBizNoSequence", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L404"}, {"id": "models_models_bizsamplecode", "label": "BizSampleCode", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L424"}, {"id": "models_models_sysdicttype", "label": "SysDictType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L452"}, {"id": "models_models_sysethnic", "label": "SysEthnic", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L471"}, {"id": "models_models_sysdictdata", "label": "SysDictData", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_cell_product_py", "label": "cell_product.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L1"}, {"id": "crud_cell_product_apply_cell_product_status_change", "label": "_apply_cell_product_status_change()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L31"}, {"id": "crud_cell_product_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L86"}, {"id": "crud_cell_product_build_facility_path_label", "label": "_build_facility_path_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L120"}, {"id": "crud_cell_product_enrich_product_dicts", "label": "_enrich_product_dicts()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L135"}, {"id": "crud_cell_product_product_to_response", "label": "product_to_response()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L271"}, {"id": "crud_cell_product_list_cell_products", "label": "list_cell_products()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L276"}, {"id": "crud_cell_product_get_cell_product", "label": "get_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L340"}, {"id": "crud_cell_product_create_cell_product", "label": "create_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L354"}, {"id": "crud_cell_product_update_cell_product", "label": "update_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L427"}, {"id": "crud_cell_product_delete_cell_product", "label": "delete_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L520"}, {"id": "crud_cell_product_next_code_start_seq", "label": "_next_code_start_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L537"}, {"id": "crud_cell_product_get_next_code", "label": "get_next_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L558"}, {"id": "crud_cell_product_normalize_passage_product_base", "label": "normalize_passage_product_base()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L569"}, {"id": "crud_cell_product_get_max_passage_product_seq", "label": "get_max_passage_product_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L580"}, {"id": "crud_cell_product_get_max_passage_product_seq_map", "label": "get_max_passage_product_seq_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L614"}, {"id": "crud_cell_product_get_max_product_suffix_seq", "label": "get_max_product_suffix_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L632"}, {"id": "crud_cell_product_product_code_exists", "label": "product_code_exists()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L664"}, {"id": "crud_cell_product_normalize_product_code_base", "label": "normalize_product_code_base()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L683"}, {"id": "crud_cell_product_build_split_product_codes", "label": "build_split_product_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L694"}, {"id": "crud_cell_product_reserve_next_codes", "label": "reserve_next_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L701"}, {"id": "crud_cell_product_validate_batch_items", "label": "_validate_batch_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L711"}, {"id": "crud_cell_product_create_cell_products_by_quantity", "label": "create_cell_products_by_quantity()", "file_type": "code"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L1"}, {"id": "crud_production_task_require_requisition_for_catalog_material", "label": "_require_requisition_for_catalog_material()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L53"}, {"id": "crud_production_task_production_conclusion_label", "label": "_production_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L105"}, {"id": "crud_production_task_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L112"}, {"id": "crud_production_task_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L116"}, {"id": "crud_production_task_enrich_outbound_task_items", "label": "_enrich_outbound_task_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L123"}, {"id": "crud_production_task_generate_task_no", "label": "_generate_task_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L257"}, {"id": "crud_production_task_task_to_dict", "label": "_task_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L271"}, {"id": "crud_production_task_step_to_dict", "label": "_step_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L300"}, {"id": "crud_production_task_step_reagent_to_dict", "label": "_step_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L325"}, {"id": "crud_production_task_step_configured_reagent_to_dict", "label": "_step_configured_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L342"}, {"id": "crud_production_task_step_consumable_to_dict", "label": "_step_consumable_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L358"}, {"id": "crud_production_task_step_output_to_dict", "label": "_step_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L375"}, {"id": "crud_production_task_step_data_collection_to_dict", "label": "_step_data_collection_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L387"}, {"id": "crud_production_task_task_input_to_dict", "label": "_task_input_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L399"}, {"id": "crud_production_task_task_output_to_dict", "label": "_task_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L421"}, {"id": "crud_production_task_soft_delete_sub", "label": "_soft_delete_sub()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L446"}, {"id": "crud_production_task_resolve_sub_table_order_num", "label": "_resolve_sub_table_order_num()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L459"}, {"id": "crud_production_task_empty_step_sub_tables", "label": "_empty_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L468"}, {"id": "crud_production_task_batch_load_step_sub_tables", "label": "_batch_load_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L478"}, {"id": "crud_production_task_step_sub_tables_to_dict", "label": "_step_sub_tables_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L578"}, {"id": "crud_production_task_clone_step_reagents", "label": "_clone_step_reagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_locatiLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_storage_facility_py", "label": "storage_facility.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L1"}, {"id": "crud_storage_facility_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L31"}, {"id": "crud_storage_facility_list_all_facilities", "label": "list_all_facilities()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L47"}, {"id": "crud_storage_facility_get_facility", "label": "get_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L70"}, {"id": "crud_storage_facility_get_children", "label": "get_children()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L79"}, {"id": "crud_storage_facility_collect_descendant_ids", "label": "collect_descendant_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L95"}, {"id": "crud_storage_facility_create_facility", "label": "create_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L108"}, {"id": "crud_storage_facility_update_facility", "label": "update_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L152"}, {"id": "crud_storage_facility_soft_delete_facility", "label": "soft_delete_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L210"}, {"id": "crud_storage_facility_slot_to_dict", "label": "_slot_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L236"}, {"id": "crud_storage_facility_aggregate_slot_stats_by_facility", "label": "aggregate_slot_stats_by_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L259"}, {"id": "crud_storage_facility_list_slots", "label": "list_slots()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L287"}, {"id": "crud_storage_facility_is_slot_available_row", "label": "_is_slot_available_row()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L311"}, {"id": "crud_storage_facility_slot_select_display_name", "label": "_slot_select_display_name()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L317"}, {"id": "crud_storage_facility_slot_available_filter", "label": "_slot_available_filter()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L323"}, {"id": "crud_storage_facility_facility_node_ids_matching_keyword", "label": "_facility_node_ids_matching_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L332"}, {"id": "crud_storage_facility_slot_matches_select_keyword", "label": "_slot_matches_select_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L353"}, {"id": "crud_storage_facility_leaf_node_ids_for_path_prefix", "label": "_leaf_node_ids_for_path_prefix()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L375"}, {"id": "crud_storage_facility_build_slot_keyword_sql_filters", "label": "_build_slot_keyword_sql_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L398"}, {"id": "crud_storage_facility_apply_slot_select_base_filters", "label": "_apply_slot_select_base_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L437"}, {"id": "crud_storage_facility_search_slot_select_matched_ids", "label": "_search_slot_select_matched_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L460"}, {"id": "crud_storage_facility_apply_slot_select_query_filters", "label": "_apply_slot_select_query_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/bacLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L1"}, {"id": "schemas_production_task_productiontaskcreate", "label": "ProductionTaskCreate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L6"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "schemas_production_task_productiontaskforwardbody", "label": "ProductionTaskForwardBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L17"}, {"id": "schemas_production_task_productiontaskassigneeupdate", "label": "ProductionTaskAssigneeUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L23"}, {"id": "schemas_production_task_productiontasklistquery", "label": "ProductionTaskListQuery", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L29"}, {"id": "schemas_production_task_productiontasklistbyworkordersbody", "label": "ProductionTaskListByWorkOrdersBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L38"}, {"id": "schemas_production_task_productiontaskupdate", "label": "ProductionTaskUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L48"}, {"id": "schemas_production_task_productiontaskstatusupdate", "label": "ProductionTaskStatusUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L55"}, {"id": "schemas_production_task_taskstepadd", "label": "TaskStepAdd", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L62"}, {"id": "schemas_production_task_taskstepupdate", "label": "TaskStepUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L73"}, {"id": "schemas_production_task_taskstepmaterialitem", "label": "TaskStepMaterialItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L83"}, {"id": "schemas_production_task_taskstepoutputitem", "label": "TaskStepOutputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L98"}, {"id": "schemas_production_task_taskstepdatacollectionitem", "label": "TaskStepDataCollectionItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L105"}, {"id": "schemas_production_task_taskinputitem", "label": "TaskInputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L112"}, {"id": "schemas_production_task_taskoutputitem", "label": "TaskOutputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L121"}, {"id": "schemas_production_task_taskstepreorderbody", "label": "TaskStepReorderBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L150"}, {"id": "schemas_production_task_productiontaskstepdispatchitem", "label": "ProductionTaskStepDispatchItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L156"}, {"id": "schemas_production_task_productiontaskstepdispatchbody", "label": "ProductionTaskStepDispatchBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L163"}, {"id": "schemas_production_task_rationale_39", "label": "\u6309\u591a\u4e2a\u5de5\u5355 ID \u6279\u91cf\u67e5\u8be2\u751f\u4ea7\u4efb\u52a1\uff08POST body\uff0c\u907f\u514d GET URL \u8fc7\u957f\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L39"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_api_operations_py", "label": "operations.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L1"}, {"id": "api_operations_get_tenant_no", "label": "_get_tenant_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L24"}, {"id": "api_operations_cleanroomcreatebody", "label": "CleanRoomCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L39"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "api_operations_cleanroomupdatebody", "label": "CleanRoomUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L52"}, {"id": "api_operations_list_clean_rooms", "label": "list_clean_rooms()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L66"}, {"id": "api_operations_create_clean_room", "label": "create_clean_room()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L91"}, {"id": "api_operations_update_clean_room", "label": "update_clean_room()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L117"}, {"id": "api_operations_delete_clean_room", "label": "delete_clean_room()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L146"}, {"id": "api_operations_accesslogcreatebody", "label": "AccessLogCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L164"}, {"id": "api_operations_accesslogupdatebody", "label": "AccessLogUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L178"}, {"id": "api_operations_parse_optional_dt", "label": "_parse_optional_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L191"}, {"id": "api_operations_list_access_logs", "label": "list_access_logs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L198"}, {"id": "api_operations_create_access_log", "label": "create_access_log()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L227"}, {"id": "api_operations_update_access_log", "label": "update_access_log()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L254"}, {"id": "api_operations_delete_access_log", "label": "delete_access_log()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L283"}, {"id": "api_operations_uvdisinfectlogcreatebody", "label": "UvDisinfectLogCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L301"}, {"id": "api_operations_uvdisinfectlogupdatebody", "label": "UvDisinfectLogUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L313"}, {"id": "api_operations_list_uv_disinfect_logs", "label": "list_uv_disinfect_logs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L325"}, {"id": "api_operations_create_uv_disinfect_log", "label": "create_uv_disinfect_log()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L356"}, {"id": "api_operations_update_uv_disinfect_log", "label": "update_uv_disinfect_log()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L381"}, {"id": "api_operations_delete_uv_disinfect_log", "label": "delete_uv_disinfect_log()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L409"}, {"id": "api_operations_storagefacilitycreatebody", "label": "StorageFacilityCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L427"}, {"id": "api_operations_storagefacilityupdatebody", "label": "StorageFacilityUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py", "source_location": "L439"}, {"id": "api_operations_list_storage_facilities", "labelLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L1"}, {"id": "schemas_production_task_productiontaskcreate", "label": "ProductionTaskCreate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L6"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "schemas_production_task_productiontaskforwardbody", "label": "ProductionTaskForwardBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L17"}, {"id": "schemas_production_task_productiontaskassigneeupdate", "label": "ProductionTaskAssigneeUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L23"}, {"id": "schemas_production_task_productiontasklistquery", "label": "ProductionTaskListQuery", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L29"}, {"id": "schemas_production_task_productiontasklistbyworkordersbody", "label": "ProductionTaskListByWorkOrdersBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L38"}, {"id": "schemas_production_task_productiontaskupdate", "label": "ProductionTaskUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L48"}, {"id": "schemas_production_task_productiontaskstatusupdate", "label": "ProductionTaskStatusUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L57"}, {"id": "schemas_production_task_taskstepadd", "label": "TaskStepAdd", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L64"}, {"id": "schemas_production_task_taskstepupdate", "label": "TaskStepUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L75"}, {"id": "schemas_production_task_taskstepmaterialitem", "label": "TaskStepMaterialItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L85"}, {"id": "schemas_production_task_taskstepoutputitem", "label": "TaskStepOutputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L100"}, {"id": "schemas_production_task_taskstepdatacollectionitem", "label": "TaskStepDataCollectionItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L107"}, {"id": "schemas_production_task_taskinputitem", "label": "TaskInputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L114"}, {"id": "schemas_production_task_taskoutputitem", "label": "TaskOutputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L123"}, {"id": "schemas_production_task_taskstepreorderbody", "label": "TaskStepReorderBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L152"}, {"id": "schemas_production_task_productiontaskstepdispatchitem", "label": "ProductionTaskStepDispatchItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L158"}, {"id": "schemas_production_task_productiontaskstepdispatchbody", "label": "ProductionTaskStepDispatchBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L165"}, {"id": "schemas_production_task_rationale_39", "label": "\u6309\u591a\u4e2a\u5de5\u5355 ID \u6279\u91cf\u67e5\u8be2\u751f\u4ea7\u4efb\u52a1\uff08POST body\uff0c\u907f\u514d GET URL \u8fc7\u957f\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L39"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_productionLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_models_models_py", "label": "models.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L1"}, {"id": "models_models_userrole", "label": "UserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L10"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysuser", "label": "SysUser", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L22"}, {"id": "base", "label": "Base", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysrole", "label": "SysRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L48"}, {"id": "models_models_sysuserrole", "label": "SysUserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L68"}, {"id": "models_models_sysrolemenu", "label": "SysRoleMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L87"}, {"id": "models_models_sysroledatascopedetail", "label": "SysRoleDataScopeDetail", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L106"}, {"id": "models_models_sysmenu", "label": "SysMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L126"}, {"id": "models_models_sysdept", "label": "SysDept", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L152"}, {"id": "models_models_systenant", "label": "SysTenant", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L175"}, {"id": "models_models_syssite", "label": "SysSite", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L195"}, {"id": "models_models_syspost", "label": "SysPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L221"}, {"id": "models_models_sysuserpost", "label": "SysUserPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L241"}, {"id": "models_models_bizitemunit", "label": "BizItemUnit", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L260"}, {"id": "models_models_bizexpresscompany", "label": "BizExpressCompany", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L279"}, {"id": "models_models_bizcustomer", "label": "BizCustomer", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L299"}, {"id": "models_models_bizcellsampletype", "label": "BizCellSampleType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L322"}, {"id": "models_models_bizcollectionregion", "label": "BizCollectionRegion", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L345"}, {"id": "models_models_bizcollectionhospital", "label": "BizCollectionHospital", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L363"}, {"id": "models_models_bizcollectionprotocolno", "label": "BizCollectionProtocolNo", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L382"}, {"id": "models_models_bizbiznosequence", "label": "BizBizNoSequence", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L404"}, {"id": "models_models_bizsamplecode", "label": "BizSampleCode", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L424"}, {"id": "models_models_sysdicttype", "label": "SysDictType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L452"}, {"id": "models_models_sysethnic", "label": "SysEthnic", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L471"}, {"id": "models_models_sysdictdata", "label": "SysDictData", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "label": "cell_product.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L1"}, {"id": "schemas_cell_product_coerce_optional_datetime", "label": "_coerce_optional_datetime()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L9"}, {"id": "schemas_cell_product_cellproductbatchitem", "label": "CellProductBatchItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L23"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "schemas_cell_product_validate_item_passage", "label": "validate_item_passage()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L37"}, {"id": "schemas_cell_product_validate_item_viability", "label": "validate_item_viability()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L47"}, {"id": "schemas_cell_product_cellproductcreate", "label": "CellProductCreate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L53"}, {"id": "schemas_cell_product_coerce_date_fields", "label": "coerce_date_fields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L78"}, {"id": "schemas_cell_product_validate_viability", "label": "validate_viability()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L83"}, {"id": "schemas_cell_product_validate_passage", "label": "validate_passage()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L90"}, {"id": "schemas_cell_product_cellproductupdate", "label": "CellProductUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L99"}, {"id": "schemas_cell_product_validate_status", "label": "validate_status()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L144"}, {"id": "schemas_cell_product_cellproductlistquery", "label": "CellProductListQuery", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L151"}, {"id": "schemas_cell_product_rationale_10", "label": "\u517c\u5bb9\u524d\u7aef date-picker \u7684 YYYY-MM-DD \u4e0e\u5b8c\u6574\u65e5\u671f\u65f6\u95f4\u5b57\u7b26\u4e32\u3002", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L10"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "app_core_utils", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "schemas_cell_product_coerce_optional_datetime", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "schemas_cell_product_cellproductbatchitem", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L23", "weight": 1.0}, {"source": "schemas_cell_product_cellproductbatchitem", "target": "basemodel", "relation": "inherits", "confidLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_code_py", "label": "sample_code.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L1"}, {"id": "crud_sample_code_resolve_issued_user_display_name", "label": "_resolve_issued_user_display_name()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L15"}, {"id": "crud_sample_code_parse_issued_time", "label": "_parse_issued_time()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L32"}, {"id": "crud_sample_code_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L44"}, {"id": "crud_sample_code_sample_code_exists", "label": "sample_code_exists()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L61"}, {"id": "crud_sample_code_list_sample_codes", "label": "list_sample_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L73"}, {"id": "crud_sample_code_get_sample_code", "label": "get_sample_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L125"}, {"id": "crud_sample_code_create_sample_code", "label": "create_sample_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L132"}, {"id": "crud_sample_code_update_sample_code", "label": "update_sample_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L188"}, {"id": "crud_sample_code_soft_delete_sample_code", "label": "soft_delete_sample_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L240"}, {"id": "crud_sample_code_batch_generate_sample_codes", "label": "batch_generate_sample_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L250"}, {"id": "crud_sample_code_batch_issue_sample_codes", "label": "batch_issue_sample_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L333"}, {"id": "crud_sample_code_batch_revoke_sample_codes", "label": "batch_revoke_sample_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L378"}, {"id": "crud_sample_code_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L417"}, {"id": "crud_sample_code_rationale_1", "label": "\u6837\u672c\u7f16\u7801\u6c60 CRUD\uff08biz_sample_code\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L1"}, {"id": "crud_sample_code_rationale_261", "label": "\u6279\u91cf\u751f\u6210\u6837\u672c\u7f16\u7801: \u7c7b\u578b\u524d\u7f00 + \u4e2d\u95f4\u6bb5 + \u8865\u96f6\u5e8f\u53f7", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L261"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_code_py", "target": "math", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_code_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_code_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_code_py", "target": "sqlalchemy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_code_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py", "source_location": "L9", "weight": 1.0}, {"sourcLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_api_production_py", "label": "production.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L1"}, {"id": "api_production_legacy_material_write_gone", "label": "_legacy_material_write_gone()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L75"}, {"id": "api_production_get_tenant_no", "label": "_get_tenant_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L79"}, {"id": "api_production_get_current_user_id", "label": "_get_current_user_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L87"}, {"id": "api_production_consumablecreatebody", "label": "ConsumableCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L96"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "api_production_consumableupdatebody", "label": "ConsumableUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L110"}, {"id": "api_production_list_consumables", "label": "list_consumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L125"}, {"id": "api_production_list_all_consumables", "label": "list_all_consumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L139"}, {"id": "api_production_create_consumable", "label": "create_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L149"}, {"id": "api_production_update_consumable", "label": "update_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L158"}, {"id": "api_production_delete_consumable", "label": "delete_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L168"}, {"id": "api_production_stockinbody", "label": "StockInBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L176"}, {"id": "api_production_stockoutbody", "label": "StockOutBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L182"}, {"id": "api_production_batchstockinitem", "label": "BatchStockInItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L190"}, {"id": "api_production_batchstockinbody", "label": "BatchStockInBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L197"}, {"id": "api_production_batchstockoutitem", "label": "BatchStockOutItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L203"}, {"id": "api_production_batchstockoutbody", "label": "BatchStockOutBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L209"}, {"id": "api_production_consumable_stock_in", "label": "consumable_stock_in()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L218"}, {"id": "api_production_consumable_stock_out", "label": "consumable_stock_out()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L240"}, {"id": "api_production_consumable_batch_stock_in", "label": "consumable_batch_stock_in()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L264"}, {"id": "api_production_consumable_batch_stock_out", "label": "consumable_batch_stock_out()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L282"}, {"id": "api_production_list_consumable_stock_logs", "label": "list_consumable_stock_logs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L301"}, {"id": "api_production_list_all_consumable_stock_logs", "label": "list_all_consumable_stock_logs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L320"}, {"id": "api_production_reagentcreatebody", "label": "ReagentCreateBody"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_qc_work_order_py", "label": "qc_work_order.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L1"}, {"id": "crud_qc_work_order_resolve_outbound_biz_type_for_schedule", "label": "resolve_outbound_biz_type_for_schedule()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L95"}, {"id": "crud_qc_work_order_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L136"}, {"id": "crud_qc_work_order_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L142"}, {"id": "crud_qc_work_order_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L146"}, {"id": "crud_qc_work_order_reception_source_label", "label": "_reception_source_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L153"}, {"id": "crud_qc_work_order_qc_biz_type_label", "label": "_qc_biz_type_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L158"}, {"id": "crud_qc_work_order_work_order_qc_biz_type", "label": "_work_order_qc_biz_type()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L163"}, {"id": "crud_qc_work_order_validate_cell_product_id", "label": "_validate_cell_product_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L170"}, {"id": "crud_qc_work_order_enrich_work_order_cell_products", "label": "_enrich_work_order_cell_products()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L182"}, {"id": "crud_qc_work_order_enrich_work_order_step_outputs", "label": "_enrich_work_order_step_outputs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L211"}, {"id": "crud_qc_work_order_enrich_work_order_qc_targets", "label": "_enrich_work_order_qc_targets()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L250"}, {"id": "crud_qc_work_order_enrich_outbound_work_orders", "label": "_enrich_outbound_work_orders()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L257"}, {"id": "crud_qc_work_order_outbound_qc_work_order_ids_by_keyword", "label": "_outbound_qc_work_order_ids_by_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L378"}, {"id": "crud_qc_work_order_accept_conclusion_label", "label": "_accept_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L425"}, {"id": "crud_qc_work_order_load_sample_type_name_map", "label": "_load_sample_type_name_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L430"}, {"id": "crud_qc_work_order_effective_reception_source", "label": "_effective_reception_source()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L442"}, {"id": "crud_qc_work_order_effective_donation_sample_id", "label": "_effective_donation_sample_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L451"}, {"id": "crud_qc_work_order_effective_protocol_sample_id", "label": "_effective_protocol_sample_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L460"}, {"id": "crud_qc_work_order_sample_type_name_for_item", "label": "_sample_type_name_for_item()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L468"}, {"id": "crud_qc_work_order_sample_type_name_for_reception", "label": "_sample_type_name_for_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py", "source_location": "L486"}, {"id": "crud_qc_work_order_enrich_work_order_list_items", "label": "_enrich_work_order_list_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/bLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L1"}, {"id": "crud_production_task_require_requisition_for_catalog_material", "label": "_require_requisition_for_catalog_material()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L49"}, {"id": "crud_production_task_production_conclusion_label", "label": "_production_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L101"}, {"id": "crud_production_task_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L108"}, {"id": "crud_production_task_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L112"}, {"id": "crud_production_task_enrich_outbound_task_items", "label": "_enrich_outbound_task_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L119"}, {"id": "crud_production_task_generate_task_no", "label": "_generate_task_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L253"}, {"id": "crud_production_task_task_to_dict", "label": "_task_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L267"}, {"id": "crud_production_task_step_to_dict", "label": "_step_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L294"}, {"id": "crud_production_task_step_reagent_to_dict", "label": "_step_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L321"}, {"id": "crud_production_task_step_configured_reagent_to_dict", "label": "_step_configured_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L338"}, {"id": "crud_production_task_step_consumable_to_dict", "label": "_step_consumable_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L354"}, {"id": "crud_production_task_step_output_to_dict", "label": "_step_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L371"}, {"id": "crud_production_task_step_data_collection_to_dict", "label": "_step_data_collection_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L383"}, {"id": "crud_production_task_task_input_to_dict", "label": "_task_input_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L395"}, {"id": "crud_production_task_task_output_to_dict", "label": "_task_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L417"}, {"id": "crud_production_task_soft_delete_sub", "label": "_soft_delete_sub()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L442"}, {"id": "crud_production_task_resolve_sub_table_order_num", "label": "_resolve_sub_table_order_num()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L455"}, {"id": "crud_production_task_empty_step_sub_tables", "label": "_empty_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L464"}, {"id": "crud_production_task_batch_load_step_sub_tables", "label": "_batch_load_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L474"}, {"id": "crud_production_task_step_sub_tables_to_dict", "label": "_step_sub_tables_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L574"}, {"id": "crud_production_task_clone_step_reagents", "label": "_clone_step_reagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_locatiLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_process_py", "label": "process.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L1"}, {"id": "crud_process_reagent_row_to_dict", "label": "_reagent_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L25"}, {"id": "crud_process_consumable_row_to_dict", "label": "_consumable_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L40"}, {"id": "crud_process_output_row_to_dict", "label": "_output_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L54"}, {"id": "crud_process_data_collection_row_to_dict", "label": "_data_collection_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L66"}, {"id": "crud_process_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L77"}, {"id": "crud_process_list_processes", "label": "list_processes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L94"}, {"id": "crud_process_list_all_processes", "label": "list_all_processes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L145"}, {"id": "crud_process_get_process", "label": "get_process()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L154"}, {"id": "crud_process_get_process_detail", "label": "get_process_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L162"}, {"id": "crud_process_process_code_exists", "label": "process_code_exists()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L202"}, {"id": "crud_process_create_sub_reagent", "label": "_create_sub_reagent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L211"}, {"id": "crud_process_create_sub_consumable", "label": "_create_sub_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L234"}, {"id": "crud_process_create_sub_output", "label": "_create_sub_output()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L257"}, {"id": "crud_process_sub_item_with_order", "label": "_sub_item_with_order()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L277"}, {"id": "crud_process_create_sub_data_collection", "label": "_create_sub_data_collection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L284"}, {"id": "crud_process_create_process", "label": "create_process()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L303"}, {"id": "crud_process_soft_delete_sub_records", "label": "_soft_delete_sub_records()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L369"}, {"id": "crud_process_update_process", "label": "update_process()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L381"}, {"id": "crud_process_soft_delete_process", "label": "soft_delete_process()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L454"}, {"id": "crud_process_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L471"}, {"id": "crud_process_rationale_1", "label": "\u5de5\u827a\u5e93 CRUD\uff08biz_process + biz_process_reagent/consumable/output\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L1"}, {"id": "crud_process_rationale_278", "label": "\u4fdd\u5b58\u5b50\u8868\u65f6\u6309\u5217\u8868\u4e0b\u6807\u5199\u5165 order_num\uff0c\u907f\u514d\u540c\u6279 create_time \u5bfc\u81f4\u67e5\u8be2\u987a\u5e8f\u6f02\u79fb\u3002", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L278"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_processLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_cell_product_py", "label": "cell_product.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L1"}, {"id": "crud_cell_product_apply_cell_product_status_change", "label": "_apply_cell_product_status_change()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L31"}, {"id": "crud_cell_product_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L86"}, {"id": "crud_cell_product_build_facility_path_label", "label": "_build_facility_path_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L120"}, {"id": "crud_cell_product_enrich_product_dicts", "label": "_enrich_product_dicts()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L135"}, {"id": "crud_cell_product_product_to_response", "label": "product_to_response()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L271"}, {"id": "crud_cell_product_list_cell_products", "label": "list_cell_products()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L276"}, {"id": "crud_cell_product_get_cell_product", "label": "get_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L340"}, {"id": "crud_cell_product_create_cell_product", "label": "create_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L354"}, {"id": "crud_cell_product_update_cell_product", "label": "update_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L427"}, {"id": "crud_cell_product_delete_cell_product", "label": "delete_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L520"}, {"id": "crud_cell_product_next_code_start_seq", "label": "_next_code_start_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L537"}, {"id": "crud_cell_product_get_next_code", "label": "get_next_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L558"}, {"id": "crud_cell_product_get_max_passage_product_seq", "label": "get_max_passage_product_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L568"}, {"id": "crud_cell_product_get_max_passage_product_seq_map", "label": "get_max_passage_product_seq_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L602"}, {"id": "crud_cell_product_get_max_product_suffix_seq", "label": "get_max_product_suffix_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L620"}, {"id": "crud_cell_product_product_code_exists", "label": "product_code_exists()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L652"}, {"id": "crud_cell_product_normalize_product_code_base", "label": "normalize_product_code_base()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L671"}, {"id": "crud_cell_product_build_split_product_codes", "label": "build_split_product_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L682"}, {"id": "crud_cell_product_reserve_next_codes", "label": "reserve_next_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L689"}, {"id": "crud_cell_product_validate_batch_items", "label": "_validate_batch_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L699"}, {"id": "crud_cell_product_create_cell_products_by_quantity", "label": "create_cell_products_by_quantity()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L744"}, {"id": "crud_cell_product_create_cell_products_batch", "label": "create_cell_products_batch()", "file_type": "code", "sourcLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_cell_product_py", "label": "cell_product.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L1"}, {"id": "crud_cell_product_apply_cell_product_status_change", "label": "_apply_cell_product_status_change()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L31"}, {"id": "crud_cell_product_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L86"}, {"id": "crud_cell_product_build_facility_path_label", "label": "_build_facility_path_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L120"}, {"id": "crud_cell_product_enrich_product_dicts", "label": "_enrich_product_dicts()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L135"}, {"id": "crud_cell_product_product_to_response", "label": "product_to_response()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L271"}, {"id": "crud_cell_product_list_cell_products", "label": "list_cell_products()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L276"}, {"id": "crud_cell_product_get_cell_product", "label": "get_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L340"}, {"id": "crud_cell_product_create_cell_product", "label": "create_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L354"}, {"id": "crud_cell_product_update_cell_product", "label": "update_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L427"}, {"id": "crud_cell_product_delete_cell_product", "label": "delete_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L527"}, {"id": "crud_cell_product_next_code_start_seq", "label": "_next_code_start_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L544"}, {"id": "crud_cell_product_get_next_code", "label": "get_next_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L565"}, {"id": "crud_cell_product_normalize_passage_product_base", "label": "normalize_passage_product_base()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L576"}, {"id": "crud_cell_product_get_max_passage_product_seq", "label": "get_max_passage_product_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L587"}, {"id": "crud_cell_product_get_max_passage_product_seq_map", "label": "get_max_passage_product_seq_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L621"}, {"id": "crud_cell_product_get_max_product_suffix_seq", "label": "get_max_product_suffix_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L639"}, {"id": "crud_cell_product_product_code_exists", "label": "product_code_exists()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L671"}, {"id": "crud_cell_product_normalize_product_code_base", "label": "normalize_product_code_base()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L690"}, {"id": "crud_cell_product_build_split_product_codes", "label": "build_split_product_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L701"}, {"id": "crud_cell_product_reserve_next_codes", "label": "reserve_next_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L708"}, {"id": "crud_cell_product_validate_batch_items", "label": "_validate_batch_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L718"}, {"id": "crud_cell_product_create_cell_products_by_quantity", "label": "create_cell_products_by_quantity()", "file_type": "code"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L1"}, {"id": "crud_production_task_require_requisition_for_catalog_material", "label": "_require_requisition_for_catalog_material()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L53"}, {"id": "crud_production_task_production_conclusion_label", "label": "_production_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L105"}, {"id": "crud_production_task_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L112"}, {"id": "crud_production_task_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L116"}, {"id": "crud_production_task_enrich_outbound_task_items", "label": "_enrich_outbound_task_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L123"}, {"id": "crud_production_task_generate_task_no", "label": "_generate_task_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L257"}, {"id": "crud_production_task_task_to_dict", "label": "_task_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L271"}, {"id": "crud_production_task_step_to_dict", "label": "_step_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L298"}, {"id": "crud_production_task_step_reagent_to_dict", "label": "_step_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L325"}, {"id": "crud_production_task_step_configured_reagent_to_dict", "label": "_step_configured_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L342"}, {"id": "crud_production_task_step_consumable_to_dict", "label": "_step_consumable_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L358"}, {"id": "crud_production_task_step_output_to_dict", "label": "_step_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L375"}, {"id": "crud_production_task_step_data_collection_to_dict", "label": "_step_data_collection_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L387"}, {"id": "crud_production_task_task_input_to_dict", "label": "_task_input_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L399"}, {"id": "crud_production_task_task_output_to_dict", "label": "_task_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L421"}, {"id": "crud_production_task_soft_delete_sub", "label": "_soft_delete_sub()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L446"}, {"id": "crud_production_task_resolve_sub_table_order_num", "label": "_resolve_sub_table_order_num()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L459"}, {"id": "crud_production_task_empty_step_sub_tables", "label": "_empty_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L468"}, {"id": "crud_production_task_batch_load_step_sub_tables", "label": "_batch_load_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L478"}, {"id": "crud_production_task_step_sub_tables_to_dict", "label": "_step_sub_tables_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L578"}, {"id": "crud_production_task_clone_step_reagents", "label": "_clone_step_reagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_locatiLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_clinical_payment_py", "label": "clinical_payment.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L1"}, {"id": "crud_clinical_payment_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L22"}, {"id": "crud_clinical_payment_get_or_raise", "label": "_get_or_raise()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L56"}, {"id": "crud_clinical_payment_enrich_payment", "label": "_enrich_payment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L73"}, {"id": "crud_clinical_payment_map_payments_by_schedule_id", "label": "map_payments_by_schedule_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L118"}, {"id": "crud_clinical_payment_map_payments_by_schedule_ids", "label": "map_payments_by_schedule_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L137"}, {"id": "crud_clinical_payment_auto_create_payment", "label": "auto_create_payment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L162"}, {"id": "crud_clinical_payment_list_payments", "label": "list_payments()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L200"}, {"id": "crud_clinical_payment_apply_submit_receipt", "label": "_apply_submit_receipt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L252"}, {"id": "crud_clinical_payment_submit_receipt", "label": "submit_receipt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L284"}, {"id": "crud_clinical_payment_batch_submit_receipt", "label": "batch_submit_receipt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L312"}, {"id": "crud_clinical_payment_confirm_receipt", "label": "confirm_receipt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L346"}, {"id": "crud_clinical_payment_reject_receipt", "label": "reject_receipt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L374"}, {"id": "crud_clinical_payment_submit_refund", "label": "submit_refund()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L396"}, {"id": "crud_clinical_payment_batch_submit_refund", "label": "batch_submit_refund()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L425"}, {"id": "crud_clinical_payment_confirm_refund", "label": "confirm_refund()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L460"}, {"id": "crud_clinical_payment_reject_refund", "label": "reject_refund()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L488"}, {"id": "crud_clinical_payment_get_payment_detail", "label": "get_payment_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L510"}, {"id": "crud_clinical_payment_get_payment_by_schedule", "label": "get_payment_by_schedule()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L515"}, {"id": "crud_clinical_payment_rationale_74", "label": "\u5173\u8054\u67e5\u8be2\u7533\u8bf7\u5355\u3001\u60a3\u8005\u3001\u8f93\u6ce8\u8ba1\u5212\u4fe1\u606f\uff0c\u9644\u52a0\u5230 dict", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L74"}, {"id": "crud_clinical_payment_rationale_143", "label": "\u6309\u8f93\u6ce8\u8ba1\u5212 ID \u6279\u91cf\u7d22\u5f15\u7f34\u8d39\u8bb0\u5f55\uff08\u5217\u8868\u9875\u5c55\u793a\u7528\uff0c\u4e0d\u505a\u5173\u8054 enrich\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py", "source_location": "L143"}, {"id": "crud_clinical_payment_rationale_173", "label": "\u8f93\u6ce8\u8ba1\u5212\u521b\u5efa\u65f6\Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "label": "sample_production_reception.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L1"}, {"id": "crud_sample_production_reception_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L62"}, {"id": "crud_sample_production_reception_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L66"}, {"id": "crud_sample_production_reception_int_val", "label": "_int_val()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L72"}, {"id": "crud_sample_production_reception_resolve_field_profile", "label": "resolve_field_profile()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L78"}, {"id": "crud_sample_production_reception_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L84"}, {"id": "crud_sample_production_reception_validate_handler_user_id", "label": "_validate_handler_user_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L114"}, {"id": "crud_sample_production_reception_get_qc_reception", "label": "_get_qc_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L126"}, {"id": "crud_sample_production_reception_validate_payload", "label": "_validate_payload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L145"}, {"id": "crud_sample_production_reception_apply_payload_to_row", "label": "_apply_payload_to_row()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L162"}, {"id": "crud_sample_production_reception_get_by_reception_id", "label": "get_by_reception_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L218"}, {"id": "crud_sample_production_reception_get_map_by_reception_ids", "label": "get_map_by_reception_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L233"}, {"id": "crud_sample_production_reception_get_by_id", "label": "get_by_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L250"}, {"id": "crud_sample_production_reception_create_production_reception", "label": "create_production_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L263"}, {"id": "crud_sample_production_reception_update_production_reception", "label": "update_production_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L320"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "target": "app_core_utils", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_receLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_api_basic_info_py", "label": "basic_info.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L1"}, {"id": "api_basic_info_get_tenant_no", "label": "_get_tenant_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L31"}, {"id": "api_basic_info_customercreatebody", "label": "CustomerCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L46"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "api_basic_info_customerupdatebody", "label": "CustomerUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L59"}, {"id": "api_basic_info_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L72"}, {"id": "api_basic_info_list_customers", "label": "list_customers()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L80"}, {"id": "api_basic_info_create_customer", "label": "create_customer()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L123"}, {"id": "api_basic_info_update_customer", "label": "update_customer()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L149"}, {"id": "api_basic_info_delete_customer", "label": "delete_customer()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L178"}, {"id": "api_basic_info_cellsampletypecreatebody", "label": "CellSampleTypeCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L196"}, {"id": "api_basic_info_cellsampletypeupdatebody", "label": "CellSampleTypeUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L209"}, {"id": "api_basic_info_list_cell_sample_types", "label": "list_cell_sample_types()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L223"}, {"id": "api_basic_info_create_cell_sample_type", "label": "create_cell_sample_type()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L254"}, {"id": "api_basic_info_update_cell_sample_type", "label": "update_cell_sample_type()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L280"}, {"id": "api_basic_info_delete_cell_sample_type", "label": "delete_cell_sample_type()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L309"}, {"id": "api_basic_info_collectionregioncreatebody", "label": "CollectionRegionCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L327"}, {"id": "api_basic_info_collectionregionupdatebody", "label": "CollectionRegionUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L335"}, {"id": "api_basic_info_list_collection_regions", "label": "list_collection_regions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L344"}, {"id": "api_basic_info_create_collection_region", "label": "create_collection_region()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L371"}, {"id": "api_basic_info_update_collection_region", "label": "update_collection_region()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L392"}, {"id": "api_basic_info_delete_collection_region", "label": "delete_collection_region()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L416"}, {"id": "api_basic_info_hospitalcreatebody", "label": "HospitalCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L434"}, {"id": "api_basic_info_hospitalupdatebody", "label": "HospitalUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py", "source_location": "L442"}, {"id": "api_bLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_api_sample_reception_py", "label": "sample_reception.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L1"}, {"id": "api_sample_reception_get_tenant_no", "label": "_get_tenant_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L27"}, {"id": "api_sample_reception_get_current_user_id", "label": "_get_current_user_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L37"}, {"id": "api_sample_reception_page_payload", "label": "_page_payload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L44"}, {"id": "api_sample_reception_checkitembody", "label": "CheckItemBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L57"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "api_sample_reception_checkitemupdatebody", "label": "CheckItemUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L67"}, {"id": "api_sample_reception_list_check_items", "label": "list_check_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L78"}, {"id": "api_sample_reception_list_active_check_items", "label": "list_active_check_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L115"}, {"id": "api_sample_reception_create_check_item", "label": "create_check_item()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L130"}, {"id": "api_sample_reception_update_check_item", "label": "update_check_item()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L161"}, {"id": "api_sample_reception_delete_check_item", "label": "delete_check_item()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L191"}, {"id": "api_sample_reception_list_pending_samples", "label": "list_pending_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L212"}, {"id": "api_sample_reception_list_received_samples", "label": "list_received_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L239"}, {"id": "api_sample_reception_get_sample_reception_by_sample_code", "label": "get_sample_reception_by_sample_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L266"}, {"id": "api_sample_reception_get_sample_reception_detail", "label": "get_sample_reception_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L286"}, {"id": "api_sample_reception_receptionchecksubmit", "label": "ReceptionCheckSubmit", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L303"}, {"id": "api_sample_reception_samplereceptionupdatebody", "label": "SampleReceptionUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L310"}, {"id": "api_sample_reception_samplereceptioncreatebody", "label": "SampleReceptionCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L324"}, {"id": "api_sample_reception_allocatelabstoragecodesbody", "label": "AllocateLabStorageCodesBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L341"}, {"id": "api_sample_reception_allocate_lab_storage_codes", "label": "allocate_lab_storage_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L349"}, {"id": "api_sample_reception_post_sample_reception", "label": "post_sample_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py", "source_location": "L376"}, {"id": "api_sample_reception_put_sample_reception", "label": "put_sample_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/apLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_models_models_py", "label": "models.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L1"}, {"id": "models_models_userrole", "label": "UserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L10"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysuser", "label": "SysUser", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L22"}, {"id": "base", "label": "Base", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysrole", "label": "SysRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L48"}, {"id": "models_models_sysuserrole", "label": "SysUserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L68"}, {"id": "models_models_sysrolemenu", "label": "SysRoleMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L87"}, {"id": "models_models_sysroledatascopedetail", "label": "SysRoleDataScopeDetail", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L106"}, {"id": "models_models_sysmenu", "label": "SysMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L126"}, {"id": "models_models_sysdept", "label": "SysDept", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L152"}, {"id": "models_models_systenant", "label": "SysTenant", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L175"}, {"id": "models_models_syssite", "label": "SysSite", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L195"}, {"id": "models_models_syspost", "label": "SysPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L221"}, {"id": "models_models_sysuserpost", "label": "SysUserPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L241"}, {"id": "models_models_bizitemunit", "label": "BizItemUnit", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L260"}, {"id": "models_models_bizexpresscompany", "label": "BizExpressCompany", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L279"}, {"id": "models_models_bizcustomer", "label": "BizCustomer", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L299"}, {"id": "models_models_bizcellsampletype", "label": "BizCellSampleType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L322"}, {"id": "models_models_bizcollectionregion", "label": "BizCollectionRegion", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L345"}, {"id": "models_models_bizcollectionhospital", "label": "BizCollectionHospital", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L363"}, {"id": "models_models_bizcollectionprotocolno", "label": "BizCollectionProtocolNo", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L382"}, {"id": "models_models_bizbiznosequence", "label": "BizBizNoSequence", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L404"}, {"id": "models_models_bizsamplecode", "label": "BizSampleCode", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L424"}, {"id": "models_models_sysdicttype", "label": "SysDictType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L452"}, {"id": "models_models_sysethnic", "label": "SysEthnic", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L471"}, {"id": "models_models_sysdictdata", "label": "SysDictData", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_process_py", "label": "process.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L1"}, {"id": "crud_process_reagent_row_to_dict", "label": "_reagent_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L24"}, {"id": "crud_process_consumable_row_to_dict", "label": "_consumable_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L39"}, {"id": "crud_process_output_row_to_dict", "label": "_output_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L53"}, {"id": "crud_process_data_collection_row_to_dict", "label": "_data_collection_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L65"}, {"id": "crud_process_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L76"}, {"id": "crud_process_list_processes", "label": "list_processes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L93"}, {"id": "crud_process_list_all_processes", "label": "list_all_processes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L144"}, {"id": "crud_process_get_process", "label": "get_process()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L153"}, {"id": "crud_process_get_process_detail", "label": "get_process_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L161"}, {"id": "crud_process_process_code_exists", "label": "process_code_exists()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L201"}, {"id": "crud_process_create_sub_reagent", "label": "_create_sub_reagent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L210"}, {"id": "crud_process_create_sub_consumable", "label": "_create_sub_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L233"}, {"id": "crud_process_create_sub_output", "label": "_create_sub_output()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L256"}, {"id": "crud_process_sub_item_with_order", "label": "_sub_item_with_order()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L276"}, {"id": "crud_process_create_sub_data_collection", "label": "_create_sub_data_collection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L283"}, {"id": "crud_process_create_process", "label": "create_process()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L302"}, {"id": "crud_process_soft_delete_sub_records", "label": "_soft_delete_sub_records()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L368"}, {"id": "crud_process_update_process", "label": "update_process()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L380"}, {"id": "crud_process_soft_delete_process", "label": "soft_delete_process()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L453"}, {"id": "crud_process_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L470"}, {"id": "crud_process_rationale_1", "label": "\u5de5\u827a\u5e93 CRUD\uff08biz_process + biz_process_reagent/consumable/output\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L1"}, {"id": "crud_process_rationale_277", "label": "\u4fdd\u5b58\u5b50\u8868\u65f6\u6309\u5217\u8868\u4e0b\u6807\u5199\u5165 order_num\uff0c\u907f\u514d\u540c\u6279 create_time \u5bfc\u81f4\u67e5\u8be2\u987a\u5e8f\u6f02\u79fb\u3002", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py", "source_location": "L277"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_processLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_api_production_py", "label": "production.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L1"}, {"id": "api_production_legacy_material_write_gone", "label": "_legacy_material_write_gone()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L75"}, {"id": "api_production_get_tenant_no", "label": "_get_tenant_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L79"}, {"id": "api_production_get_current_user_id", "label": "_get_current_user_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L87"}, {"id": "api_production_consumablecreatebody", "label": "ConsumableCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L96"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "api_production_consumableupdatebody", "label": "ConsumableUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L110"}, {"id": "api_production_list_consumables", "label": "list_consumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L125"}, {"id": "api_production_list_all_consumables", "label": "list_all_consumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L139"}, {"id": "api_production_create_consumable", "label": "create_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L149"}, {"id": "api_production_update_consumable", "label": "update_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L158"}, {"id": "api_production_delete_consumable", "label": "delete_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L168"}, {"id": "api_production_stockinbody", "label": "StockInBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L176"}, {"id": "api_production_stockoutbody", "label": "StockOutBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L182"}, {"id": "api_production_batchstockinitem", "label": "BatchStockInItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L190"}, {"id": "api_production_batchstockinbody", "label": "BatchStockInBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L197"}, {"id": "api_production_batchstockoutitem", "label": "BatchStockOutItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L203"}, {"id": "api_production_batchstockoutbody", "label": "BatchStockOutBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L209"}, {"id": "api_production_consumable_stock_in", "label": "consumable_stock_in()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L218"}, {"id": "api_production_consumable_stock_out", "label": "consumable_stock_out()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L240"}, {"id": "api_production_consumable_batch_stock_in", "label": "consumable_batch_stock_in()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L264"}, {"id": "api_production_consumable_batch_stock_out", "label": "consumable_batch_stock_out()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L282"}, {"id": "api_production_list_consumable_stock_logs", "label": "list_consumable_stock_logs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L301"}, {"id": "api_production_list_all_consumable_stock_logs", "label": "list_all_consumable_stock_logs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L320"}, {"id": "api_production_reagentcreatebody", "label": "ReagentCreateBody"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "label": "main.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L1"}, {"id": "app_main_lifespan", "label": "lifespan()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L20"}, {"id": "app_main_error_json", "label": "_error_json()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L67"}, {"id": "app_main_sqlalchemy_exception_handler", "label": "sqlalchemy_exception_handler()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L80"}, {"id": "app_main_unhandled_exception_handler", "label": "unhandled_exception_handler()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L91"}, {"id": "app_main_mask_secret", "label": "_mask_secret()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L137"}, {"id": "app_main_root", "label": "root()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L159"}, {"id": "app_main_health_check", "label": "health_check()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L164"}, {"id": "app_main_rationale_81", "label": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L81"}, {"id": "app_main_rationale_92", "label": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L92"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "contextlib", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "fastapi_middleware_cors", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "fastapi_responses", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "sqlalchemy_exc", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "app_core_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "app_core_database", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L12", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "app_core_api_request_log_middleware", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py", "source_location": "L13", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_main_py", "target": "app_core_api_crypto_middleware", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/main.py"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_collection_protocol_py", "label": "collection_protocol.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L1"}, {"id": "crud_collection_protocol_get_protocol_nos_used_in_protocols", "label": "get_protocol_nos_used_in_protocols()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L64"}, {"id": "crud_collection_protocol_get_sample_codes_used_in_protocol_samples", "label": "get_sample_codes_used_in_protocol_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L98"}, {"id": "crud_collection_protocol_validate_sample_codes_not_used", "label": "validate_sample_codes_not_used()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L132"}, {"id": "crud_collection_protocol_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L165"}, {"id": "crud_collection_protocol_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L171"}, {"id": "crud_collection_protocol_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L175"}, {"id": "crud_collection_protocol_optional_decimal", "label": "_optional_decimal()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L183"}, {"id": "crud_collection_protocol_today_yyyymmdd", "label": "_today_yyyymmdd()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L189"}, {"id": "crud_collection_protocol_normalize_yyyymmdd_date", "label": "_normalize_yyyymmdd_date()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L193"}, {"id": "crud_collection_protocol_normalize_fields", "label": "_normalize_fields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L212"}, {"id": "crud_collection_protocol_pop_attachment_urls", "label": "_pop_attachment_urls()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L223"}, {"id": "crud_collection_protocol_attachments_to_urls", "label": "attachments_to_urls()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L234"}, {"id": "crud_collection_protocol_normalize_attachment_url_key", "label": "_normalize_attachment_url_key()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L253"}, {"id": "crud_collection_protocol_format_attachment_file_size", "label": "_format_attachment_file_size()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L262"}, {"id": "crud_collection_protocol_lookup_attachment_by_url", "label": "_lookup_attachment_by_url()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L270"}, {"id": "crud_collection_protocol_urls_to_attachment_list", "label": "urls_to_attachment_list()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L294"}, {"id": "crud_collection_protocol_user_nick_name_map", "label": "_user_nick_name_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L326"}, {"id": "crud_collection_protocol_protocol_to_dict", "label": "_protocol_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L334"}, {"id": "crud_collection_protocol_payment_to_dict", "label": "_payment_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L359"}, {"id": "crud_collection_protocol_detail_to_dict", "label": "_detail_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L380"}, {"id": "crud_collection_protocol_audit_to_dict", "label": "_audit_to_dict()", "file_type": "code", "source_Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_storage_occupancy_py", "label": "storage_occupancy.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L1"}, {"id": "crud_storage_occupancy_assert_batch_slots_unique", "label": "assert_batch_slots_unique()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L23"}, {"id": "crud_storage_occupancy_assert_slot_vacant", "label": "assert_slot_vacant()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L35"}, {"id": "crud_storage_occupancy_add_stored_occupancy_no_commit", "label": "_add_stored_occupancy_no_commit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L85"}, {"id": "crud_storage_occupancy_remove_by_item_no_commit", "label": "remove_by_item_no_commit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L128"}, {"id": "crud_storage_occupancy_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L154"}, {"id": "crud_storage_occupancy_load_cell_product_map", "label": "_load_cell_product_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L173"}, {"id": "crud_storage_occupancy_attach_cell_product_fields", "label": "_attach_cell_product_fields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L192"}, {"id": "crud_storage_occupancy_enrich_occupancy_items", "label": "enrich_occupancy_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L208"}, {"id": "crud_storage_occupancy_enrich_slots_with_stored_cell_products", "label": "enrich_slots_with_stored_cell_products()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L228"}, {"id": "crud_storage_occupancy_refresh_slot_cache", "label": "_refresh_slot_cache()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L266"}, {"id": "crud_storage_occupancy_create_occupancy", "label": "create_occupancy()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L301"}, {"id": "crud_storage_occupancy_batch_create_occupancies", "label": "batch_create_occupancies()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L336"}, {"id": "crud_storage_occupancy_remove_occupancy", "label": "remove_occupancy()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L374"}, {"id": "crud_storage_occupancy_remove_by_item", "label": "remove_by_item()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L402"}, {"id": "crud_storage_occupancy_list_occupancies", "label": "list_occupancies()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L414"}, {"id": "crud_storage_occupancy_list_occupancy_history", "label": "list_occupancy_history()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L449"}, {"id": "crud_storage_occupancy_rationale_1", "label": "\u5e93\u4f4d\u5360\u7528\u8bb0\u5f55 CRUD\uff08biz_storage_slot_occupancy\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L1"}, {"id": "crud_storage_occupancy_rationale_43", "label": "\u65ad\u8a00\u50a8\u7269\u683c\u5f53\u524d\u65e0\u5728\u5e93\u7269\u54c1\uff08\u4efb\u610f item_type\uff09\u3002", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L43"}, {"id": "crud_storage_occupancy_rationale_267", "label": "\u5237\u65b0 slot \u7684 occupied_count / last_item_type / last_stored_at / slot_status", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L267"}, {"id": "crud_storage_occupancy_rationale_409", "label": "\u6309\u7269\u54c1\u7c7b\u578b+ID\u51fa\u5e93\uff08\u7ec6\u80de\u4ea7\u54c1\u72b6\u6001\u53d8\u66f4\u65f6\u8c03\u7528\uff09",Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_storage_facility_py", "label": "storage_facility.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L1"}, {"id": "crud_storage_facility_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L31"}, {"id": "crud_storage_facility_list_all_facilities", "label": "list_all_facilities()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L47"}, {"id": "crud_storage_facility_get_facility", "label": "get_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L70"}, {"id": "crud_storage_facility_get_children", "label": "get_children()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L79"}, {"id": "crud_storage_facility_collect_descendant_ids", "label": "collect_descendant_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L95"}, {"id": "crud_storage_facility_create_facility", "label": "create_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L108"}, {"id": "crud_storage_facility_update_facility", "label": "update_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L152"}, {"id": "crud_storage_facility_soft_delete_facility", "label": "soft_delete_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L210"}, {"id": "crud_storage_facility_slot_to_dict", "label": "_slot_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L236"}, {"id": "crud_storage_facility_aggregate_slot_stats_by_facility", "label": "aggregate_slot_stats_by_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L259"}, {"id": "crud_storage_facility_list_slots", "label": "list_slots()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L287"}, {"id": "crud_storage_facility_is_slot_available_row", "label": "_is_slot_available_row()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L306"}, {"id": "crud_storage_facility_slot_select_display_name", "label": "_slot_select_display_name()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L312"}, {"id": "crud_storage_facility_slot_available_filter", "label": "_slot_available_filter()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L318"}, {"id": "crud_storage_facility_facility_node_ids_matching_keyword", "label": "_facility_node_ids_matching_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L327"}, {"id": "crud_storage_facility_slot_matches_select_keyword", "label": "_slot_matches_select_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L348"}, {"id": "crud_storage_facility_leaf_node_ids_for_path_prefix", "label": "_leaf_node_ids_for_path_prefix()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L370"}, {"id": "crud_storage_facility_build_slot_keyword_sql_filters", "label": "_build_slot_keyword_sql_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L393"}, {"id": "crud_storage_facility_apply_slot_select_base_filters", "label": "_apply_slot_select_base_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L432"}, {"id": "crud_storage_facility_search_slot_select_matched_ids", "label": "_search_slot_select_matched_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L455"}, {"id": "crud_storage_facility_apply_slot_select_query_filters", "label": "_apply_slot_select_query_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/bacLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L1"}, {"id": "crud_production_task_require_requisition_for_catalog_material", "label": "_require_requisition_for_catalog_material()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L50"}, {"id": "crud_production_task_production_conclusion_label", "label": "_production_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L102"}, {"id": "crud_production_task_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L109"}, {"id": "crud_production_task_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L113"}, {"id": "crud_production_task_enrich_outbound_task_items", "label": "_enrich_outbound_task_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L120"}, {"id": "crud_production_task_generate_task_no", "label": "_generate_task_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L254"}, {"id": "crud_production_task_task_to_dict", "label": "_task_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L268"}, {"id": "crud_production_task_step_to_dict", "label": "_step_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L295"}, {"id": "crud_production_task_step_reagent_to_dict", "label": "_step_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L322"}, {"id": "crud_production_task_step_configured_reagent_to_dict", "label": "_step_configured_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L339"}, {"id": "crud_production_task_step_consumable_to_dict", "label": "_step_consumable_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L355"}, {"id": "crud_production_task_step_output_to_dict", "label": "_step_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L372"}, {"id": "crud_production_task_step_data_collection_to_dict", "label": "_step_data_collection_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L384"}, {"id": "crud_production_task_task_input_to_dict", "label": "_task_input_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L396"}, {"id": "crud_production_task_task_output_to_dict", "label": "_task_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L418"}, {"id": "crud_production_task_soft_delete_sub", "label": "_soft_delete_sub()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L443"}, {"id": "crud_production_task_resolve_sub_table_order_num", "label": "_resolve_sub_table_order_num()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L456"}, {"id": "crud_production_task_empty_step_sub_tables", "label": "_empty_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L465"}, {"id": "crud_production_task_batch_load_step_sub_tables", "label": "_batch_load_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L475"}, {"id": "crud_production_task_step_sub_tables_to_dict", "label": "_step_sub_tables_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L575"}, {"id": "crud_production_task_clone_step_reagents", "label": "_clone_step_reagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_locatiLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_storage_facility_py", "label": "storage_facility.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L1"}, {"id": "crud_storage_facility_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L31"}, {"id": "crud_storage_facility_list_all_facilities", "label": "list_all_facilities()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L47"}, {"id": "crud_storage_facility_get_facility", "label": "get_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L70"}, {"id": "crud_storage_facility_get_children", "label": "get_children()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L79"}, {"id": "crud_storage_facility_collect_descendant_ids", "label": "collect_descendant_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L95"}, {"id": "crud_storage_facility_create_facility", "label": "create_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L108"}, {"id": "crud_storage_facility_update_facility", "label": "update_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L152"}, {"id": "crud_storage_facility_soft_delete_facility", "label": "soft_delete_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L210"}, {"id": "crud_storage_facility_slot_to_dict", "label": "_slot_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L236"}, {"id": "crud_storage_facility_aggregate_slot_stats_by_facility", "label": "aggregate_slot_stats_by_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L259"}, {"id": "crud_storage_facility_list_slots", "label": "list_slots()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L287"}, {"id": "crud_storage_facility_is_slot_available_row", "label": "_is_slot_available_row()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L306"}, {"id": "crud_storage_facility_slot_select_display_name", "label": "_slot_select_display_name()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L312"}, {"id": "crud_storage_facility_slot_available_filter", "label": "_slot_available_filter()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L318"}, {"id": "crud_storage_facility_facility_node_ids_matching_keyword", "label": "_facility_node_ids_matching_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L327"}, {"id": "crud_storage_facility_slot_matches_select_keyword", "label": "_slot_matches_select_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L348"}, {"id": "crud_storage_facility_leaf_node_ids_for_path_prefix", "label": "_leaf_node_ids_for_path_prefix()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L370"}, {"id": "crud_storage_facility_build_slot_keyword_sql_filters", "label": "_build_slot_keyword_sql_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L393"}, {"id": "crud_storage_facility_apply_slot_select_query_filters", "label": "_apply_slot_select_query_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L423"}, {"id": "crud_storage_facility_list_slot_select_options", "label": "list_slot_select_options()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L468"}, {"id": "crud_storage_facility_get_slot", "label": "get_slot()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L5Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_models_models_py", "label": "models.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L1"}, {"id": "models_models_userrole", "label": "UserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L10"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysuser", "label": "SysUser", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L22"}, {"id": "base", "label": "Base", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysrole", "label": "SysRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L48"}, {"id": "models_models_sysuserrole", "label": "SysUserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L68"}, {"id": "models_models_sysrolemenu", "label": "SysRoleMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L87"}, {"id": "models_models_sysroledatascopedetail", "label": "SysRoleDataScopeDetail", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L106"}, {"id": "models_models_sysmenu", "label": "SysMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L126"}, {"id": "models_models_sysdept", "label": "SysDept", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L152"}, {"id": "models_models_systenant", "label": "SysTenant", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L175"}, {"id": "models_models_syssite", "label": "SysSite", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L195"}, {"id": "models_models_syspost", "label": "SysPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L221"}, {"id": "models_models_sysuserpost", "label": "SysUserPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L241"}, {"id": "models_models_bizitemunit", "label": "BizItemUnit", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L260"}, {"id": "models_models_bizexpresscompany", "label": "BizExpressCompany", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L279"}, {"id": "models_models_bizcustomer", "label": "BizCustomer", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L299"}, {"id": "models_models_bizcellsampletype", "label": "BizCellSampleType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L322"}, {"id": "models_models_bizcollectionregion", "label": "BizCollectionRegion", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L345"}, {"id": "models_models_bizcollectionhospital", "label": "BizCollectionHospital", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L363"}, {"id": "models_models_bizcollectionprotocolno", "label": "BizCollectionProtocolNo", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L382"}, {"id": "models_models_bizbiznosequence", "label": "BizBizNoSequence", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L404"}, {"id": "models_models_bizsamplecode", "label": "BizSampleCode", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L424"}, {"id": "models_models_sysdicttype", "label": "SysDictType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L452"}, {"id": "models_models_sysethnic", "label": "SysEthnic", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L471"}, {"id": "models_models_sysdictdata", "label": "SysDictData", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_cell_product_py", "label": "cell_product.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L1"}, {"id": "crud_cell_product_apply_cell_product_status_change", "label": "_apply_cell_product_status_change()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L31"}, {"id": "crud_cell_product_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L86"}, {"id": "crud_cell_product_build_facility_path_label", "label": "_build_facility_path_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L120"}, {"id": "crud_cell_product_enrich_product_dicts", "label": "_enrich_product_dicts()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L135"}, {"id": "crud_cell_product_product_to_response", "label": "product_to_response()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L271"}, {"id": "crud_cell_product_list_cell_products", "label": "list_cell_products()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L276"}, {"id": "crud_cell_product_get_cell_product", "label": "get_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L340"}, {"id": "crud_cell_product_create_cell_product", "label": "create_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L354"}, {"id": "crud_cell_product_update_cell_product", "label": "update_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L427"}, {"id": "crud_cell_product_delete_cell_product", "label": "delete_cell_product()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L520"}, {"id": "crud_cell_product_next_code_start_seq", "label": "_next_code_start_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L537"}, {"id": "crud_cell_product_get_next_code", "label": "get_next_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L558"}, {"id": "crud_cell_product_get_max_passage_product_seq", "label": "get_max_passage_product_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L568"}, {"id": "crud_cell_product_get_max_passage_product_seq_map", "label": "get_max_passage_product_seq_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L602"}, {"id": "crud_cell_product_normalize_product_code_base", "label": "normalize_product_code_base()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L620"}, {"id": "crud_cell_product_build_split_product_codes", "label": "build_split_product_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L631"}, {"id": "crud_cell_product_reserve_next_codes", "label": "reserve_next_codes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L638"}, {"id": "crud_cell_product_validate_batch_items", "label": "_validate_batch_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L648"}, {"id": "crud_cell_product_create_cell_products_by_quantity", "label": "create_cell_products_by_quantity()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L693"}, {"id": "crud_cell_product_create_cell_products_batch", "label": "create_cell_products_batch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L727"}, {"id": "crud_cell_product_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py", "source_location": "L804"}, {"id": "crud_cell_product_product_node", "label": "_product_node()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_production_work_order_py", "label": "production_work_order.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L1"}, {"id": "crud_production_work_order_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L51"}, {"id": "crud_production_work_order_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L58"}, {"id": "crud_production_work_order_soft_delete_sub", "label": "_soft_delete_sub()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L62"}, {"id": "crud_production_work_order_generate_work_order_no", "label": "_generate_work_order_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L74"}, {"id": "crud_production_work_order_wo_to_dict", "label": "_wo_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L93"}, {"id": "crud_production_work_order_enrich_wo_items", "label": "_enrich_wo_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L126"}, {"id": "crud_production_work_order_dec_price", "label": "_dec_price()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L139"}, {"id": "crud_production_work_order_enrich_outbound_items", "label": "_enrich_outbound_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L148"}, {"id": "crud_production_work_order_outbound_work_order_ids_by_keyword", "label": "_outbound_work_order_ids_by_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L283"}, {"id": "crud_production_work_order_reception_source_label", "label": "_reception_source_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L337"}, {"id": "crud_production_work_order_accept_conclusion_label", "label": "_accept_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L342"}, {"id": "crud_production_work_order_attach_reception_detail", "label": "_attach_reception_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L347"}, {"id": "crud_production_work_order_attach_outbound_detail", "label": "_attach_outbound_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L378"}, {"id": "crud_production_work_order_wo_to_response_dict", "label": "_wo_to_response_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L431"}, {"id": "crud_production_work_order_create_production_work_order_from_reception", "label": "create_production_work_order_from_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L444"}, {"id": "crud_production_work_order_list_production_work_orders", "label": "list_production_work_orders()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L555"}, {"id": "crud_production_work_order_sync_production_work_order_status_from_tasks", "label": "sync_production_work_order_status_from_tasks()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L675"}, {"id": "crud_production_work_order_get_production_work_order", "label": "get_production_work_order()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L718"}, {"id": "crud_production_work_order_update_production_work_order", "label": "update_production_work_order()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py", "source_location": "L732"}, {"id": "crud_production_work_order_complete_production_work_order", "label": "complete_production_work_order()", "file_type": "code", "source_file": "/Users/Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_research_donation_py", "label": "research_donation.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L1"}, {"id": "crud_research_donation_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L58"}, {"id": "crud_research_donation_donation_sample_code_seq", "label": "_donation_sample_code_seq()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L68"}, {"id": "crud_research_donation_next_donation_sample_code", "label": "next_donation_sample_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L80"}, {"id": "crud_research_donation_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L141"}, {"id": "crud_research_donation_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L145"}, {"id": "crud_research_donation_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L152"}, {"id": "crud_research_donation_optional_decimal", "label": "_optional_decimal()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L160"}, {"id": "crud_research_donation_normalize_fields", "label": "_normalize_fields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L172"}, {"id": "crud_research_donation_merge_comma_separated_urls", "label": "_merge_comma_separated_urls()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L183"}, {"id": "crud_research_donation_resolve_donation_payload", "label": "_resolve_donation_payload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L199"}, {"id": "crud_research_donation_user_nick_name_map", "label": "_user_nick_name_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L217"}, {"id": "crud_research_donation_load_unit_name_map", "label": "_load_unit_name_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L225"}, {"id": "crud_research_donation_donation_to_dict", "label": "_donation_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L244"}, {"id": "crud_research_donation_audit_to_dict", "label": "_audit_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L278"}, {"id": "crud_research_donation_party_to_dict", "label": "_party_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L300"}, {"id": "crud_research_donation_collection_to_dict", "label": "_collection_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L334"}, {"id": "crud_research_donation_sample_to_dict", "label": "_sample_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L352"}, {"id": "crud_research_donation_transport_to_dict", "label": "_transport_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L375"}, {"id": "crud_research_donation_get_party", "label": "get_party()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L400"}, {"id": "crud_research_donation_get_collection", "label": "get_collection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L416"}, {"id": "crud_research_donation_list_samples", "label": "list_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py", "source_location": "L432"}, {"id": "crud_research_donation_list_sample_transports", "label": "list_sample_transports()", "file_type": "code", "source_file": "/UsLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "label": "__init__.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L1"}, {"id": "api_init_rationale_1", "label": "API \u8def\u7531\u5305\uff08\u9aa8\u67b6\uff1a\u516c\u5171\u9274\u6743 + \u9759\u6001\u83dc\u5355 + \u8fd0\u8425\u7aef\u5360\u4f4d\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_public", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_menu", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_admin", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_workflow", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_basic_info", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_collection_protocol", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_leave", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_operations", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_ethnic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L10", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_sample_reception", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_sample_production_reception", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L12", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_qc", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L13", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_research_donation", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L14", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_production", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L15", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_pilot_service", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L16", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_api_init_py", "target": "app_api_insurance_company", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py", "source_location": "L17", "weight": 1Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_reception_py", "label": "sample_reception.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1"}, {"id": "crud_sample_reception_donation_sample_id_col", "label": "_donation_sample_id_col()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L43"}, {"id": "crud_sample_reception_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L48"}, {"id": "crud_sample_reception_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L52"}, {"id": "crud_sample_reception_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L59"}, {"id": "crud_sample_reception_reception_to_dict", "label": "_reception_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L65"}, {"id": "crud_sample_reception_sample_detail_rows_query", "label": "_sample_detail_rows_query()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L88"}, {"id": "crud_sample_reception_donation_sample_detail_rows_query", "label": "_donation_sample_detail_rows_query()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L122"}, {"id": "crud_sample_reception_donation_sample_pending_query", "label": "_donation_sample_pending_query()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L156"}, {"id": "crud_sample_reception_donation_rows_to_sample_list_items", "label": "_donation_rows_to_sample_list_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L194"}, {"id": "crud_sample_reception_sample_pending_query", "label": "_sample_pending_query()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L308"}, {"id": "crud_sample_reception_rows_to_sample_list_items", "label": "_rows_to_sample_list_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L346"}, {"id": "crud_sample_reception_list_pending_protocol_samples", "label": "list_pending_protocol_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L470"}, {"id": "crud_sample_reception_list_received_protocol_samples", "label": "list_received_protocol_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L543"}, {"id": "crud_sample_reception_finalize_reception_detail", "label": "_finalize_reception_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L682"}, {"id": "crud_sample_reception_get_reception_by_id", "label": "get_reception_by_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L688"}, {"id": "crud_sample_reception_create_sample_reception", "label": "create_sample_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L756"}, {"id": "crud_sample_reception_can_edit_sample_reception", "label": "_can_edit_sample_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1018"}, {"id": "crud_sample_reception_update_sample_reception", "label": "update_sample_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1033"}, {"id": "crud_sample_reception_attach_production_reception", "label": "_attach_production_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1149"}, {"id": "crud_sample_reception_reception_detail_item", "label": "_reception_detail_item()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1167"}, {"id": "crud_sample_reception_reception_detail_item_with_production", "label": "_reception_detail_item_with_production(Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_storage_facility_py", "label": "storage_facility.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L1"}, {"id": "crud_storage_facility_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L30"}, {"id": "crud_storage_facility_list_all_facilities", "label": "list_all_facilities()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L46"}, {"id": "crud_storage_facility_get_facility", "label": "get_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L69"}, {"id": "crud_storage_facility_get_children", "label": "get_children()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L78"}, {"id": "crud_storage_facility_collect_descendant_ids", "label": "collect_descendant_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L94"}, {"id": "crud_storage_facility_create_facility", "label": "create_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L107"}, {"id": "crud_storage_facility_update_facility", "label": "update_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L151"}, {"id": "crud_storage_facility_soft_delete_facility", "label": "soft_delete_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L209"}, {"id": "crud_storage_facility_slot_to_dict", "label": "_slot_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L235"}, {"id": "crud_storage_facility_aggregate_slot_stats_by_facility", "label": "aggregate_slot_stats_by_facility()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L258"}, {"id": "crud_storage_facility_list_slots", "label": "list_slots()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L286"}, {"id": "crud_storage_facility_is_slot_available_row", "label": "_is_slot_available_row()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L305"}, {"id": "crud_storage_facility_slot_select_display_name", "label": "_slot_select_display_name()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L311"}, {"id": "crud_storage_facility_slot_available_filter", "label": "_slot_available_filter()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L317"}, {"id": "crud_storage_facility_facility_node_ids_matching_keyword", "label": "_facility_node_ids_matching_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L326"}, {"id": "crud_storage_facility_slot_matches_select_keyword", "label": "_slot_matches_select_keyword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L347"}, {"id": "crud_storage_facility_apply_slot_select_query_filters", "label": "_apply_slot_select_query_filters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L369"}, {"id": "crud_storage_facility_list_slot_select_options", "label": "list_slot_select_options()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L408"}, {"id": "crud_storage_facility_get_slot", "label": "get_slot()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L469"}, {"id": "crud_storage_facility_slot_to_dict_for_row", "label": "_slot_to_dict_for_row()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L478"}, {"id": "crud_storage_facility_create_slot", "label": "create_slot()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py", "source_location": "L483"}, {"id": "crud_storage_facility_insert_slot_at_row_enLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_reception_py", "label": "sample_reception.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1"}, {"id": "crud_sample_reception_donation_sample_id_col", "label": "_donation_sample_id_col()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L42"}, {"id": "crud_sample_reception_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L47"}, {"id": "crud_sample_reception_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L51"}, {"id": "crud_sample_reception_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L58"}, {"id": "crud_sample_reception_reception_to_dict", "label": "_reception_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L64"}, {"id": "crud_sample_reception_sample_detail_rows_query", "label": "_sample_detail_rows_query()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L89"}, {"id": "crud_sample_reception_donation_sample_detail_rows_query", "label": "_donation_sample_detail_rows_query()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L123"}, {"id": "crud_sample_reception_donation_sample_pending_query", "label": "_donation_sample_pending_query()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L157"}, {"id": "crud_sample_reception_donation_rows_to_sample_list_items", "label": "_donation_rows_to_sample_list_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L195"}, {"id": "crud_sample_reception_sample_pending_query", "label": "_sample_pending_query()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L303"}, {"id": "crud_sample_reception_rows_to_sample_list_items", "label": "_rows_to_sample_list_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L341"}, {"id": "crud_sample_reception_list_pending_protocol_samples", "label": "list_pending_protocol_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L459"}, {"id": "crud_sample_reception_list_received_protocol_samples", "label": "list_received_protocol_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L532"}, {"id": "crud_sample_reception_get_reception_by_id", "label": "get_reception_by_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L671"}, {"id": "crud_sample_reception_create_sample_reception", "label": "create_sample_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L739"}, {"id": "crud_sample_reception_can_edit_sample_reception", "label": "_can_edit_sample_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1003"}, {"id": "crud_sample_reception_update_sample_reception", "label": "update_sample_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1018"}, {"id": "crud_sample_reception_reception_detail_item", "label": "_reception_detail_item()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1136"}, {"id": "crud_sample_reception_reception_sample_code", "label": "_reception_sample_code()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1153"}, {"id": "crud_sample_reception_get_receptions_map_for_samples", "label": "get_receptions_map_for_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py", "source_location": "L1168"}, {"id": "crud_sample_reception_get_receptions_map_for_donation_samples", "label": "get_receptions_map_for_donation_samplesLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "label": "sample_production_reception.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L1"}, {"id": "crud_sample_production_reception_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L62"}, {"id": "crud_sample_production_reception_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L66"}, {"id": "crud_sample_production_reception_int_val", "label": "_int_val()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L72"}, {"id": "crud_sample_production_reception_resolve_field_profile", "label": "resolve_field_profile()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L78"}, {"id": "crud_sample_production_reception_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L84"}, {"id": "crud_sample_production_reception_can_write_production_reception", "label": "_can_write_production_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L114"}, {"id": "crud_sample_production_reception_get_qc_reception", "label": "_get_qc_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L121"}, {"id": "crud_sample_production_reception_validate_payload", "label": "_validate_payload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L140"}, {"id": "crud_sample_production_reception_apply_payload_to_row", "label": "_apply_payload_to_row()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L157"}, {"id": "crud_sample_production_reception_get_by_reception_id", "label": "get_by_reception_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L213"}, {"id": "crud_sample_production_reception_get_map_by_reception_ids", "label": "get_map_by_reception_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L228"}, {"id": "crud_sample_production_reception_get_by_id", "label": "get_by_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L245"}, {"id": "crud_sample_production_reception_create_production_reception", "label": "create_production_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L258"}, {"id": "crud_sample_production_reception_update_production_reception", "label": "update_production_reception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L316"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_production_reception_py", "target": "app_core_utils", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_sample_proLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "label": "dict_data.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L1"}, {"id": "crud_dict_data_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L15"}, {"id": "crud_dict_data_list_dict_data", "label": "list_dict_data()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L29"}, {"id": "crud_dict_data_get_dict_data", "label": "get_dict_data()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L67"}, {"id": "crud_dict_data_create_dict_data", "label": "create_dict_data()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L75"}, {"id": "crud_dict_data_update_dict_data", "label": "update_dict_data()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L107"}, {"id": "crud_dict_data_soft_delete_dict_data", "label": "soft_delete_dict_data()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L136"}, {"id": "crud_dict_data_list_dict_data_options", "label": "list_dict_data_options()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L149"}, {"id": "crud_dict_data_is_dict_value_valid", "label": "is_dict_value_valid()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L161"}, {"id": "crud_dict_data_normalize_transfer_type", "label": "normalize_transfer_type()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L183"}, {"id": "crud_dict_data_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L199"}, {"id": "crud_dict_data_rationale_1", "label": "\u5b57\u5178\u6570\u636e CRUD\uff08sys_dict_data\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "math", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "sqlalchemy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "app_core_utils", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "app_models_models", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L12", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "crud_dict_data_row_to_dict", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py", "source_location": "L15", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_crud_dict_data_py", "target": "crud_dict_data_list_dict_data", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.pLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_collection_protocol_py", "label": "collection_protocol.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L1"}, {"id": "crud_collection_protocol_get_protocol_nos_used_in_protocols", "label": "get_protocol_nos_used_in_protocols()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L64"}, {"id": "crud_collection_protocol_get_sample_codes_used_in_protocol_samples", "label": "get_sample_codes_used_in_protocol_samples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L98"}, {"id": "crud_collection_protocol_validate_sample_codes_not_used", "label": "validate_sample_codes_not_used()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L132"}, {"id": "crud_collection_protocol_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L165"}, {"id": "crud_collection_protocol_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L171"}, {"id": "crud_collection_protocol_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L175"}, {"id": "crud_collection_protocol_optional_decimal", "label": "_optional_decimal()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L183"}, {"id": "crud_collection_protocol_today_yyyymmdd", "label": "_today_yyyymmdd()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L189"}, {"id": "crud_collection_protocol_normalize_yyyymmdd_date", "label": "_normalize_yyyymmdd_date()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L193"}, {"id": "crud_collection_protocol_normalize_fields", "label": "_normalize_fields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L212"}, {"id": "crud_collection_protocol_pop_attachment_urls", "label": "_pop_attachment_urls()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L223"}, {"id": "crud_collection_protocol_attachments_to_urls", "label": "attachments_to_urls()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L234"}, {"id": "crud_collection_protocol_normalize_attachment_url_key", "label": "_normalize_attachment_url_key()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L253"}, {"id": "crud_collection_protocol_format_attachment_file_size", "label": "_format_attachment_file_size()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L262"}, {"id": "crud_collection_protocol_lookup_attachment_by_url", "label": "_lookup_attachment_by_url()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L270"}, {"id": "crud_collection_protocol_urls_to_attachment_list", "label": "urls_to_attachment_list()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L294"}, {"id": "crud_collection_protocol_user_nick_name_map", "label": "_user_nick_name_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L326"}, {"id": "crud_collection_protocol_protocol_to_dict", "label": "_protocol_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L334"}, {"id": "crud_collection_protocol_payment_to_dict", "label": "_payment_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L359"}, {"id": "crud_collection_protocol_detail_to_dict", "label": "_detail_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py", "source_location": "L380"}, {"id": "crud_collection_protocol_audit_to_dict", "label": "_audit_to_dict()", "file_type": "code", "source_Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L1"}, {"id": "crud_production_task_require_requisition_for_catalog_material", "label": "_require_requisition_for_catalog_material()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L53"}, {"id": "crud_production_task_production_conclusion_label", "label": "_production_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L105"}, {"id": "crud_production_task_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L112"}, {"id": "crud_production_task_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L116"}, {"id": "crud_production_task_enrich_outbound_task_items", "label": "_enrich_outbound_task_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L123"}, {"id": "crud_production_task_generate_task_no", "label": "_generate_task_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L257"}, {"id": "crud_production_task_task_to_dict", "label": "_task_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L271"}, {"id": "crud_production_task_step_to_dict", "label": "_step_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L300"}, {"id": "crud_production_task_step_reagent_to_dict", "label": "_step_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L325"}, {"id": "crud_production_task_step_configured_reagent_to_dict", "label": "_step_configured_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L342"}, {"id": "crud_production_task_step_consumable_to_dict", "label": "_step_consumable_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L358"}, {"id": "crud_production_task_step_output_to_dict", "label": "_step_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L375"}, {"id": "crud_production_task_step_data_collection_to_dict", "label": "_step_data_collection_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L387"}, {"id": "crud_production_task_task_input_to_dict", "label": "_task_input_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L399"}, {"id": "crud_production_task_task_output_to_dict", "label": "_task_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L421"}, {"id": "crud_production_task_soft_delete_sub", "label": "_soft_delete_sub()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L446"}, {"id": "crud_production_task_resolve_sub_table_order_num", "label": "_resolve_sub_table_order_num()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L459"}, {"id": "crud_production_task_empty_step_sub_tables", "label": "_empty_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L468"}, {"id": "crud_production_task_batch_load_step_sub_tables", "label": "_batch_load_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L478"}, {"id": "crud_production_task_step_sub_tables_to_dict", "label": "_step_sub_tables_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L578"}, {"id": "crud_production_task_clone_step_reagents", "label": "_clone_step_reagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_locatiLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "label": "cell_product.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L1"}, {"id": "schemas_cell_product_coerce_optional_datetime", "label": "_coerce_optional_datetime()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L9"}, {"id": "schemas_cell_product_cellproductbatchitem", "label": "CellProductBatchItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L23"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "schemas_cell_product_cellproductcreate", "label": "CellProductCreate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L32"}, {"id": "schemas_cell_product_coerce_date_fields", "label": "coerce_date_fields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L57"}, {"id": "schemas_cell_product_validate_viability", "label": "validate_viability()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L62"}, {"id": "schemas_cell_product_validate_passage", "label": "validate_passage()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L69"}, {"id": "schemas_cell_product_cellproductupdate", "label": "CellProductUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L78"}, {"id": "schemas_cell_product_validate_status", "label": "validate_status()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L122"}, {"id": "schemas_cell_product_cellproductlistquery", "label": "CellProductListQuery", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L129"}, {"id": "schemas_cell_product_rationale_10", "label": "\u517c\u5bb9\u524d\u7aef date-picker \u7684 YYYY-MM-DD \u4e0e\u5b8c\u6574\u65e5\u671f\u65f6\u95f4\u5b57\u7b26\u4e32\u3002", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L10"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "app_core_utils", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "schemas_cell_product_coerce_optional_datetime", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "schemas_cell_product_cellproductbatchitem", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L23", "weight": 1.0}, {"source": "schemas_cell_product_cellproductbatchitem", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L23", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_cell_product_py", "target": "schemas_cell_product_cellproductcreate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py", "source_location": "L32", "weigLine truncated
+2 -1
View File
@@ -13,7 +13,7 @@ from app.core.database import SessionLocal
from app.core.api_request_log_middleware import ApiRequestLogMiddleware
from app.core.api_crypto_middleware import ApiCryptoMiddleware
from app.models import models # noqa: F401
from app.api import public_router, menu_router, admin_router, workflow_router, basic_info_router, collection_protocol_router, leave_router, operations_router, ethnic_router, sample_reception_router, qc_router, research_donation_router, production_router, pilot_service_router, insurance_company_router, material_router, storage_release_review_router, sample_sms_notification_router, storage_entry_sms_notification_router, qc_sms_notification_router, protocol_sample_collection_router, research_donation_sample_collection_router, pilot_application_router, pilot_checkup_router, pilot_delivery_router, pilot_infusion_confirm_router, pilot_infusion_schedule_mgmt_router, outbound_release_review_router, clinical_payment_router, env_detect_router, cleanroom_garment_router, market_router, pre_transit_sample_router
from app.api import public_router, menu_router, admin_router, workflow_router, basic_info_router, collection_protocol_router, leave_router, operations_router, ethnic_router, sample_reception_router, sample_production_reception_router, qc_router, research_donation_router, production_router, pilot_service_router, insurance_company_router, material_router, storage_release_review_router, sample_sms_notification_router, storage_entry_sms_notification_router, qc_sms_notification_router, protocol_sample_collection_router, research_donation_sample_collection_router, pilot_application_router, pilot_checkup_router, pilot_delivery_router, pilot_infusion_confirm_router, pilot_infusion_schedule_mgmt_router, outbound_release_review_router, clinical_payment_router, env_detect_router, cleanroom_garment_router, market_router, pre_transit_sample_router
@asynccontextmanager
@@ -108,6 +108,7 @@ app.include_router(leave_router, prefix=settings.API_V1_PREFIX)
app.include_router(operations_router, prefix=settings.API_V1_PREFIX)
app.include_router(ethnic_router, prefix=settings.API_V1_PREFIX)
app.include_router(sample_reception_router, prefix=settings.API_V1_PREFIX)
app.include_router(sample_production_reception_router, prefix=settings.API_V1_PREFIX)
app.include_router(qc_router, prefix=settings.API_V1_PREFIX)
app.include_router(research_donation_router, prefix=settings.API_V1_PREFIX)
app.include_router(production_router, prefix=settings.API_V1_PREFIX)
+42 -1
View File
@@ -1178,6 +1178,44 @@ class BizSampleReception(Base):
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
class BizSampleProductionReception(Base):
"""生产部门样本接收登记 biz_sample_production_reception"""
__tablename__ = "biz_sample_production_reception"
id = Column(String(64), primary_key=True, comment="主键ID")
reception_id = Column(String(64), nullable=False, comment="关联 biz_sample_reception.id")
sample_code = Column(String(32), nullable=True, comment="样本编码快照")
reception_source = Column(
String(20), nullable=False, default="cell_storage", comment="来源 cell_storage/research_donation"
)
sample_type_name = Column(String(100), nullable=True, comment="样本类型名称快照")
handler_user_id = Column(String(64), nullable=True, comment="处理人用户ID")
handler_name = Column(String(100), nullable=True, comment="处理人姓名")
process_time = Column(DateTime, nullable=False, comment="处理时间")
original_blood_weight_g = Column(Numeric(18, 4), nullable=True, comment="原血重量/g")
hes_volume_ml = Column(Numeric(18, 4), nullable=True, comment="HES用量/ml")
blood_type = Column(String(32), nullable=True, comment="血型")
infectious_four_test_result = Column(String(16), nullable=True, comment="传染四项 zc正常 bzc不正常")
enriched_blood_weight_g = Column(Numeric(18, 4), nullable=True, comment="富集后血量/g")
cryopreservation_volume_ml = Column(Numeric(18, 4), nullable=True, comment="冻存液用量/ml")
inoculation_amount = Column(Numeric(18, 4), nullable=True, comment="接种量")
cryopreservation_time = Column(DateTime, nullable=True, comment="冻存时间")
storage_total_tubes = Column(Integer, nullable=True, comment="储存总量(管)")
available_cell_count_1e7 = Column(Numeric(18, 4), nullable=True, comment="可提供细胞数量/*10E7")
original_blood_volume_ml = Column(Numeric(18, 4), nullable=True, comment="原血体积/ml")
nucleated_cell_count_1e8 = Column(Numeric(18, 4), nullable=True, comment="有核细胞数/10E8")
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
order_num = Column(Integer, nullable=True, comment="排序号")
remark = Column(String(512), nullable=True, comment="备注")
create_by = Column(String(64), nullable=True, comment="创建人id")
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
update_by = Column(String(64), nullable=True, comment="更新人id")
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
class BizSampleSmsNotification(Base):
__tablename__ = "biz_sample_sms_notification"
@@ -2637,11 +2675,12 @@ class BizCellProduct(Base):
product_name = Column(String(200), nullable=False, comment="产品名称")
product_type_id = Column(String(64), nullable=True, comment="产品类型ID")
spec_id = Column(String(64), nullable=True, comment="规格ID")
spec_text = Column(String(200), nullable=True, comment="规格(文本)")
batch_no = Column(String(64), nullable=True, comment="批号")
storage_slot_id = Column(String(64), nullable=True, comment="库位ID")
passage = Column(String(8), nullable=True, comment="代次(P1~P8)")
freeze_date = Column(DateTime, nullable=True, comment="冻存日期")
expected_cell_count = Column(Numeric(18, 4), nullable=True, comment="预计细胞数量(单位:亿)")
expected_cell_count = Column(Numeric(18, 4), nullable=True, comment="预计细胞数量(单位:千万)")
viability = Column(Numeric(5, 2), nullable=True, comment="活性(百分比,0~100)")
product_status = Column(String(16), nullable=True, default="frozen", comment="产品状态 frozen已冻存/sold已售卖/used已使用/voided已作废")
source_type = Column(String(32), nullable=True, default="production", comment="来源类型 production生产 qc质检")
@@ -2711,6 +2750,8 @@ class BizProductionTask(Base):
conclusion = Column(String(16), nullable=True, comment="生产结论 cg=成功 sb=失败")
remark = Column(String(512), nullable=True, comment="备注")
attachments = Column(String(4000), nullable=True, comment="附件(逗号分隔URL)")
equipment_ids = Column(String(1000), nullable=True, comment="关联设备ID(逗号分隔)")
equipment_name = Column(String(1000), nullable=True, comment="设备名称快照(逗号分隔)")
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
order_num = Column(Integer, nullable=True, comment="排序号")
create_by = Column(String(64), nullable=True, comment="创建人id")
+24
View File
@@ -27,6 +27,27 @@ class CellProductBatchItem(BaseModel):
product_code: str = Field(..., alias="productCode")
storage_slot_id: Optional[str] = Field(None, alias="storageSlotId")
passage: Optional[str] = None
spec_name: Optional[str] = Field(None, alias="specName")
expected_cell_count: Optional[float] = Field(None, alias="expectedCellCount")
viability: Optional[float] = None
@field_validator("passage")
@classmethod
def validate_item_passage(cls, v):
if v is not None and v != "":
valid = {f"P{i}" for i in range(1, 9)}
if v.upper() not in valid:
raise ValueError("代次必须为 P1~P8")
return v.upper()
return v
@field_validator("viability")
@classmethod
def validate_item_viability(cls, v):
if v is not None and (v < 0 or v > 100):
raise ValueError("活性必须在 0~100 之间")
return v
class CellProductCreate(BaseModel):
@@ -36,6 +57,7 @@ class CellProductCreate(BaseModel):
product_name: str = Field(..., alias="productName")
product_type_id: Optional[str] = Field(None, alias="productTypeId")
spec_id: Optional[str] = Field(None, alias="specId")
spec_name: Optional[str] = Field(None, alias="specName")
batch_no: Optional[str] = Field(None, alias="batchNo")
storage_slot_id: Optional[str] = Field(None, alias="storageSlotId")
passage: Optional[str] = None
@@ -77,9 +99,11 @@ class CellProductCreate(BaseModel):
class CellProductUpdate(BaseModel):
model_config = ConfigDict(populate_by_name=True)
product_code: Optional[str] = Field(None, alias="productCode")
product_name: Optional[str] = Field(None, alias="productName")
product_type_id: Optional[str] = Field(None, alias="productTypeId")
spec_id: Optional[str] = Field(None, alias="specId")
spec_name: Optional[str] = Field(None, alias="specName")
batch_no: Optional[str] = Field(None, alias="batchNo")
storage_slot_id: Optional[str] = Field(None, alias="storageSlotId")
passage: Optional[str] = None
+3
View File
@@ -46,10 +46,12 @@ class ProductionTaskListByWorkOrdersBody(BaseModel):
class ProductionTaskUpdate(BaseModel):
model_config = ConfigDict(populate_by_name=True)
task_name: Optional[str] = None
description: Optional[str] = None
remark: Optional[str] = None
attachments: Optional[str] = None
equipment_ids: Optional[List[str]] = Field(None, alias="equipmentIds")
class ProductionTaskStatusUpdate(BaseModel):
@@ -127,6 +129,7 @@ class TaskOutputItem(BaseModel):
product_name: Optional[str] = Field(None, alias="productName")
product_type_id: Optional[str] = Field(None, alias="productTypeId")
spec_id: Optional[str] = Field(None, alias="specId")
spec_name: Optional[str] = Field(None, alias="specName")
passage: Optional[str] = None
batch_no: Optional[str] = Field(None, alias="batchNo")
storage_slot_id: Optional[str] = Field(None, alias="storageSlotId")
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+99 -99
View File
@@ -1,11 +1,11 @@
# Graph Report - app (2026-06-28)
# Graph Report - app (2026-06-29)
## Corpus Check
- Large corpus: 212 files · ~256,289 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
- Large corpus: 214 files · ~259,848 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
## Summary
- 4375 nodes · 23435 edges · 48 communities detected
- Extraction: 32% EXTRACTED · 68% INFERRED · 0% AMBIGUOUS · INFERRED: 15934 edges (avg confidence: 0.59)
- 4437 nodes · 23779 edges · 48 communities detected
- Extraction: 32% EXTRACTED · 68% INFERRED · 0% AMBIGUOUS · INFERRED: 16163 edges (avg confidence: 0.59)
- Token cost: 0 input · 0 output
## Community Hubs (Navigation)
@@ -59,179 +59,179 @@
- [[_COMMUNITY_Community 49|Community 49]]
## God Nodes (most connected - your core abstractions)
1. `success_response()` - 662 edges
2. `error_response()` - 546 edges
3. `SysUser` - 474 edges
4. `BizProductionMaterial` - 309 edges
5. `BizQcTaskResult` - 307 edges
6. `BizProductionMaterialUsage` - 304 edges
7. `BizQcMaterialUsage` - 301 edges
8. `BizQcMaterial` - 292 edges
9. `BizProductionMaterialStockBatch` - 291 edges
10. `BizMaterialUsage` - 288 edges
1. `success_response()` - 668 edges
2. `error_response()` - 552 edges
3. `SysUser` - 478 edges
4. `BizProductionMaterial` - 311 edges
5. `BizQcTaskResult` - 309 edges
6. `BizProductionMaterialUsage` - 306 edges
7. `BizQcMaterialUsage` - 303 edges
8. `BizQcMaterial` - 294 edges
9. `BizProductionMaterialStockBatch` - 293 edges
10. `BizMaterialUsage` - 290 edges
## Surprising Connections (you probably didn't know these)
- `统一记录 API 请求/响应出入参的中间件` --uses--> `SysApiRequestLog` [INFERRED]
core/api_request_log_middleware.py → models/models.py
- `get_menu_list()` --calls--> `success_response()` [INFERRED]
api/menu.py → core/response.py
- `mark_requisition_fully_used()` --calls--> `apply_data_scope()` [INFERRED]
crud/material_usage.py → core/data_scope.py
- `保留匹配节点及其全部上级,供关键词检索后仍能正确组树。` --uses--> `SysDept` [INFERRED]
crud/dept.py → models/models.py
- `物品单位 CRUD(biz_item_unit)` --uses--> `BizItemUnit` [INFERRED]
crud/item_unit.py → models/models.py
- `快递公司 CRUD(biz_express_company)` --uses--> `BizExpressCompany` [INFERRED]
crud/express_company.py → models/models.py
## Communities
### Community 0 - "Community 0"
Cohesion: 0.01
Nodes (865): attachment_download_url(), create_dept(), create_dict_data(), create_dict_type(), create_express_company(), create_item_unit(), create_menu(), create_post() (+857 more)
Nodes (870): attachment_download_url(), create_dept(), create_dict_data(), create_dict_type(), create_express_company(), create_item_unit(), create_menu(), create_post() (+862 more)
### Community 1 - "Community 1"
Cohesion: 0.01
Nodes (561): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, ExpressCompanyCreateBody (+553 more)
Nodes (599): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, ExpressCompanyCreateBody (+591 more)
### Community 2 - "Community 2"
Cohesion: 0.09
Nodes (363): 保险公司及险种价格管理 API(保险公司 + 开票信息 + 险种价格), Base, 按输注计划 ID 批量索引缴费记录(列表页展示用,不做关联 enrich), 输注计划创建时自动调用,生成 dfj 缴费记录, 关联查询申请单、患者、输注计划信息,附加到 dict, 设备 CRUD(biz_equipment), 将 BizMaterialUsage 行转换为字典(用于我的领用记录)。, 当前登录人的手动出库领用记录:领用人字段存昵称或用户 ID(与生产/质检一致)。 (+355 more)
Nodes (342): 环境检测 — 检测项维护 + 登记管理 API, 保险公司及险种价格管理 API(保险公司 + 开票信息 + 险种价格), AccessLogCreateBody, AccessLogUpdateBody, CleanRoomCreateBody, CleanRoomUpdateBody, ExhibitionAppointmentCreateBody, ExhibitionAppointmentUpdateBody (+334 more)
### Community 3 - "Community 3"
Cohesion: 0.01
Nodes (292): _normalize_date_bound(), format_date(), generate_id(), optional_date(), parse_date(), 将字符串 / date / datetime 转为 date 或 None, camel_to_snake(), get_model_attr() (+284 more)
Nodes (296): generate_uuid(), create_cell_sample_type(), get_cell_sample_type(), list_cell_sample_types(), 细胞样本类型 CRUD(biz_cell_sample_type), _row_to_dict(), soft_delete_cell_sample_type(), type_code_exists() (+288 more)
### Community 4 - "Community 4"
Cohesion: 0.01
Nodes (300): generate_uuid(), batch_stock_in(), batch_stock_out(), consumable_code_exists(), create_consumable(), _dec(), get_consumable(), _is_enabled_status() (+292 more)
Cohesion: 0.07
Nodes (320): AuditCreateBody, BatchDetailIdsBody, BatchRefundFinanceSubmitBody, FinanceConfirmBody, FullmoonTodoInsuranceBody, InvoiceRequestCompleteBody, InvoiceRequestCreateBody, PaymentDetailDraftBody (+312 more)
### Community 5 - "Community 5"
Cohesion: 0.02
Nodes (222): ApiRequestLogCRUD, delete(), get_multi_with_filters(), create_dict_data(), get_dict_data(), list_dict_data(), list_dict_data_options(), 字典数据 CRUD(sys_dict_data) (+214 more)
Nodes (270): _normalize_date_bound(), create_collection_protocol(), delete_collection_protocol(), _draft_fields_from_body(), _ensure_customer_for_mother(), get_collection_protocol_detail(), _get_current_user_id(), get_invoice_eligible_payments() (+262 more)
### Community 6 - "Community 6"
Cohesion: 0.07
Nodes (213): CellSampleTypeCreateBody, CellSampleTypeUpdateBody, CollectionRegionCreateBody, CollectionRegionUpdateBody, CustomerCreateBody, CustomerUpdateBody, HospitalCreateBody, HospitalUpdateBody (+205 more)
Cohesion: 0.02
Nodes (261): ApiRequestLogCRUD, delete(), get_multi_with_filters(), create_collection_region(), create_hospital(), get_collection_region(), get_hospital(), _hospital_names_by_region_ids() (+253 more)
### Community 7 - "Community 7"
Cohesion: 0.02
Nodes (180): api_save_application(), get_protocol_nos_used_in_protocols(), create_dict_type(), dict_type_code_exists(), get_dict_type(), list_dict_types(), 字典类型 CRUD(sys_dict_type), _row_to_dict() (+172 more)
Nodes (198): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时统一排序规则,避免 Illegal mix of collations。, 跨表字符串等值比较(JOIN / WHERE)时统一为 utf8mb4_unicode_ci。, 将列显式设为 utf8mb4_unicode_ci。, unicode_ci(), batch_review(), _dec() (+190 more)
### Community 8 - "Community 8"
Cohesion: 0.02
Nodes (177): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时统一排序规则,避免 Illegal mix of collations。, 跨表字符串等值比较(JOIN / WHERE)时统一为 utf8mb4_unicode_ci。, 将列显式设为 utf8mb4_unicode_ci。, unicode_ci(), batch_review(), _dec() (+169 more)
Nodes (174): get_protocol_nos_used_in_protocols(), create_dict_type(), dict_type_code_exists(), get_dict_type(), list_dict_types(), 字典类型 CRUD(sys_dict_type), _row_to_dict(), soft_delete_dict_type() (+166 more)
### Community 9 - "Community 9"
Cohesion: 0.02
Nodes (116): get_designer_data(), _error_json(), 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin, sqlalchemy_exception_handler(), unhandled_exception_handler(), BaseHTTPMiddleware, parse_admin_request_json() (+108 more)
Nodes (112): get_designer_data(), _error_json(), 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin, sqlalchemy_exception_handler(), unhandled_exception_handler(), BaseHTTPMiddleware, ApiCryptoError (+104 more)
### Community 10 - "Community 10"
Cohesion: 0.03
Nodes (149): list_ethnics_for_select(), apply_data_scope(), _get_child_dept_ids(), get_user_dept_id(), _resolve_user_role_scopes(), _build_tree(), _cascade_soft_delete(), _collect_with_ancestors() (+141 more)
Nodes (131): get_next_cell_product_code(), _ancestor_link_from_cell_product_input(), _ancestor_sample_chain_link(), _apply_cell_product_status_change(), _build_ancestor_chain(), _build_descendant_chain(), _build_facility_path_label(), create_cell_product() (+123 more)
### Community 11 - "Community 11"
Cohesion: 0.05
Nodes (106): AccessLogCreateBody, AccessLogUpdateBody, CleanRoomCreateBody, CleanRoomUpdateBody, ExhibitionAppointmentCreateBody, ExhibitionAppointmentUpdateBody, OccupancyCreateBody, 运营支撑 API(洁净室、进出记录、仓储设施、储位、展厅预约) (+98 more)
Cohesion: 0.04
Nodes (99): urls_to_attachment_list(), _apply_qc_status_filter(), _base_query(), _derive_qc_conclusion(), _ensure_notification(), _eq_ci(), _fetch_completed_tasks(), _fmt_dt() (+91 more)
### Community 12 - "Community 12"
Cohesion: 0.35
Nodes (71): BatchStockInBody, BatchStockInItem, BatchStockOutBody, BatchStockOutItem, ConsumableCreateBody, ConsumablePackCreateBody, ConsumablePackUpdateBody, ConsumableUpdateBody (+63 more)
Cohesion: 0.06
Nodes (51): _avatar_url_field(), _build_user_info_payload(), _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/zkxw.sql 基线), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录:账号为 sys_user.user_no,密码为 sys_user.password(bcrypt)。, 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。 (+43 more)
### Community 13 - "Community 13"
Cohesion: 0.06
Nodes (62): get_next_cell_product_code(), _ancestor_link_from_cell_product_input(), _ancestor_sample_chain_link(), _apply_cell_product_status_change(), _build_ancestor_chain(), _build_descendant_chain(), _build_facility_path_label(), build_split_product_codes() (+54 more)
Cohesion: 0.07
Nodes (57): aggregate_slot_stats_by_facility(), _apply_slot_select_base_filters(), _apply_slot_select_query_filters(), batch_create_slots(), _build_slot_keyword_sql_filters(), collect_descendant_ids(), create_facility(), create_slot() (+49 more)
### Community 14 - "Community 14"
Cohesion: 0.07
Nodes (49): _jwt_user_payload(), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录:账号为 sys_user.user_no,密码为 sys_user.password(bcrypt)。, refresh_token(), web_login(), web_login_rsa_public_key(), lifespan(), create_access_token() (+41 more)
### Community 15 - "Community 15"
Cohesion: 0.11
Nodes (35): batch_create_sterilize_logs(), batch_create_wash_logs(), batch_discard_garments(), batch_soft_delete_garments(), _count_map(), create_garment(), create_sterilize_log(), create_wash_log() (+27 more)
### Community 16 - "Community 16"
### Community 15 - "Community 15"
Cohesion: 0.12
Nodes (11): get_wechat_pay_client(), get_wechat_pay_v2(), 微信支付工具模块 支持微信支付 V3 API 文档参考: https://pay.weixin.qq.com/docs/v3/apis/index.ht, 统一下单接口 (V3) Args: out_trade_no: 商户订单号 total, 申请退款 Args: out_trade_no: 商户订单号 total_amount, 小程序调起支付的二次签名参数(与公众号 JSAPI 规则一致), 统一下单 (V2 API) Args: out_trade_no: 商户订单号 tot, 生成签名 V3 (SHA256 with RSA) (+3 more)
Nodes (10): get_wechat_pay_client(), get_wechat_pay_v2(), 微信支付工具模块 支持微信支付 V3 API 文档参考: https://pay.weixin.qq.com/docs/v3/apis/index.ht, 统一下单接口 (V3) Args: out_trade_no: 商户订单号 total, 小程序调起支付的二次签名参数(与公众号 JSAPI 规则一致), 统一下单 (V2 API) Args: out_trade_no: 商户订单号 tot, 生成签名 V3 (SHA256 with RSA), wechat_pay() (+2 more)
### Community 16 - "Community 16"
Cohesion: 0.19
Nodes (27): _amount_for_row(), _batch_map(), deduct_for_task(), _deduct_task_usage_legacy_batch(), _display_remark(), _fmt_date_val(), _linked_qc_task_no_map(), list_linked_task_usages() (+19 more)
### Community 17 - "Community 17"
Cohesion: 0.14
Nodes (17): create_collection_region(), create_hospital(), get_collection_region(), get_hospital(), list_hospitals(), soft_delete_collection_region(), soft_delete_hospital(), update_collection_region() (+9 more)
Cohesion: 0.2
Nodes (19): _code_exists(), create_material(), _dec(), _fmt_dt(), get_material(), get_material_entity(), get_my_usages(), _is_enabled_status() (+11 more)
### Community 18 - "Community 18"
Cohesion: 0.18
Nodes (18): company_code_exists(), create_company(), get_company(), list_companies(), list_company_options(), _row_to_dict(), soft_delete_company(), update_company() (+10 more)
Cohesion: 0.27
Nodes (12): create_equipment(), _dec(), equipment_code_exists(), equipment_is_referenced(), get_equipment(), list_equipments(), _norm_status(), _parse_date() (+4 more)
### Community 19 - "Community 19"
Cohesion: 0.23
Nodes (17): _apply_qc_status_filter(), _base_query(), _derive_qc_conclusion(), _ensure_notification(), _eq_ci(), _fetch_completed_tasks(), _fmt_dt(), generate_sms_content() (+9 more)
### Community 20 - "Community 20"
Cohesion: 0.25
Nodes (13): batch_issue_protocol_nos(), batch_revoke_protocol_nos(), create_protocol_no(), get_protocol_no(), list_protocol_nos(), _parse_issued_time(), protocol_no_exists(), 采集协议号池 CRUD(biz_collection_protocol_no) (+5 more)
### Community 21 - "Community 21"
Cohesion: 0.26
Nodes (12): batch_issue_sample_codes(), batch_revoke_sample_codes(), create_sample_code(), get_sample_code(), list_sample_codes(), _parse_issued_time(), 样本编码池 CRUD(biz_sample_code), _resolve_issued_user_display_name() (+4 more)
### Community 22 - "Community 22"
### Community 20 - "Community 20"
Cohesion: 0.24
Nodes (9): 微信消息通知服务 支持微信小程序模板消息推送 使用方式: from app.core.wechat_message import Wech, 发送模板消息 Args: openid: 用户openid templ, send_delivery_notice(), send_delivery_warning(), send_order_status(), send_payment_success(), send_refund_result(), send_urge_notification() (+1 more)
### Community 23 - "Community 23"
Cohesion: 0.31
Nodes (11): create_equipment(), _dec(), equipment_code_exists(), equipment_is_referenced(), get_equipment(), list_equipments(), _norm_status(), _parse_date() (+3 more)
### Community 24 - "Community 24"
Cohesion: 0.27
Nodes (11): create_consumable_pack(), get_consumable_pack(), get_pack_detail(), _item_row_to_dict(), list_all_packs(), list_consumable_packs(), pack_code_exists(), 耗材包 CRUD(biz_consumable_pack + biz_consumable_pack_item) (+3 more)
### Community 25 - "Community 25"
### Community 21 - "Community 21"
Cohesion: 0.24
Nodes (11): deduct_for_step(), _display_remark(), list_stock_logs(), _parse_receiver_purpose_from_remark(), 试剂变动记录 CRUD(biz_reagent_stock_log), 撤销步骤此前 step_save 扣减,便于重新填报。, 扣减试剂库存并生成变动记录。调用方控制事务,本函数不 commit。, _resolve_receiver_purpose() (+3 more)
Nodes (12): appointment_no_exists(), create_exhibition_appointment(), _format_visit_date(), _generate_appointment_no(), get_exhibition_appointment(), list_exhibition_appointments(), 展览预约 CRUD(biz_exhibition_appointment), 生成预约编号:YYYYMMDD + 6位序号(如 20260515000001) (+4 more)
### Community 26 - "Community 26"
### Community 22 - "Community 22"
Cohesion: 0.24
Nodes (11): deduct_for_step(), _display_remark(), list_stock_logs(), _parse_receiver_purpose_from_remark(), 耗材变动记录 CRUD(biz_consumable_stock_log), 撤销步骤此前 step_save 扣减,便于重新填报。, 扣减耗材库存并生成变动记录。调用方控制事务,本函数不 commit。, _resolve_receiver_purpose() (+3 more)
### Community 27 - "Community 27"
### Community 23 - "Community 23"
Cohesion: 0.24
Nodes (11): deduct_for_step(), _display_remark(), list_stock_logs(), _parse_receiver_purpose_from_remark(), 试剂变动记录 CRUD(biz_reagent_stock_log), 撤销步骤此前 step_save 扣减,便于重新填报。, 扣减试剂库存并生成变动记录。调用方控制事务,本函数不 commit。, _resolve_receiver_purpose() (+3 more)
### Community 24 - "Community 24"
Cohesion: 0.23
Nodes (10): create_dict_data(), get_dict_data(), is_dict_value_valid(), list_dict_data(), list_dict_data_options(), normalize_transfer_type(), 字典数据 CRUD(sys_dict_data), _row_to_dict() (+2 more)
### Community 25 - "Community 25"
Cohesion: 0.27
Nodes (8): create_customer(), get_customer(), id_card_taken(), list_customers(), 客户 CRUD(biz_customer), _row_to_dict(), soft_delete_customer(), update_customer()
Nodes (11): _build_tree(), _cascade_soft_delete(), _collect_with_ancestors(), create_dept(), get_dept(), list_depts(), list_depts_tree(), 保留匹配节点及其全部上级,供关键词检索后仍能正确组树。 (+3 more)
### Community 26 - "Community 26"
Cohesion: 0.2
Nodes (5): CellProductBatchItem, CellProductListQuery, coerce_date_fields(), _coerce_optional_datetime(), 兼容前端 date-picker 的 YYYY-MM-DD 与完整日期时间字符串。
### Community 27 - "Community 27"
Cohesion: 0.2
Nodes (9): get_user_menu_codes(), 菜单 code 权限守卫(V0.3:通过 sys_user_role → sys_role_menu → sys_menu.perms), 运营端角色守卫:admin / super_admin 可访问。, 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。, 接口菜单权限守卫(已统一放行 menuCode 校验,仅保留运营端登录)。, 接口菜单权限守卫(已统一放行 menuCode 校验,仅保留运营端登录)。, require_admin_or_super_admin(), require_any_menu_code() (+1 more)
### Community 28 - "Community 28"
Cohesion: 0.31
Nodes (8): create_sop_document(), get_sop_document(), list_sop_documents(), SOP文档 CRUD(biz_sop_document), _row_to_dict(), soft_delete_sop_document(), sop_code_exists(), update_sop_document()
### Community 29 - "Community 29"
Cohesion: 0.31
Nodes (8): create_express_company(), express_code_exists(), get_express_company(), list_express_companies(), 快递公司 CRUD(biz_express_company), _row_to_dict(), soft_delete_express_company(), update_express_company()
### Community 30 - "Community 30"
Cohesion: 0.38
Nodes (9): create_check_item(), get_check_item(), item_code_exists(), list_active_check_items(), list_check_items(), _order_query(), _row_to_dict(), soft_delete_check_item() (+1 more)
### Community 31 - "Community 31"
### Community 29 - "Community 29"
Cohesion: 0.38
Nodes (9): create_env_detect_item(), get_env_detect_item(), item_code_exists(), list_active_env_detect_items(), list_env_detect_items(), _order_query(), _row_to_dict(), soft_delete_env_detect_item() (+1 more)
### Community 32 - "Community 32"
### Community 30 - "Community 30"
Cohesion: 0.31
Nodes (8): create_cell_sample_type(), get_cell_sample_type(), list_cell_sample_types(), 细胞样本类型 CRUD(biz_cell_sample_type), _row_to_dict(), soft_delete_cell_sample_type(), type_code_exists(), update_cell_sample_type()
Nodes (8): category_code_exists(), create_process_category(), get_process_category(), list_process_categories(), 工艺工序分类 CRUD(biz_process_category), _row_to_dict(), soft_delete_process_category(), update_process_category()
### Community 33 - "Community 33"
### Community 31 - "Community 31"
Cohesion: 0.31
Nodes (8): create_output_type(), get_output_type(), list_output_types(), 工艺产出物类型 CRUD(biz_output_type), _row_to_dict(), soft_delete_output_type(), type_code_exists(), update_output_type()
### Community 34 - "Community 34"
Cohesion: 0.36
Nodes (7): create_tenant(), get_tenant(), list_tenants(), _row_to_dict(), soft_delete_tenant(), tenant_no_exists(), update_tenant()
### Community 32 - "Community 32"
Cohesion: 0.33
Nodes (7): _cascade_soft_delete(), create_menu(), get_menu(), list_menus(), _row_to_dict(), soft_delete_menu(), update_menu()
### Community 35 - "Community 35"
### Community 33 - "Community 33"
Cohesion: 0.36
Nodes (7): create_site(), get_site(), list_sites(), _row_to_dict(), site_code_exists(), soft_delete_site(), update_site()
### Community 34 - "Community 34"
Cohesion: 0.29
Nodes (2): BaseModel, SoftDeleteModel
### Community 36 - "Community 36"
### Community 35 - "Community 35"
Cohesion: 0.38
Nodes (6): derive_legacy_status_from_three(), derive_three_status_from_legacy(), 阶段A兼容:从旧 status 推导三字段。 约束:旧 status 本身混合了支付/配送/订单生命周期,因此只能尽力推断; 若业务侧已有更精确, 阶段A兼容:从三字段反推旧 status(用于旧前端/旧筛选参数兼容)。, ThreeStatus, _to_decimal()
### Community 36 - "Community 36"
Cohesion: 0.4
Nodes (4): list_ethnics_for_select(), list_ethnics(), 民族码表 CRUD(全局 sys_ethnic), _row_to_dict()
### Community 37 - "Community 37"
Cohesion: 0.5
Nodes (3): BaseSettings, Config, Settings
@@ -279,7 +279,7 @@ Nodes (1): 发送催单通知给配送员 Args: del
## Knowledge Gaps
- **132 isolated node(s):** `刷新会话 TTL(refreshToken 续期;已登录用户每次 API 校验通过后滑动续期)`, `写入 refreshToken(用于 one-time 使用/吊销)`, `根据 token 获取当前用户(包含 Redis 会话校验;会话滑动续期)`, `登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。`, `加载 RSA 密钥对:优先环境变量,否则使用内置固定默认密钥。` (+127 more)
These have ≤1 connection - possible missing edges or undocumented components.
- **Thin community `Community 35`** (8 nodes): `BaseModel`, `.to_dict()`, `get_active()`, `base.py`, `SoftDeleteModel`, `.restore()`, `.soft_delete()`, `__tablename__()`
- **Thin community `Community 34`** (8 nodes): `BaseModel`, `.to_dict()`, `get_active()`, `base.py`, `SoftDeleteModel`, `.restore()`, `.soft_delete()`, `__tablename__()`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 38`** (4 nodes): `_auto_fill_create_dept_id()`, `get_db()`, `database.py`, `ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
@@ -305,17 +305,17 @@ Nodes (1): 发送催单通知给配送员 Args: del
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `SysUser` connect `Community 1` to `Community 2`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 10`, `Community 11`, `Community 12`, `Community 14`, `Community 20`, `Community 21`, `Community 25`, `Community 26`?**
_High betweenness centrality (0.127) - this node is a cross-community bridge._
- **Why does `generate_uuid()` connect `Community 4` to `Community 0`, `Community 3`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 15`, `Community 17`, `Community 18`, `Community 19`, `Community 20`, `Community 21`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 27`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 32`, `Community 33`, `Community 34`?**
_High betweenness centrality (0.083) - this node is a cross-community bridge._
- **Why does `success_response()` connect `Community 0` to `Community 1`, `Community 39`, `Community 7`, `Community 9`, `Community 10`, `Community 13`, `Community 14`?**
_High betweenness centrality (0.049) - this node is a cross-community bridge._
- **Are the 716 inferred relationships involving `str` (e.g. with `unhandled_exception_handler()` and `get_current_user_by_token()`) actually correct?**
_`str` has 716 INFERRED edges - model-reasoned connections that need verification._
- **Are the 661 inferred relationships involving `success_response()` (e.g. with `list_storage_release_reviews()` and `get_storage_release_review_detail()`) actually correct?**
_`success_response()` has 661 INFERRED edges - model-reasoned connections that need verification._
- **Are the 545 inferred relationships involving `error_response()` (e.g. with `_json_error_response()` and `list_storage_release_reviews()`) actually correct?**
_`error_response()` has 545 INFERRED edges - model-reasoned connections that need verification._
- **Are the 472 inferred relationships involving `SysUser` (e.g. with `数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3` and `从 SysUser 读取用户的 dept_id。`) actually correct?**
_`SysUser` has 472 INFERRED edges - model-reasoned connections that need verification._
- **Why does `SysUser` connect `Community 1` to `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 6`, `Community 8`, `Community 9`, `Community 12`, `Community 19`, `Community 22`, `Community 23`?**
_High betweenness centrality (0.097) - this node is a cross-community bridge._
- **Why does `generate_uuid()` connect `Community 3` to `Community 0`, `Community 1`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 16`, `Community 17`, `Community 18`, `Community 19`, `Community 21`, `Community 22`, `Community 23`, `Community 24`, `Community 25`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 32`, `Community 33`?**
_High betweenness centrality (0.073) - this node is a cross-community bridge._
- **Why does `success_response()` connect `Community 0` to `Community 1`, `Community 36`, `Community 5`, `Community 39`, `Community 9`, `Community 10`, `Community 12`?**
_High betweenness centrality (0.067) - this node is a cross-community bridge._
- **Are the 729 inferred relationships involving `str` (e.g. with `unhandled_exception_handler()` and `get_current_user_by_token()`) actually correct?**
_`str` has 729 INFERRED edges - model-reasoned connections that need verification._
- **Are the 667 inferred relationships involving `success_response()` (e.g. with `list_storage_release_reviews()` and `get_storage_release_review_detail()`) actually correct?**
_`success_response()` has 667 INFERRED edges - model-reasoned connections that need verification._
- **Are the 551 inferred relationships involving `error_response()` (e.g. with `_json_error_response()` and `list_storage_release_reviews()`) actually correct?**
_`error_response()` has 551 INFERRED edges - model-reasoned connections that need verification._
- **Are the 476 inferred relationships involving `SysUser` (e.g. with `数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3` and `从 SysUser 读取用户的 dept_id。`) actually correct?**
_`SysUser` has 476 INFERRED edges - model-reasoned connections that need verification._
+4 -4
View File
@@ -57,12 +57,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">4375 nodes &middot; 23435 edges &middot; 54 communities</div>
<div id="stats">4437 nodes &middot; 23779 edges &middot; 54 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "init_py", "label": "__init__.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 42, "community_name": "Community 42", "source_file": "__init__.py", "file_type": "code", "degree": 0}, {"id": "main_py", "label": "main.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "main.py", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 7}, {"id": "app_main_lifespan", "label": "lifespan()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "lifespan()", "community": 14, "community_name": "Community 14", "source_file": "main.py", "file_type": "code", "degree": 4}, {"id": "app_main_error_json", "label": "_error_json()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "_error_json()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 3}, {"id": "app_main_sqlalchemy_exception_handler", "label": "sqlalchemy_exception_handler()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "sqlalchemy_exception_handler()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 4}, {"id": "app_main_unhandled_exception_handler", "label": "unhandled_exception_handler()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "unhandled_exception_handler()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 5}, {"id": "app_main_mask_secret", "label": "_mask_secret()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_mask_secret()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_root", "label": "root()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "root()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_health_check", "label": "health_check()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "health_check()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_rationale_81", "label": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "rationale", "degree": 3}, {"id": "app_main_rationale_92", "label": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "rationale", "degree": 3}, {"id": "tasks_init_py", "label": "__init__.py", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 14, "community_name": "Community 14", "source_file": "tasks/__init__.py", "file_type": "code", Line truncated
const RAW_EDGES = [{"from": "main_py", "to": "app_main_lifespan", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_error_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_sqlalchemy_exception_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_unhandled_exception_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_mask_secret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_root", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_health_check", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_lifespan", "to": "core_login_crypto_ensure_initialized", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_lifespan", "to": "tasks_init_init_scheduled_tasks", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_lifespan", "to": "tasks_init_shutdown_scheduler", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_error_json", "to": "app_main_sqlalchemy_exception_handler", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_error_json", "to": "app_main_unhandled_exception_handler", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_sqlalchemy_exception_handler", "to": "app_main_rationale_81", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_sqlalchemy_exception_handler", "to": "exception", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_unhandled_exception_handler", "to": "app_main_rationale_92", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_unhandled_exception_handler", "to": "exception", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_unhandled_exception_handler", "to": "str", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_81", "to": "core_api_request_log_middleware_apirequestlogmiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_81", "to": "core_api_crypto_middleware_apicryptomiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_92", "to": "core_api_request_log_middleware_apirequestlogmiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_92", "to": "core_api_crypto_middleware_apicryptomiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "tasks_init_py", "to": "tasks_init_init_scheduled_tasks", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "tasks_init_py", "to": "tasks_init_shutdown_scheduler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_py", "to": "core_auth_redis_session_enabled", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_py", "to": "core_auth_get_redis_client", "labeLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 898}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 601}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 368}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 330}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 325}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 245}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 215}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 198}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 188}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 186}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 165}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 111}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 78}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 66}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 58}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 38}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 31}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 21}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 20}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 19}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 15}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 14}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 13}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 13}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 13}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 12}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 12}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 11}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 10}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 10}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 10}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 10}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 10}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 10}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 9}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 8}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 7}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 4}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 4}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 3}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 2}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 2}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 1}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 1}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 1}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 1}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 1}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 1}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 1}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 1}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 1}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 1}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 1}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 1}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 0}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 0}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 0}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 0}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 0}];
const RAW_NODES = [{"id": "init_py", "label": "__init__.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 42, "community_name": "Community 42", "source_file": "__init__.py", "file_type": "code", "degree": 0}, {"id": "main_py", "label": "main.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "main.py", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 7}, {"id": "app_main_lifespan", "label": "lifespan()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "lifespan()", "community": 12, "community_name": "Community 12", "source_file": "main.py", "file_type": "code", "degree": 4}, {"id": "app_main_error_json", "label": "_error_json()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "_error_json()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 3}, {"id": "app_main_sqlalchemy_exception_handler", "label": "sqlalchemy_exception_handler()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "sqlalchemy_exception_handler()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 4}, {"id": "app_main_unhandled_exception_handler", "label": "unhandled_exception_handler()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "unhandled_exception_handler()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 5}, {"id": "app_main_mask_secret", "label": "_mask_secret()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_mask_secret()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_root", "label": "root()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "root()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_health_check", "label": "health_check()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "health_check()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_rationale_81", "label": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "rationale", "degree": 3}, {"id": "app_main_rationale_92", "label": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "rationale", "degree": 3}, {"id": "tasks_init_py", "label": "__init__.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 12, "community_name": "Community 12", "source_file": "tasks/__init__.py", "file_type": "code", Line truncated
const RAW_EDGES = [{"from": "main_py", "to": "app_main_lifespan", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_error_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_sqlalchemy_exception_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_unhandled_exception_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_mask_secret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_root", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_health_check", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_lifespan", "to": "core_login_crypto_ensure_initialized", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_lifespan", "to": "tasks_init_init_scheduled_tasks", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_lifespan", "to": "tasks_init_shutdown_scheduler", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_error_json", "to": "app_main_sqlalchemy_exception_handler", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_error_json", "to": "app_main_unhandled_exception_handler", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_sqlalchemy_exception_handler", "to": "app_main_rationale_81", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_sqlalchemy_exception_handler", "to": "exception", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_unhandled_exception_handler", "to": "app_main_rationale_92", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_unhandled_exception_handler", "to": "exception", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_unhandled_exception_handler", "to": "str", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_81", "to": "core_api_request_log_middleware_apirequestlogmiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_81", "to": "core_api_crypto_middleware_apicryptomiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_92", "to": "core_api_request_log_middleware_apirequestlogmiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_92", "to": "core_api_crypto_middleware_apicryptomiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "tasks_init_py", "to": "tasks_init_init_scheduled_tasks", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "tasks_init_py", "to": "tasks_init_shutdown_scheduler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_py", "to": "core_auth_redis_session_enabled", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_py", "to": "core_auth_get_redis_client", "labeLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 906}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 641}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 347}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 326}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 324}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 306}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 288}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 210}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 193}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 181}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 140}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 112}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 60}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 59}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 38}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 29}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 28}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 20}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 14}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 14}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 13}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 13}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 12}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 12}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 12}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 12}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 11}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 10}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 10}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 10}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 10}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 10}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 9}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 9}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 8}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 7}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 6}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 4}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 4}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 3}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 2}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 2}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 1}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 1}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 1}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 1}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 1}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 1}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 1}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 1}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 1}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 1}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 1}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 1}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 0}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 0}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 0}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 0}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 0}];
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
+22231 -17545
View File
File diff suppressed because it is too large. Load diff
+26 -24
View File
@@ -1,6 +1,6 @@
{
"/Users/wuzilong/work/00code/zkxw/backend/app/__init__.py": 1778578257.989357,
"/Users/wuzilong/work/00code/zkxw/backend/app/main.py": 1782203448.178036,
"/Users/wuzilong/work/00code/zkxw/backend/app/main.py": 1782719013.8957272,
"/Users/wuzilong/work/00code/zkxw/backend/app/tasks/__init__.py": 1778579841.437791,
"/Users/wuzilong/work/00code/zkxw/backend/app/core/auth.py": 1782122636.871432,
"/Users/wuzilong/work/00code/zkxw/backend/app/core/api_crypto.py": 1778578258.039314,
@@ -28,7 +28,7 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/models/material.py": 1781427174.243315,
"/Users/wuzilong/work/00code/zkxw/backend/app/models/production_material.py": 1782404882.9262497,
"/Users/wuzilong/work/00code/zkxw/backend/app/models/qc_param.py": 1782379593.174925,
"/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py": 1782381881.8049347,
"/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py": 1782718919.3843675,
"/Users/wuzilong/work/00code/zkxw/backend/app/models/cleanroom_garment.py": 1781347080.6165943,
"/Users/wuzilong/work/00code/zkxw/backend/app/models/__init__.py": 1781344070.5899634,
"/Users/wuzilong/work/00code/zkxw/backend/app/models/research_donation.py": 1780458012.8329656,
@@ -50,7 +50,7 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_parameter_value.py": 1778578258.0980055,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_review_media.py": 1778578258.0986822,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_parameter.py": 1778578258.0977957,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py": 1782602017.9535224,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py": 1782717312.10853,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_detail_media.py": 1778578258.0973988,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_banner.py": 1778578258.097102,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/region.py": 1778578258.099429,
@@ -58,7 +58,7 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/order.py": 1778578258.0960286,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/__init__.py": 1781502992.2721803,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/order_adjust.py": 1778578258.0963318,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py": 1779594151.5265117,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/cell_product.py": 1782711015.11309,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/menu.py": 1778578258.0957444,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/attachment.py": 1778763456.6244864,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/category_parameter.py": 1778578258.0944862,
@@ -73,10 +73,10 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/category.py": 1778578258.0941947,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/leave.py": 1778666088.7680702,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_release_review.py": 1781536745.221194,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py": 1781524075.5310335,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py": 1782717312.9816003,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_task.py": 1782601942.7436867,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py": 1782289879.5489628,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py": 1780479191.5382729,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py": 1782717483.0699635,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py": 1782709076.5173395,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_task_result.py": 1782379630.9640372,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_release_review.py": 1781603141.940902,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_material_stock_check.py": 1781423988.9720724,
@@ -85,10 +85,10 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception_check_result.py": 1779255909.8554008,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_material_stock_batch.py": 1782404955.550011,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/user.py": 1780539127.1805215,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py": 1782603887.2665036,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py": 1782719112.3810234,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/material.py": 1781522283.6438622,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_type.py": 1779265621.5212462,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py": 1781335540.360182,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py": 1782711147.4996655,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_third_party_company.py": 1781415374.1019006,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_material.py": 1781344099.4832826,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/material_stock_log.py": 1779281903.0942652,
@@ -97,10 +97,11 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/material_usage.py": 1781427187.4456425,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_material_usage.py": 1781513732.7796721,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sop_document.py": 1779265721.9928973,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py": 1782602728.4870389,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py": 1782720551.1688514,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_third_party_item.py": 1779265661.482352,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py": 1782721891.8907404,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/reagent.py": 1779512669.9847593,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py": 1782195334.7812605,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol.py": 1782719109.6706095,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/cleanroom_garment.py": 1782264452.4901433,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_material_usage.py": 1781423974.5969574,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/biz_no_generator.py": 1779882385.4674172,
@@ -123,38 +124,38 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_sms_notification.py": 1781590614.9654794,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_task_assignee.py": 1781233180.3766735,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation_sample_collection.py": 1781063441.5812025,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py": 1781605163.863542,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py": 1782711017.1302924,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/menu.py": 1779265729.0381103,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_region.py": 1782181887.2821388,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_delivery.py": 1779935673.6808827,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception_check_item.py": 1779007909.2933013,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/site.py": 1781401290.6845422,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/api_request_log.py": 1778578258.0614743,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py": 1779265627.276101,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py": 1782206191.5779727,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py": 1782713849.285536,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py": 1782719110.48261,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/ethnic.py": 1779265849.547566,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_material_formula.py": 1781344175.5871844,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_checkup.py": 1779935785.233911,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/env_detect_item.py": 1781145689.9525824,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_category.py": 1779265700.0606413,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/item_unit.py": 1779265653.7504313,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py": 1782603403.7497387,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py": 1782719526.9249575,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_handover_inventory.py": 1781598316.476379,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/env_detect_record.py": 1782376492.2365673,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_release_material.py": 1781612877.0137436,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py": 1782289878.7772164,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py": 1782717482.6707804,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_service.py": 1781599314.0124536,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/customer.py": 1779686149.7508218,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/workflow.py": 1779265993.677624,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_sms_notification.py": 1781063495.0317714,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py": 1782453439.7806726,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py": 1782719096.6028564,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/consumable_pack.py": 1779265715.416005,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_inspection_batch.py": 1782569255.0879426,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_material_prep.py": 1781514953.3551314,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_material.py": 1779284415.64655,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol_no.py": 1779882001.753651,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_handover.py": 1780455574.0993364,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py": 1782606396.9462752,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py": 1782711148.1420732,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception_lab_code.py": 1782377429.191194,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_sample_type.py": 1781747645.1762104,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_outbound_status_sync.py": 1781595840.6955194,
@@ -167,7 +168,7 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/leave.py": 1779265839.500242,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/output_type.py": 1779265703.7363207,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/exhibition_appointment.py": 1778801075.5211918,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py": 1781750839.838135,
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py": 1782713876.5518267,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/storage_release_review.py": 1779526635.1455016,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/outbound_release_review.py": 1779968232.5759368,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/public.py": 1782122639.96012,
@@ -175,18 +176,19 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/api/production_material.py": 1782404982.2474263,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/qc.py": 1782603414.9912539,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/market.py": 1781522283.6823432,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_production_reception.py": 1782718998.90251,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/collection_protocol.py": 1782195334.2335806,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/cleanroom_garment.py": 1781347256.2326367,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py": 1782181889.9448428,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py": 1782709076.3968658,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_infusion_confirm.py": 1779657043.1389203,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_infusion_schedule_mgmt.py": 1779940938.18027,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py": 1782203443.8451238,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py": 1782719000.5995934,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/storage_entry_sms_notification.py": 1780325524.9170487,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_application.py": 1781079904.0516074,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/pre_transit_sample.py": 1782204426.7965167,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/qc_sms_notification.py": 1780326875.7886882,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/research_donation_sample_collection.py": 1780457788.2998126,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py": 1782600948.8340454,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py": 1782699385.46194,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/menu.py": 1781749943.5843754,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_delivery.py": 1779655584.820777,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/admin.py": 1782469068.0578597,
@@ -197,9 +199,9 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_service.py": 1781599314.0221174,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/workflow.py": 1779266232.4568832,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_sms_notification.py": 1780325524.907156,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py": 1781535825.750677,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py": 1782719108.3741593,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/insurance_company.py": 1781410837.9443986,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py": 1782603887.260121,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py": 1782711017.6634378,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/protocol_sample_collection.py": 1780457788.2093296,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/leave.py": 1779266168.8693042,
"/Users/wuzilong/work/00code/zkxw/backend/app/api/clinical_payment.py": 1781750841.074568,
@@ -0,0 +1,559 @@
#!/usr/bin/env python3
"""历史细胞产品批量补录(细胞产品库 + 库位占用)。
规则(与业务约定一致):
- 冻存位置 = 冻存盒 + 序号(序号去前导 0),如 1-1-1 + 001 → 1-1-1-1
- 产品名称、批次号 = 细胞编码
- 产品编码(系统唯一)= 细胞编码 + '-' + 序号(去前导 0),如 MSC011-P5-1
- 预计细胞数量:万 → 千万(1000万 = 1,5000万 = 5);写入 biz_cell_product.expected_cell_count
- 执行顺序:旧库先执行 docs/sql/migrate_expected_cell_count_to_qianwan.sql,再导入或正常使用
- 冻存日期 = 操作时间;有效期 = 操作时间 + 20 年
- 创建人默认周斌倩;备注保留 TSV 整行原文(含「备注」列,共 7 列)
- 代次:从编码末尾 -P{n} 解析(PBMC/UBMC 等无代次则留空)
用法:
cd backend && source venv/bin/activate
python scripts/import_cell_products_historical.py --dry-run
python scripts/import_cell_products_historical.py --execute
python scripts/import_cell_products_historical.py --execute --replace # 先删后导
"""
from __future__ import annotations
import argparse
import csv
import re
import sys
from dataclasses import dataclass
from datetime import datetime
from pathlib import Path
from types import SimpleNamespace
from typing import Dict, List, Optional, Tuple
ROOT = Path(__file__).resolve().parents[1]
REPO = ROOT.parent
DEFAULT_TSV = REPO / "docs/data/cell_products_historical_2025.tsv"
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
from sqlalchemy.orm import Session
from app.core.database import SessionLocal
from app.crud import cell_product as cell_product_svc
from app.crud import storage_occupancy as occupancy_svc
from app.crud.storage_facility import _slot_to_dict, load_facility_map
from app.models.models import (
BizCellProduct,
BizStorageFacilitySlot,
BizStorageSlotOccupancy,
SysUser,
)
PASSAGE_RE = re.compile(r"-P([1-8])$", re.IGNORECASE)
DATE_RE = re.compile(r"^(\d{4})\.(\d{1,2})\.(\d{1,2})$")
DATE_YEAR_ONLY_RE = re.compile(r"^(\d{4})$")
SLOT_CODE_LINE_RE = re.compile(r"^\d+-\d+-\d+-\d+$")
DEFAULT_EXCLUDE_SLOTS_FILE = REPO / "细胞产品库数据刷新/特别注意.md"
@dataclass
class ImportRow:
box: str
seq_raw: str
cell_code: str
count_text: str
op_date_raw: str
operators: str
client_remark: str
seq_int: int
storage_location: str
product_code: str
expected_cell_count_qianwan: Optional[float]
freeze_date: Optional[datetime]
expiry_date: Optional[datetime]
passage: Optional[str]
remark: str
def parse_count_to_qianwan(text: str) -> Optional[float]:
"""TSV「细胞数量」列 → 千万:1000万=1,1千万=1,1亿=10;空值返回 None。"""
s = (text or "").strip().replace(",", "")
if not s:
return None
if "亿" in s:
return float(s.replace("亿", "").strip()) * 10.0
if "千万" in s:
return float(s.replace("千万", "").strip())
if "百万" in s:
return float(s.replace("百万", "").strip()) / 10.0
if "万" in s:
return float(s.replace("万", "").strip()) / 1000.0
raise ValueError(f"无法解析细胞数量: {text!r}")
def parse_op_date(text: str) -> Optional[datetime]:
s = (text or "").strip()
if not s:
return None
m = DATE_RE.match(s)
if m:
return datetime(int(m.group(1)), int(m.group(2)), int(m.group(3)))
y = DATE_YEAR_ONLY_RE.match(s)
if y:
return datetime(int(y.group(1)), 1, 1)
raise ValueError(f"无法解析操作时间: {text!r}")
def add_years(dt: datetime, years: int) -> datetime:
try:
return dt.replace(year=dt.year + years)
except ValueError:
# 2 月 29 日等边界
return dt.replace(month=2, day=28, year=dt.year + years)
def extract_passage(cell_code: str) -> Optional[str]:
m = PASSAGE_RE.search((cell_code or "").strip())
return f"P{m.group(1)}" if m else None
def build_storage_location(box: str, seq_raw: str) -> Tuple[int, str]:
seq_int = int((seq_raw or "").strip())
box = (box or "").strip()
return seq_int, f"{box}-{seq_int}"
def build_product_code(cell_code: str, seq_int: int, box: Optional[str] = None) -> str:
cell = (cell_code or "").strip()
if box:
return f"{cell}-{(box or '').strip()}-{seq_int}"
return f"{cell}-{seq_int}"
def assign_product_codes(rows: List[ImportRow]) -> None:
"""单冻存盒批次:{细胞编码}-{序号};多冻存盒批次加冻存盒前缀避免跨盒序号重复。"""
multi_box = len({r.box for r in rows}) > 1
for row in rows:
row.product_code = build_product_code(
row.cell_code, row.seq_int, row.box if multi_box else None
)
def load_exclude_slots(path: Optional[Path]) -> set[str]:
"""从特别注意.md 等文件读取不刷新的储物格编号(每行一个,如 1-1-1-1)。"""
if path is None or not path.is_file():
return set()
result: set[str] = set()
for line in path.read_text(encoding="utf-8").splitlines():
s = line.strip()
if SLOT_CODE_LINE_RE.match(s):
result.add(s)
return result
def split_rows_by_exclude(
rows: List[ImportRow], exclude_locations: set[str]
) -> Tuple[List[ImportRow], List[ImportRow]]:
if not exclude_locations:
return rows, []
kept = [r for r in rows if r.storage_location not in exclude_locations]
skipped = [r for r in rows if r.storage_location in exclude_locations]
return kept, skipped
def load_tsv(path: Path) -> List[ImportRow]:
rows: List[ImportRow] = []
with path.open("r", encoding="utf-8") as f:
reader = csv.DictReader(f, delimiter="\t")
for raw in reader:
box = (raw.get("冻存盒") or "").strip()
seq_raw = (raw.get("序号") or "").strip()
cell_code = (raw.get("细胞编码") or "").strip()
count_text = (raw.get("细胞数量") or "").strip()
op_date_raw = (raw.get("操作时间") or "").strip()
operators = (raw.get("操作人") or "").strip()
client_remark = (raw.get("备注") or "").strip()
if not box or not seq_raw or not cell_code:
continue
seq_int, storage_location = build_storage_location(box, seq_raw)
freeze_date = parse_op_date(op_date_raw)
remark = "\t".join(
[box, seq_raw, cell_code, count_text, op_date_raw, operators, client_remark]
)
if len(remark) > 512:
raise ValueError(
f"备注超长(>{512} 字符): 序号 {seq_raw} @ {storage_location}"
)
rows.append(
ImportRow(
box=box,
seq_raw=seq_raw,
cell_code=cell_code,
count_text=count_text,
op_date_raw=op_date_raw,
operators=operators,
client_remark=client_remark,
seq_int=seq_int,
storage_location=storage_location,
product_code="",
expected_cell_count_qianwan=parse_count_to_qianwan(count_text),
freeze_date=freeze_date,
expiry_date=add_years(freeze_date, 20) if freeze_date else None,
passage=extract_passage(cell_code),
remark=remark,
)
)
assign_product_codes(rows)
return rows
def build_slot_map(db: Session, tenant_no: str) -> Dict[str, str]:
facility_by_id = load_facility_map(db, tenant_no)
slots = (
db.query(BizStorageFacilitySlot)
.filter(
BizStorageFacilitySlot.tenant_no == tenant_no,
BizStorageFacilitySlot.del_flag == 0,
)
.all()
)
mapping: Dict[str, str] = {}
dupes: Dict[str, List[str]] = {}
for slot in slots:
row = _slot_to_dict(slot, facility_by_id)
full = (row.get("fullSlotCode") or "").strip()
if not full:
continue
if full in mapping:
dupes.setdefault(full, [mapping[full]]).append(slot.id)
else:
mapping[full] = slot.id
if dupes:
parts = [f"{code}: {ids}" for code, ids in dupes.items()]
raise ValueError(f"储物格完整编号重复,无法导入: {'; '.join(parts)}")
return mapping
def resolve_operator(
db: Session, tenant_no: str, nick_name: str
) -> Tuple[str, str]:
user = (
db.query(SysUser)
.filter(
SysUser.tenant_no == tenant_no,
SysUser.nick_name == nick_name,
SysUser.del_flag == 0,
)
.first()
)
if not user:
raise ValueError(f"未找到操作人用户: {nick_name!r}(tenant_no={tenant_no})")
dept_id = (user.dept_id or "").strip() or ""
return user.id, dept_id
def purge_existing_products(
db: Session,
tenant_no: str,
codes: List[str],
user_id: Optional[str] = None,
) -> int:
"""软删除已有产品并释放库位占用,便于重新导入。"""
removed = 0
for code in codes:
obj = (
db.query(BizCellProduct)
.filter(
BizCellProduct.tenant_no == tenant_no,
BizCellProduct.product_code == code,
BizCellProduct.del_flag == 0,
)
.first()
)
if not obj:
continue
occupancy_svc.remove_by_item_no_commit(db, "cell_product", obj.id, user_id=user_id)
obj.del_flag = 1
obj.update_by = user_id
obj.update_time = datetime.now()
db.add(obj)
removed += 1
if removed:
db.commit()
return removed
def existing_product_codes(db: Session, tenant_no: str, codes: List[str]) -> List[str]:
if not codes:
return []
found = (
db.query(BizCellProduct.product_code)
.filter(
BizCellProduct.tenant_no == tenant_no,
BizCellProduct.product_code.in_(codes),
BizCellProduct.del_flag == 0,
)
.all()
)
return [x[0] for x in found]
def patch_timestamps(
db: Session,
*,
product_id: str,
user_id: str,
op_dt: datetime,
) -> None:
product = (
db.query(BizCellProduct)
.filter(BizCellProduct.id == product_id, BizCellProduct.del_flag == 0)
.first()
)
if product:
product.create_by = user_id
product.update_by = user_id
product.create_time = op_dt
product.update_time = op_dt
occ = (
db.query(BizStorageSlotOccupancy)
.filter(
BizStorageSlotOccupancy.item_type == "cell_product",
BizStorageSlotOccupancy.item_id == product_id,
BizStorageSlotOccupancy.del_flag == 0,
BizStorageSlotOccupancy.occupancy_status == "stored",
)
.order_by(BizStorageSlotOccupancy.create_time.desc())
.first()
)
if occ:
occ.create_by = user_id
occ.update_by = user_id
occ.stored_at = op_dt
occ.create_time = op_dt
occ.update_time = op_dt
slot_id = (product.storage_slot_id or "").strip() if product else ""
if slot_id:
slot = (
db.query(BizStorageFacilitySlot)
.filter(BizStorageFacilitySlot.id == slot_id, BizStorageFacilitySlot.del_flag == 0)
.first()
)
if slot:
slot.last_stored_at = op_dt
def import_one(
db: Session,
*,
tenant_no: str,
user_id: str,
dept_id: str,
row: ImportRow,
slot_id: str,
) -> str:
payload = SimpleNamespace(
product_code=row.product_code,
product_name=row.cell_code,
product_type_id=None,
spec_id=None,
batch_no=row.cell_code,
storage_slot_id=slot_id,
passage=row.passage,
freeze_date=row.freeze_date,
expected_cell_count=row.expected_cell_count_qianwan,
viability=None,
product_status="frozen",
source_type="manual",
quantity=1,
unit=None,
expiry_date=row.expiry_date,
product_images=None,
remark=row.remark,
)
obj = cell_product_svc.create_cell_product(
db,
tenant_no=tenant_no,
user_id=user_id,
create_dept_id=dept_id,
data=payload,
)
patch_timestamps(
db,
product_id=obj.id,
user_id=user_id,
op_dt=row.freeze_date or datetime.now(),
)
db.commit()
return obj.id
def validate_rows(
db: Session,
tenant_no: str,
rows: List[ImportRow],
slot_map: Dict[str, str],
*,
skip_existing_codes: bool = False,
) -> List[str]:
errors: List[str] = []
codes = [r.product_code for r in rows]
if len(codes) != len(set(codes)):
errors.append("导入数据内产品编码重复")
if not skip_existing_codes:
dup_db = existing_product_codes(db, tenant_no, codes)
if dup_db:
errors.append(
f"库中已存在产品编码 ({len(dup_db)}): {', '.join(dup_db[:5])}"
f"{'…' if len(dup_db) > 5 else ''}(可加 --replace 先删后导)"
)
slot_ids: List[str] = []
for row in rows:
slot_id = slot_map.get(row.storage_location)
if not slot_id:
errors.append(f"未找到储物格 {row.storage_location}(序号 {row.seq_raw})")
continue
slot_ids.append(slot_id)
if len(slot_ids) != len(set(slot_ids)):
errors.append("导入数据内储物格重复")
missing_slots = set()
for loc in {r.storage_location for r in rows}:
if loc not in slot_map:
missing_slots.add(loc)
if missing_slots:
sample = ", ".join(sorted(missing_slots)[:8])
errors.append(f"缺失储物格编号 ({len(missing_slots)}): {sample}{'…' if len(missing_slots) > 8 else ''}")
return errors
def print_preview(rows: List[ImportRow], slot_map: Dict[str, str], limit: int = 5) -> None:
print(f"共 {len(rows)} 条待导入。")
print("示例(前几条):")
print(f"{'产品编码':<22} {'储物格':<12} {'千万':>6} {'冻存日':<12} {'代次':<4} 备注")
for row in rows[:limit]:
slot_ok = "✓" if row.storage_location in slot_map else "✗"
count_str = (
f"{row.expected_cell_count_qianwan:>6.4f}"
if row.expected_cell_count_qianwan is not None
else " -"
)
date_str = row.freeze_date.strftime("%Y-%m-%d") if row.freeze_date else "-"
print(
f"{row.product_code:<22} {row.storage_location:<10}{slot_ok} "
f"{count_str} {date_str:<12} "
f"{row.passage or '-':<4} {row.remark[:40]}…"
)
if len(rows) > limit:
print(f"… 其余 {len(rows) - limit} 条略")
def main() -> int:
parser = argparse.ArgumentParser(description="历史细胞产品批量补录")
parser.add_argument(
"--file",
type=Path,
default=DEFAULT_TSV,
help=f"TSV 数据文件(默认 {DEFAULT_TSV.relative_to(REPO)})",
)
parser.add_argument("--tenant-no", default="zkxw")
parser.add_argument("--operator", default="周斌倩", help="create_by 对应用户 nick_name")
parser.add_argument(
"--execute",
action="store_true",
help="实际写入数据库(默认仅 dry-run)",
)
parser.add_argument(
"--replace",
action="store_true",
help="导入前先软删除同产品编码的已有记录并释放库位",
)
parser.add_argument(
"--exclude-slots-file",
type=Path,
default=None,
help=f"不刷新的储物格列表文件(默认不读;可指向 {DEFAULT_EXCLUDE_SLOTS_FILE.name})",
)
args = parser.parse_args()
if not args.file.is_file():
print(f"数据文件不存在: {args.file}", file=sys.stderr)
return 1
all_rows = load_tsv(args.file)
if not all_rows:
print("未解析到任何数据行", file=sys.stderr)
return 1
exclude_locations = load_exclude_slots(args.exclude_slots_file)
rows, skipped_rows = split_rows_by_exclude(all_rows, exclude_locations)
if not rows:
print("排除指定库位后无待导入数据", file=sys.stderr)
return 1
db = SessionLocal()
try:
slot_map = build_slot_map(db, args.tenant_no)
user_id, dept_id = resolve_operator(db, args.tenant_no, args.operator)
print(f"操作人: {args.operator} (id={user_id})")
if exclude_locations:
print(f"跳过不刷新的库位 ({len(exclude_locations)}): {', '.join(sorted(exclude_locations))}")
if skipped_rows:
print(f"因库位排除跳过 {len(skipped_rows)} 条: {', '.join(r.product_code for r in skipped_rows)}")
if args.replace and args.execute:
codes = [r.product_code for r in rows]
n = purge_existing_products(db, args.tenant_no, codes, user_id=user_id)
print(f"已清理旧数据 {n} 条。")
errors = validate_rows(
db, args.tenant_no, rows, slot_map, skip_existing_codes=args.replace
)
print_preview(rows, slot_map)
if errors:
print("\n校验失败:")
for err in errors:
print(f" - {err}")
return 1
if not args.execute:
print("\n[dry-run] 校验通过,未写入。确认后请加 --execute 执行导入。")
return 0
ok = 0
for i, row in enumerate(rows, 1):
slot_id = slot_map[row.storage_location]
try:
import_one(
db,
tenant_no=args.tenant_no,
user_id=user_id,
dept_id=dept_id,
row=row,
slot_id=slot_id,
)
ok += 1
if i % 10 == 0 or i == len(rows):
print(f" 已导入 {i}/{len(rows)} …")
except Exception as e:
db.rollback()
print(
f"\n第 {i} 条失败({row.product_code} @ {row.storage_location}): {e}",
file=sys.stderr,
)
return 1
print(f"\n导入完成:成功 {ok} 条。" + (f"(跳过 {len(skipped_rows)} 条)" if skipped_rows else ""))
return 0
finally:
db.close()
if __name__ == "__main__":
raise SystemExit(main())
@@ -0,0 +1,88 @@
"""储物格下拉关键词:须支持完整 fullSlotCode 模糊匹配。"""
from types import SimpleNamespace
from app.crud.storage_facility import (
_leaf_node_ids_for_path_prefix,
_slot_matches_select_keyword,
_slot_to_dict,
)
from app.services.storage_facility_code import build_full_slot_code
def _facility(node_id: str, node_code: str, parent_id: str = "0") -> SimpleNamespace:
return SimpleNamespace(
id=node_id,
node_code=node_code,
parent_id=parent_id,
node_name=node_code,
)
def _slot(slot_id: str, facility_node_id: str, slot_code: str, remark: str = "") -> SimpleNamespace:
return SimpleNamespace(
id=slot_id,
facility_node_id=facility_node_id,
slot_code=slot_code,
slot_status="空",
occupied_count=0,
tenant_no="zkxw",
order_num=1,
remark=remark,
create_time=None,
update_time=None,
)
def test_full_slot_code_substring_match():
facilities = {
"box": _facility("box", "BOX01", "shelf"),
"shelf": _facility("shelf", "A1", "root"),
"root": _facility("root", "FRZ", "0"),
}
slot = _slot("s1", "box", "03")
full = build_full_slot_code("box", "03", facilities)
assert full == "FRZ-A1-BOX01-03"
row = _slot_to_dict(slot, facilities)
assert row["fullSlotCode"] == full
assert _slot_matches_select_keyword(slot, "FRZ-A1-BOX01-03", facilities, set())
assert _slot_matches_select_keyword(slot, "BOX01-03", facilities, set())
assert _slot_matches_select_keyword(slot, "FRZ-A1", facilities, set())
def test_local_slot_code_and_remark_still_match():
facilities = {"box": _facility("box", "BOX01", "0")}
slot = _slot("s1", "box", "07", remark="备用格")
assert _slot_matches_select_keyword(slot, "07", facilities, set())
assert _slot_matches_select_keyword(slot, "备用", facilities, set())
def test_facility_node_name_match():
facilities = {
"box": _facility("box", "BOX01", "0"),
}
facilities["box"].node_name = "液氮盒A"
slot = _slot("s1", "box", "01")
assert _slot_matches_select_keyword(slot, "液氮", facilities, {"box"})
def test_leaf_node_ids_for_path_prefix():
facilities = {
"box": _facility("box", "BOX01", "shelf"),
"shelf": _facility("shelf", "A1", "root"),
"root": _facility("root", "FRZ", "0"),
}
ids = _leaf_node_ids_for_path_prefix(facilities, "FRZ-A1")
assert ids == {"box", "shelf", "root"}
assert "box" in _leaf_node_ids_for_path_prefix(facilities, "BOX01")
def test_no_match_returns_false():
facilities = {"box": _facility("box", "BOX01", "0")}
slot = _slot("s1", "box", "01")
assert not _slot_matches_select_keyword(slot, "NOT-EXIST", facilities, set())
+4
View File
@@ -5,8 +5,11 @@ ARG NGINX_IMAGE=docker.m.daocloud.io/library/nginx:1.27-alpine
FROM ${NODE_IMAGE} AS builder
ARG NPM_REGISTRY=https://registry.npmmirror.com
ARG NODE_MAX_OLD_SPACE_SIZE=4096
# corepack 默认走 registry.npmjs.org,国内/受限网络会失败;须显式指定镜像
ENV COREPACK_NPM_REGISTRY=${NPM_REGISTRY}
ENV NODE_OPTIONS="--max-old-space-size=${NODE_MAX_OLD_SPACE_SIZE}"
ENV NODE_ENV=production
RUN corepack enable && corepack prepare pnpm@9.15.4 --activate
@@ -17,6 +20,7 @@ RUN pnpm config set registry "${NPM_REGISTRY}" \
&& pnpm install --frozen-lockfile
COPY web-admin/ .
# docker 模式:esbuild 压缩 + 关闭 devtools/预压缩,降低构建内存(见 vite.config.ts)
RUN pnpm exec vite build --mode docker
FROM ${NGINX_IMAGE}
+101
View File
@@ -0,0 +1,101 @@
冻存盒 序号 细胞编码 细胞数量 操作时间 操作人 备注
1-1-1 001 MSC011-P5 1000万 2025.04.29 周斌倩、胡倩茜
1-1-1 002 MSC011-P5 1000万 2025.04.29 周斌倩、胡倩茜
1-1-1 003 MSC011-P5 1000万 2025.04.29 周斌倩、胡倩茜
1-1-1 004 MSC011-P5 1000万 2025.04.29 周斌倩、胡倩茜
1-1-1 005 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 006 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 007 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 008 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 009 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 010 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 011 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 012 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 013 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 014 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 015 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 016 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 017 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 018 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 019 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 020 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
1-1-1 021 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 022 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 023 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 024 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 025 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 026 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 027 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 028 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 029 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 030 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
1-1-1 031 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 方&史 复苏传代20250708
1-1-1 032 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜
1-1-1 033 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏2025.8.20
1-1-1 034 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏2025.9.12
1-1-1 035 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏2025.9.21
1-1-1 036 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏
1-1-1 037 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏
1-1-1 038 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏
1-1-1 039 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏
1-1-1 040 UBMC2025002 5000万 2025.05.20 周斌倩
1-1-1 041 UBMC2025002 5000万 2025.05.20 周斌倩
1-1-1 042 UBMC2025002 5000万 2025.05.20 周斌倩
1-1-1 043 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 044 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 045 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 046 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 047 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 048 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 049 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 050 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 051 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 052 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 053 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 054 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 055 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 056 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
1-1-1 057 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.15
1-1-1 058 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.15
1-1-1 059 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.15
1-1-1 060 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.21
1-1-1 061 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.21
1-1-1 062 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.21
1-1-1 063 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.21
1-1-1 064 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.26
1-1-1 065 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.26
1-1-1 066 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.26
1-1-1 067 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.26
1-1-1 068 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.28
1-1-1 069 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.28
1-1-1 070 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.28
1-1-1 071 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.28
1-1-1 072 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
1-1-1 073 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
1-1-1 074 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
1-1-1 075 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
1-1-1 076 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
1-1-1 077 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 078 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 079 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 080 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 081 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 082 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 083 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 084 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 085 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
1-1-1 086 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 087 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 088 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 089 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 090 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 091 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 092 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 093 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 094 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
1-1-1 095 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
1-1-1 096 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
1-1-1 097 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
1-1-1 098 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
1-1-1 099 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
1-1-1 100 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
1 冻存盒 序号 细胞编码 细胞数量 操作时间 操作人 备注
2 1-1-1 001 MSC011-P5 1000万 2025.04.29 周斌倩、胡倩茜
3 1-1-1 002 MSC011-P5 1000万 2025.04.29 周斌倩、胡倩茜
4 1-1-1 003 MSC011-P5 1000万 2025.04.29 周斌倩、胡倩茜
5 1-1-1 004 MSC011-P5 1000万 2025.04.29 周斌倩、胡倩茜
6 1-1-1 005 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
7 1-1-1 006 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
8 1-1-1 007 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
9 1-1-1 008 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
10 1-1-1 009 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
11 1-1-1 010 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
12 1-1-1 011 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
13 1-1-1 012 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
14 1-1-1 013 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
15 1-1-1 014 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
16 1-1-1 015 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
17 1-1-1 016 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
18 1-1-1 017 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
19 1-1-1 018 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
20 1-1-1 019 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
21 1-1-1 020 MSC011-P5 1000万 2025.04.30 周斌倩、胡倩茜
22 1-1-1 021 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
23 1-1-1 022 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
24 1-1-1 023 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
25 1-1-1 024 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
26 1-1-1 025 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
27 1-1-1 026 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
28 1-1-1 027 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
29 1-1-1 028 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
30 1-1-1 029 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
31 1-1-1 030 PBMC2025001 5000万 2025.04.30 胡倩茜 脐血来源
32 1-1-1 031 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 方&史 复苏传代20250708
33 1-1-1 032 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜
34 1-1-1 033 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏2025.8.20
35 1-1-1 034 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏2025.9.12
36 1-1-1 035 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏2025.9.21
37 1-1-1 036 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏
38 1-1-1 037 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏
39 1-1-1 038 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏
40 1-1-1 039 MSC2025002-P2 1000万 2025.05.18 周斌倩、胡倩茜 复苏
41 1-1-1 040 UBMC2025002 5000万 2025.05.20 周斌倩
42 1-1-1 041 UBMC2025002 5000万 2025.05.20 周斌倩
43 1-1-1 042 UBMC2025002 5000万 2025.05.20 周斌倩
44 1-1-1 043 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
45 1-1-1 044 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
46 1-1-1 045 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
47 1-1-1 046 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
48 1-1-1 047 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
49 1-1-1 048 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
50 1-1-1 049 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
51 1-1-1 050 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
52 1-1-1 051 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
53 1-1-1 052 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
54 1-1-1 053 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
55 1-1-1 054 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
56 1-1-1 055 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
57 1-1-1 056 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏
58 1-1-1 057 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.15
59 1-1-1 058 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.15
60 1-1-1 059 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.15
61 1-1-1 060 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.21
62 1-1-1 061 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.21
63 1-1-1 062 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.21
64 1-1-1 063 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.21
65 1-1-1 064 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.26
66 1-1-1 065 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.26
67 1-1-1 066 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.26
68 1-1-1 067 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.26
69 1-1-1 068 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.28
70 1-1-1 069 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.28
71 1-1-1 070 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.28
72 1-1-1 071 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.11.28
73 1-1-1 072 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
74 1-1-1 073 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
75 1-1-1 074 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
76 1-1-1 075 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
77 1-1-1 076 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.6
78 1-1-1 077 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
79 1-1-1 078 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
80 1-1-1 079 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
81 1-1-1 080 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
82 1-1-1 081 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
83 1-1-1 082 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
84 1-1-1 083 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
85 1-1-1 084 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
86 1-1-1 085 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.23
87 1-1-1 086 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
88 1-1-1 087 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
89 1-1-1 088 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
90 1-1-1 089 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
91 1-1-1 090 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
92 1-1-1 091 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
93 1-1-1 092 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
94 1-1-1 093 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
95 1-1-1 094 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2025.12.26
96 1-1-1 095 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
97 1-1-1 096 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
98 1-1-1 097 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
99 1-1-1 098 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
100 1-1-1 099 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
101 1-1-1 100 MSC2025002-P3 1000万 2025.05.21 周斌倩、胡倩茜 复苏2026.1.4
@@ -0,0 +1,12 @@
-- 细胞产品规格改为文本存储(不再依赖 biz_cell_product_spec 下拉关联)
ALTER TABLE `biz_cell_product`
ADD COLUMN `spec_text` varchar(200) DEFAULT NULL COMMENT '规格(文本)' AFTER `spec_id`;
-- 历史数据:若已关联规格主数据,回填展示文本
UPDATE `biz_cell_product` cp
INNER JOIN `biz_cell_product_spec` s ON s.id = cp.spec_id AND s.del_flag = 0
SET cp.spec_text = s.spec_name
WHERE cp.del_flag = 0
AND (cp.spec_text IS NULL OR cp.spec_text = '')
AND cp.spec_id IS NOT NULL
AND cp.spec_id != '';
@@ -0,0 +1,72 @@
-- =============================================================================
-- 历史数据刷新:预计细胞数量 单位「亿」→「千万」(数值 ×10)
-- =============================================================================
--
-- 适用:biz_cell_product.expected_cell_count 历史数据按「亿」录入的环境(仅执行一次)。
-- 执行后:库中数值与界面、API 均为「千万」(例:1000万细胞 → 存 1)。
--
-- 注意:
-- 1. 执行前请备份 biz_cell_product 表
-- 2. 请勿重复执行(重复 ×10 会导致数据错误)
-- 3. 若下方「迁移前检查」显示 column_comment 已含「单位:千万」,说明已迁移,跳过第 2 段
--
-- =============================================================================
-- 1. 迁移前检查(建议先单独执行本段)
-- =============================================================================
SELECT COLUMN_COMMENT AS current_unit_comment
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE()
AND TABLE_NAME = 'biz_cell_product'
AND COLUMN_NAME = 'expected_cell_count';
SELECT COUNT(*) AS pending_rows
FROM `biz_cell_product`
WHERE `del_flag` = 0
AND `expected_cell_count` IS NOT NULL;
SELECT
`product_code`,
`expected_cell_count` AS value_before_yi,
`expected_cell_count` * 10 AS value_after_qianwan
FROM `biz_cell_product`
WHERE `del_flag` = 0
AND `expected_cell_count` IS NOT NULL
ORDER BY `update_time` DESC
LIMIT 10;
-- =============================================================================
-- 2. 正式迁移(确认检查无误后执行)
-- =============================================================================
START TRANSACTION;
UPDATE `biz_cell_product`
SET `expected_cell_count` = `expected_cell_count` * 10
WHERE `del_flag` = 0
AND `expected_cell_count` IS NOT NULL;
ALTER TABLE `biz_cell_product`
MODIFY COLUMN `expected_cell_count` DECIMAL(18,4) DEFAULT NULL
COMMENT '预计细胞数量(单位:千万)';
COMMIT;
-- =============================================================================
-- 3. 迁移后校验
-- =============================================================================
SELECT COLUMN_COMMENT AS unit_comment_after_migrate
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE()
AND TABLE_NAME = 'biz_cell_product'
AND COLUMN_NAME = 'expected_cell_count';
SELECT
`product_code`,
`expected_cell_count`
FROM `biz_cell_product`
WHERE `del_flag` = 0
AND `expected_cell_count` IS NOT NULL
ORDER BY `update_time` DESC
LIMIT 10;
@@ -0,0 +1,36 @@
-- 生产部门样本接收登记(与 biz_sample_reception 1:1)
CREATE TABLE IF NOT EXISTS `biz_sample_production_reception` (
`id` varchar(64) NOT NULL COMMENT '主键ID',
`reception_id` varchar(64) NOT NULL COMMENT '关联 biz_sample_reception.id',
`sample_code` varchar(32) DEFAULT NULL COMMENT '样本编码快照',
`reception_source` varchar(20) NOT NULL DEFAULT 'cell_storage' COMMENT '来源 cell_storage/research_donation',
`sample_type_name` varchar(100) DEFAULT NULL COMMENT '样本类型名称快照',
`handler_user_id` varchar(64) DEFAULT NULL COMMENT '处理人用户ID',
`handler_name` varchar(100) DEFAULT NULL COMMENT '处理人姓名',
`process_time` datetime NOT NULL COMMENT '处理时间',
`original_blood_weight_g` decimal(18,4) DEFAULT NULL COMMENT '原血重量/g',
`hes_volume_ml` decimal(18,4) DEFAULT NULL COMMENT 'HES用量/ml',
`blood_type` varchar(32) DEFAULT NULL COMMENT '血型',
`infectious_four_test_result` varchar(16) DEFAULT NULL COMMENT '传染四项 zc正常 bzc不正常',
`enriched_blood_weight_g` decimal(18,4) DEFAULT NULL COMMENT '富集后血量/g',
`cryopreservation_volume_ml` decimal(18,4) DEFAULT NULL COMMENT '冻存液用量/ml',
`inoculation_amount` decimal(18,4) DEFAULT NULL COMMENT '接种量',
`cryopreservation_time` datetime DEFAULT NULL COMMENT '冻存时间',
`storage_total_tubes` int DEFAULT NULL COMMENT '储存总量(管)',
`available_cell_count_1e7` decimal(18,4) DEFAULT NULL COMMENT '可提供细胞数量/*10E7',
`original_blood_volume_ml` decimal(18,4) DEFAULT NULL COMMENT '原血体积/ml',
`nucleated_cell_count_1e8` decimal(18,4) DEFAULT NULL COMMENT '有核细胞数/10E8',
`tenant_no` varchar(64) NOT NULL DEFAULT 'zkxw',
`order_num` int DEFAULT NULL,
`remark` varchar(512) DEFAULT NULL,
`create_by` varchar(64) DEFAULT NULL,
`create_dept_id` varchar(64) NOT NULL DEFAULT '',
`create_time` datetime NOT NULL,
`update_by` varchar(64) DEFAULT NULL,
`update_time` datetime NOT NULL,
`del_flag` smallint NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_reception_id` (`reception_id`,`del_flag`),
KEY `idx_sample_code` (`tenant_no`,`sample_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='生产部门样本接收登记';
@@ -0,0 +1,37 @@
-- 生产任务级设备:从步骤/工序/路线迁移并停用步骤级设备
-- 执行前请备份数据库
-- 1. 生产任务表新增设备字段
ALTER TABLE `biz_production_task`
ADD COLUMN `equipment_ids` varchar(1000) DEFAULT NULL COMMENT '关联设备ID(逗号分隔)' AFTER `attachments`,
ADD COLUMN `equipment_name` varchar(1000) DEFAULT NULL COMMENT '设备名称快照(逗号分隔)' AFTER `equipment_ids`;
-- 2. 将任务步骤上的设备汇总到任务(按 task_id 合并,读取端会 parse 去重)
UPDATE `biz_production_task` t
INNER JOIN (
SELECT
`task_id`,
GROUP_CONCAT(DISTINCT `equipment_ids` ORDER BY `step_order` SEPARATOR ',') AS `eq_ids`,
GROUP_CONCAT(DISTINCT `equipment_name` ORDER BY `step_order` SEPARATOR ',') AS `eq_names`
FROM `biz_production_task_step`
WHERE `del_flag` = 0
AND `equipment_ids` IS NOT NULL
AND TRIM(`equipment_ids`) != ''
GROUP BY `task_id`
) s ON s.`task_id` = t.`id`
SET
t.`equipment_ids` = s.`eq_ids`,
t.`equipment_name` = s.`eq_names`;
-- 3. 清空步骤/路线/工序上的设备(设备仅保留在生产任务级)
UPDATE `biz_production_task_step`
SET `equipment_ids` = NULL, `equipment_name` = NULL
WHERE `equipment_ids` IS NOT NULL OR `equipment_name` IS NOT NULL;
UPDATE `biz_process_route_step`
SET `equipment_ids` = NULL, `equipment_name` = NULL
WHERE `equipment_ids` IS NOT NULL OR `equipment_name` IS NOT NULL;
UPDATE `biz_process`
SET `equipment_ids` = NULL, `equipment_name` = NULL
WHERE `equipment_ids` IS NOT NULL OR `equipment_name` IS NOT NULL;
+100
View File
@@ -0,0 +1,100 @@
-- 转账方式字典(zzfs):原硬编码 wxzz/zzbzz/yhkzz/xj + 新增 lszz 乐刷
-- 业务表 biz_protocol_payment_detail.transfer_type / biz_pilot_payment.transfer_type 仍存 dict_value
INSERT INTO `sys_dict_type` (
`id`, `dict_name`, `dict_type`, `tenant_no`, `order_num`, `remark`,
`create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`
) VALUES (
'TDP000000000000000000000000000095',
'转账方式',
'zzfs',
'zkxw',
11,
'采集协议/中试缴费-转账方式',
'd3000000000000000000000000000001',
'b13c2be2-4e71-11f1-9f47-00163e3bdd96',
NOW(),
'd3000000000000000000000000000001',
NOW(),
0
);
INSERT INTO `sys_dict_data` (
`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`,
`create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`
) VALUES
(
'TDP000000000000000000000000000096',
'微信转账',
'wxzz',
'zzfs',
'zkxw',
1,
'',
'd3000000000000000000000000000001',
'b13c2be2-4e71-11f1-9f47-00163e3bdd96',
NOW(),
'd3000000000000000000000000000001',
NOW(),
0
),
(
'TDP000000000000000000000000000097',
'支付宝转账',
'zzbzz',
'zzfs',
'zkxw',
2,
'',
'd3000000000000000000000000000001',
'b13c2be2-4e71-11f1-9f47-00163e3bdd96',
NOW(),
'd3000000000000000000000000000001',
NOW(),
0
),
(
'TDP000000000000000000000000000098',
'银行卡转账',
'yhkzz',
'zzfs',
'zkxw',
3,
'',
'd3000000000000000000000000000001',
'b13c2be2-4e71-11f1-9f47-00163e3bdd96',
NOW(),
'd3000000000000000000000000000001',
NOW(),
0
),
(
'TDP000000000000000000000000000099',
'现金',
'xj',
'zzfs',
'zkxw',
4,
'',
'd3000000000000000000000000000001',
'b13c2be2-4e71-11f1-9f47-00163e3bdd96',
NOW(),
'd3000000000000000000000000000001',
NOW(),
0
),
(
'TDP000000000000000000000000000100',
'乐刷',
'lszz',
'zzfs',
'zkxw',
5,
'',
'd3000000000000000000000000000001',
'b13c2be2-4e71-11f1-9f47-00163e3bdd96',
NOW(),
'd3000000000000000000000000000001',
NOW(),
0
);
+12 -3
View File
@@ -88,11 +88,12 @@ CREATE TABLE `biz_cell_product` (
`product_name` varchar(200) NOT NULL COMMENT '产品名称',
`product_type_id` varchar(64) DEFAULT NULL COMMENT '细胞产品类型ID',
`spec_id` varchar(64) DEFAULT NULL COMMENT '规格ID',
`spec_text` varchar(200) DEFAULT NULL COMMENT '规格(文本)',
`batch_no` varchar(64) DEFAULT NULL COMMENT '批次号',
`storage_slot_id` varchar(64) DEFAULT NULL COMMENT '储物格ID',
`passage` varchar(8) DEFAULT NULL COMMENT '代次(P1~P8)',
`freeze_date` datetime DEFAULT NULL COMMENT '冻存日期',
`expected_cell_count` decimal(18,4) DEFAULT NULL COMMENT '预计细胞数量(单位:亿)',
`expected_cell_count` decimal(18,4) DEFAULT NULL COMMENT '预计细胞数量(单位:千万)',
`viability` decimal(5,2) DEFAULT NULL COMMENT '活性(百分比,0~100)',
`product_status` varchar(16) DEFAULT 'frozen' COMMENT '状态: frozen已冻存/sold已售卖/used已使用',
`source_type` varchar(20) DEFAULT 'production' COMMENT '来源类型(production生产/manual手动录入)',
@@ -2613,7 +2614,7 @@ CREATE TABLE `biz_pilot_payment` (
`infusion_schedule_id` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '输注计划ID',
`biz_type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'clinical_application' COMMENT '业务类型: clinical_application=临床应用, basic_experiment=基础实验',
`amount` decimal(18,2) NOT NULL COMMENT '缴费金额',
`transfer_type` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '转账方式: wxzz/zzfbzz/yhkzz/xj',
`transfer_type` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '转账方式字典 zzfs: wxzz/zzbzz/yhkzz/xj/lszz',
`transfer_amount` decimal(18,2) DEFAULT NULL COMMENT '实际转账金额',
`transfer_time` datetime DEFAULT NULL COMMENT '转账时间',
`transfer_attachments` text COLLATE utf8mb4_unicode_ci COMMENT '转账凭证附件',
@@ -3394,6 +3395,8 @@ CREATE TABLE `biz_production_task` (
`conclusion` varchar(16) DEFAULT NULL COMMENT '生产结论 cg=成功 sb=失败',
`remark` varchar(512) DEFAULT NULL COMMENT '备注',
`attachments` varchar(4000) DEFAULT NULL COMMENT '附件/图片URL(逗号分隔)',
`equipment_ids` varchar(1000) DEFAULT NULL COMMENT '关联设备ID(逗号分隔)',
`equipment_name` varchar(1000) DEFAULT NULL COMMENT '设备名称快照(逗号分隔)',
`tenant_no` varchar(64) NOT NULL DEFAULT 'zkxw' COMMENT '租户编号',
`order_num` int(11) DEFAULT NULL COMMENT '排序号',
`create_by` varchar(64) DEFAULT NULL COMMENT '创建人id',
@@ -4019,7 +4022,7 @@ DROP TABLE IF EXISTS `biz_protocol_payment_detail`;
CREATE TABLE `biz_protocol_payment_detail` (
`id` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '主键ID',
`payment_id` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '缴费主表ID',
`transfer_type` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'wxzz微信 zzbzz支付宝 yhkzz银行卡 xj现金',
`transfer_type` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '转账方式字典 zzfs: wxzz/zzbzz/yhkzz/xj/lszz',
`due_amount` decimal(18,2) DEFAULT NULL COMMENT '应缴费金额',
`transfer_amount` decimal(18,2) DEFAULT NULL COMMENT '转账金额',
`transfer_time` datetime DEFAULT NULL COMMENT '转账时间',
@@ -5870,6 +5873,11 @@ INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `ten
INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000092', '皮下注射', 'pxzs', 'szfs', 'zkxw', 2, '', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-05-26 09:53:46', 'd3000000000000000000000000000001', '2026-05-26 09:53:46', 0);
INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000093', '局部注射', 'jbzs', 'szfs', 'zkxw', 3, '', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-05-26 09:53:46', 'd3000000000000000000000000000001', '2026-05-26 09:53:46', 0);
INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000094', '其他', 'qt', 'szfs', 'zkxw', 4, '', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-05-26 09:53:46', 'd3000000000000000000000000000001', '2026-05-26 09:53:46', 0);
INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000096', '微信转账', 'wxzz', 'zzfs', 'zkxw', 1, '', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-29 00:00:00', 'd3000000000000000000000000000001', '2026-06-29 00:00:00', 0);
INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000097', '支付宝转账', 'zzbzz', 'zzfs', 'zkxw', 2, '', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-29 00:00:00', 'd3000000000000000000000000000001', '2026-06-29 00:00:00', 0);
INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000098', '银行卡转账', 'yhkzz', 'zzfs', 'zkxw', 3, '', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-29 00:00:00', 'd3000000000000000000000000000001', '2026-06-29 00:00:00', 0);
INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000099', '现金', 'xj', 'zzfs', 'zkxw', 4, '', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-29 00:00:00', 'd3000000000000000000000000000001', '2026-06-29 00:00:00', 0);
INSERT INTO `sys_dict_data` (`id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000100', '乐刷', 'lszz', 'zzfs', 'zkxw', 5, '', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-29 00:00:00', 'd3000000000000000000000000000001', '2026-06-29 00:00:00', 0);
COMMIT;
-- ----------------------------
@@ -5913,6 +5921,7 @@ INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `tenant_no`, `order
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('DC1FA4556E85454F841F58CC49D86F30', '测试编码1', 'csbm', 'zkxw', 0, '测试编码1', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-05-20 14:34:18', 'd3000000000000000000000000000001', '2026-05-20 14:40:14', 1);
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('EC21AAE700D04D989B3DDC08D0411E6E', '12', '123', 'zkxw', 0, '3123', 'd3000000000000000000000000000001', '', '2026-05-14 15:52:20', 'd3000000000000000000000000000001', '2026-05-14 15:52:22', 1);
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000090', '输注方式', 'szfs', 'zkxw', 10, '中试服务申请单-输注计划输注方式', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-05-26 09:53:46', 'd3000000000000000000000000000001', '2026-05-26 09:53:46', 0);
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES ('TDP000000000000000000000000000095', '转账方式', 'zzfs', 'zkxw', 11, '采集协议/中试缴费-转账方式', 'd3000000000000000000000000000001', 'b13c2be2-4e71-11f1-9f47-00163e3bdd96', '2026-06-29 00:00:00', 'd3000000000000000000000000000001', '2026-06-29 00:00:00', 0);
COMMIT;
-- ----------------------------
@@ -0,0 +1,45 @@
# 双部门样本接收拆分 Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task.
**Goal:** 将样本接收拆分为质检域(`biz_sample_reception`)与生产域(`biz_sample_production_reception`),两侧互读互斥写;质检去掉体积/净重。
**Architecture:** 新表 1:1 关联质检接收;生产 API `/production-sample-receptions`;前端双区块只读组件 + 生产工单专用填写弹窗。
**Tech Stack:** FastAPI + SQLAlchemy + Vue 3 + Element Plus
**Spec:** `docs/superpowers/specs/2026-06-29-dual-sample-reception-design.md`
---
## Task 1: 数据库与 Model ✅
- `docs/sql/migrate_sample_production_reception.sql`
- `backend/app/models/models.py` → `BizSampleProductionReception`
## Task 2: 生产接收 CRUD/API ✅
- `backend/app/crud/sample_production_reception.py`
- `backend/app/api/sample_production_reception.py`
- 注册 `main.py` / `api/__init__.py`
## Task 3: 质检 API 瘦身 + 聚合读 ✅
- `_reception_to_dict` 移除 volumeMl/netWeightG
- `productionReception` 挂载至详情/列表/协议样本
## Task 4: 前端生产弹窗 + 质检页 ✅
- `SampleReceptionDialog.vue` 重写
- `sample-reception/index.vue` 去体积净重 + 生产只读
## Task 5: 只读展示 ✅
- `sample-reception-dual-readonly-panel`
- 协议/捐赠查看、工单/任务/放行查看弹窗
## 部署前
1. 执行 `docs/sql/migrate_sample_production_reception.sql`
2. 重启 backend
3. 验证:质检接收 → 生产工单填写 → 双方只读互见
@@ -0,0 +1,313 @@
# 双部门样本接收 — 质检域与生产域拆分
> 日期:2026-06-29
> 状态:待审核
> 关联:`2026-05-19-unified-sample-reception-design.md`、`2026-05-19-production-work-order-design.md`、`2026-06-03-sample-reception-lab-storage-code-design.md`
> 关联模块:样本接收、入库生产工单、协议/捐赠查看弹窗、质检工单查看
---
## 1. 背景与目标
### 1.1 现状问题
当前 **质检管理 → 样本接收** 与 **生产管理 → 生产工单 → 样本接收信息填写** 共用同一张表 `biz_sample_reception`、同一套 submit/update API,两侧均可修改全部字段(含体积、净重、检查项、接收结论等)。与客户「质检登记」与「生产登记」分属不同部门、字段不同的诉求不符。
### 1.2 目标
1. **质检域**:仅在【质检管理 → 样本接收】填写;去掉 **体积(ml)**、**净重(g)**。
2. **生产域**:仅在【生产工单 → 样本接收信息填写】填写;字段按 **来源 × 样本类型** 动态展示。
3. **互读互斥写**:质检弹窗可见生产信息(只读);生产弹窗可见质检信息(只读)。
4. **展示统一**:所有展示样本接收信息的查看弹窗/详情,同时展示 **质检接收** 与 **生产接收** 两块。
5. **历史数据(已确认)**:`volume_ml`、`net_weight_g` **仅从界面与读写 API 去掉**;库中保留旧值,**不再展示、不迁移**。
---
## 2. 业务规则
### 2.1 填写入口与权限
| 入口 | 可写域 | 只读域 | 写权限 |
|------|--------|--------|--------|
| 质检 → 样本接收(待接收/已接收/批量) | 质检接收 | 生产接收 | 现网:`采集接受人`(经手人)、`质量主管`(编辑已接收) |
| 生产工单 → 样本接收信息填写 | 生产接收 | 质检接收 | **实验专员**(处理人候选与操作角色一致;可复用 `PRODUCTION_STEP_ASSIGNEE_ROLE`) |
后端 **必须** 在 API 层拒绝跨域写入,不依赖前端 `disabled`。
### 2.2 流程依赖
- 入库生产工单在 **质检接收结论 = 接收(js)** 后自动创建(现网逻辑不变)。
- **生产接收填写** 入口仅在入库类生产工单卡片展示(`inbound_cell_storage` / `inbound_research_donation`)。
- **质检拒收(bj)**:生产弹窗不展示填写能力;只读展示质检结论即可。
- **填写顺序**:须已存在质检接收记录后,生产方可保存生产接收(生产 API 校验 `reception_id` 存在)。
### 2.3 样本类型匹配
与 `web-admin/src/utils/sample-reception-lab-storage-code.ts` 一致,按 **样本类型名称** 匹配:
| 名称 | 说明 |
|------|------|
| `围产期造血干细胞` | 对应需求文档编码 `wcqzxgxb` |
| `脐带间充质干细胞` | 对应需求文档编码 `qdjczgxb` |
**未在矩阵中的类型**(如 `胎盘亚全能干细胞`):生产弹窗仅展示公共字段(处理人、处理时间),无类型专属字段;专属字段不做必填校验。
### 2.4 历史字段 `volume_ml` / `net_weight_g`
- **决策:选项 A** — 停止读写与展示;`biz_sample_reception` 列保留,不执行数据迁移脚本。
- `_reception_to_dict` 及前端类型定义 **不再输出** 这两字段(或输出但全链路忽略)。
- 新生产域字段与历史体积/净重 **无自动映射**。
---
## 3. 字段矩阵
### 3.1 质检域(`biz_sample_reception`,现有表)
| 字段 | 变更 |
|------|------|
| reception_time, handler_user_id, handler_name | 保留 |
| receive_temperature | 保留 |
| check_results(子表) | 保留 |
| accept_conclusion, lab_storage_code | 保留 |
| receive_attachments, remark | 保留 |
| **volume_ml, net_weight_g** | **停止 API 入参/出参及 UI 展示** |
### 3.2 生产域(新表 `biz_sample_production_reception`)
**公共字段(所有来源×类型)**
| 字段 | 类型 | 规则 |
|------|------|------|
| handler_user_id | varchar(64) | 处理人;默认当前登录用户 |
| handler_name | varchar(100) | 处理人姓名快照 |
| process_time | datetime | 处理时间;默认当前时间 |
**细胞存储 + 围产期造血干细胞**
| 字段 | 类型 | 标签 |
|------|------|------|
| original_blood_weight_g | decimal(18,4) | 原血重量/g |
| hes_volume_ml | decimal(18,4) | HES用量/ml |
| blood_type | varchar(32) | 血型(文本输入,非下拉) |
| infectious_four_test_result | varchar(16) | 传染四项检测(检测卡):`zc` 正常 / `bzc` 不正常 |
| enriched_blood_weight_g | decimal(18,4) | 富集后血量/g |
| cryopreservation_volume_ml | decimal(18,4) | 冻存液用量/ml |
**细胞存储 + 脐带间充质干细胞**
| 字段 | 类型 | 标签 |
|------|------|------|
| inoculation_amount | decimal(18,4) | 接种量 |
| cryopreservation_time | datetime | 冻存时间 |
| storage_total_tubes | int | 储存总量(管) |
| available_cell_count_1e7 | decimal(18,4) | 可提供细胞数量/*10E7 |
**科研捐赠 + 脐带间充质干细胞**
| 字段 | 类型 | 标签 |
|------|------|------|
| inoculation_amount | decimal(18,4) | 接种量 |
| cryopreservation_time | datetime | 冻存时间 |
**科研捐赠 + 围产期造血干细胞**
| 字段 | 类型 | 标签 |
|------|------|------|
| original_blood_volume_ml | decimal(18,4) | 原血体积/ml |
| nucleated_cell_count_1e8 | decimal(18,4) | 有核细胞数/10E8 |
**必填规则**:对当前样本命中的类型专属字段 + 公共字段做前后端必填校验;未命中类型的专属列保持 NULL。
---
## 4. 数据库设计
### 4.1 新表
```sql
-- docs/sql/migrate_sample_production_reception.sql
CREATE TABLE `biz_sample_production_reception` (
`id` varchar(64) NOT NULL COMMENT '主键ID',
`reception_id` varchar(64) NOT NULL COMMENT '关联 biz_sample_reception.id',
`sample_code` varchar(32) DEFAULT NULL COMMENT '样本编码快照',
`reception_source` varchar(20) NOT NULL DEFAULT 'cell_storage' COMMENT '来源 cell_storage/research_donation',
`sample_type_name` varchar(100) DEFAULT NULL COMMENT '样本类型名称快照',
`handler_user_id` varchar(64) DEFAULT NULL COMMENT '处理人用户ID',
`handler_name` varchar(100) DEFAULT NULL COMMENT '处理人姓名',
`process_time` datetime NOT NULL COMMENT '处理时间',
`original_blood_weight_g` decimal(18,4) DEFAULT NULL COMMENT '原血重量/g',
`hes_volume_ml` decimal(18,4) DEFAULT NULL COMMENT 'HES用量/ml',
`blood_type` varchar(32) DEFAULT NULL COMMENT '血型',
`infectious_four_test_result` varchar(16) DEFAULT NULL COMMENT '传染四项 zc正常 bzc不正常',
`enriched_blood_weight_g` decimal(18,4) DEFAULT NULL COMMENT '富集后血量/g',
`cryopreservation_volume_ml` decimal(18,4) DEFAULT NULL COMMENT '冻存液用量/ml',
`inoculation_amount` decimal(18,4) DEFAULT NULL COMMENT '接种量',
`cryopreservation_time` datetime DEFAULT NULL COMMENT '冻存时间',
`storage_total_tubes` int DEFAULT NULL COMMENT '储存总量(管)',
`available_cell_count_1e7` decimal(18,4) DEFAULT NULL COMMENT '可提供细胞数量/*10E7',
`original_blood_volume_ml` decimal(18,4) DEFAULT NULL COMMENT '原血体积/ml',
`nucleated_cell_count_1e8` decimal(18,4) DEFAULT NULL COMMENT '有核细胞数/10E8',
`tenant_no` varchar(64) NOT NULL DEFAULT 'zkxw',
`order_num` int DEFAULT NULL,
`remark` varchar(512) DEFAULT NULL,
`create_by` varchar(64) DEFAULT NULL,
`create_dept_id` varchar(64) NOT NULL DEFAULT '',
`create_time` datetime NOT NULL,
`update_by` varchar(64) DEFAULT NULL,
`update_time` datetime NOT NULL,
`del_flag` smallint NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_reception_id` (`reception_id`,`del_flag`),
KEY `idx_sample_code` (`tenant_no`,`sample_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='生产部门样本接收登记';
```
**关系**:与 `biz_sample_reception` **1:1**(`reception_id` 唯一);软删除遵循 `del_flag`。
### 4.2 现有表
- `biz_sample_reception.volume_ml`、`net_weight_g`:**不删列**;应用层停用。
---
## 5. API 设计
### 5.1 质检 API(调整现有 `/web/admin/sample-receptions`)
- `POST` / `PUT`:请求体 **移除** `volumeMl`、`netWeightG`。
- `GET` 详情 / 列表 / `by-sample-code`:响应增加 `productionReception`(对象或 `null`);响应 **移除** `volumeMl`、`netWeightG`。
- 写接口 **拒绝** 任何生产域字段(若误传则忽略或 400)。
### 5.2 生产 API(新增)
前缀建议:`/web/admin/production-sample-receptions`
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/by-sample-code?sampleCode=&sourceType=` | 返回 `{ receptionId, qcReception, productionReception, sampleInfo }` |
| GET | `/{id}` | 生产接收详情 |
| POST | `/` | 创建(body 含 `receptionId` 或 `sampleCode`+`sourceType`) |
| PUT | `/{id}` | 更新生产域字段 |
- 校验:关联质检记录存在;`accept_conclusion !== 'bj'`;当前用户具备实验专员角色或等于处理人(编辑策略与质检对称,首版:**实验专员可写**)。
- 写接口 **禁止** 修改 `biz_sample_reception` 任意字段。
### 5.3 聚合读
以下详情接口的 `reception` 或等价字段扩展为:
```json
{
"qcReception": { "...质检字段..." },
"productionReception": { "...生产字段..." }
}
```
或保持扁平 `reception` 为质检数据,另增 `productionReception`。实现时 `_row_to_dict` 为单一真相源。
**影响面**:生产工单详情、质检工单入库查看、协议/捐赠样本卡片接口(若内嵌 `sampleReception`)。
---
## 6. 前端设计
### 6.1 可写表单
| 组件 | 改造 |
|------|------|
| `quality-inspection/sample-reception/index.vue` | 去掉体积/净重;表单下增加 **生产接收信息(只读)** 区块;拉取聚合详情 |
| `production-work-order/SampleReceptionDialog.vue` | **重写**:上为质检只读,下为生产可编辑(按类型字段模板);**不再** 调用质检 submit/update |
| `production/sample-reception-completion/index.vue` | 废弃或改为跳转生产工单;菜单保持隐藏 |
### 6.2 公共只读组件(新建)
建议:`web-admin/src/components/business/sample-reception-dual-readonly-panel/`
- Props:`qcReception`、`productionReception`、`sourceType`、`sampleTypeName`
- 内置 4 套类型字段展示模板 + 空态(「生产尚未登记」/「暂未接收」)
- 供协议查看、捐赠查看、工单查看、质检任务查看等复用
### 6.3 只读展示改造清单
| 文件 | 改造 |
|------|------|
| `ProtocolViewDialog.vue` | 样本卡片拆「质检接收」「生产接收」 |
| `DonationViewDialog.vue` | 同上 |
| `production-view-sections.ts` | 拆两段 section |
| `inbound-view-sections.ts` | 同上 |
| `QcTaskViewDialog` | 同上 |
| `QcWorkOrderTaskSubList` | 同上 |
| `StorageReleaseViewDialog` | 同上 |
| 质检样本接收「接收详情」弹窗 | 增加生产只读块 |
### 6.4 生产处理人下拉
复用 `fetchProductionStepAssigneeUsers`(角色 `实验专员`);打开弹窗时默认选中当前登录用户(若在列表中)。
### 6.5 UI 规范
- 弹窗:`dialog-form-layout`、`label-position="top"`、只读块用 `readonly-grid` / `data-grid` 与现网样本接收弹窗一致。
- 质检块标题:**质检接收信息**;生产块:**生产接收信息**。
- 传染四项:`el-select`,选项「正常」「不正常」。
---
## 7. 后端模块
| 路径 | 职责 |
|------|------|
| `backend/app/models/models.py` | `BizSampleProductionReception` |
| `backend/app/crud/sample_production_reception.py` | CRUD、类型校验、`_row_to_dict` |
| `backend/app/api/sample_production_reception.py` | 路由 |
| `backend/app/crud/sample_reception.py` | 去掉 volume/netWeight 出参;详情挂载 production |
| `backend/app/api/__init__.py` + `main.py` | 注册新路由 |
字段一致性:运行 `python scripts/check_field_consistency.py`(若纳入检查范围)。
---
## 8. 权限与菜单
- 新增按钮权限(建议):`production:sample-reception:add`、`production:sample-reception:edit`,挂在生产工单或生产管理菜单下。
- 质检权限不变:`biz:sampleReception:*`。
---
## 9. 测试要点
1. 质检接收(js) → 生产工单出现 → 生产填写 4 种类型组合字段 → 质检页只读可见。
2. 质检编辑后 → 生产页只读更新;生产编辑后 → 质检页只读更新;双方 API 互不能改对方域。
3. 质检拒收 → 生产无填写入口。
4. 历史记录:`volume_ml`/`net_weight_g` 有值的旧数据,界面与 API 均不出现。
5. 未覆盖样本类型:仅公共字段可保存。
6. 实验专员/非实验专员写权限边界。
---
## 10. 实施顺序
1. SQL + Model + 生产 CRUD/API
2. 质检 API 瘦身 + 聚合读
3. `SampleReceptionDialog` 重写 + 质检页调整
4. `sample-reception-dual-readonly-panel` + 各查看弹窗接入
5. 权限 SQL + 回归
---
## 11. 不在本次范围
- 隐藏菜单「样本接收信息完善」路由删除(可后续清理)。
- 小程序端样本接收(若有)不同步,除非另行立项。
- `volume_ml`/`net_weight_g` 列的数据库物理删除。
---
## 12. 已确认决策
| 议题 | 决策 |
|------|------|
| 历史体积/净重 | **A** — 库保留,界面与 API 去掉,不展示不迁移 |
| 数据模型 | 新表 `biz_sample_production_reception`,1:1 关联质检接收 |
| 未覆盖样本类型 | 仅公共字段,无专属必填 |
+5
View File
@@ -36,6 +36,8 @@ if [[ "$(uname -s)" == "Darwin" && "$(uname -m)" == "arm64" && "${PLATFORM}" ==
echo " 后端 pip 约 15~40 分钟、前端 pnpm 约 10~20 分钟"
echo " 日志可能长时间停在某一步,请勿 Ctrl+C,除非确认已失败"
echo " 更快方式: 在 Linux x86 云主机上执行同一打包脚本"
echo " 前端 vite build 建议 Docker Desktop 内存 ≥ 4GB"
echo " (Settings → Resources → Memory;仍 OOM 可加大 NODE_MAX_OLD_SPACE_SIZE)"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
fi
@@ -48,13 +50,16 @@ docker build "${BUILD_ARGS[@]}" \
NODE_IMAGE="${NODE_IMAGE:-docker.m.daocloud.io/library/node:20-alpine}"
NGINX_IMAGE="${NGINX_IMAGE:-docker.m.daocloud.io/library/nginx:1.27-alpine}"
NODE_MAX_OLD_SPACE_SIZE="${NODE_MAX_OLD_SPACE_SIZE:-4096}"
echo "==> 构建前端镜像: ${WEB_IMAGE} (${PLATFORM})"
echo " 基础镜像: ${NODE_IMAGE} / ${NGINX_IMAGE}"
echo " Node 堆上限: ${NODE_MAX_OLD_SPACE_SIZE}MB"
docker build "${BUILD_ARGS[@]}" \
--build-arg "NODE_IMAGE=${NODE_IMAGE}" \
--build-arg "NGINX_IMAGE=${NGINX_IMAGE}" \
--build-arg "NPM_REGISTRY=${NPM_REGISTRY}" \
--build-arg "NODE_MAX_OLD_SPACE_SIZE=${NODE_MAX_OLD_SPACE_SIZE}" \
-t "${WEB_IMAGE}" -f deploy/docker/web-admin/Dockerfile .
if [[ "${VERSION}" != "latest" ]]; then
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+122 -127
View File
@@ -1,11 +1,11 @@
# Graph Report - src (2026-06-28)
# Graph Report - src (2026-06-29)
## Corpus Check
- Large corpus: 817 files · ~543,882 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
- Large corpus: 825 files · ~547,785 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
## Summary
- 2702 nodes · 3751 edges · 56 communities detected
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 835 edges (avg confidence: 0.8)
- 2698 nodes · 3714 edges · 55 communities detected
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 821 edges (avg confidence: 0.8)
- Token cost: 0 input · 0 output
## Community Hubs (Navigation)
@@ -45,12 +45,12 @@
- [[_COMMUNITY_Community 33|Community 33]]
- [[_COMMUNITY_Community 34|Community 34]]
- [[_COMMUNITY_Community 35|Community 35]]
- [[_COMMUNITY_Community 36|Community 36]]
- [[_COMMUNITY_Community 37|Community 37]]
- [[_COMMUNITY_Community 38|Community 38]]
- [[_COMMUNITY_Community 39|Community 39]]
- [[_COMMUNITY_Community 40|Community 40]]
- [[_COMMUNITY_Community 41|Community 41]]
- [[_COMMUNITY_Community 44|Community 44]]
- [[_COMMUNITY_Community 43|Community 43]]
- [[_COMMUNITY_Community 46|Community 46]]
- [[_COMMUNITY_Community 47|Community 47]]
- [[_COMMUNITY_Community 49|Community 49]]
@@ -59,18 +59,17 @@
- [[_COMMUNITY_Community 52|Community 52]]
- [[_COMMUNITY_Community 53|Community 53]]
- [[_COMMUNITY_Community 55|Community 55]]
- [[_COMMUNITY_Community 56|Community 56]]
- [[_COMMUNITY_Community 59|Community 59]]
- [[_COMMUNITY_Community 63|Community 63]]
- [[_COMMUNITY_Community 65|Community 65]]
- [[_COMMUNITY_Community 72|Community 72]]
- [[_COMMUNITY_Community 74|Community 74]]
- [[_COMMUNITY_Community 57|Community 57]]
- [[_COMMUNITY_Community 62|Community 62]]
- [[_COMMUNITY_Community 64|Community 64]]
- [[_COMMUNITY_Community 71|Community 71]]
- [[_COMMUNITY_Community 73|Community 73]]
## God Nodes (most connected - your core abstractions)
1. `get()` - 278 edges
1. `get()` - 280 edges
2. `push()` - 70 edges
3. `emit()` - 28 edges
4. `WebSocketClient` - 26 edges
3. `WebSocketClient` - 26 edges
4. `emit()` - 23 edges
5. `set()` - 19 edges
6. `handleDynamicRoutes()` - 18 edges
7. `MenuProcessor` - 16 edges
@@ -79,186 +78,186 @@
10. `scopeQuery()` - 15 edges
## Surprising Connections (you probably didn't know these)
- `defaultInstallmentRatios()` --calls--> `push()` [INFERRED]
utils/protocol-payment-installment.ts → views/operations/storage-facility/index.vue
- `calcUnpaidAmountsByRatios()` --calls--> `push()` [INFERRED]
utils/protocol-payment-installment.ts → views/operations/storage-facility/index.vue
- `handleDownloadAttachment()` --calls--> `downloadAttachmentFile()` [INFERRED]
views/pilot-service/infusion-schedule-management/InfusionScheduleHandoverDialog.vue → utils/download-attachment.ts
- `handleDownloadAttachment()` --calls--> `downloadAttachmentFile()` [INFERRED]
views/pilot-service/outbound-release-review/OutboundReleaseReviewDialog.vue → utils/download-attachment.ts
- `buildInboundMetaFields()` --calls--> `push()` [INFERRED]
utils/production-work-order-card-meta.ts → views/operations/storage-facility/index.vue
- `resolveBatchSectionTasks()` --calls--> `set()` [INFERRED]
utils/qc-inspection-batch.ts → views/production/process/ProcessRouteTab.vue
- `subscribeTokenRefresh()` --calls--> `push()` [INFERRED]
utils/http/index.ts → views/operations/storage-facility/index.vue
- `handleUnauthorizedResponse()` --calls--> `fetchRefreshToken()` [INFERRED]
utils/http/index.ts → api/auth.ts
- `fetchConsumableList()` --calls--> `get()` [INFERRED]
api/production.ts → views/production/process/ProcessRouteTab.vue
## Communities
### Community 0 - "Community 0"
Cohesion: 0.01
Nodes (150): fetchAccessLogList(), fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductTypeList(), fetchChannelAccount(), fetchChannelAgreementPrices() (+142 more)
Nodes (153): fetchAccessLogList(), fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchChannelAccount() (+145 more)
### Community 1 - "Community 1"
Cohesion: 0.02
Nodes (93): fetchUploadAttachment(), fetchMyQcTaskList(), FireworkSystem, handleReportUpload(), handleReportUpload(), walk(), buildInboundBasicSection(), buildInboundCellStorageViewSections() (+85 more)
Cohesion: 0.03
Nodes (85): fetchUploadAttachment(), handleReportUpload(), handleReportUpload(), walk(), buildTemporaryViewSections(), async(), for(), set() (+77 more)
### Community 2 - "Community 2"
Cohesion: 0.02
Nodes (42): fetchAllConsumablePacks(), fetchAllConsumables(), fetchAllConsumableStockLogs(), fetchAllEquipments(), fetchAllOutputTypes(), fetchAllProcessCategories(), fetchAllProcesses(), fetchAllReagents() (+34 more)
Nodes (47): handleBlur(), handleFocus(), handleInput(), fetchQcMaterialBatchList(), fetchQcMaterialBatchOptions(), fetchQcMaterialList(), fetchQcMaterialOptions(), fetchUpdateQcMaterialBatch() (+39 more)
### Community 3 - "Community 3"
Cohesion: 0.03
Nodes (66): fetchFullmoonTodoList(), fetchUpdateFullmoonTodoInsurance(), fetchAttachmentDownloadUrl(), fetchCollectionProtocolAuditList(), fetchCollectionProtocolDetail(), fetchCollectionProtocolList(), fetchCreateProtocolInvoiceRequest(), fetchInvoiceEligiblePayments() (+58 more)
Nodes (85): batchSavePilotCheckup(), deletePilotCheckupActualItem(), fetchCheckupInstitutionPackageDetail(), fetchCheckupInstitutionPackages(), fetchPilotCheckupActualItems(), fetchPilotCheckupDetail(), fetchPilotCheckupReserveItems(), markPilotCheckupChecked() (+77 more)
### Community 4 - "Community 4"
Cohesion: 0.03
Nodes (33): fetchGetMenuList(), ComponentLoader, IframeRouteManager, MenuProcessor, RouteRegistry, RouteTransformer, useAppMode(), useAuth() (+25 more)
Cohesion: 0.02
Nodes (42): fetchAllConsumablePacks(), fetchAllConsumables(), fetchAllConsumableStockLogs(), fetchAllEquipments(), fetchAllOutputTypes(), fetchAllProcessCategories(), fetchAllProcesses(), fetchAllReagents() (+34 more)
### Community 5 - "Community 5"
Cohesion: 0.04
Nodes (76): batchSavePilotCheckup(), deletePilotCheckupActualItem(), fetchCheckupInstitutionPackageDetail(), fetchCheckupInstitutionPackages(), fetchCheckupInstitutionProjects(), fetchPilotCheckupActualItems(), fetchPilotCheckupDetail(), fetchPilotCheckupReserveItems() (+68 more)
Cohesion: 0.03
Nodes (63): fetchFullmoonTodoList(), fetchUpdateFullmoonTodoInsurance(), fetchAttachmentDownloadUrl(), fetchCollectionProtocolAuditList(), fetchCollectionProtocolDetail(), fetchCollectionProtocolList(), fetchCreateProtocolInvoiceRequest(), fetchInvoiceEligiblePayments() (+55 more)
### Community 6 - "Community 6"
Cohesion: 0.03
Nodes (43): handleBlur(), handleFocus(), handleInput(), formatAmount(), formatAmount(), formatProtocolAmount(), fmtMoney(), buildBaseFields() (+35 more)
Nodes (33): fetchGetMenuList(), ComponentLoader, IframeRouteManager, MenuProcessor, RouteRegistry, RouteTransformer, useAppMode(), useAuth() (+25 more)
### Community 7 - "Community 7"
Cohesion: 0.03
Nodes (51): fetchCheckupInstitutionInvoices(), fetchCheckupInstitutionList(), fetchCreateCheckupInstitution(), fetchCreateCheckupInstitutionInvoice(), fetchCreateCheckupInstitutionProject(), fetchUpdateCheckupInstitution(), fetchUpdateCheckupInstitutionInvoice(), fetchUpdateCheckupInstitutionProject() (+43 more)
Nodes (52): fetchCheckupInstitutionInvoices(), fetchCheckupInstitutionList(), fetchCheckupInstitutionProjects(), fetchCreateCheckupInstitution(), fetchCreateCheckupInstitutionInvoice(), fetchCreateCheckupInstitutionProject(), fetchUpdateCheckupInstitution(), fetchUpdateCheckupInstitutionInvoice() (+44 more)
### Community 8 - "Community 8"
Cohesion: 0.05
Nodes (34): fetchClinicalPaymentDetail(), fetchClinicalPayments(), fetchClinicalReceiptConfirmed(), fetchClinicalReceiptPending(), fetchClinicalRefundConfirmed(), fetchClinicalRefundPending(), fetchOrderAdjusts(), fetchOrderDetail() (+26 more)
Cohesion: 0.04
Nodes (51): fetchMyProductionTasks(), fetchMyQcTaskList(), fetchQcTaskDetail(), fetchQcTaskList(), shouldApplyTriggerSourceFilter(), buildMineTableRows(), buildPresetTasksMap(), buildWorkOrderFromTasks() (+43 more)
### Community 9 - "Community 9"
Cohesion: 0.05
Nodes (35): useSettingsHandlers(), useSettingsPanel(), useSettingsState(), RoutePermissionValidator, useCeremony(), useTheme(), if(), walk() (+27 more)
Cohesion: 0.04
Nodes (38): useSettingsHandlers(), useSettingsPanel(), useSettingsState(), RoutePermissionValidator, useCeremony(), useTheme(), if(), collectAllPostBindDeptIds() (+30 more)
### Community 10 - "Community 10"
Cohesion: 0.05
Nodes (43): fetchUserList(), fetchAddTaskStep(), fetchCopyTaskStep(), fetchDeleteTaskStep(), fetchDispatchProductionTaskSteps(), fetchForwardProductionTask(), fetchProductionTaskDetail(), fetchProductionTaskEditorInit() (+35 more)
Nodes (37): fetchRoleOptions(), collectIds(), buildInboundBasicSection(), buildInboundCellStorageViewSections(), buildInboundResearchDonationViewSections(), buildReceptionSection(), buildTransportSection(), buildBaseFields() (+29 more)
### Community 11 - "Community 11"
Cohesion: 0.04
Nodes (22): fetchCellProductSpecList(), fetchQcMaterialBatchList(), fetchQcMaterialBatchOptions(), fetchQcMaterialList(), fetchQcMaterialOptions(), fetchUpdateQcMaterialBatch(), handleView(), handleReset() (+14 more)
Cohesion: 0.05
Nodes (34): fetchClinicalPaymentDetail(), fetchClinicalPayments(), fetchClinicalReceiptConfirmed(), fetchClinicalReceiptPending(), fetchClinicalRefundConfirmed(), fetchClinicalRefundPending(), fetchOrderAdjusts(), fetchOrderDetail() (+26 more)
### Community 12 - "Community 12"
Cohesion: 0.05
Nodes (32): fetchEthnicList(), applyDonationBundleToForm(), createEmptyTransport(), ensureEthnicOptionInList(), handleOpenForAdd(), loadEthnicOptions(), normalizeSampleRow(), resetForm() (+24 more)
### Community 13 - "Community 13"
Cohesion: 0.06
Nodes (11): fetchGetLatestUpgradeLog(), getDefaultLanguage(), checkStorageCompatibility(), StorageConfig, getSystemStorage(), getSysVersion(), StorageKeyManager, StorageCompatibilityManager (+3 more)
### Community 13 - "Community 13"
Cohesion: 0.05
Nodes (31): fetchEthnicList(), applyDonationBundleToForm(), createEmptyTransport(), ensureEthnicOptionInList(), handleOpenForAdd(), loadEthnicOptions(), normalizeSampleRow(), resetForm() (+23 more)
### Community 14 - "Community 14"
Cohesion: 0.05
Nodes (28): fetchDeleteQcTask(), fetchQcTaskDetail(), fetchQcTaskList(), fetchStartQcTask(), fetchQcTaskMaterialUsages(), fetchQcTaskResults(), fetchMineQcWorkOrderTabUnfinishedCounts(), fetchOutboundQcDetail() (+20 more)
Cohesion: 0.06
Nodes (37): fetchUserList(), fetchAddTaskStep(), fetchCopyTaskStep(), fetchDeleteTaskStep(), fetchDispatchProductionTaskSteps(), fetchForwardProductionTask(), fetchProductionTaskDetail(), fetchProductionTaskEditorInit() (+29 more)
### Community 15 - "Community 15"
Cohesion: 0.06
Nodes (29): fetchUserOptions(), fetchSampleReceptionCheckItemList(), fetchSampleReceptionCheckItemsActive(), fetchAllocateLabStorageCodes(), fetchSampleReceptionBySampleCode(), fetchSampleReceptionDetail(), fetchSampleReceptionPendingList(), fetchSampleReceptionReceivedList() (+21 more)
Cohesion: 0.04
Nodes (21): fetchAvailableMaterialBatches(), fetchMyProductionMaterialConsumptions(), fetchMyProductionMaterialUsageList(), fetchProductionMaterialBatchList(), fetchProductionMaterialBatchOptions(), fetchProductionMaterialConsumptions(), fetchProductionMaterialFormula(), fetchProductionMaterialLinkedStepUsages() (+13 more)
### Community 16 - "Community 16"
Cohesion: 0.05
Nodes (27): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchRoleOptions(), fetchUpdateMenu(), collectIds(), postorder(), preorder() (+19 more)
### Community 17 - "Community 17"
Cohesion: 0.09
Nodes (41): applyFqParamsChange(), buildFqAmounts(), countByStatus(), evaluateFqParamsChange(), formatMoneySummary(), generateInitialFqDetails(), getPaidInstallmentRows(), isSameFqParams() (+33 more)
### Community 18 - "Community 18"
Cohesion: 0.1
Nodes (2): WebSocketClient, TableCache
### Community 19 - "Community 19"
### Community 17 - "Community 17"
Cohesion: 0.08
Nodes (32): toLogin(), base64ToBytes(), bytesToBase64(), decryptJson(), deriveKey(), encryptJson(), fromBase64Url(), hexToBytes() (+24 more)
### Community 18 - "Community 18"
Cohesion: 0.07
Nodes (20): maskIdCard(), buildBasicExperimentApplicationFields(), buildDefaultApplicationFields(), buildOutboundPilotContextSections(), applicationStatusLabel(), applicationStatusTagType(), cellProductStatusLabel(), cellProductStatusTagType() (+12 more)
### Community 19 - "Community 19"
Cohesion: 0.09
Nodes (27): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), updateInfusionScheduleStatus(), handleAdd(), handleDelete(), handleDropdownCommand() (+19 more)
### Community 20 - "Community 20"
Cohesion: 0.08
Nodes (20): maskIdCard(), buildBasicExperimentApplicationFields(), buildDefaultApplicationFields(), buildOutboundPilotContextSections(), applicationStatusLabel(), applicationStatusTagType(), cellProductStatusLabel(), cellProductStatusTagType() (+12 more)
Nodes (18): fetchProductionReceptionBySampleCode(), fetchProductionReceptionSubmit(), fetchProductionReceptionUpdate(), onUserSelectVisible(), remoteSearchUsers(), buildPayload(), ensureDefaultHandler(), initDialog() (+10 more)
### Community 21 - "Community 21"
Cohesion: 0.09
Nodes (28): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), updateInfusionScheduleStatus(), handleAdd(), handleDelete(), handleDropdownCommand() (+20 more)
Nodes (27): completePilotApplication(), deletePilotApplication(), fetchPilotApplicationList(), startPilotApplication(), voidPilotApplication(), handleBatchComplete(), handleBatchStart(), handleBatchVoid() (+19 more)
### Community 22 - "Community 22"
Cohesion: 0.09
Nodes (28): completePilotApplication(), deletePilotApplication(), fetchPilotApplicationList(), startPilotApplication(), voidPilotApplication(), clearTableSelection(), handleBatchComplete(), handleBatchStart() (+20 more)
### Community 23 - "Community 23"
Cohesion: 0.07
Nodes (16): fetchDeleteMaterialBatch(), fetchMaterialBatchList(), fetchMaterialBatchOptions(), fetchMaterialList(), fetchMaterialOptions(), fetchUpdateMaterialBatch(), fetchMaterialUsageList(), fetchMyMaterialUsageList() (+8 more)
### Community 24 - "Community 24"
### Community 23 - "Community 23"
Cohesion: 0.11
Nodes (21): fetchGetMenuCodes(), fetchGetUserInfo(), fetchLogin(), fetchRefreshToken(), fetchUpdateProfile(), fetchUploadProfileAvatar(), fetchUserInfo(), buildWebEncryptedLoginBody() (+13 more)
### Community 25 - "Community 25"
### Community 24 - "Community 24"
Cohesion: 0.09
Nodes (8): normalizeStepSubTables(), parseEquipmentIds(), syncEquipmentNamesFromOptions(), formatPlannedStartDate(), normalizePlannedStartDate(), productionStepAssigneeLabels(), productionStepAssigneeText(), productionStepPlannedStartText()
Nodes (11): fetchMineQcWorkOrderTabUnfinishedCounts(), fetchOutboundQcDetail(), fetchQcWorkOrderDetail(), fetchQcWorkOrderList(), fetchQcWorkOrderTabUnfinishedCounts(), reload(), reloadTabCounts(), handleMenuJump() (+3 more)
### Community 25 - "Community 25"
Cohesion: 0.13
Nodes (19): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateMenu(), postorder(), preorder(), applyTreeExpand(), handleAdd() (+11 more)
### Community 26 - "Community 26"
Cohesion: 0.12
Nodes (13): fetchMyProductionTasks(), buildMineTableRows(), buildPresetTasksMap(), buildWorkOrderFromTasks(), fetchAllMineProductionTasks(), fetchMineTasksByScope(), filterMineEntriesByWorkOrderSearch(), keywordMatchesWorkOrder() (+5 more)
### Community 27 - "Community 27"
Cohesion: 0.12
Nodes (15): addCopyButton(), highlightCode(), insertLineNumbers(), isBlockProcessed(), markBlockAsProcessed(), processBlock(), setupHighlightDirective(), setupRippleDirective() (+7 more)
### Community 28 - "Community 28"
### Community 27 - "Community 27"
Cohesion: 0.11
Nodes (10): fetchMineProductionWorkOrderTabStepCounts(), fetchMineProductionWorkOrderTabStepCountsDeduped(), fetchProductionWorkOrderCellProductOptions(), fetchProductionWorkOrderDetail(), fetchProductionWorkOrderList(), fetchProductionWorkOrderQcDispatchOptions(), fetchProductionWorkOrderTabStepCounts(), fetchProductionWorkOrderTabStepCountsDeduped() (+2 more)
### Community 29 - "Community 29"
### Community 28 - "Community 28"
Cohesion: 0.11
Nodes (11): fetchOutboundReleaseMaterial(), fetchOutboundReleaseReviewDetail(), fetchOutboundReleaseReviewList(), fetchReleaseReviewList(), handleReset(), handleSearch(), handleToggleSelect(), loadData() (+3 more)
### Community 30 - "Community 30"
### Community 29 - "Community 29"
Cohesion: 0.13
Nodes (18): fetchCellSampleTypeList(), fetchCreateCellSampleType(), fetchDeleteCellSampleType(), fetchUpdateCellSampleType(), handleAdd(), handleDelete(), handleDropdownCommand(), handleEdit() (+10 more)
### Community 30 - "Community 30"
Cohesion: 0.11
Nodes (6): normalizeStepSubTables(), formatPlannedStartDate(), normalizePlannedStartDate(), productionStepAssigneeLabels(), productionStepAssigneeText(), productionStepPlannedStartText()
### Community 31 - "Community 31"
Cohesion: 0.16
Nodes (14): fetchCreateEnvDetectItem(), fetchDeleteEnvDetectItem(), fetchEnvDetectItemDetail(), fetchEnvDetectItemList(), fetchEnvDetectItemsActive(), fetchUpdateEnvDetectItem(), handleAdd(), handleBatchDelete() (+6 more)
### Community 32 - "Community 32"
Cohesion: 0.2
Nodes (11): fetchMarkQcMaterialUsageFullyUsed(), canMarkFullyUsed(), displayPurpose(), displayReceiver(), displayUseTime(), getChangeTypeLabel(), getChangeTypeTagType(), handleMarkFullyUsed() (+3 more)
### Community 33 - "Community 33"
Cohesion: 0.16
Nodes (10): useTable(), useTableImpl(), getColumnChecks(), useTableColumns(), createErrorHandler(), createSmartDebounce(), defaultResponseAdapter(), extractPagination() (+2 more)
### Community 34 - "Community 34"
### Community 33 - "Community 33"
Cohesion: 0.27
Nodes (14): useChart(), useChartComponent(), useChartOps(), colourBlend(), getCssVar(), getDarkColor(), getLightColor(), handleElementThemeColor() (+6 more)
### Community 35 - "Community 35"
### Community 34 - "Community 34"
Cohesion: 0.33
Nodes (13): buildProtocolPaymentFlowSteps(), dash(), financeReceiptTime(), formatAmount(), hasFinanceReceipt(), hasFinanceRefund(), hasReceiptSubmit(), hasRefundSubmit() (+5 more)
### Community 36 - "Community 36"
Cohesion: 0.22
Nodes (9): fullFileUrl(), handleDownloadAttachment(), handlePreviewAttachment(), isVideoFile(), normalizeDisplayValue(), resolveReviewCellType(), resolveReviewQuantity(), resolveReviewSpecText() (+1 more)
### Community 37 - "Community 37"
### Community 35 - "Community 35"
Cohesion: 0.19
Nodes (6): fetchServiceOrderTxnList(), handleReset(), handleSearch(), handleTabChange(), loadData(), switchTab()
### Community 39 - "Community 39"
Cohesion: 0.15
Nodes (4): fetchNextDonationSampleCode(), fetchResearchDonationAuditList(), fetchResearchDonationDetail(), fetchResearchDonationList()
### Community 37 - "Community 37"
Cohesion: 0.24
Nodes (8): fullFileUrl(), handlePreviewAttachment(), isVideoFile(), normalizeDisplayValue(), resolveReviewCellType(), resolveReviewQuantity(), resolveReviewSpecText(), uniqueJoined()
### Community 40 - "Community 40"
### Community 38 - "Community 38"
Cohesion: 0.23
Nodes (7): buildInboundMetaFields(), getCardMetaConfig(), getCardMetaConfigForLegacyTab(), parseReceptionTime(), receptionOver24HoursLabel(), receptionOver24HoursTagType(), resolveCardMetaForRow()
### Community 39 - "Community 39"
Cohesion: 0.42
Nodes (9): buildPaymentFlowSteps(), dash(), formatAmount(), hasFinanceReceipt(), hasFinanceRefund(), hasReceiptSubmit(), hasRefundSubmit(), receiptSubmitTime() (+1 more)
### Community 41 - "Community 41"
### Community 40 - "Community 40"
Cohesion: 0.25
Nodes (2): handleTouchEnd(), setTransition()
### Community 44 - "Community 44"
### Community 41 - "Community 41"
Cohesion: 0.28
Nodes (4): fetchMyProductionMaterialConsumptions(), handleReset(), handleSearch(), loadData()
Nodes (1): FireworkSystem
### Community 43 - "Community 43"
Cohesion: 0.31
Nodes (4): annotateForkEdges(), chainApiToElements(), walkAncestorBranch(), walkAncestorParents()
### Community 46 - "Community 46"
Cohesion: 0.39
@@ -277,87 +276,83 @@ Cohesion: 0.48
Nodes (5): buildPrefilledLabStorageCode(), formatYear(), formatYm(), normalizeSampleTypeName(), normalizeSourceType()
### Community 51 - "Community 51"
Cohesion: 0.29
Nodes (2): fetchLeaveDetail(), fetchLeaveList()
### Community 52 - "Community 52"
Cohesion: 0.47
Nodes (3): isPaymentDueWithinWarnWindow(), parsePaymentDueYmd(), startOfLocalDay()
### Community 53 - "Community 53"
### Community 52 - "Community 52"
Cohesion: 0.5
Nodes (2): formatProtocolDocDeleteConfirm(), formatProtocolDocSubject()
### Community 53 - "Community 53"
Cohesion: 0.5
Nodes (2): parseEquipmentIds(), syncEquipmentNamesFromOptions()
### Community 55 - "Community 55"
Cohesion: 0.5
Nodes (2): focusInput(), handleKeydown()
### Community 56 - "Community 56"
### Community 57 - "Community 57"
Cohesion: 0.67
Nodes (2): if(), logSidebarMenu()
### Community 59 - "Community 59"
Cohesion: 0.5
Nodes (1): fetchQcSmsList()
### Community 63 - "Community 63"
### Community 62 - "Community 62"
Cohesion: 1.0
Nodes (2): getSettingDefaults(), resetToDefaults()
### Community 65 - "Community 65"
### Community 64 - "Community 64"
Cohesion: 1.0
Nodes (2): copyTextToClipboard(), copyTextWithFallback()
### Community 72 - "Community 72"
### Community 71 - "Community 71"
Cohesion: 1.0
Nodes (2): emptyTabCounts(), useProductionWorkOrderTabStepCounts()
### Community 74 - "Community 74"
### Community 73 - "Community 73"
Cohesion: 1.0
Nodes (2): emptyTabCounts(), useQcWorkOrderTabUnfinishedCounts()
## Knowledge Gaps
- **Thin community `Community 18`** (42 nodes): `WebSocketClient`, `.calculateReconnectDelay()`, `.clearAllTimers()`, `.clearConnectionTimers()`, `.clearTimer()`, `.close()`, `.closeCurrentSocketForReconnect()`, `.connect()`, `.connectionStatusText()`, `.constructor()`, `.destroyInstance()`, `.flushMessageQueue()`, `.getInstance()`, `.getReadyStateText()`, `.handleClose()`, `.handleConnectionTimeout()`, `.handleError()`, `.handleMessage()`, `.handleOpen()`, `.init()`, `.isWebSocketConnected()`, `.reconnect()`, `.resetHeartbeat()`, `.send()`, `.startHeartbeat()`, `.startPing()`, `TableCache`, `.cleanupExpired()`, `.clear()`, `.clearByTags()`, `.clearCurrentSearch()`, `.clearPagination()`, `.constructor()`, `.evictLRU()`, `.generateKey()`, `.generateTags()`, `.get()`, `.getStats()`, `.log()`, `.set()`, `index.ts`, `tableCache.ts`
- **Thin community `Community 16`** (42 nodes): `WebSocketClient`, `.calculateReconnectDelay()`, `.clearAllTimers()`, `.clearConnectionTimers()`, `.clearTimer()`, `.close()`, `.closeCurrentSocketForReconnect()`, `.connect()`, `.connectionStatusText()`, `.constructor()`, `.destroyInstance()`, `.flushMessageQueue()`, `.getInstance()`, `.getReadyStateText()`, `.handleClose()`, `.handleConnectionTimeout()`, `.handleError()`, `.handleMessage()`, `.handleOpen()`, `.init()`, `.isWebSocketConnected()`, `.reconnect()`, `.resetHeartbeat()`, `.send()`, `.startHeartbeat()`, `.startPing()`, `TableCache`, `.cleanupExpired()`, `.clear()`, `.clearByTags()`, `.clearCurrentSearch()`, `.clearPagination()`, `.constructor()`, `.evictLRU()`, `.generateKey()`, `.generateTags()`, `.get()`, `.getStats()`, `.log()`, `.set()`, `index.ts`, `tableCache.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 41`** (9 nodes): `cleanupEventListeners()`, `handleTouchEnd()`, `handleTouchMove()`, `handleTouchStart()`, `handleWheelScroll()`, `if()`, `setTransition()`, `setupEventListeners()`, `index.vue`
- **Thin community `Community 40`** (9 nodes): `cleanupEventListeners()`, `handleTouchEnd()`, `handleTouchMove()`, `handleTouchStart()`, `handleWheelScroll()`, `if()`, `setTransition()`, `setupEventListeners()`, `index.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 41`** (9 nodes): `FireworkSystem`, `.constructor()`, `.createFirework()`, `.createParticle()`, `.getAvailableParticle()`, `.initializePool()`, `.preloadAllImages()`, `.preloadImage()`, `index.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 47`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 49`** (7 nodes): `App.vue`, `main.ts`, `refreshButtonAutoIcons()`, `refreshPanelTitleIcons()`, `logApiCryptoBootInfo()`, `maskSecret()`, `console.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 51`** (7 nodes): `fetchCreateLeave()`, `fetchDeleteLeave()`, `fetchLeaveDetail()`, `fetchLeaveList()`, `fetchSubmitLeave()`, `fetchUpdateLeave()`, `leave.ts`
- **Thin community `Community 52`** (5 nodes): `formatProtocolDocBatchDeleteConfirm()`, `formatProtocolDocDeleteConfirm()`, `formatProtocolDocSubject()`, `getProtocolDocTypeLabel()`, `protocol-doc-label.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 53`** (5 nodes): `formatProtocolDocBatchDeleteConfirm()`, `formatProtocolDocDeleteConfirm()`, `formatProtocolDocSubject()`, `getProtocolDocTypeLabel()`, `protocol-doc-label.ts`
- **Thin community `Community 53`** (5 nodes): `equipmentOptionLabel()`, `joinEquipmentIds()`, `parseEquipmentIds()`, `syncEquipmentNamesFromOptions()`, `equipment-select.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 55`** (5 nodes): `focusInput()`, `handleKeydown()`, `if()`, `search()`, `index.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 56`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
- **Thin community `Community 57`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 59`** (4 nodes): `fetchGenerateQcSms()`, `fetchQcSmsList()`, `fetchToggleQcSmsNotified()`, `qc-sms-notification.ts`
- **Thin community `Community 62`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 63`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
- **Thin community `Community 64`** (3 nodes): `copyTextToClipboard()`, `copyTextWithFallback()`, `copy-text.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 65`** (3 nodes): `copyTextToClipboard()`, `copyTextWithFallback()`, `copy-text.ts`
- **Thin community `Community 71`** (3 nodes): `emptyTabCounts()`, `useProductionWorkOrderTabStepCounts()`, `useProductionWorkOrderTabStepCounts.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 72`** (3 nodes): `emptyTabCounts()`, `useProductionWorkOrderTabStepCounts()`, `useProductionWorkOrderTabStepCounts.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 74`** (3 nodes): `emptyTabCounts()`, `useQcWorkOrderTabUnfinishedCounts()`, `useQcWorkOrderTabUnfinishedCounts.ts`
- **Thin community `Community 73`** (3 nodes): `emptyTabCounts()`, `useQcWorkOrderTabUnfinishedCounts()`, `useQcWorkOrderTabUnfinishedCounts.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 3`, `Community 5`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 17`, `Community 21`, `Community 22`, `Community 23`, `Community 24`, `Community 26`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 37`, `Community 39`, `Community 44`, `Community 51`, `Community 59`?**
_High betweenness centrality (0.302) - this node is a cross-community bridge._
- **Why does `push()` connect `Community 1` to `Community 0`, `Community 2`, `Community 3`, `Community 5`, `Community 6`, `Community 7`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 17`, `Community 18`, `Community 19`, `Community 20`, `Community 22`, `Community 26`, `Community 28`?**
_High betweenness centrality (0.198) - this node is a cross-community bridge._
- **Why does `handleDynamicRoutes()` connect `Community 4` to `Community 24`, `Community 9`, `Community 28`, `Community 14`?**
_High betweenness centrality (0.039) - this node is a cross-community bridge._
- **Are the 277 inferred relationships involving `get()` (e.g. with `buildNodeCodePathFromFlat()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
_`get()` has 277 INFERRED edges - model-reasoned connections that need verification._
- **Why does `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 19`, `Community 20`, `Community 21`, `Community 22`, `Community 23`, `Community 24`, `Community 25`, `Community 27`, `Community 28`, `Community 29`, `Community 31`, `Community 35`, `Community 43`?**
_High betweenness centrality (0.295) - this node is a cross-community bridge._
- **Why does `push()` connect `Community 1` to `Community 0`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 12`, `Community 13`, `Community 14`, `Community 16`, `Community 17`, `Community 18`, `Community 21`, `Community 24`, `Community 27`, `Community 38`, `Community 41`?**
_High betweenness centrality (0.190) - this node is a cross-community bridge._
- **Why does `handleDynamicRoutes()` connect `Community 6` to `Community 24`, `Community 9`, `Community 27`, `Community 23`?**
_High betweenness centrality (0.040) - this node is a cross-community bridge._
- **Are the 279 inferred relationships involving `get()` (e.g. with `buildNodeCodePathFromFlat()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
_`get()` has 279 INFERRED edges - model-reasoned connections that need verification._
- **Are the 69 inferred relationships involving `push()` (e.g. with `refreshQcMenuBadges()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
_`push()` has 69 INFERRED edges - model-reasoned connections that need verification._
- **Are the 27 inferred relationships involving `emit()` (e.g. with `handleSubmit()` and `handleBlur()`) actually correct?**
_`emit()` has 27 INFERRED edges - model-reasoned connections that need verification._
- **Are the 22 inferred relationships involving `emit()` (e.g. with `handleSubmit()` and `handleBlur()`) actually correct?**
_`emit()` has 22 INFERRED edges - model-reasoned connections that need verification._
- **Are the 18 inferred relationships involving `set()` (e.g. with `buildNodeCodePathFromFlat()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
_`set()` has 18 INFERRED edges - model-reasoned connections that need verification._
+4 -4
View File
@@ -57,12 +57,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">2702 nodes &middot; 3751 edges &middot; 326 communities</div>
<div id="stats">2698 nodes &middot; 3714 edges &middot; 331 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 49, "community_name": "Community 49", "source_file": "App.vue", "file_type": "code", "degree": 3}, {"id": "src_app_refreshbuttonautoicons", "label": "refreshButtonAutoIcons()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshButtonAutoIcons()", "community": 49, "community_name": "Community 49", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "src_app_refreshpaneltitleicons", "label": "refreshPanelTitleIcons()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshPanelTitleIcons()", "community": 49, "community_name": "Community 49", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "main_ts", "label": "main.ts", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "main.ts", "community": 49, "community_name": "Community 49", "source_file": "main.ts", "file_type": "code", "degree": 4}, {"id": "src_main_masksecret", "label": "maskSecret()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "maskSecret()", "community": 49, "community_name": "Community 49", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "src_main_logapicryptobootinfo", "label": "logApiCryptoBootInfo()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "logApiCryptoBootInfo()", "community": 49, "community_name": "Community 49", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "env_d_ts", "label": "env.d.ts", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "env.d.ts", "community": 108, "community_name": "Community 108", "source_file": "env.d.ts", "file_type": "code", "degree": 0}, {"id": "shims_loose_d_ts", "label": "shims-loose.d.ts", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "shims-loose.d.ts", "community": 109, "community_name": "Community 109", "source_file": "shims-loose.d.ts", "file_type": "code", "degree": 0}, {"id": "directives_index_ts", "label": "index.ts", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "index.ts", "community": 27, "community_name": "Community 27", "source_file": "directives/index.ts", "file_type": "code", "degree": 1}, {"id": "directives_index_setupglobdirectives", "label": "setupGlobDirectives()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "setupGlobDirectives()", "community": 27, "community_name": "Community 27", "source_file": "directives/index.ts", "file_type": "code", "degree": 5}, {"id": "directives_core_roles_ts", "label": "roles.ts", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "roles.ts", "community": 27, "community_name": "Community 27", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 3}, {"id": "core_roles_checkrolepermission", "label": "checkRolePermission()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "checkRolePermission()", "community": 27, "community_name": "Community 27", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_removeelement", "label": "removeElement()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "removeElement()", "community": 27, "community_name": "Community 27", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_setuprolesdirective",Line truncated
const RAW_EDGES = [{"from": "app_vue", "to": "src_app_refreshbuttonautoicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "src_app_refreshpaneltitleicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "main_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "utils_sys_console_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_masksecret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_logapicryptobootinfo", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_main_masksecret", "to": "src_main_logapicryptobootinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_ts", "to": "directives_index_setupglobdirectives", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_setupglobdirectives", "to": "core_auth_setupauthdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "core_roles_setuprolesdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_highlight_setuphighlightdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_ripple_setuprippledirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_core_roles_ts", "to": "core_roles_checkrolepermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_setuprolesdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_roles_checkrolepermission", "to": "core_roles_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_checkauthpermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_setupauthdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_checkauthpermission", "to": "core_auth_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_ripple_ts", "to": "business_ripple_setuprippledirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_highlightcode", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_insertlinenumbers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_addcopybutton", "label": "contains", "title": "contains [EXTRACTED]", "dLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 417}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 164}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 104}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 101}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 94}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 93}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 92}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 89}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 61}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 60}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 60}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 56}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 55}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 55}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 54}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 51}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 48}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 47}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 42}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 40}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 39}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 39}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 35}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 33}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 29}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 26}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 23}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 22}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 22}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 22}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 22}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 19}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 18}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 17}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 16}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 14}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 14}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 14}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 13}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 13}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 10}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 9}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 9}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 9}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 9}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 9}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 8}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 8}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 8}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 7}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 7}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 7}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 6}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 5}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 5}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 5}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 4}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 4}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 4}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 4}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 4}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 4}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 4}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 3}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 3}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 3}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 3}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 3}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 3}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 3}, {"cid": 70, "color": "#4E79A7", "label": "Community 70", "Line truncated
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 49, "community_name": "Community 49", "source_file": "App.vue", "file_type": "code", "degree": 3}, {"id": "src_app_refreshbuttonautoicons", "label": "refreshButtonAutoIcons()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshButtonAutoIcons()", "community": 49, "community_name": "Community 49", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "src_app_refreshpaneltitleicons", "label": "refreshPanelTitleIcons()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshPanelTitleIcons()", "community": 49, "community_name": "Community 49", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "main_ts", "label": "main.ts", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "main.ts", "community": 49, "community_name": "Community 49", "source_file": "main.ts", "file_type": "code", "degree": 4}, {"id": "src_main_masksecret", "label": "maskSecret()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "maskSecret()", "community": 49, "community_name": "Community 49", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "src_main_logapicryptobootinfo", "label": "logApiCryptoBootInfo()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "logApiCryptoBootInfo()", "community": 49, "community_name": "Community 49", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "env_d_ts", "label": "env.d.ts", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "env.d.ts", "community": 108, "community_name": "Community 108", "source_file": "env.d.ts", "file_type": "code", "degree": 0}, {"id": "shims_loose_d_ts", "label": "shims-loose.d.ts", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "shims-loose.d.ts", "community": 109, "community_name": "Community 109", "source_file": "shims-loose.d.ts", "file_type": "code", "degree": 0}, {"id": "directives_index_ts", "label": "index.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "index.ts", "community": 26, "community_name": "Community 26", "source_file": "directives/index.ts", "file_type": "code", "degree": 1}, {"id": "directives_index_setupglobdirectives", "label": "setupGlobDirectives()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "setupGlobDirectives()", "community": 26, "community_name": "Community 26", "source_file": "directives/index.ts", "file_type": "code", "degree": 5}, {"id": "directives_core_roles_ts", "label": "roles.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "roles.ts", "community": 26, "community_name": "Community 26", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 3}, {"id": "core_roles_checkrolepermission", "label": "checkRolePermission()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "checkRolePermission()", "community": 26, "community_name": "Community 26", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_removeelement", "label": "removeElement()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "removeElement()", "community": 26, "community_name": "Community 26", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_setuprolesdirective",Line truncated
const RAW_EDGES = [{"from": "app_vue", "to": "src_app_refreshbuttonautoicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "src_app_refreshpaneltitleicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "main_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "utils_sys_console_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_masksecret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_logapicryptobootinfo", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_main_masksecret", "to": "src_main_logapicryptobootinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_ts", "to": "directives_index_setupglobdirectives", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_setupglobdirectives", "to": "core_auth_setupauthdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "core_roles_setuprolesdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_highlight_setuphighlightdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_ripple_setuprippledirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_core_roles_ts", "to": "core_roles_checkrolepermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_setuprolesdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_roles_checkrolepermission", "to": "core_roles_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_checkauthpermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_setupauthdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_checkauthpermission", "to": "core_auth_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_ripple_ts", "to": "business_ripple_setuprippledirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_highlightcode", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_insertlinenumbers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_addcopybutton", "label": "contains", "title": "contains [EXTRACTED]", "dLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 425}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 123}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 117}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 112}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 104}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 97}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 94}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 90}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 80}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 68}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 67}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 61}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 59}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 55}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 50}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 48}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 42}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 40}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 40}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 37}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 37}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 34}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 33}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 29}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 24}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 24}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 22}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 22}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 22}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 22}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 21}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 19}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 17}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 16}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 14}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 14}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 13}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 13}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 12}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 10}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 9}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 9}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 9}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 9}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 9}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 9}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 8}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 8}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 8}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 7}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 7}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 6}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 5}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 5}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 5}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 5}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 5}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 4}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 4}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 4}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 4}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 4}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 3}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 3}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 3}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 3}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 3}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 3}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 3}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 3}, {"cid": 70, "color": "#4E79A7", "label": "Community 70", "Line truncated
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
Loaded 100 of 278 files, more files were not shown because too many files have changed in this diff. Show more