提交
This commit is contained in:
1 parent
9345cf4ad8
commit
c3bd2c00ae
51 files changed
+14486
-15765
No files matched your search
@@ -1 +0,0 @@
|
||||
99987
|
||||
+18
-11
@@ -66,10 +66,14 @@ def list_plans(
|
||||
created_from: Optional[str] = Query(default=None, alias="createdFrom", description="创建开始日期"),
|
||||
created_to: Optional[str] = Query(default=None, alias="createdTo", description="创建结束日期"),
|
||||
start_date_from: Optional[str] = Query(
|
||||
default=None, alias="startDateFrom", description="计划起始日期开始"
|
||||
default=None,
|
||||
alias="startDateFrom",
|
||||
description="筛选区间开始:与计划有效期(起始~截止)有交集",
|
||||
),
|
||||
start_date_to: Optional[str] = Query(
|
||||
default=None, alias="startDateTo", description="计划起始日期结束"
|
||||
default=None,
|
||||
alias="startDateTo",
|
||||
description="筛选区间结束:与计划有效期(起始~截止)有交集",
|
||||
),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
@@ -110,15 +114,18 @@ def list_plans(
|
||||
if created_to:
|
||||
query = query.filter(DbPurchasePlan.create_time <= f"{created_to} 23:59:59")
|
||||
|
||||
if start_date_from:
|
||||
start_from = parse_date_str(start_date_from)
|
||||
if start_from:
|
||||
query = query.filter(DbPurchasePlan.start_date >= start_from)
|
||||
|
||||
if start_date_to:
|
||||
start_to = parse_date_str(start_date_to)
|
||||
if start_to:
|
||||
query = query.filter(DbPurchasePlan.start_date <= start_to)
|
||||
# 按计划有效期与筛选区间重叠:start_date <= range_to 且 end_date >= range_from
|
||||
# (空起始/截止视为该侧无界,与三方填写页「当天是否在有效期内」语义一致)
|
||||
range_from = parse_date_str(start_date_from) if start_date_from else None
|
||||
range_to = parse_date_str(start_date_to) if start_date_to else None
|
||||
if range_to:
|
||||
query = query.filter(
|
||||
or_(DbPurchasePlan.start_date.is_(None), DbPurchasePlan.start_date <= range_to)
|
||||
)
|
||||
if range_from:
|
||||
query = query.filter(
|
||||
or_(DbPurchasePlan.end_date.is_(None), DbPurchasePlan.end_date >= range_from)
|
||||
)
|
||||
|
||||
query = apply_db_scope(query, DbPurchasePlan, user, db, tenant_no)
|
||||
plans = query.all()
|
||||
|
||||
@@ -51,7 +51,7 @@ class DutySlot(Base):
|
||||
capacity = Column(Integer, nullable=False, default=1, comment="名额")
|
||||
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(500), nullable=True, comment="备注")
|
||||
remark = Column(String(500), nullable=True, comment="班次工作安排")
|
||||
create_by = Column(String(64), nullable=True, comment="创建者")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建部门")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
|
||||
@@ -20,6 +20,7 @@ class DutyAssignmentIn(BaseModel):
|
||||
class DutySlotSaveIn(BaseModel):
|
||||
shiftType: ShiftType
|
||||
capacity: int = Field(ge=1, le=99)
|
||||
remark: Optional[str] = Field(default=None, max_length=500)
|
||||
assignments: List[DutyAssignmentIn] = []
|
||||
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ def _slot_dict(slot: DutySlot, assignments: Sequence[DutyAssignment]) -> Dict[st
|
||||
"shiftLabel": SHIFT_LABELS.get(slot.shift_type, slot.shift_type),
|
||||
"capacity": slot.capacity,
|
||||
"taken": len(active),
|
||||
"remark": (slot.remark or "").strip() or None,
|
||||
"assignments": [_assignment_dict(a) for a in active],
|
||||
}
|
||||
|
||||
@@ -290,6 +291,7 @@ def save_day(
|
||||
for slot_in in body.slots:
|
||||
order += 1
|
||||
slot = existing_by_type.get(slot_in.shiftType)
|
||||
slot_remark = (slot_in.remark or "").strip() or None
|
||||
# 已有 slot 上历史 assign 用户可再保存(D4);新建 slot 必须具备值班人员角色(D7)
|
||||
grandfathered_user_ids: set = set()
|
||||
if slot is None:
|
||||
@@ -298,6 +300,7 @@ def save_day(
|
||||
duty_day_id=day.id,
|
||||
shift_type=slot_in.shiftType,
|
||||
capacity=slot_in.capacity,
|
||||
remark=slot_remark,
|
||||
tenant_no=tenant_no,
|
||||
order_num=order,
|
||||
create_by=user_id,
|
||||
@@ -335,6 +338,7 @@ def save_day(
|
||||
f"超过名额 {slot_in.capacity},请先删人再缩容"
|
||||
)
|
||||
slot.capacity = slot_in.capacity
|
||||
slot.remark = slot_remark
|
||||
slot.order_num = order
|
||||
slot.update_by = user_id
|
||||
slot.update_time = now
|
||||
|
||||
@@ -187,8 +187,10 @@
|
||||
"185": "vehicle_urea.py",
|
||||
"186": "transport_address.py",
|
||||
"187": "price_letter_detail",
|
||||
"188": "get_client_ip",
|
||||
"189": "create",
|
||||
"190": "menu.py",
|
||||
"191": "context.py",
|
||||
"192": "pool_rule.py",
|
||||
"193": "storage.py",
|
||||
"194": "get_current_user_by_token",
|
||||
@@ -196,9 +198,9 @@
|
||||
"196": "crm_contract_sub_routes.py",
|
||||
"197": "_coerce_resource_snapshot",
|
||||
"198": "user.py",
|
||||
"200": "register_local_callback",
|
||||
"199": "price_letter_detail",
|
||||
"200": "assert_contract_editable_for_update",
|
||||
"202": "statistics.py",
|
||||
"203": "__init__.py",
|
||||
"206": "crm_quote_pdf.py",
|
||||
"207": "shanxia2.0 后端骨架(FastAPI)",
|
||||
"211": "leave.py",
|
||||
|
||||
@@ -1 +1 @@
|
||||
/Users/wuzilong/work/00code/shanxia2.0/backend
|
||||
.
|
||||
@@ -187,9 +187,10 @@
|
||||
"185": "vehicle_urea.py",
|
||||
"186": "transport_address.py",
|
||||
"187": "price_letter_detail",
|
||||
"188": "context.py",
|
||||
"188": "get_client_ip",
|
||||
"189": "create",
|
||||
"190": "menu.py",
|
||||
"191": "context.py",
|
||||
"192": "pool_rule.py",
|
||||
"193": "storage.py",
|
||||
"194": "get_current_user_by_token",
|
||||
@@ -197,10 +198,7 @@
|
||||
"196": "crm_contract_sub_routes.py",
|
||||
"197": "_coerce_resource_snapshot",
|
||||
"198": "user.py",
|
||||
"199": "unsettled_plans_q_filter",
|
||||
"200": "register_local_callback",
|
||||
"202": "statistics.py",
|
||||
"203": "__init__.py",
|
||||
"206": "crm_quote_pdf.py",
|
||||
"207": "shanxia2.0 后端骨架(FastAPI)",
|
||||
"211": "leave.py",
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# Graph Report - backend (2026-08-17)
|
||||
|
||||
## Corpus Check
|
||||
- 323 files · ~214,471 words
|
||||
- 326 files · ~215,615 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 4799 nodes · 16478 edges · 545 communities (527 shown, 18 thin omitted)
|
||||
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 728 edges (avg confidence: 0.62)
|
||||
- 4819 nodes · 16536 edges · 543 communities (524 shown, 19 thin omitted)
|
||||
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 730 edges (avg confidence: 0.62)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `6b2147aa`
|
||||
- Built from commit: `9345cf4a`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
@@ -156,14 +156,12 @@
|
||||
- [[_COMMUNITY_resolve_create_time_bounds|resolve_create_time_bounds]]
|
||||
- [[_COMMUNITY_excel_export.py|excel_export.py]]
|
||||
- [[_COMMUNITY_price_letter_detail|price_letter_detail]]
|
||||
- [[_COMMUNITY_get_client_ip|get_client_ip]]
|
||||
- [[_COMMUNITY_context.py|context.py]]
|
||||
- [[_COMMUNITY_storage.py|storage.py]]
|
||||
- [[_COMMUNITY_get_current_user_by_token|get_current_user_by_token]]
|
||||
- [[_COMMUNITY_PlFreightSettlementTransport|PlFreightSettlementTransport]]
|
||||
- [[_COMMUNITY_crm_contract_sub_routes.py|crm_contract_sub_routes.py]]
|
||||
- [[_COMMUNITY_unsettled_plans_q_filter|unsettled_plans_q_filter]]
|
||||
- [[_COMMUNITY_register_local_callback|register_local_callback]]
|
||||
- [[_COMMUNITY___init__.py|__init__.py]]
|
||||
- [[_COMMUNITY_crm_quote_pdf.py|crm_quote_pdf.py]]
|
||||
- [[_COMMUNITY_shanxia2.0 后端骨架(FastAPI)|shanxia2.0 后端骨架(FastAPI)]]
|
||||
- [[_COMMUNITY_api_crypto_middleware.py|api_crypto_middleware.py]]
|
||||
@@ -187,7 +185,7 @@
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `BaseModel` - 452 edges
|
||||
2. `get_tenant_no()` - 350 edges
|
||||
3. `success_response()` - 267 edges
|
||||
3. `success_response()` - 268 edges
|
||||
4. `DbUserContext` - 254 edges
|
||||
5. `error_response()` - 247 edges
|
||||
6. `generate_uuid()` - 194 edges
|
||||
@@ -197,8 +195,6 @@
|
||||
10. `ApiResponse` - 79 edges
|
||||
|
||||
## Surprising Connections (you probably didn't know these)
|
||||
- `BackfillRule` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_crm_sys_oss.py → app/core/config.py
|
||||
- `MigrationStats` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_bx_data.py → app/core/config.py
|
||||
- `StepStats` --uses--> `Settings` [INFERRED]
|
||||
@@ -207,83 +203,85 @@
|
||||
scripts/migrate_crm_clue.py → app/core/config.py
|
||||
- `StepStats` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_crm_clue.py → app/core/config.py
|
||||
- `MigrationStats` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_crm_contract.py → app/core/config.py
|
||||
|
||||
## Import Cycles
|
||||
- None detected.
|
||||
|
||||
## Communities (545 total, 18 thin omitted)
|
||||
## Communities (543 total, 19 thin omitted)
|
||||
|
||||
### Community 0 - "Community 0"
|
||||
Cohesion: 0.16
|
||||
Nodes (32): check_document_expiry(), document_reminder_stats(), get_inventory_ledger(), get_summary(), list_document_reminders(), list_transactions(), list_warnings(), date (+24 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (44): check_document_expiry(), document_reminder_stats(), get_inventory_ledger(), get_summary(), list_document_reminders(), list_transactions(), list_warnings(), date (+36 more)
|
||||
|
||||
### Community 1 - "Community 1"
|
||||
Cohesion: 0.08
|
||||
Nodes (38): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, 接口菜单权限守卫。super_admin 直接放行。, require_menu_code(), ContractApproverSettingSaveBody, ContractApprovalActionBody, ContractApprovalPassBody, ContractApprovalRejectBody, ContractApprovalTransferBody (+30 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (40): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, 运营端角色守卫:admin / super_admin 可访问。, 接口菜单权限守卫。super_admin 直接放行。, require_admin_or_super_admin(), require_menu_code(), ContractApproverSettingSaveBody, ContractApprovalActionBody, ContractApprovalPassBody (+32 more)
|
||||
|
||||
### Community 2 - "Community 2"
|
||||
Cohesion: 0.21
|
||||
Cohesion: 0.20
|
||||
Nodes (27): _apply_inventory_product_update(), _apply_inventory_update(), _base_query(), create_inventory(), create_link_for_plan(), delete_inventory(), _generate_batch_no(), _get_inventory() (+19 more)
|
||||
|
||||
### Community 3 - "Community 3"
|
||||
Cohesion: 0.09
|
||||
Nodes (96): attachment_download_url(), attachment_preview_url(), AttachmentDownloadUrlBody, create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_menu_favorite() (+88 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (65): attachment_download_url(), attachment_preview_url(), create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_menu_favorite(), create_post() (+57 more)
|
||||
|
||||
### Community 4 - "Community 4"
|
||||
Cohesion: 0.09
|
||||
Nodes (76): _apply_list_filters(), assign_opportunities(), batch_update_expect_date(), batch_update_stage(), change_stage(), create_opportunity(), _decimal_value(), _enrich_user_names() (+68 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (43): _apply_list_filters(), assign_opportunities(), batch_update_expect_date(), batch_update_stage(), change_stage(), create_opportunity(), _decimal_value(), _enrich_user_names() (+35 more)
|
||||
|
||||
### Community 5 - "Community 5"
|
||||
Cohesion: 0.08
|
||||
Nodes (78): archive_plan(), create_plan_full(), get_plan(), 创建运输计划(完整表单:供方/需方 + 产品库产品 + 可选预选车辆,不自动安排运输), update_plan(), update_plan_driver_feedback(), update_plan_site_feedback(), PlPlan (+70 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (56): _generate_notify_message(), PlPlan, PlPlanProduct, PlVehicle, 计划产品明细表 pl_plan_product, PlanArchiveFreightBlock, PlanArchiveProductItem, PlanProductCreate (+48 more)
|
||||
|
||||
### Community 6 - "Community 6"
|
||||
Cohesion: 0.18
|
||||
Nodes (32): assign_customer(), batch_claim_customers(), check_duplicate_customer(), claim_customer(), create_customer(), deal_customer(), _enrich_user_names(), _ensure_customer_in_scope() (+24 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (30): assign_customer(), batch_claim_customers(), check_duplicate_customer(), claim_customer(), create_customer(), deal_customer(), _enrich_user_names(), _ensure_customer_in_scope() (+22 more)
|
||||
|
||||
### Community 7 - "Community 7"
|
||||
Cohesion: 0.04
|
||||
Nodes (217): clue_assign(), clue_check_convert(), clue_check_duplicate(), clue_convert(), clue_create(), clue_delete(), clue_detail(), clue_export() (+209 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (96): clue_check_convert(), clue_check_duplicate(), clue_detail(), clue_export(), clue_follow_statistics(), clue_import(), clue_list(), clue_mine() (+88 more)
|
||||
|
||||
### Community 8 - "Community 8"
|
||||
Cohesion: 0.10
|
||||
Nodes (67): register_quote_routes(), accept_quote(), assert_quote_editable_for_update(), _build_quote_filters(), calculate_quote_amount(), create_new_version(), create_quote(), _decimal_value() (+59 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (50): register_quote_routes(), accept_quote(), assert_quote_editable_for_update(), calculate_quote_amount(), create_new_version(), create_quote(), _decimal_value(), _enrich_contact_fields() (+42 more)
|
||||
|
||||
### Community 11 - "Community 11"
|
||||
Cohesion: 0.10
|
||||
Nodes (55): cancel_apply(), create_apply(), create_disburse(), delete_applies(), delete_disburses(), get_apply(), get_disburse(), list_applies() (+47 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (33): PlVehicleUreaApply, PlVehicleUreaDisburse, 车辆尿素申请 pl_vehicle_urea_apply, 车辆尿素发放登记 pl_vehicle_urea_disburse, VehicleUreaApplyRead, VehicleUreaDisburseBoardItem, apply_to_read(), _assert_vehicle_exists() (+25 more)
|
||||
|
||||
### Community 12 - "Community 12"
|
||||
Cohesion: 0.05
|
||||
Nodes (71): contact_add(), contact_delete(), contact_update(), BaseModel, AttachmentUploadResponse, ChangePasswordRequest, Config, LoginRequest (+63 more)
|
||||
Nodes (68): contact_add(), contact_delete(), contact_update(), customer_delete(), BaseModel, AttachmentUploadResponse, ChangePasswordRequest, Config (+60 more)
|
||||
|
||||
### Community 13 - "Community 13"
|
||||
Cohesion: 0.14
|
||||
Nodes (15): BxAdvanceApply, BxAdvanceApproval, AdvanceService, Any, Session, 同一节点多次审批时,取 approval_time 最新的一条作为当前节点状态。, 返回全部审批动作,按时间正序排列,用于展示完整审批历史。, current_month_bounds() (+7 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (58): advance_issue_stats(), batch_offset(), export_advance_issues(), issue_advance(), list_advance_issues(), list_advance_offset_records(), list_pending_payments(), list_processed_payments() (+50 more)
|
||||
|
||||
### Community 14 - "Community 14"
|
||||
Cohesion: 0.11
|
||||
Nodes (29): create_carrier(), get_carrier(), update_carrier(), PlCarrier, carrier_to_read(), CarrierBase, CarrierCreate, CarrierQualificationBase (+21 more)
|
||||
Cohesion: 0.30
|
||||
Nodes (12): PlCarrier, assert_carrier_eligible_for_transport(), carrier_agreement_expired(), carrier_audit_approved(), carrier_eligible_for_transport(), carrier_qualification_complete(), date, 资质附件均为选填,保留函数签名供兼容调用。 (+4 more)
|
||||
|
||||
### Community 15 - "Community 15"
|
||||
Cohesion: 0.10
|
||||
Nodes (40): approve_reimburse(), approved_by_me(), _build_details_data(), create_reimburse(), delete_reimburse(), get_approval_history(), get_approvals(), get_generated_title() (+32 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (14): BxReimburseApply, BxReimburseApproval, BxReimburseDetail, BxReimburseOffset, 报销单勾选的发票附件(同一发票可勾选多个附件,各占一条)。, ReimburseInvoiceBriefOut, ReimburseInvoiceLinkIn, Any (+6 more)
|
||||
|
||||
### Community 16 - "Community 16"
|
||||
Cohesion: 0.09
|
||||
Nodes (60): cancel_apply(), create_apply(), create_record(), delete_applies(), delete_records(), get_apply(), get_record(), list_applies() (+52 more)
|
||||
Cohesion: 0.14
|
||||
Nodes (41): PlVehicleRechargeApply, PlVehicleRechargeRecord, 车辆ETC/加油充值申请 pl_vehicle_recharge_apply, 车辆ETC/加油充值发放登记 pl_vehicle_recharge_record, Decimal, 发放登记页:申请单 + 关联发放信息(左连接), VehicleRechargeApplyCreate, VehicleRechargeApplyRead (+33 more)
|
||||
|
||||
### Community 18 - "Community 18"
|
||||
Cohesion: 0.11
|
||||
Nodes (41): advance_pending_approval_stats(), advance_status_counts(), approve_advance(), approved_by_me(), create_advance(), delete_advance(), _fill_offset_amounts(), get_advance() (+33 more)
|
||||
Nodes (39): advance_pending_approval_stats(), advance_status_counts(), approve_advance(), approved_by_me(), create_advance(), delete_advance(), _fill_offset_amounts(), get_advance() (+31 more)
|
||||
|
||||
### Community 19 - "Community 19"
|
||||
Cohesion: 0.11
|
||||
Nodes (38): register_contract_routes(), batch_assign_owner(), batch_submit_contract_approval(), create_from_opportunity(), create_from_quote(), download_contract_pdf(), finish_contract(), generate_template_no() (+30 more)
|
||||
Cohesion: 0.34
|
||||
Nodes (30): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, MenuCreateBody (+22 more)
|
||||
|
||||
### Community 21 - "Community 21"
|
||||
Cohesion: 0.15
|
||||
Nodes (34): _assert_brand_deletable(), barcode_exists(), category_code_exists(), create_category(), create_oss(), create_product(), generate_auto_product_no(), generate_barcode() (+26 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (58): _alias_row_to_dict(), _assert_brand_deletable(), barcode_exists(), _brand_row_to_dict(), _build_category_tree(), category_code_exists(), _category_row_to_dict(), _collect_category_with_ancestors() (+50 more)
|
||||
|
||||
### Community 22 - "Community 22"
|
||||
Cohesion: 0.08
|
||||
@@ -294,40 +292,40 @@ Cohesion: 0.15
|
||||
Nodes (6): convert_heic_to_jpeg(), process_image_content(), QiniuStorage, 将 HEIC/HEIF 格式转换为 JPEG 格式, 处理图片内容,如果是 HEIC 格式则转换为 JPEG, BytesIO
|
||||
|
||||
### Community 24 - "Community 24"
|
||||
Cohesion: 0.19
|
||||
Nodes (28): _apply_plan_product_update(), _apply_plan_update(), AutoGenerateMonthlyResult, _base_query(), create_plan(), _generate_plan_no(), get_plan(), _get_plan_by_id_only() (+20 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (44): _apply_plan_product_update(), _apply_plan_update(), AutoGenerateMonthlyResult, _base_query(), create_plan(), delete_plan(), _generate_plan_no(), get_plan() (+36 more)
|
||||
|
||||
### Community 25 - "Community 25"
|
||||
Cohesion: 0.09
|
||||
Nodes (39): PlTransportProductBrandQty, PlTransportProductFeedback, 运输单按产品回传 pl_transport_product_feedback, 运输单产品回传品牌数量 pl_transport_product_brand_qty, load_brand_qtys_by_plan_product_ids(), persist_plan_product_brand_qtys(), Any, Decimal (+31 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (28): generate_uuid(), PlInventoryTransaction, 库存流水表 pl_inventory_transaction, load_brand_qtys_by_plan_product_ids(), persist_plan_product_brand_qtys(), Any, Decimal, Session (+20 more)
|
||||
|
||||
### Community 26 - "Community 26"
|
||||
Cohesion: 0.21
|
||||
Nodes (29): DutyAssignment, DutyDay, DutySlot, 值班排班模型 — docs/superpowers/specs/2026-08-14-duty-schedule-design.md, _assignment_dict(), build_public_url(), _count_active_assignments(), _day_dict() (+21 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (70): day_detail(), delete_assignment(), duty_user_options(), _enrich_assign_names(), month_summary(), Session, 指定用户时补全 personName(用 nick_name)。, 值班可安排人员:仅「值班人员」角色下的启用用户。 (+62 more)
|
||||
|
||||
### Community 27 - "Community 27"
|
||||
Cohesion: 0.11
|
||||
Nodes (32): CRM 报价单 API 路由 — 挂接到 crm.router, QuoteApproverSettingSaveBody, QuoteAcceptBody, QuoteApprovalApproveBody, QuoteApprovalListBody, QuoteApprovalRefreshNamesBody, QuoteApprovalWithdrawBody, QuoteCreateBody (+24 more)
|
||||
|
||||
### Community 28 - "Community 28"
|
||||
Cohesion: 0.08
|
||||
Nodes (71): PlFreightSettlement, PlFreightSettlementApproval, PlFreightSettlementTransport, PlRemittanceVoucher, 运费结算表 pl_freight_settlement, 运费结算审批 pl_freight_settlement_approval, 结算单-运输关联表 pl_freight_settlement_transport, 汇款凭证表 pl_remittance_voucher (+63 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (94): approve_settlement_legacy(), cancel_settlement(), create_settlement(), delete_settlement(), disburse_settlement(), _generate_settlement_no(), get_settlement(), get_settlement_approval_flow() (+86 more)
|
||||
|
||||
### Community 29 - "Community 29"
|
||||
Cohesion: 0.12
|
||||
Nodes (54): _apply_contract_entity_fields(), _build_contract_filters(), _build_contract_name_from_parties(), _build_customer_address(), _calc_amount_with_tax(), contract_no_exists(), _contract_period_key(), contract_row_to_dict() (+46 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (90): register_contract_routes(), _apply_contract_entity_fields(), assert_contract_editable_for_update(), batch_assign_owner(), batch_submit_contract_approval(), _build_contract_filters(), _build_contract_name_from_parties(), _build_customer_address() (+82 more)
|
||||
|
||||
### Community 30 - "Community 30"
|
||||
Cohesion: 0.16
|
||||
Nodes (26): clear_target_categories(), compute_level(), count_target_rows(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_runtime_settings() (+18 more)
|
||||
|
||||
### Community 33 - "Community 33"
|
||||
Cohesion: 0.17
|
||||
Nodes (28): CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), _change_row_to_dict(), create_contract_change(), execute_change(), export_contract_changes(), _get_change_row(), get_contract_change_detail() (+20 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (35): CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), _change_row_to_dict(), create_contract_change(), create_contract_template(), _enrich_change_rows(), execute_change(), export_contract_changes() (+27 more)
|
||||
|
||||
### Community 34 - "Community 34"
|
||||
Cohesion: 0.13
|
||||
Nodes (26): _business_type_label(), _enrich_task_list(), _leave_form_fields(), list_completed_tasks(), list_my_instances(), list_pending_tasks(), _portal_user_info(), ProcessDefCreateBody (+18 more)
|
||||
Cohesion: 0.26
|
||||
Nodes (6): start_instance(), StartInstanceBody, WfNode, Any, Session, WorkflowEngine
|
||||
|
||||
### Community 35 - "Community 35"
|
||||
Cohesion: 0.18
|
||||
@@ -335,7 +333,7 @@ Nodes (36): clear_portal_workflow(), _dec(), derive_source_url(), fetch_portal_a
|
||||
|
||||
### Community 36 - "Community 36"
|
||||
Cohesion: 0.15
|
||||
Nodes (27): change_password(), create_user(), get_user(), get_user_with_relations(), _hash_password(), list_post_ids_for_user(), list_user_ids_bound_to_post(), list_users() (+19 more)
|
||||
Nodes (27): 验证密码(哈希非 bcrypt 或损坏时返回 False,避免抛错), verify_password(), change_password(), create_user(), get_user(), get_user_with_relations(), _hash_password(), list_post_ids_for_user() (+19 more)
|
||||
|
||||
### Community 37 - "Community 37"
|
||||
Cohesion: 0.20
|
||||
@@ -347,55 +345,55 @@ Nodes (14): create_expense_item(), delete_expense_item(), get_expense_item(), ge
|
||||
|
||||
### Community 39 - "Community 39"
|
||||
Cohesion: 0.13
|
||||
Nodes (43): assign_clues(), check_convert(), check_duplicate_clue(), convert_clue(), create_clue(), _enrich_user_names(), _ensure_clue_in_scope(), create_clue_follow() (+35 more)
|
||||
Nodes (42): clue_follow_detail(), assign_clues(), check_convert(), check_duplicate_clue(), convert_clue(), create_clue(), _enrich_user_names(), _ensure_clue_in_scope() (+34 more)
|
||||
|
||||
### Community 42 - "Community 42"
|
||||
Cohesion: 0.05
|
||||
Nodes (102): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_oss_id_to_url(), load_runtime_settings(), load_settings_env() (+94 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (32): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_oss_id_to_url(), load_runtime_settings(), load_settings_env() (+24 more)
|
||||
|
||||
### Community 43 - "Community 43"
|
||||
Cohesion: 0.12
|
||||
Nodes (25): create_invoice(), delete_invoice(), get_mine_wallet_summary(), list_invoice_ledgers(), list_invoice_wallets(), list_invoices(), Request, Session (+17 more)
|
||||
Nodes (23): bx_health(), 报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, create_invoice(), delete_invoice(), get_mine_wallet_summary(), list_invoice_ledgers(), list_invoice_wallets() (+15 more)
|
||||
|
||||
### Community 44 - "Community 44"
|
||||
Cohesion: 0.21
|
||||
Nodes (15): day_detail(), delete_assignment(), _enrich_assign_names(), month_summary(), Session, 指定用户时补全 personName(用 nick_name)。, save_day(), set_link() (+7 more)
|
||||
Cohesion: 0.18
|
||||
Nodes (30): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), legacy_parent_id(), load_oss_id_to_url(), load_runtime_settings() (+22 more)
|
||||
|
||||
### Community 45 - "Community 45"
|
||||
Cohesion: 0.07
|
||||
Nodes (87): _build_public_page(), _format_file_size(), _format_plan_date(), get_public_transport(), _get_transport_by_token(), _parse_feedback_images(), Session, UploadFile (+79 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (74): _build_driver_url(), get_plan_arrange_info(), 获取计划已安排运输后的司机链接与地磅出入库关联(供查看弹窗复制简述/二维码)。, _apply_plan_logistics_from_payload(), _apply_transport_arrange_fields(), arrange_transport(), _assert_vehicle_carrier_eligible(), _build_arrange_result() (+66 more)
|
||||
|
||||
### Community 46 - "Community 46"
|
||||
Cohesion: 0.19
|
||||
Nodes (15): 返回 (作废, 归档)。现场链接实际走入库/出库单公共页。, _resolve_io_order_link_flags(), _resolve_site_link_flags(), _resolve_driver_link_flags(), 运输计划司机/现场公共链接:归档后应标记并拦截写操作。, test_driver_link_flags_archived_when_plan_archived(), test_driver_link_flags_voided_by_transport_cancelled(), test_driver_link_flags_voided_takes_precedence_shape() (+7 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (32): Settings, BaseSettings, apply_biz_backfill(), BackfillRule, BizRef, build_biz_index(), count_target_rows(), derive_source_url() (+24 more)
|
||||
|
||||
### Community 48 - "Community 48"
|
||||
Cohesion: 0.14
|
||||
Nodes (20): get_last_month_range(), month_range(), date, Session, 地磅计划按月自动生成 — 迁移自 simple-dibang-xiaoshou/auto-create-plan/auto_create_monthly_pla, 按月自动生成采购计划。 - 默认仅在每月 1 日执行(force=True 时跳过该限制,供手动触发验收) - 遍历所有租户,按上月计划模板生, run_auto_generate_monthly_plans(), default_execution_status() (+12 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (22): cancel_apply(), create_apply(), create_disburse(), delete_applies(), delete_disburses(), get_apply(), get_disburse(), list_applies() (+14 more)
|
||||
|
||||
### Community 49 - "Community 49"
|
||||
Cohesion: 0.58
|
||||
Nodes (9): _apply_create_range(), _base_query(), get_clue_level_statistics(), get_clue_overview_statistics(), get_clue_owner_statistics(), get_clue_source_statistics(), get_clue_trend_statistics(), Any (+1 more)
|
||||
Cohesion: 0.49
|
||||
Nodes (10): clue_statistics_level(), _apply_create_range(), _base_query(), get_clue_level_statistics(), get_clue_overview_statistics(), get_clue_owner_statistics(), get_clue_source_statistics(), get_clue_trend_statistics() (+2 more)
|
||||
|
||||
### Community 50 - "Community 50"
|
||||
Cohesion: 0.11
|
||||
Nodes (17): category_add(), category_delete(), category_tree(), category_update(), product_delete(), product_update(), 删除产品(支持单条 body.id 和批量 body.ids), CategoryDeleteBody (+9 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (23): category_delete(), category_tree(), category_update(), product_add(), product_delete(), product_detail(), product_options(), product_update() (+15 more)
|
||||
|
||||
### Community 51 - "Community 51"
|
||||
Cohesion: 0.35
|
||||
Nodes (15): _cargo_stats(), get_dashboard_stats(), get_inbound_by_cargo(), get_inbound_by_partner_cargo(), get_outbound_by_cargo(), get_outbound_by_partner_cargo(), _partner_cargo_stats(), Session (+7 more)
|
||||
Cohesion: 0.25
|
||||
Nodes (17): _cargo_stats(), get_dashboard_stats(), get_inbound_by_cargo(), get_inbound_by_partner_cargo(), get_outbound_by_cargo(), get_outbound_by_partner_cargo(), _partner_cargo_stats(), Session (+9 more)
|
||||
|
||||
### Community 52 - "Community 52"
|
||||
Cohesion: 0.18
|
||||
Nodes (29): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_oss_id_to_url(), load_runtime_settings(), load_settings_env() (+21 more)
|
||||
|
||||
### Community 53 - "Community 53"
|
||||
Cohesion: 0.20
|
||||
Nodes (14): format_datetime(), get_current_time(), parse_datetime(), datetime, _create_by_name(), datetime_end_of_day(), fmt_date(), fmt_datetime() (+6 more)
|
||||
Cohesion: 0.14
|
||||
Nodes (24): PlTransportProductBrandQty, PlTransportProductFeedback, 运输单按产品回传 pl_transport_product_feedback, 运输单产品回传品牌数量 pl_transport_product_brand_qty, _dict_field(), format_brand_qty_summary(), load_transport_driver_product_feedbacks(), persist_io_item_brand_qtys() (+16 more)
|
||||
|
||||
### Community 54 - "Community 54"
|
||||
Cohesion: 0.26
|
||||
Nodes (23): _get_by_plan(), get_inbound(), get_inbound_by_plan(), _get_order(), get_outbound(), get_outbound_by_plan(), inbound_site_url(), list_inbound() (+15 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (28): _get_by_plan(), get_inbound(), get_inbound_by_plan(), _get_order(), get_outbound(), get_outbound_by_plan(), inbound_site_url(), list_inbound() (+20 more)
|
||||
|
||||
### Community 58 - "Community 58"
|
||||
Cohesion: 0.28
|
||||
@@ -411,23 +409,23 @@ Nodes (16): 供方全量列表(下拉)— Java: CrmSupplierInfoController.li
|
||||
|
||||
### Community 61 - "Community 61"
|
||||
Cohesion: 0.11
|
||||
Nodes (45): PlPlanProduct, PlTransportDbLink, 计划产品明细表 pl_plan_product, 运输-地磅出入库关联 pl_transport_db_link, _apply_plan_quantity_delta(), _create_db_inventory(), _create_db_plan(), DibangInventoryLinkResult (+37 more)
|
||||
Nodes (42): PlTransportDbLink, 运输-地磅出入库关联 pl_transport_db_link, _apply_plan_quantity_delta(), _create_db_inventory(), _create_db_plan(), DibangInventoryLinkResult, find_monthly_db_plan(), _generate_batch_no() (+34 more)
|
||||
|
||||
### Community 62 - "Community 62"
|
||||
Cohesion: 0.17
|
||||
Nodes (29): _apply_weighing_product_update(), _apply_weighing_update(), _base_query(), create_weighing(), delete_weighing(), _get_weighing(), get_weighing_related(), list_weighing() (+21 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (27): _apply_weighing_product_update(), _apply_weighing_update(), _base_query(), create_weighing(), delete_weighing(), _get_weighing(), get_weighing_related(), list_weighing() (+19 more)
|
||||
|
||||
### Community 63 - "Community 63"
|
||||
Cohesion: 0.10
|
||||
Nodes (32): advance_issue_stats(), batch_offset(), export_advance_issues(), issue_advance(), list_advance_issues(), list_advance_offset_records(), list_pending_payments(), list_processed_payments() (+24 more)
|
||||
Cohesion: 0.24
|
||||
Nodes (13): BxInvoiceLedger, BxInvoiceWalletSummary, InvoiceLedgerService, Any, Decimal, Session, should_skip_release(), summarize_entries() (+5 more)
|
||||
|
||||
### Community 64 - "Community 64"
|
||||
Cohesion: 0.29
|
||||
Nodes (16): paste_recognize_commit(), PlVehicle, ConflictAction, PasteCommitBody, PasteCommitResult, PastePersonnelIn, PasteVehicleIn, 运输计划 - 三方粘贴识别提交 Schema (+8 more)
|
||||
Cohesion: 0.30
|
||||
Nodes (15): paste_recognize_commit(), ConflictAction, PasteCommitBody, PasteCommitResult, PastePersonnelIn, PasteVehicleIn, 运输计划 - 三方粘贴识别提交 Schema, commit_paste_recognize() (+7 more)
|
||||
|
||||
### Community 65 - "Community 65"
|
||||
Cohesion: 0.11
|
||||
Nodes (60): cancel_apply(), create_apply(), create_process(), delete_applies(), delete_processes(), get_apply(), get_process(), list_applies() (+52 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (58): cancel_apply(), create_apply(), create_process(), delete_applies(), delete_processes(), get_apply(), get_process(), list_applies() (+50 more)
|
||||
|
||||
### Community 66 - "Community 66"
|
||||
Cohesion: 0.14
|
||||
@@ -442,36 +440,36 @@ Cohesion: 0.33
|
||||
Nodes (13): _build_tree(), _cascade_soft_delete(), _collect_with_ancestors(), create_dept(), get_dept(), list_depts(), list_depts_tree(), Any (+5 more)
|
||||
|
||||
### Community 69 - "Community 69"
|
||||
Cohesion: 0.12
|
||||
Nodes (31): _append_user_scope_conditions(), apply_data_scope(), assert_row_in_data_scope(), _collect_scope_ids(), _get_child_dept_ids(), get_user_dept_id(), Session, 数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3 (+23 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (25): _append_user_scope_conditions(), apply_data_scope(), assert_row_in_data_scope(), _collect_scope_ids(), _get_child_dept_ids(), get_user_dept_id(), Session, 数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3 (+17 more)
|
||||
|
||||
### Community 70 - "Community 70"
|
||||
Cohesion: 0.18
|
||||
Nodes (18): align_contract_no_to_sign_date(), generate_contract_no(), date, Java: generateContractNo — {供方编码}/X-JT{yyyyMMdd}{3位序号} 流水与撞号检测须含软删:uk_contr, 标准编号替换日期段,保留序号;非标准返回 None。, 将标准合同编号日期段对齐签订日;撞号则序号顺延(含软删查重)。 非标准编号原样返回。无签订日则原样返回。, replace_contract_no_date(), _mock_last_contract() (+10 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (16): align_contract_no_to_sign_date(), date, 标准编号替换日期段,保留序号;非标准返回 None。, 将标准合同编号日期段对齐签订日;撞号则序号顺延(含软删查重)。 非标准编号原样返回。无签订日则原样返回。, replace_contract_no_date(), _mock_last_contract(), 软删占用的编号仍占唯一索引,生成时须跳过(对齐 uk_contract_tenant_no)。, 取最大流水号须含软删,避免复用已软删的最大编号。 (+8 more)
|
||||
|
||||
### Community 71 - "Community 71"
|
||||
Cohesion: 0.14
|
||||
Nodes (25): list_vehicles(), PlCert, CertRead, VehicleListResponse, SnapshotCertRead, SnapshotPersonnelRow, certs_to_read(), list_owner_certs() (+17 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (26): PlCert, CertRead, parse_resource_snapshot(), Any, 运输计划 - 安排运输时车辆/人员/证件资源快照 Schema, 从 ORM 文本列或 dict 解析快照。, SnapshotCertRead, SnapshotPersonnelRow (+18 more)
|
||||
|
||||
### Community 72 - "Community 72"
|
||||
Cohesion: 0.30
|
||||
Nodes (12): business_type_from_path(), title_from_path(), _apply_oper_log_scope(), get_oper_log(), list_oper_logs(), _oper_log_row_in_scope(), _oper_status(), Any (+4 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (23): bind_vehicle_driver(), create_driver(), create_personnel(), delete_carrier(), delete_driver(), delete_personnel(), delete_vehicle(), get_driver() (+15 more)
|
||||
|
||||
### Community 73 - "Community 73"
|
||||
Cohesion: 0.20
|
||||
Nodes (25): derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_oss_id_to_url(), load_runtime_settings(), load_settings_env(), load_user_mapping() (+17 more)
|
||||
|
||||
### Community 74 - "Community 74"
|
||||
Cohesion: 0.11
|
||||
Nodes (18): ApiCryptoMiddleware, ApiRequestLogMiddleware, _db_pool_keepalive_loop(), _error_json(), lifespan(), Exception, Request, 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误 (+10 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (36): list_public_vehicle_plates(), Session, 地磅公共只读:免登车牌 options(现场填写页), 免登:按出入库/计划解析 tenant_no,返回 pl_vehicle 车牌(self + carrier)。, _resolve_tenant_no(), menu_badge_stats(), Session, Session (+28 more)
|
||||
|
||||
### Community 77 - "Community 77"
|
||||
Cohesion: 0.11
|
||||
Nodes (12): get_wechat_pay_client(), get_wechat_pay_v2(), Any, 微信支付工具模块 支持微信支付 V3 API 文档参考: https://pay.weixin.qq.com/docs/v3/apis/index.html, 统一下单接口 (V3) Args: out_trade_no: 商户订单号 total_amo, 申请退款 Args: out_trade_no: 商户订单号 total_amount: 订单, 小程序调起支付的二次签名参数(与公众号 JSAPI 规则一致), 统一下单 (V2 API) Args: out_trade_no: 商户订单号 total_f (+4 more)
|
||||
|
||||
### Community 78 - "Community 78"
|
||||
Cohesion: 0.19
|
||||
Nodes (23): delete_plan(), delete_carrier(), unbind_vehicle_driver(), delete_plan(), _actor_ids(), _actor_names(), assert_row_deletable_by_creator(), assert_rows_deletable_by_creator() (+15 more)
|
||||
Cohesion: 0.24
|
||||
Nodes (18): _actor_ids(), _actor_names(), assert_row_deletable_by_creator(), assert_rows_deletable_by_creator(), can_delete_by_creator(), is_super_admin(), normalize_user_info(), Any (+10 more)
|
||||
|
||||
### Community 81 - "Community 81"
|
||||
Cohesion: 0.29
|
||||
@@ -486,36 +484,36 @@ Cohesion: 0.23
|
||||
Nodes (23): build_id_maps(), clip_text(), count_rows(), export_mapping(), fetch_rows(), legacy_id_to_str(), main(), map_id() (+15 more)
|
||||
|
||||
### Community 86 - "Community 86"
|
||||
Cohesion: 0.33
|
||||
Nodes (11): create_leave(), get_leave(), list_leaves(), Any, Session, _row_to_dict(), soft_delete_leave(), update_leave() (+3 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (15): create_leave(), get_leave(), list_leaves(), Any, Session, _row_to_dict(), soft_delete_leave(), update_leave() (+7 more)
|
||||
|
||||
### Community 87 - "Community 87"
|
||||
Cohesion: 0.11
|
||||
Nodes (32): approve_quote(), can_user_approve(), create_approval_records(), delete_pending_approvals(), get_quote_approval(), invalidate_all_approvals(), list_quote_approvals(), Any (+24 more)
|
||||
|
||||
### Community 88 - "Any"
|
||||
Cohesion: 0.33
|
||||
Nodes (9): grab(), normalize_person_name(), test_grab_rejects_duplicate_same_shift(), test_grab_rejects_invalid_user(), test_grab_rejects_when_closed(), test_grab_rejects_when_full(), test_normalize_person_name_empty(), test_normalize_person_name_ok() (+1 more)
|
||||
Cohesion: 0.34
|
||||
Nodes (18): batch_add_opportunity_products(), _calc_subtotal(), create_opportunity_product(), _decimal_value(), _fill_product_redundant(), _get_opportunity_for_product(), get_opportunity_product(), list_opportunity_products() (+10 more)
|
||||
|
||||
### Community 89 - "pl_ocr_service.py"
|
||||
Cohesion: 0.19
|
||||
Nodes (22): PlOcrUsageMonth, 阿里云 OCR 月度调用计数 pl_ocr_usage_month(按自然月全局统计), assert_quota_available(), _build_ocr_client(), compress_image_bytes(), current_usage_month(), _first_attachment_url(), get_or_create_usage_row() (+14 more)
|
||||
|
||||
### Community 91 - "pl_vehicle_recharge_service.py"
|
||||
Cohesion: 0.29
|
||||
Nodes (16): create_contact(), get_contact(), list_contacts_by_customer(), _parse_optional_date(), Any, date, Session, _row_to_dict() (+8 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (17): apply_crm_create_by_scope(), _apply_list_filters(), create_supplier_info(), list_all_supplier_info(), list_supplier_info(), Any, Session, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java (+9 more)
|
||||
|
||||
### Community 92 - "Community 92"
|
||||
Cohesion: 0.18
|
||||
Nodes (22): _assert_users_exist(), get_setting(), Any, Session, _row_to_dict(), save_setting(), _assert_users_exist(), get_setting() (+14 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (21): _assert_users_exist(), get_setting(), Any, Session, _row_to_dict(), save_setting(), _assert_users_exist(), get_setting() (+13 more)
|
||||
|
||||
### Community 93 - "_invoice_info_by_customer_impl"
|
||||
Cohesion: 0.33
|
||||
Nodes (8): allocate_next_biz_no(), _format_biz_no(), _prefix_for(), datetime, Session, 业务协议号自动生成:XBCC / JZCC + YYYYMMDD + 6 位序号, 原子分配下一个业务协议号。 须在 create 事务内调用;使用 MySQL LAST_INSERT_ID 保证并发安全。, BizNoKind
|
||||
Cohesion: 0.19
|
||||
Nodes (11): get_current_time(), parse_datetime(), datetime, allocate_next_biz_no(), _format_biz_no(), _prefix_for(), datetime, Session (+3 more)
|
||||
|
||||
### Community 94 - "response.py"
|
||||
Cohesion: 0.21
|
||||
Nodes (16): get_web_auth_menu_codes(), 获取当前用户菜单权限标识(sys_menu.perms,经角色继承)。, _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), _map_role_name_to_web(), Session, Web 管理端登录:基于 V0.3 sys_user / sys_user_role / sys_role 的角色与菜单权限解析 (+8 more)
|
||||
Cohesion: 0.18
|
||||
Nodes (17): get_user_menu_codes(), Session, 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。, _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), _map_role_name_to_web(), Session (+9 more)
|
||||
|
||||
### Community 95 - "Community 95"
|
||||
Cohesion: 0.35
|
||||
@@ -526,12 +524,12 @@ Cohesion: 0.21
|
||||
Nodes (22): clear_target_products(), count_target_rows(), _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_runtime_settings() (+14 more)
|
||||
|
||||
### Community 100 - "price_letter_detail"
|
||||
Cohesion: 0.27
|
||||
Nodes (15): Settings, BaseSettings, apply_renumber(), build_mapping(), fetch_products(), format_new_product_no(), load_settings_env(), main() (+7 more)
|
||||
Cohesion: 0.31
|
||||
Nodes (13): apply_renumber(), build_mapping(), fetch_products(), format_new_product_no(), load_settings_env(), main(), product_id_sort_key(), Engine (+5 more)
|
||||
|
||||
### Community 101 - ".to_tenant_user_dict"
|
||||
Cohesion: 0.18
|
||||
Nodes (17): get_oper_log_meta(), OperLogMeta, 请求级操作日志元数据(ContextVar), 供异步落库线程使用,避免 ContextVar 跨线程丢失。, set_oper_log_meta(), snapshot_oper_log_meta(), _format_summary(), oper_log() (+9 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (18): _build_quote_filters(), _fill_contract_linked_count(), list_quotes(), _parse_optional_datetime(), _period_key(), Any, datetime, Query (+10 more)
|
||||
|
||||
### Community 102 - "dept.py"
|
||||
Cohesion: 0.25
|
||||
@@ -546,16 +544,16 @@ Cohesion: 0.15
|
||||
Nodes (9): 微信消息通知服务 支持微信小程序模板消息推送 使用方式: from app.core.wechat_message import WechatMes, 发送订单状态通知 Args: openid: 用户openid order_n, 发送支付成功通知 Args: openid: 用户openid order_n, 发送配送通知 Args: openid: 配送员openid task_no:, 发送配送时效预警 Args: openid: 配送员openid task_n, 发送退款结果通知 Args: openid: 用户openid order_n, 发送催单通知给配送员 Args: deliver_openid: 配送员openid, 发送模板消息 Args: openid: 用户openid template_ (+1 more)
|
||||
|
||||
### Community 106 - "Community 106"
|
||||
Cohesion: 0.11
|
||||
Nodes (17): get_current_user(), get_current_user_by_token(), Session, 根据 token 获取当前用户(包含 Redis 会话校验;会话滑动续期), 获取当前用户(sync 依赖,配合 sync 路由在线程池执行,避免阻塞事件循环)。, _auto_fill_create_dept_id(), get_db(), ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID (+9 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (15): pool_rule_add(), pool_rule_delete(), pool_rule_detail(), pool_rule_execute(), pool_rule_list(), pool_rule_update(), pool_rule_update_status(), PoolRuleAddBody (+7 more)
|
||||
|
||||
### Community 107 - "apply_pl_scope"
|
||||
Cohesion: 0.16
|
||||
Nodes (29): create_instance(), create_process_def(), create_task(), get_all_tasks_for_business(), get_instance(), get_latest_version(), get_nodes_by_version(), get_pending_tasks_by_node() (+21 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (32): create_instance(), create_process_def(), create_task(), get_all_tasks_for_business(), get_instance(), get_latest_version(), get_nodes_by_version(), get_pending_tasks_by_node() (+24 more)
|
||||
|
||||
### Community 109 - "Community 109"
|
||||
Cohesion: 0.16
|
||||
Nodes (22): bind_vehicle_driver(), create_vehicle(), get_vehicle(), update_vehicle(), _vehicle_to_detail(), _vehicle_to_read(), generate_uuid(), PlVehiclePersonnel (+14 more)
|
||||
Cohesion: 0.46
|
||||
Nodes (7): VehiclePersonnelRow, load_vehicle_personnel_rows(), Session, 运输计划 - 人员 upsert 与车辆-人员关联保存, 按 personnelId → phone → name 弱匹配 upsert,返回 personnel_id。, save_vehicle_personnel(), upsert_personnel()
|
||||
|
||||
### Community 110 - "Base"
|
||||
Cohesion: 0.22
|
||||
@@ -566,32 +564,32 @@ Cohesion: 0.28
|
||||
Nodes (14): _assert_editable(), _build_public_page(), _format_file_size(), _get_inventory_by_token(), get_public_inventory(), _parse_feedback_images(), Session, UploadFile (+6 more)
|
||||
|
||||
### Community 112 - "SysApiRequestLog"
|
||||
Cohesion: 0.50
|
||||
Nodes (4): ApiRequestLogCRUD, Session, SysApiRequestLog, SysApiRequestLogHis
|
||||
Cohesion: 0.47
|
||||
Nodes (5): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict()
|
||||
|
||||
### Community 113 - "quote_share_log.py"
|
||||
Cohesion: 0.26
|
||||
Nodes (12): list_share_logs(), _parse_user_agent(), Any, Session, CRM 报价单分享访问日志 CRUD — 对照 CrmQuoteShareLogServiceImpl.java, Java: statisticsVisits, 简易 User-Agent 解析(替代 Hutool UserAgentUtil), Java: queryLogsByQuoteId (+4 more)
|
||||
|
||||
### Community 114 - "db_models.py"
|
||||
Cohesion: 0.24
|
||||
Nodes (12): DbSequence, 地磅(db)模块数据模型 — 对齐 docs/sql/db_tables.sql, _allocate_inbound_outbound_id(), _ensure_sequence_row(), max_numeric_inbound_outbound_id(), next_inbound_outbound_id(), Session, 出入库单 id 生成 — 租户内纯数字自增,并发安全。 (+4 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (24): DbSequence, 地磅(db)模块数据模型 — 对齐 docs/sql/db_tables.sql, get_last_month_range(), month_range(), date, Session, 地磅计划按月自动生成 — 迁移自 simple-dibang-xiaoshou/auto-create-plan/auto_create_monthly_pla, 按月自动生成采购计划。 - 默认仅在每月 1 日执行(force=True 时跳过该限制,供手动触发验收) - 遍历所有租户,按上月计划模板生 (+16 more)
|
||||
|
||||
### Community 115 - "site.py"
|
||||
Cohesion: 0.15
|
||||
Nodes (34): approve_carrier(), create_driver(), create_personnel(), delete_driver(), delete_personnel(), delete_vehicle(), get_driver(), get_personnel() (+26 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (45): approve_carrier(), create_carrier(), create_vehicle(), get_carrier(), get_vehicle(), list_carriers(), list_drivers(), list_vehicles() (+37 more)
|
||||
|
||||
### Community 116 - "Community 116"
|
||||
Cohesion: 0.17
|
||||
Nodes (28): batch_insert_quote_products(), calculate_subtotal(), _decimal_value(), delete_products_by_quote_id(), _ensure_quote_parent_scope(), _get_field(), get_quote_product(), insert_quote_product() (+20 more)
|
||||
|
||||
### Community 118 - "Community 118"
|
||||
Cohesion: 0.20
|
||||
Nodes (24): batch_insert_contract_products(), calculate_subtotal(), _decimal_value(), delete_price_tiers_by_contract_id(), delete_products_by_contract_id(), _get_field(), insert_contract_product(), _letter_oss_ids_to_json() (+16 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (29): batch_insert_contract_products(), calculate_subtotal(), _decimal_value(), delete_price_tiers_by_contract_id(), delete_products_by_contract_id(), _get_field(), insert_contract_product(), _letter_oss_ids_to_json() (+21 more)
|
||||
|
||||
### Community 119 - "Community 119"
|
||||
Cohesion: 0.16
|
||||
Nodes (29): CertRow, VehiclePersonnelRow, _cert_row_complete(), collect_required_cert_errors(), _find_cert_for_required(), get_required_personnel_cert_names(), match_required_cert_name(), _missing_field_labels() (+21 more)
|
||||
Nodes (28): CertRow, _cert_row_complete(), collect_required_cert_errors(), _find_cert_for_required(), get_required_personnel_cert_names(), match_required_cert_name(), _missing_field_labels(), Session (+20 more)
|
||||
|
||||
### Community 122 - "Community 122"
|
||||
Cohesion: 0.39
|
||||
@@ -606,8 +604,8 @@ Cohesion: 0.36
|
||||
Nodes (13): _build_tree(), _cascade_soft_delete(), create_menu(), get_menu(), list_menus(), list_menus_tree(), menu_name_exists(), Any (+5 more)
|
||||
|
||||
### Community 127 - "Community 127"
|
||||
Cohesion: 0.11
|
||||
Nodes (37): approve_settlement_legacy(), cancel_settlement(), create_settlement(), delete_settlement(), disburse_settlement(), _generate_settlement_no(), get_settlement(), get_settlement_approval_flow() (+29 more)
|
||||
Cohesion: 0.37
|
||||
Nodes (14): create_opportunity_follow(), _ensure_parent_opportunity(), list_follows_by_opportunity(), list_opportunity_follows(), _parse_optional_datetime(), Any, datetime, Session (+6 more)
|
||||
|
||||
### Community 128 - "plan.py"
|
||||
Cohesion: 0.39
|
||||
@@ -618,21 +616,25 @@ Cohesion: 0.12
|
||||
Nodes (24): _auto_contract_name_body(), generate_contract_name(), 按面板单位全称精确匹配交易主体/客户主数据,取 shortName;对不上则用全称。, 前端预览误用单位全称时,名称片段会等于面板/客户/开票全称。, 按面板供方(partyA)-需方(partyB)生成:{供方简称}-{需方简称}({合同编号})。 - 名称为空:按主数据简称自动生成 - 名, resolve_party_short_name(), _strip_contract_name_no_suffix(), _user_contract_name_uses_party_full_name() (+16 more)
|
||||
|
||||
### Community 130 - "datetime_parse.py"
|
||||
Cohesion: 0.23
|
||||
Nodes (14): _claims_from_auth(), _format_body_bytes(), _persist_log(), Any, Request, 统一记录 API 请求/响应出入参的中间件, _redact_obj(), _schedule_persist_log() (+6 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (56): operlog_detail(), operlog_list(), Session, 操作日志分页列表(基于 API 请求日志适配 RuoYi OperLog 结构), _user_info(), _claims_from_auth(), _format_body_bytes(), _persist_log() (+48 more)
|
||||
|
||||
### Community 131 - "LocalStorage"
|
||||
Cohesion: 0.60
|
||||
Nodes (3): assert_contract_editable_for_update(), test_assert_allows_editable(), test_assert_rejects_non_editable()
|
||||
Cohesion: 0.17
|
||||
Nodes (11): pool_customer_assign(), pool_customer_claim(), pool_customer_list(), pool_record_detail(), pool_record_list(), PoolAssignBody, PoolClaimBody, PoolCustomerListBody (+3 more)
|
||||
|
||||
### Community 132 - "crm_supplier_hazard.py"
|
||||
Cohesion: 0.47
|
||||
Nodes (5): list_public_vehicle_plates(), Session, 地磅公共只读:免登车牌 options(现场填写页), 免登:按出入库/计划解析 tenant_no,返回 pl_vehicle 车牌(self + carrier)。, _resolve_tenant_no()
|
||||
Cohesion: 0.15
|
||||
Nodes (14): invoice_info_add(), invoice_info_by_customer(), _invoice_info_by_customer_impl(), invoice_info_delete(), invoice_info_list(), invoice_info_set_default(), invoice_info_update(), 按客户ID查询开票信息(与 by-customer 等价) (+6 more)
|
||||
|
||||
### Community 134 - "Community 134"
|
||||
Cohesion: 0.25
|
||||
Nodes (18): batch_generate_sample_codes(), batch_issue_sample_codes(), batch_revoke_sample_codes(), create_sample_code(), get_sample_code(), list_sample_codes(), _parse_issued_time(), Any (+10 more)
|
||||
|
||||
### Community 135 - "unsettled_plans_q_filter"
|
||||
Cohesion: 0.18
|
||||
Nodes (23): cancel_apply(), create_apply(), create_record(), delete_applies(), delete_records(), get_apply(), get_record(), list_applies() (+15 more)
|
||||
|
||||
### Community 136 - "Community 136"
|
||||
Cohesion: 0.19
|
||||
Nodes (18): create_role(), get_role(), get_role_data_scope(), get_role_menu_ids(), list_roles(), Any, Session, 角色 CRUD(sys_role / sys_role_menu / sys_role_data_scope_detail) (+10 more)
|
||||
@@ -650,88 +652,88 @@ Cohesion: 0.22
|
||||
Nodes (15): get_storage(), download_file_bytes(), file_stream(), get_access_url(), get_download_url(), get_preview_url(), normalize_storage_path(), 报销附件存储适配 — 复用门户 app.core.storage,对外保持 bx 协议。 (+7 more)
|
||||
|
||||
### Community 141 - "PlTransport"
|
||||
Cohesion: 0.19
|
||||
Nodes (15): approve_task(), _assert_wf_instance_in_scope(), create_process_def(), delete_process_def(), get_business_all_tasks(), _get_business_form_fields(), get_designer_data(), get_instance_detail() (+7 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (27): approve_task(), _assert_wf_instance_in_scope(), _business_type_label(), create_process_def(), _enrich_task_list(), get_business_all_tasks(), _get_business_form_fields(), get_designer_data() (+19 more)
|
||||
|
||||
### Community 143 - "SysEthnic"
|
||||
Cohesion: 0.22
|
||||
Nodes (17): _apply_list_filters(), create_supplier_info(), get_supplier_info(), list_all_supplier_info(), list_supplier_info(), Any, Session, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java (+9 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (29): create_contact(), get_contact(), _parse_optional_date(), date, Session, set_primary_contact(), soft_delete_contact(), total_pages() (+21 more)
|
||||
|
||||
### Community 144 - "dict_data.py"
|
||||
Cohesion: 0.27
|
||||
Nodes (11): create_dict_data(), get_dict_data(), list_dict_data(), list_dict_data_options(), Any, Session, 字典数据 CRUD(sys_dict_data), 字典下拉选项:租户主数据,忽略数据范围(user_info 保留兼容调用方,不参与过滤)。 (+3 more)
|
||||
|
||||
### Community 145 - "resolve_crm_product"
|
||||
Cohesion: 0.24
|
||||
Nodes (9): _dispatch_local(), Any, 工作流回调服务 —— 流程状态变更时通知业务系统, 注册本地回调函数。当 callback_url 以 path 开头时直接调用 fn。, 尝试本地直调。返回 True 表示已处理,False 表示无匹配的本地回调。, 流程实例状态变更后,向业务系统发送回调通知。 优先级: 1. 如果 callback_url 是内部路径(以 / 开头),优先尝试本地直调, register_local_callback(), trigger_callback() (+1 more)
|
||||
Cohesion: 0.51
|
||||
Nodes (10): apply_site_feedback(), OrderItem, _header(), _item(), test_apply_site_feedback_does_not_reset_first_submitted_at(), test_apply_site_feedback_keeps_in_progress_when_requested(), test_apply_site_feedback_rejects_already_voided(), test_apply_site_feedback_rejects_invalid_status() (+2 more)
|
||||
|
||||
### Community 146 - "__init__.py"
|
||||
Cohesion: 0.23
|
||||
Nodes (8): menu_badge_stats(), Session, Session, recognize_cert(), RecognizeCertBody, RecognizeCertResult, get_db_current_user(), PlMenuBadgeStatsRead
|
||||
Cohesion: 0.20
|
||||
Nodes (12): 流程实例 wf_process_instance, WfProcessInstance, _dispatch_local(), Any, 工作流回调服务 —— 流程状态变更时通知业务系统, 注册本地回调函数。当 callback_url 以 path 开头时直接调用 fn。, 尝试本地直调。返回 True 表示已处理,False 表示无匹配的本地回调。, 流程实例状态变更后,向业务系统发送回调通知。 优先级: 1. 如果 callback_url 是内部路径(以 / 开头),优先尝试本地直调 (+4 more)
|
||||
|
||||
### Community 147 - "Community 147"
|
||||
Cohesion: 0.37
|
||||
Nodes (17): check_env(), check_python(), create_venv(), init_env(), install_dependencies(), log_error(), log_info(), log_success() (+9 more)
|
||||
|
||||
### Community 150 - "apply_site_feedback"
|
||||
Cohesion: 0.29
|
||||
Nodes (9): ProductSnapshot, Session, 地磅模块 — CRM 产品解析与快照写入。, 校验 CRM 产品并返回名称/规格快照。新建单据 product_id 必填。 require_on_shelf=False 用于运输计划联动地磅等历, resolve_crm_product(), _product(), resolve_crm_product:运输联动场景允许已下架产品。, test_resolve_allows_off_shelf_when_not_required() (+1 more)
|
||||
Cohesion: 0.27
|
||||
Nodes (10): apply_product_snapshot_to_plan(), ProductSnapshot, Session, 地磅模块 — CRM 产品解析与快照写入。, 校验 CRM 产品并返回名称/规格快照。新建单据 product_id 必填。 require_on_shelf=False 用于运输计划联动地磅等历, resolve_crm_product(), _product(), resolve_crm_product:运输联动场景允许已下架产品。 (+2 more)
|
||||
|
||||
### Community 152 - "response.py"
|
||||
Cohesion: 0.29
|
||||
Nodes (16): ensure_crm_customer_linked_row_in_scope(), ensure_crm_owner_row_in_scope(), Session, CRM 数据权限辅助(负责人 owner_user_id + 标准 create_by/create_dept_id)。, 客户子表(开票信息等):先校验关联客户 owner scope,否则校验 create_by。, _clear_default_for_customer(), create_invoice_info(), get_invoice_info() (+8 more)
|
||||
Cohesion: 0.23
|
||||
Nodes (10): check_customer_protect_time(), pool_recovery_job(), Session, 每天凌晨1点:检查保护期到期客户,跟进次数不足则退回公海, 每天早上9点:保护期到期提醒(3天内到期且跟进不足), _recycle_to_pool(), remind_customer_recycle(), warn_customer_recycle() (+2 more)
|
||||
|
||||
### Community 154 - "response.py"
|
||||
Cohesion: 0.24
|
||||
Nodes (5): MinIOStorage, Any, 从 MINIO_BASE_URL 解析公网 endpoint;未配置或与内网相同时复用 self.client。, MinIO 预签名下载 URL,携带原始文件名。, MinIO 预签名内联预览 URL(图片新标签页 / PDF iframe 等)。 上传时 put_object 未写 content_typ
|
||||
|
||||
### Community 156 - "utils.py"
|
||||
Cohesion: 0.47
|
||||
Nodes (8): create_oss(), get_oss_by_id(), get_oss_by_url(), Session, 按主键 id 查询附件(兼容旧 CRM 雪花 oss_id 迁入后的记录), 将 fileUrl 或旧 CRM 数字 ossId 解析为 MinIO 相对路径。 门户新上传把相对路径写入业务字段;迁入合同附件仍存数字 ossId, resolve_storage_path(), SysOss
|
||||
Cohesion: 0.20
|
||||
Nodes (16): get_pool_record(), list_pool_records(), Any, Session, _row_to_dict(), total_pages(), create_oss(), get_oss_by_id() (+8 more)
|
||||
|
||||
### Community 159 - "customer_update"
|
||||
Cohesion: 0.11
|
||||
Nodes (35): 报销模块认证适配:门户 JWT 用户 → bx 业务上下文。, BxReimburseInvoice, BxReimburseOffset, BxWorkflowNode, 报销(bx)模块数据模型 — 对齐 docs/sql/20260606_bx_tables.sql, filter_current_cycle_approvals(), 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, 审批进度仅展示当前轮次;完整历史由 get_approval_history 返回。 (+27 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (47): 报销模块认证适配:门户 JWT 用户 → bx 业务上下文。, 菜单 code 权限守卫(V0.3:通过 sys_user_role → sys_role_menu → sys_menu.perms), BxReimburseInvoice, BxWorkflowNode, 报销(bx)模块数据模型 — 对齐 docs/sql/20260606_bx_tables.sql, filter_current_cycle_approvals(), 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, 审批进度仅展示当前轮次;完整历史由 get_approval_history 返回。 (+39 more)
|
||||
|
||||
### Community 160 - "register_local_callback"
|
||||
Cohesion: 0.07
|
||||
Nodes (38): API 路由包 — 山峡化工生产一体化门户, create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), Session (+30 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (51): clue_assign(), clue_convert(), clue_create(), clue_delete(), clue_follow_create(), clue_follow_delete(), clue_follow_list(), clue_follow_update() (+43 more)
|
||||
|
||||
### Community 161 - "backfill_crm_contract_attachment_urls.py"
|
||||
Cohesion: 0.33
|
||||
Nodes (8): Any, should_skip_release(), summarize_entries(), 提交占用可超过已上传总额,余额可为负(补票后再回升)。, test_release_idempotent_guard(), test_summarize_allows_negative_balance(), test_summarize_delete_and_release(), test_summarize_upload_and_reimburse()
|
||||
Cohesion: 0.29
|
||||
Nodes (10): normalize_attachment_csv(), extract_minio_object_key(), join_relative_urls(), MinIO 附件 URL 规范化(数据迁移共用)。 背景 ---- CRM / 地磅 / 报销与 shanxia2.0 共用同一 MinIO(bucket 默, 业务表 OSS ID 串 → 相对 URL 串(用于客户证照、跟进附件等)。, 去掉预签名 query(``?X-Amz-...``)。, 将绝对/相对 URL 规范为 MinIO object key(不含 bucket)。, resolve_oss_id_csv() (+2 more)
|
||||
|
||||
### Community 162 - ".to_tenant_user_dict"
|
||||
Cohesion: 0.42
|
||||
Nodes (7): default_settlement_clause(), test_advance_payment_clause(), test_arrive_payment_clause(), test_empty_falls_back_to_arrive(), test_monthly_settlement_clause_uses_label(), test_unknown_falls_back_to_arrive(), test_volume_quarterly_other_labels()
|
||||
|
||||
### Community 163 - "__init__.py"
|
||||
Cohesion: 0.20
|
||||
Nodes (15): bind_biz(), delete_attachment(), download_file(), list_by_biz(), _parse_id_list(), preview_attachment(), Session, UploadFile (+7 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (22): bind_biz(), delete_attachment(), download_file(), list_by_biz(), _parse_id_list(), preview_attachment(), Session, UploadFile (+14 more)
|
||||
|
||||
### Community 164 - "get_client_ip"
|
||||
Cohesion: 0.11
|
||||
Nodes (36): _avatar_url_field(), _build_user_info_payload(), _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/shanxia2.0.sql 基线), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。无 Token 或已失效时仍返回成功(幂等)。, 与 web-admin 静态路由 meta.roles(admin/super_admin)对齐的单元素数组。, 与 web-admin `userInfo` 字段约定一致。 (+28 more)
|
||||
Nodes (43): _avatar_url_field(), _build_user_info_payload(), change_current_user_password(), get_current_user_profile(), get_web_auth_menu_codes(), _jwt_user_payload(), logout(), public_quote_share() (+35 more)
|
||||
|
||||
### Community 170 - "test_quote_approver_setting.py"
|
||||
Cohesion: 0.22
|
||||
Nodes (3): BaseStorage, 带下载文件名的访问 URL;默认实现为普通访问地址。, 浏览器内联预览 URL;默认实现为普通访问地址。
|
||||
|
||||
### Community 171 - "minio_url.py"
|
||||
Cohesion: 0.12
|
||||
Nodes (29): pool_rule_add(), pool_rule_delete(), pool_rule_detail(), pool_rule_execute(), pool_rule_list(), pool_rule_update(), pool_rule_update_status(), create_pool_rule() (+21 more)
|
||||
Cohesion: 0.31
|
||||
Nodes (14): create_pool_rule(), delete_pool_rules(), execute_pool_rules(), _execute_single_rule(), get_pool_rule(), list_pool_rules(), Any, Session (+6 more)
|
||||
|
||||
### Community 172 - "apply_pl_scope"
|
||||
Cohesion: 0.38
|
||||
Nodes (7): change_current_user_password(), get_current_user_profile(), public_quote_share(), Request, Session, 获取当前用户信息(与 sys_user 字段对应)。, 公开分享查看报价单 — Java: GET /share/{shareCode}(无 JWT)
|
||||
Cohesion: 0.39
|
||||
Nodes (8): get_redis_client(), get_sync_redis_client(), Redis, 共享 Redis 客户端(同步:会话鉴权;异步:API 加密 nonce)。, 同步 Redis(auth 会话等,在线程池中调用)。, 异步 Redis(API 加密 nonce 等中间件)。, _redis_common_kwargs(), redis_enabled()
|
||||
|
||||
### Community 173 - "resolve_create_time_bounds"
|
||||
Cohesion: 0.07
|
||||
Nodes (52): _build_page(), _get_by_token(), _make_handlers(), _models(), Session, 运输计划 · 入库/出库单现场免登录公共 API, BizAttachment, PlDocumentReminder (+44 more)
|
||||
Cohesion: 0.05
|
||||
Nodes (77): _build_page(), _get_by_token(), _make_handlers(), _models(), Session, 运输计划 · 入库/出库单现场免登录公共 API, SoftDeleteModel, BizAttachment (+69 more)
|
||||
|
||||
### Community 174 - "register_local_callback"
|
||||
Cohesion: 0.11
|
||||
Nodes (31): _build_public_page(), _build_site_product_read(), _format_file_size(), get_public_site(), _get_site_link_by_token(), _parse_feedback_images(), Session, UploadFile (+23 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (56): 返回 (作废, 归档)。现场链接实际走入库/出库单公共页。, _resolve_io_order_link_flags(), _build_public_page(), _build_site_product_read(), _format_file_size(), get_public_site(), _get_site_link_by_token(), _parse_feedback_images() (+48 more)
|
||||
|
||||
### Community 179 - "test_pl_vehicle_personnel_photo_schema.py"
|
||||
Cohesion: 0.27
|
||||
@@ -739,31 +741,27 @@ Nodes (16): add_favorite(), count_active(), find_active(), find_soft_deleted(),
|
||||
|
||||
### Community 180 - "OSSStorage"
|
||||
Cohesion: 0.06
|
||||
Nodes (63): _build_driver_url(), cancel_plan(), cancel_plan_wait_notice(), count_plans_by_contract(), create_from_contract(), create_plan(), _determine_plan_type(), _ensure_subpack_slip_no() (+55 more)
|
||||
Nodes (82): archive_plan(), cancel_plan(), cancel_plan_wait_notice(), count_plans_by_contract(), create_from_contract(), create_plan(), create_plan_full(), delete_plan() (+74 more)
|
||||
|
||||
### Community 181 - "allocate_next_biz_no"
|
||||
Cohesion: 0.28
|
||||
Nodes (11): assert_products_allowed_for_supplier(), enrich_products_with_hazard_flags(), get_supplier_hazard_flags(), product_allowed(), Any, Session, 批量回填明细行 isToxic/isExplosive(来自产品主数据,供前端切换主体剔除)。, test_dual_requires_both() (+3 more)
|
||||
Cohesion: 0.18
|
||||
Nodes (13): list_customer_options(), 客户下拉选项:租户内只读搜索,不做 owner 数据权限(供地磅/合同等主数据选用)。, list_products(), get_supplier_hazard_flags(), product_allowed(), 产品/客户列表 keyword:名称/编号/拼音首字母 OR 匹配。, test_list_customer_options_keyword_includes_name_and_pinyin(), test_list_customers_keyword_includes_name_and_pinyin() (+5 more)
|
||||
|
||||
### Community 182 - "statistics.py"
|
||||
Cohesion: 0.45
|
||||
Nodes (11): _customer_base_query(), get_follow_statistics(), get_industry_statistics(), get_level_statistics(), get_overview_statistics(), get_owner_statistics(), get_source_statistics(), get_trend_statistics() (+3 more)
|
||||
|
||||
### Community 184 - "excel_export.py"
|
||||
Cohesion: 0.27
|
||||
Nodes (8): CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _build_workbook(), DictLabelResolver, ExportColumn, Any, Excel 导出工具:集中处理字典 code → label(对齐 Java ExcelDictConvert / ExcelDictPreloadConver, 导出列定义,dict_type 非空时自动将字典 value 转为 label。, 导出单元格解析:按列配置做字典翻译或自定义格式化。
|
||||
|
||||
### Community 187 - "price_letter_detail"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): Web 管理端约定角色(由 sys_role.role_name 映射而来,非数据库枚举), UserRole, str
|
||||
|
||||
### Community 188 - "context.py"
|
||||
### Community 183 - "resolve_create_time_bounds"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): parse_optional_plan_datetime(), datetime, 运输计划相关日期时间解析:前端 date-picker 仅传 YYYY-MM-DD。
|
||||
|
||||
### Community 184 - "excel_export.py"
|
||||
Cohesion: 0.24
|
||||
Nodes (11): CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _build_workbook(), DictLabelResolver, export_rows_to_xlsx_response(), ExportColumn, Any, Excel 导出工具:集中处理字典 code → label(对齐 Java ExcelDictConvert / ExcelDictPreloadConver, CRM 列表导出统一入口:表头 + 行数据 + 字典 label 转换 + 文件流响应。 (+3 more)
|
||||
|
||||
### Community 193 - "storage.py"
|
||||
Cohesion: 0.13
|
||||
Nodes (18): pool_customer_assign(), pool_customer_claim(), pool_customer_list(), pool_record_detail(), pool_record_list(), get_pool_record(), list_pool_records(), Any (+10 more)
|
||||
Cohesion: 0.04
|
||||
Nodes (83): category_add(), clue_import_template(), contact_by_customer(), customer_create(), customer_import_template(), customer_update(), opportunity_add(), opportunity_assign() (+75 more)
|
||||
|
||||
### Community 194 - "get_current_user_by_token"
|
||||
Cohesion: 0.40
|
||||
@@ -777,18 +775,6 @@ Nodes (3): Any, 供 get_tenant_no 等门户工具使用。, 与门户 JWT / appl
|
||||
Cohesion: 0.20
|
||||
Nodes (4): _guess_preview_content_type(), OSSStorage, 文件存储工具模块 支持多种存储方式: 1. 本地存储 (local) - 默认 2. 七牛云存储 (qiniu) - 推荐生产环境使用 3. 阿里云OSS (, 按对象键后缀推断内联预览 Content-Type(纠正上传时未写入 MIME 的情况)。
|
||||
|
||||
### Community 199 - "unsettled_plans_q_filter"
|
||||
Cohesion: 0.36
|
||||
Nodes (7): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), 民族码表 sys_ethnic(国标 GB/T 3304,全局), SysEthnic
|
||||
|
||||
### Community 200 - "register_local_callback"
|
||||
Cohesion: 0.12
|
||||
Nodes (38): apply_site_feedback(), build_io_order_site_url(), create_io_order_for_transport(), _dibang_qty_by_plan_product(), enrich_io_items_with_brand_feedback(), enrich_io_order_dict(), _format_io_product_summary_line(), get_active_io_order_for_plan() (+30 more)
|
||||
|
||||
### Community 203 - "__init__.py"
|
||||
Cohesion: 0.09
|
||||
Nodes (29): _alias_row_to_dict(), _brand_row_to_dict(), _build_category_tree(), _category_row_to_dict(), _collect_category_with_ancestors(), list_categories(), list_category_tree(), list_oss_by_biz() (+21 more)
|
||||
|
||||
### Community 206 - "crm_quote_pdf.py"
|
||||
Cohesion: 0.36
|
||||
Nodes (10): build_quote_html(), _default_value(), _format_date(), _format_discount(), _format_money(), generate_quote_pdf(), _get_pdf_styles(), Any (+2 more)
|
||||
@@ -798,8 +784,8 @@ Cohesion: 0.18
|
||||
Nodes (10): 1. 创建虚拟环境, 2. 安装依赖, 3. 配置环境变量, 4. 启动服务, API 路由分组, shanxia2.0 后端骨架(FastAPI), 开发规范, 快速开始 (+2 more)
|
||||
|
||||
### Community 220 - "api_crypto_middleware.py"
|
||||
Cohesion: 0.15
|
||||
Nodes (21): _claims_from_auth(), _coerce_post_method_override_to_get(), _get_redis_client(), _is_crypto_api(), _json_error_response(), _mark_nonce_once(), _nonce_key(), Redis (+13 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (16): ApiCryptoMiddleware, _claims_from_auth(), _coerce_post_method_override_to_get(), _get_redis_client(), _is_crypto_api(), _json_error_response(), _mark_nonce_once(), _nonce_key() (+8 more)
|
||||
|
||||
### Community 237 - "order_status_compat.py"
|
||||
Cohesion: 0.36
|
||||
@@ -816,22 +802,22 @@ Nodes (6): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时
|
||||
## Knowledge Gaps
|
||||
- **30 isolated node(s):** `Config`, `Config`, `Config`, `Config`, `Config` (+25 more)
|
||||
These have ≤1 connection - possible missing edges or undocumented components.
|
||||
- **18 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
- **19 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
|
||||
## Suggested Questions
|
||||
_Questions this graph is uniquely positioned to answer:_
|
||||
|
||||
- **Why does `generate_uuid()` connect `Community 109` to `Community 0`, `plan.py`, `Community 4`, `Community 5`, `Community 6`, `Community 134`, `Community 8`, `statistics.py`, `Community 136`, `Community 11`, `Community 13`, `Community 14`, `SysEthnic`, `dict_data.py`, `Community 15`, `Community 16`, `Community 21`, `Community 24`, `response.py`, `Community 25`, `utils.py`, `Community 29`, `Community 28`, `customer_update`, `Community 33`, `get_client_ip`, `Community 36`, `Community 39`, `minio_url.py`, `Community 43`, `Community 45`, `resolve_create_time_bounds`, `Community 48`, `OSSStorage`, `Community 53`, `Community 58`, `Community 61`, `Community 62`, `Community 64`, `storage.py`, `get_current_user_by_token`, `Community 66`, `Community 68`, `Community 65`, `Community 67`, `Community 71`, `register_local_callback`, `Community 83`, `Community 86`, `Community 87`, `pl_ocr_service.py`, `pl_vehicle_recharge_service.py`, `Community 92`, `_invoice_info_by_customer_impl`, `Community 95`, `apply_crm_create_by_scope`, `apply_pl_scope`, `quote_share_log.py`, `db_models.py`, `site.py`, `Community 116`, `Community 118`, `Community 122`, `customer_pool.py`?**
|
||||
_High betweenness centrality (0.093) - this node is a cross-community bridge._
|
||||
- **Why does `get_tenant_no()` connect `Community 7` to `Community 0`, `Community 1`, `Community 2`, `Community 5`, `Community 8`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 18`, `Community 19`, `__init__.py`, `Community 24`, `Community 27`, `customer_update`, `Community 33`, `__init__.py`, `Community 38`, `minio_url.py`, `Community 43`, `Community 45`, `Community 50`, `Community 51`, `OSSStorage`, `Community 54`, `Community 58`, `Community 60`, `Community 62`, `Community 63`, `Community 64`, `storage.py`, `Community 66`, `Community 65`, `Community 71`, `Community 78`, `Community 109`, `site.py`, `Community 127`?**
|
||||
- **Why does `generate_uuid()` connect `Community 25` to `Community 0`, `plan.py`, `Community 4`, `Community 5`, `Community 6`, `Community 134`, `Community 8`, `statistics.py`, `Community 136`, `Community 11`, `SysEthnic`, `dict_data.py`, `Community 15`, `Community 18`, `Community 16`, `Community 21`, `Community 24`, `response.py`, `utils.py`, `Community 29`, `Community 28`, `customer_update`, `Community 33`, `get_client_ip`, `Community 36`, `Community 39`, `minio_url.py`, `Community 45`, `resolve_create_time_bounds`, `OSSStorage`, `Community 53`, `Community 58`, `Community 61`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `get_current_user_by_token`, `Community 66`, `Community 68`, `Community 67`, `Community 71`, `Community 72`, `Community 83`, `Community 86`, `Community 87`, `Any`, `pl_ocr_service.py`, `pl_vehicle_recharge_service.py`, `Community 92`, `_invoice_info_by_customer_impl`, `Community 95`, `apply_crm_create_by_scope`, `apply_pl_scope`, `Community 109`, `quote_share_log.py`, `db_models.py`, `site.py`, `Community 116`, `Community 118`, `Community 122`, `customer_pool.py`, `Community 127`?**
|
||||
_High betweenness centrality (0.095) - this node is a cross-community bridge._
|
||||
- **Why does `BaseModel` connect `Community 12` to `Community 0`, `Community 1`, `Community 2`, `LocalStorage`, `crm_supplier_hazard.py`, `datetime_parse.py`, `Community 5`, `Community 7`, `unsettled_plans_q_filter`, `Community 11`, `PlTransport`, `Community 13`, `Community 15`, `Community 16`, `Community 18`, `Community 19`, `Community 24`, `Community 26`, `Community 27`, `Community 28`, `register_local_callback`, `Community 33`, `Community 34`, `__init__.py`, `Community 38`, `Community 43`, `Community 45`, `resolve_create_time_bounds`, `Community 48`, `Community 50`, `Community 51`, `OSSStorage`, `Community 54`, `Community 58`, `Community 60`, `Community 62`, `Community 64`, `storage.py`, `Community 66`, `Community 65`, `Community 71`, `Community 72`, `Community 74`, `Community 106`, `Community 109`, `Community 111`, `site.py`, `Community 119`?**
|
||||
_High betweenness centrality (0.081) - this node is a cross-community bridge._
|
||||
- **Why does `Settings` connect `Community 46` to `_ensure_subpack_slip_no`, `Community 35`, `Community 67`, `Community 37`, `price_letter_detail`, `Community 73`, `Community 42`, `Community 44`, `Base`, `Community 52`, `Community 59`, `Community 30`?**
|
||||
_High betweenness centrality (0.073) - this node is a cross-community bridge._
|
||||
- **Why does `Settings` connect `price_letter_detail` to `_ensure_subpack_slip_no`, `Community 35`, `Community 67`, `Community 37`, `Community 73`, `Community 42`, `Base`, `Community 52`, `Community 59`, `Community 30`?**
|
||||
_High betweenness centrality (0.069) - this node is a cross-community bridge._
|
||||
- **Are the 8 inferred relationships involving `DbUserContext` (e.g. with `InventoryRelatedData` and `AutoGenerateMonthlyResult`) actually correct?**
|
||||
_`DbUserContext` has 8 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **What connects `API 路由包 — 山峡化工生产一体化门户`, `返回运营端角色下拉选项(label=库中角色名,value=Web 角色码)。`, `返回用户下拉选项(label=昵称,value=用户ID,附带 nickName/userNo)。 供申请人/审批人等选择场景使用,返回本租户全部有效` to the rest of the system?**
|
||||
_553 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
_558 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
- **Should `Community 0` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.10638297872340426 - nodes in this community are weakly interconnected._
|
||||
- **Should `Community 1` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.07804878048780488 - nodes in this community are weakly interconnected._
|
||||
- **Should `Community 3` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.0896276036187671 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.07308970099667775 - nodes in this community are weakly interconnected._
|
||||
+2818
-2001
File diff suppressed because it is too large.
Load diff
@@ -10,8 +10,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/admin.py": {
|
||||
"mtime": 1785469147.0588133,
|
||||
"ast_hash": "54a5e224688d83edf4a48504e858ced3",
|
||||
"mtime": 1786164471.3850935,
|
||||
"ast_hash": "d0ec6137607e9dc5f49e049ca72eb798",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/__init__.py": {
|
||||
@@ -45,8 +45,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/reimburse.py": {
|
||||
"mtime": 1785473021.3119955,
|
||||
"ast_hash": "20e4825f4e028f49c383c84e9b52e96f",
|
||||
"mtime": 1786953500.862205,
|
||||
"ast_hash": "7f8ab65012210296805864f17dd4a23b",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/workflow.py": {
|
||||
@@ -60,8 +60,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/crm_contract_routes.py": {
|
||||
"mtime": 1786150042.6971638,
|
||||
"ast_hash": "2ff1320f296eedf9a83f378932df2d47",
|
||||
"mtime": 1786239377.894416,
|
||||
"ast_hash": "af1828c032f67e912276c1c100ddd217",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/crm_contract_sub_routes.py": {
|
||||
@@ -90,8 +90,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/db/plans.py": {
|
||||
"mtime": 1785807158.0938885,
|
||||
"ast_hash": "a9ba5ad89611a1b75bcfc67b31e95be8",
|
||||
"mtime": 1786955259.1402967,
|
||||
"ast_hash": "2241aa6f91554243ab39afe7c8e93f41",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/db/public_inventory.py": {
|
||||
@@ -125,8 +125,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/base_data.py": {
|
||||
"mtime": 1785637805.321715,
|
||||
"ast_hash": "3071f29aea1fa3f41bbb52269d8255f9",
|
||||
"mtime": 1786887371.4499524,
|
||||
"ast_hash": "e1c6a866a651145cefe411c2949963ff",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/freight.py": {
|
||||
@@ -155,8 +155,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/plan.py": {
|
||||
"mtime": 1785970865.1852741,
|
||||
"ast_hash": "c296fd2e85f35769dca5ea0f66222a27",
|
||||
"mtime": 1786885472.5030537,
|
||||
"ast_hash": "f5020cc3715a0da38ec34ea8298d7cf2",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/public_io_order.py": {
|
||||
@@ -200,8 +200,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/public.py": {
|
||||
"mtime": 1783858998.0,
|
||||
"ast_hash": "1420acc2c5e0e425f32478d4e40de74d",
|
||||
"mtime": 1786197474.707909,
|
||||
"ast_hash": "0b474dfb38e4ddb5accea2aeb84ef9e9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/workflow.py": {
|
||||
@@ -250,8 +250,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/core/config.py": {
|
||||
"mtime": 1785768184.947508,
|
||||
"ast_hash": "f7dd0409c040e47e64b7db8aae71cd40",
|
||||
"mtime": 1786698748.8260324,
|
||||
"ast_hash": "e9e65ac730bb5b0ed6df9e2114a67130",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/core/context.py": {
|
||||
@@ -410,13 +410,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract.py": {
|
||||
"mtime": 1786074001.2027,
|
||||
"ast_hash": "86a7fdaa90393f5c4d67928e7befd2f4",
|
||||
"mtime": 1786863780.7033699,
|
||||
"ast_hash": "783e2d3c50225588fcde4ede86c577ed",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract_approval.py": {
|
||||
"mtime": 1780763324.0,
|
||||
"ast_hash": "c9c338510247afdcd733412c10e0ded3",
|
||||
"mtime": 1786365604.7703958,
|
||||
"ast_hash": "0b9d54a2b442bb72e31f8c9e39786022",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract_approver_setting.py": {
|
||||
@@ -485,13 +485,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote.py": {
|
||||
"mtime": 1784996795.0,
|
||||
"ast_hash": "19be4876f99cd7d6122f96bc555f3296",
|
||||
"mtime": 1786365631.647346,
|
||||
"ast_hash": "79ad7553ba657a2ea0ccd8ae735e6803",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote_approval.py": {
|
||||
"mtime": 1782650314.0,
|
||||
"ast_hash": "06df363f67ef49fe7398d0204b59031f",
|
||||
"mtime": 1786365604.675762,
|
||||
"ast_hash": "f2baf17da1de4975d1adfe3e4708e3ff",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote_approver_setting.py": {
|
||||
@@ -500,8 +500,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote_product.py": {
|
||||
"mtime": 1785201813.742914,
|
||||
"ast_hash": "c564d384d49252d384f053bb1939f2ec",
|
||||
"mtime": 1786184473.6230762,
|
||||
"ast_hash": "528cb895aad43d6767cf06d23a22f82f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote_share_log.py": {
|
||||
@@ -600,13 +600,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/main.py": {
|
||||
"mtime": 1785768184.2015946,
|
||||
"ast_hash": "53dd49c12260225acb5eae0e4c02c370",
|
||||
"mtime": 1786698748.399432,
|
||||
"ast_hash": "bbdd8cb8ca573957346a6350cdd9bcec",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/__init__.py": {
|
||||
"mtime": 1785445893.8509457,
|
||||
"ast_hash": "de0cea51503ca0f7113471fad4505c3f",
|
||||
"mtime": 1786203409.8909836,
|
||||
"ast_hash": "4df3e326af85ac0f5de9bc7e0f17fd6f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/base.py": {
|
||||
@@ -615,13 +615,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/bx_models.py": {
|
||||
"mtime": 1785472986.385442,
|
||||
"ast_hash": "d481ff1153261d1e99737ebf6a7370b0",
|
||||
"mtime": 1786953008.5586357,
|
||||
"ast_hash": "5ebf94313f9bf2c88a53bb4f81cab13a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/crm_models.py": {
|
||||
"mtime": 1786093453.4452932,
|
||||
"ast_hash": "053b820ca65c4e8a41fdfc25214af3f8",
|
||||
"mtime": 1786171074.9211452,
|
||||
"ast_hash": "3108b3d96a3377f347456d5b7ad7c3c9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/db_models.py": {
|
||||
@@ -635,8 +635,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/pl_models.py": {
|
||||
"mtime": 1786027579.800696,
|
||||
"ast_hash": "18d20026701c9a26e4124a963b4095e0",
|
||||
"mtime": 1786203406.7116644,
|
||||
"ast_hash": "d5aeee9c5945baf12f1c4200a59012a8",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/__init__.py": {
|
||||
@@ -685,8 +685,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/bx/reimburse.py": {
|
||||
"mtime": 1785473904.0760102,
|
||||
"ast_hash": "895312d916362d2f30fdae467b2c4c1c",
|
||||
"mtime": 1786953496.3100414,
|
||||
"ast_hash": "a3bf2c3966e3a12654e944af4f224165",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/bx/workflow.py": {
|
||||
@@ -715,8 +715,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/contract.py": {
|
||||
"mtime": 1785418059.662177,
|
||||
"ast_hash": "b8610597478fbf5dacca6f24e901696c",
|
||||
"mtime": 1786239355.7093923,
|
||||
"ast_hash": "dd33cb6f4ffee2c8f5737182c3c1497a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/contract_approver_setting.py": {
|
||||
@@ -765,8 +765,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/quote.py": {
|
||||
"mtime": 1785418147.320159,
|
||||
"ast_hash": "6f2eb027a97447585d109a653ce3b3a7",
|
||||
"mtime": 1786171088.0675073,
|
||||
"ast_hash": "502fd8639a90ae7a52e6d1f38f4b1f61",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/quote_approver_setting.py": {
|
||||
@@ -835,8 +835,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/__init__.py": {
|
||||
"mtime": 1783242582.0,
|
||||
"ast_hash": "13deaeb249ba9b315dd19ad0c72989ab",
|
||||
"mtime": 1786203494.3296576,
|
||||
"ast_hash": "b7920c32ba18bca6b047446059e97d57",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/base_data.py": {
|
||||
@@ -875,8 +875,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/plan.py": {
|
||||
"mtime": 1786026516.372507,
|
||||
"ast_hash": "ca4673bc3019d00f5a0d29340cc64be4",
|
||||
"mtime": 1786203421.9045327,
|
||||
"ast_hash": "87763f7d7771e6341ffbcdf911351f5e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/resource_snapshot.py": {
|
||||
@@ -950,18 +950,18 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/invoice.py": {
|
||||
"mtime": 1784991670.0,
|
||||
"ast_hash": "301b58c855f5651c676dda01f53d9078",
|
||||
"mtime": 1786272473.4044263,
|
||||
"ast_hash": "ce4c31b5f377719a084171e0dfd2b04d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/invoice_ledger.py": {
|
||||
"mtime": 1784980394.0,
|
||||
"ast_hash": "3032da65e6f94863a761479ef2405abd",
|
||||
"mtime": 1786539462.7763708,
|
||||
"ast_hash": "095bd0dba56d35fafc230999deb28aa6",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/reimburse.py": {
|
||||
"mtime": 1785473904.0761359,
|
||||
"ast_hash": "f1ddebadb0f08f0cad5072aa2b3fb439",
|
||||
"mtime": 1786953507.819708,
|
||||
"ast_hash": "95d31f9adfe395354b300c1212ed9dd0",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/storage.py": {
|
||||
@@ -980,8 +980,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/crm_quote_pdf.py": {
|
||||
"mtime": 1780242127.0,
|
||||
"ast_hash": "c6247a99b20d9541dbabd49791104918",
|
||||
"mtime": 1786172982.774929,
|
||||
"ast_hash": "6df1e094e858559da7414197bfd814df",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/crm_supplier_hazard.py": {
|
||||
@@ -1105,8 +1105,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_plan_service.py": {
|
||||
"mtime": 1785970855.7289765,
|
||||
"ast_hash": "30b37d35ef133d390c5ee3e906e65105",
|
||||
"mtime": 1786204013.4685726,
|
||||
"ast_hash": "8ee28eee450db2496cb4e5a687655c6d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_product_display.py": {
|
||||
@@ -1185,8 +1185,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/utils/bx_codegen.py": {
|
||||
"mtime": 1782003396.0,
|
||||
"ast_hash": "ab0faf38020f30611bf4f6f6696f7289",
|
||||
"mtime": 1786953427.7518795,
|
||||
"ast_hash": "50af2e1a0b5d4b367db45fc56c745f4a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/utils/bx_date_range.py": {
|
||||
@@ -1209,56 +1209,6 @@
|
||||
"ast_hash": "fe3e36317dd396513ca21b57101ee48f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/backfill_crm_contract_attachment_urls.py": {
|
||||
"mtime": 1785469147.228035,
|
||||
"ast_hash": "f7419274bfc1113c43360c4c408ad731",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/backfill_crm_customer_license_urls.py": {
|
||||
"mtime": 1785467213.3740296,
|
||||
"ast_hash": "29694d834f575fc9b71cf5173873ffd4",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260727_crm_product_brand_alias.sql": {
|
||||
"mtime": 1785160650.0307376,
|
||||
"ast_hash": "a8378474a507e34e93c793de5bd4b468",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260727_pl_plan_create_date.sql": {
|
||||
"mtime": 1785140686.8755436,
|
||||
"ast_hash": "ca737a8bb5cbc8694d2131ec04ac48e2",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260727_split_brand_from_product_name.py": {
|
||||
"mtime": 1785202591.7822654,
|
||||
"ast_hash": "b6fffc10a38c2607af35b69679baa403",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260731_bx_reimburse_invoice_attachment_id.sql": {
|
||||
"mtime": 1785473095.766881,
|
||||
"ast_hash": "361b571af480b78065c92f355ee29551",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260731_pl_feedback_brand_qty.sql": {
|
||||
"mtime": 1785445506.58171,
|
||||
"ast_hash": "7c9750fd82bc08bdf8012a8da42ca9be",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260731_pl_plan_plan_date_nullable.sql": {
|
||||
"mtime": 1785439209.757662,
|
||||
"ast_hash": "a59fac95d970de9d509e1118b566eb4a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260801_crm_contract_approver_setting.sql": {
|
||||
"mtime": 1785561454.9404912,
|
||||
"ast_hash": "23daa450c42083b524c9e14b2d062604",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260801_crm_quote_approver_setting.sql": {
|
||||
"mtime": 1785560449.173092,
|
||||
"ast_hash": "4a58c46df0aa2b512aa240dc95a72408",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_bx_data.py": {
|
||||
"mtime": 1785455807.1058779,
|
||||
"ast_hash": "eb57e09f1d0a31d7170e6fba30a91ef2",
|
||||
@@ -1340,8 +1290,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_bx_invoice_ledger.py": {
|
||||
"mtime": 1784980394.0,
|
||||
"ast_hash": "084487db01bf249429e177a9ce7a125c",
|
||||
"mtime": 1786539462.1709106,
|
||||
"ast_hash": "c65d74b1fb940e805e6a7ccb141e798f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_supplier_hazard.py": {
|
||||
@@ -1514,21 +1464,6 @@
|
||||
"ast_hash": "0df1f9d8316fe2a23559da13e850bf6e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260802_pl_vehicle_personnel_photo_urls.sql": {
|
||||
"mtime": 1785637173.5641549,
|
||||
"ast_hash": "e65b3a65437e9ff61234e164641a65c9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260806_pl_plan_pickup_delivery_contact.sql": {
|
||||
"mtime": 1785967900.2186763,
|
||||
"ast_hash": "5aaec782a2aaed968f72ebfc8df12a67",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260806_pl_plan_product_cert_urls_multi.sql": {
|
||||
"mtime": 1786026516.3846612,
|
||||
"ast_hash": "e61c1b4ff92153418d6b65e04788eb16",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_contract_name_from_parties.py": {
|
||||
"mtime": 1785828057.088218,
|
||||
"ast_hash": "8fcd74a7c9ceeed56cc26842259dc8b9",
|
||||
@@ -1594,11 +1529,6 @@
|
||||
"ast_hash": "b8b34771fcc0499115ead29448ce34ba",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/backfill_name_pinyin_abbr.py": {
|
||||
"mtime": 1786094939.0200698,
|
||||
"ast_hash": "80c4de634da8bd1bf372270460411515",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_name_pinyin_search.py": {
|
||||
"mtime": 1786094657.392019,
|
||||
"ast_hash": "cd9d359114a86b80ad39cb19b61be435",
|
||||
@@ -1608,5 +1538,100 @@
|
||||
"mtime": 1786093018.7557743,
|
||||
"ast_hash": "a1d38e436dd4e926ee3c39a295d930e3",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/duty.py": {
|
||||
"mtime": 1786962300.7785535,
|
||||
"ast_hash": "373ab9a759e0aa3f4a37bc827afe00f8",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/public_duty.py": {
|
||||
"mtime": 1786782175.1074886,
|
||||
"ast_hash": "7621313191ee9ed99b4b0aece4b38ce2",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/menu_favorite.py": {
|
||||
"mtime": 1786164467.195259,
|
||||
"ast_hash": "12308ecbf901e2710416423383c22707",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/duty_models.py": {
|
||||
"mtime": 1786968683.6457064,
|
||||
"ast_hash": "a89066d3fcd488a73a6e774336224350",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/duty.py": {
|
||||
"mtime": 1786968606.2045534,
|
||||
"ast_hash": "018b834404c4a9879924505890942268",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/menu_favorite.py": {
|
||||
"mtime": 1786164463.9583578,
|
||||
"ast_hash": "8ef910f4360507aded21297732b7cda4",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/crm_settlement_clause.py": {
|
||||
"mtime": 1786936843.88089,
|
||||
"ast_hash": "5c925ba943ce3fdd35ad767ff69bd3b9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/duty_schedule.py": {
|
||||
"mtime": 1786968629.2312236,
|
||||
"ast_hash": "f9c483b9c99fbe652e9f354d6de03b44",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_internal_customer.py": {
|
||||
"mtime": 1786203402.2958312,
|
||||
"ast_hash": "a11ce7d29f7285bc4d65f9fe9845805e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260814_duty_schedule.sql": {
|
||||
"mtime": 1786780828.212848,
|
||||
"ast_hash": "cc55e9e99cb71881758315e366178240",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260815_duty_menu_portal_fix.sql": {
|
||||
"mtime": 1786862443.5190866,
|
||||
"ast_hash": "b639e0673848f86bd7f0e46d00b24601",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260816_crm_settlement_method_options.sql": {
|
||||
"mtime": 1786863543.5774279,
|
||||
"ast_hash": "1926afbfb9d9534d4f96a743160d0394",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260817_bx_reimburse_detail_occur_date.sql": {
|
||||
"mtime": 1786952998.7556877,
|
||||
"ast_hash": "115e7bc5352900901cbc7222d6055afc",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260817_duty_staff_role.sql": {
|
||||
"mtime": 1786961977.381234,
|
||||
"ast_hash": "485a6e3405d4b04dcf0654b701ac4ca8",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_bx_optional_date.py": {
|
||||
"mtime": 1786953396.8217323,
|
||||
"ast_hash": "352fd5738fdbcf11d8c9706588492610",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_approval_reedit.py": {
|
||||
"mtime": 1786365642.4439082,
|
||||
"ast_hash": "911e944dfa9e92500797e8e0d9fe44c6",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_settlement_clause.py": {
|
||||
"mtime": 1786936844.0551229,
|
||||
"ast_hash": "24fefbbc0e587d3e4d043adcf9de32ee",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_duty_schedule.py": {
|
||||
"mtime": 1786962525.0293584,
|
||||
"ast_hash": "b4f8930c8641f23bba5a411774fa66bc",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_menu_favorite_crud.py": {
|
||||
"mtime": 1786161663.839656,
|
||||
"ast_hash": "4404ae2a3524b330074edb2605990226",
|
||||
"semantic_hash": ""
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
# Graph Report - backend (2026-08-17)
|
||||
|
||||
## Corpus Check
|
||||
- 325 files · ~214,627 words
|
||||
- 326 files · ~215,608 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 4805 nodes · 16492 edges · 543 communities (526 shown, 17 thin omitted)
|
||||
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 728 edges (avg confidence: 0.62)
|
||||
- 4819 nodes · 16536 edges · 545 communities (527 shown, 18 thin omitted)
|
||||
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 730 edges (avg confidence: 0.62)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `43d53cb9`
|
||||
- Built from commit: `9345cf4a`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
@@ -156,12 +156,14 @@
|
||||
- [[_COMMUNITY_resolve_create_time_bounds|resolve_create_time_bounds]]
|
||||
- [[_COMMUNITY_excel_export.py|excel_export.py]]
|
||||
- [[_COMMUNITY_price_letter_detail|price_letter_detail]]
|
||||
- [[_COMMUNITY_get_client_ip|get_client_ip]]
|
||||
- [[_COMMUNITY_context.py|context.py]]
|
||||
- [[_COMMUNITY_storage.py|storage.py]]
|
||||
- [[_COMMUNITY_get_current_user_by_token|get_current_user_by_token]]
|
||||
- [[_COMMUNITY_PlFreightSettlementTransport|PlFreightSettlementTransport]]
|
||||
- [[_COMMUNITY_crm_contract_sub_routes.py|crm_contract_sub_routes.py]]
|
||||
- [[_COMMUNITY_register_local_callback|register_local_callback]]
|
||||
- [[_COMMUNITY___init__.py|__init__.py]]
|
||||
- [[_COMMUNITY_price_letter_detail|price_letter_detail]]
|
||||
- [[_COMMUNITY_assert_contract_editable_for_update|assert_contract_editable_for_update]]
|
||||
- [[_COMMUNITY_crm_quote_pdf.py|crm_quote_pdf.py]]
|
||||
- [[_COMMUNITY_shanxia2.0 后端骨架(FastAPI)|shanxia2.0 后端骨架(FastAPI)]]
|
||||
- [[_COMMUNITY_api_crypto_middleware.py|api_crypto_middleware.py]]
|
||||
@@ -185,7 +187,7 @@
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `BaseModel` - 452 edges
|
||||
2. `get_tenant_no()` - 350 edges
|
||||
3. `success_response()` - 267 edges
|
||||
3. `success_response()` - 268 edges
|
||||
4. `DbUserContext` - 254 edges
|
||||
5. `error_response()` - 247 edges
|
||||
6. `generate_uuid()` - 194 edges
|
||||
@@ -195,8 +197,6 @@
|
||||
10. `ApiResponse` - 79 edges
|
||||
|
||||
## Surprising Connections (you probably didn't know these)
|
||||
- `BackfillRule` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_crm_sys_oss.py → app/core/config.py
|
||||
- `MigrationStats` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_bx_data.py → app/core/config.py
|
||||
- `StepStats` --uses--> `Settings` [INFERRED]
|
||||
@@ -205,59 +205,61 @@
|
||||
scripts/migrate_crm_clue.py → app/core/config.py
|
||||
- `StepStats` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_crm_clue.py → app/core/config.py
|
||||
- `MigrationStats` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_crm_contract.py → app/core/config.py
|
||||
|
||||
## Import Cycles
|
||||
- None detected.
|
||||
|
||||
## Communities (543 total, 17 thin omitted)
|
||||
## Communities (545 total, 18 thin omitted)
|
||||
|
||||
### Community 0 - "Community 0"
|
||||
Cohesion: 0.16
|
||||
Nodes (32): check_document_expiry(), document_reminder_stats(), get_inventory_ledger(), get_summary(), list_document_reminders(), list_transactions(), list_warnings(), date (+24 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (44): check_document_expiry(), document_reminder_stats(), get_inventory_ledger(), get_summary(), list_document_reminders(), list_transactions(), list_warnings(), date (+36 more)
|
||||
|
||||
### Community 1 - "Community 1"
|
||||
Cohesion: 0.08
|
||||
Nodes (38): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, 接口菜单权限守卫。super_admin 直接放行。, require_menu_code(), ContractApproverSettingSaveBody, ContractApprovalActionBody, ContractApprovalPassBody, ContractApprovalRejectBody, ContractApprovalTransferBody (+30 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (40): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, 运营端角色守卫:admin / super_admin 可访问。, 接口菜单权限守卫。super_admin 直接放行。, require_admin_or_super_admin(), require_menu_code(), ContractApproverSettingSaveBody, ContractApprovalActionBody, ContractApprovalPassBody (+32 more)
|
||||
|
||||
### Community 2 - "Community 2"
|
||||
Cohesion: 0.21
|
||||
Cohesion: 0.20
|
||||
Nodes (27): _apply_inventory_product_update(), _apply_inventory_update(), _base_query(), create_inventory(), create_link_for_plan(), delete_inventory(), _generate_batch_no(), _get_inventory() (+19 more)
|
||||
|
||||
### Community 3 - "Community 3"
|
||||
Cohesion: 0.08
|
||||
Nodes (100): attachment_download_url(), attachment_preview_url(), AttachmentDownloadUrlBody, create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_menu_favorite() (+92 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (65): attachment_download_url(), attachment_preview_url(), create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_menu_favorite(), create_post() (+57 more)
|
||||
|
||||
### Community 4 - "Community 4"
|
||||
Cohesion: 0.09
|
||||
Nodes (76): _apply_list_filters(), assign_opportunities(), batch_update_expect_date(), batch_update_stage(), change_stage(), create_opportunity(), _decimal_value(), _enrich_user_names() (+68 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (43): _apply_list_filters(), assign_opportunities(), batch_update_expect_date(), batch_update_stage(), change_stage(), create_opportunity(), _decimal_value(), _enrich_user_names() (+35 more)
|
||||
|
||||
### Community 5 - "Community 5"
|
||||
Cohesion: 0.08
|
||||
Nodes (69): create_plan_full(), 创建运输计划(完整表单:供方/需方 + 产品库产品 + 可选预选车辆,不自动安排运输), update_plan(), PlPlanProduct, PlPlanTransport, 计划产品明细表 pl_plan_product, 计划-运输关联表 pl_plan_transport, PlanArchiveFreightBlock (+61 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (56): _generate_notify_message(), PlPlan, PlPlanProduct, PlVehicle, 计划产品明细表 pl_plan_product, PlanArchiveFreightBlock, PlanArchiveProductItem, PlanProductCreate (+48 more)
|
||||
|
||||
### Community 6 - "Community 6"
|
||||
Cohesion: 0.18
|
||||
Nodes (32): assign_customer(), batch_claim_customers(), check_duplicate_customer(), claim_customer(), create_customer(), deal_customer(), _enrich_user_names(), _ensure_customer_in_scope() (+24 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (30): assign_customer(), batch_claim_customers(), check_duplicate_customer(), claim_customer(), create_customer(), deal_customer(), _enrich_user_names(), _ensure_customer_in_scope() (+22 more)
|
||||
|
||||
### Community 7 - "Community 7"
|
||||
Cohesion: 0.04
|
||||
Nodes (211): clue_assign(), clue_check_convert(), clue_check_duplicate(), clue_convert(), clue_create(), clue_delete(), clue_detail(), clue_export() (+203 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (96): clue_check_convert(), clue_check_duplicate(), clue_detail(), clue_export(), clue_follow_statistics(), clue_import(), clue_list(), clue_mine() (+88 more)
|
||||
|
||||
### Community 8 - "Community 8"
|
||||
Cohesion: 0.11
|
||||
Nodes (48): assert_quote_editable_for_update(), _build_quote_filters(), calculate_quote_amount(), create_new_version(), create_quote(), _decimal_value(), _enrich_contact_fields(), _enrich_supplier_name() (+40 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (50): register_quote_routes(), accept_quote(), assert_quote_editable_for_update(), calculate_quote_amount(), create_new_version(), create_quote(), _decimal_value(), _enrich_contact_fields() (+42 more)
|
||||
|
||||
### Community 11 - "Community 11"
|
||||
Cohesion: 0.10
|
||||
Nodes (55): cancel_apply(), create_apply(), create_disburse(), delete_applies(), delete_disburses(), get_apply(), get_disburse(), list_applies() (+47 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (33): PlVehicleUreaApply, PlVehicleUreaDisburse, 车辆尿素申请 pl_vehicle_urea_apply, 车辆尿素发放登记 pl_vehicle_urea_disburse, VehicleUreaApplyRead, VehicleUreaDisburseBoardItem, apply_to_read(), _assert_vehicle_exists() (+25 more)
|
||||
|
||||
### Community 12 - "Community 12"
|
||||
Cohesion: 0.05
|
||||
Nodes (72): customer_create(), customer_update(), customer_name_exists(), BaseModel, AttachmentUploadResponse, ChangePasswordRequest, Config, LoginRequest (+64 more)
|
||||
Nodes (68): contact_add(), contact_delete(), contact_update(), customer_delete(), BaseModel, AttachmentUploadResponse, ChangePasswordRequest, Config (+60 more)
|
||||
|
||||
### Community 13 - "Community 13"
|
||||
Cohesion: 0.10
|
||||
Nodes (39): bx_health(), 报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, approve_reimburse(), approved_by_me(), _build_details_data(), create_reimburse(), delete_reimburse() (+31 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (58): advance_issue_stats(), batch_offset(), export_advance_issues(), issue_advance(), list_advance_issues(), list_advance_offset_records(), list_pending_payments(), list_processed_payments() (+50 more)
|
||||
|
||||
### Community 14 - "Community 14"
|
||||
Cohesion: 0.30
|
||||
@@ -265,23 +267,23 @@ Nodes (12): PlCarrier, assert_carrier_eligible_for_transport(), carrier_agreemen
|
||||
|
||||
### Community 15 - "Community 15"
|
||||
Cohesion: 0.11
|
||||
Nodes (15): BxReimburseApply, BxReimburseApproval, BxReimburseDetail, BxReimburseInvoice, BxReimburseOffset, ReimburseApplyOut, ReimburseInvoiceBriefOut, Any (+7 more)
|
||||
Nodes (14): BxReimburseApply, BxReimburseApproval, BxReimburseDetail, BxReimburseOffset, 报销单勾选的发票附件(同一发票可勾选多个附件,各占一条)。, ReimburseInvoiceBriefOut, ReimburseInvoiceLinkIn, Any (+6 more)
|
||||
|
||||
### Community 16 - "Community 16"
|
||||
Cohesion: 0.09
|
||||
Nodes (60): cancel_apply(), create_apply(), create_record(), delete_applies(), delete_records(), get_apply(), get_record(), list_applies() (+52 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (37): PlVehicleRechargeApply, PlVehicleRechargeRecord, 车辆ETC/加油充值申请 pl_vehicle_recharge_apply, 车辆ETC/加油充值发放登记 pl_vehicle_recharge_record, 发放登记页:申请单 + 关联发放信息(左连接), VehicleRechargeDisburseBoardItem, VehicleRechargeRecordCreate, VehicleRechargeRecordRead (+29 more)
|
||||
|
||||
### Community 18 - "Community 18"
|
||||
Cohesion: 0.11
|
||||
Nodes (39): advance_pending_approval_stats(), advance_status_counts(), approve_advance(), approved_by_me(), create_advance(), delete_advance(), _fill_offset_amounts(), get_advance() (+31 more)
|
||||
|
||||
### Community 19 - "Community 19"
|
||||
Cohesion: 0.12
|
||||
Nodes (41): register_contract_routes(), batch_assign_owner(), batch_submit_contract_approval(), contract_row_to_dict(), download_contract_pdf(), _ensure_contract_in_scope(), export_contracts(), finish_contract() (+33 more)
|
||||
Cohesion: 0.34
|
||||
Nodes (30): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, MenuCreateBody (+22 more)
|
||||
|
||||
### Community 21 - "Community 21"
|
||||
Cohesion: 0.15
|
||||
Nodes (34): _assert_brand_deletable(), barcode_exists(), category_code_exists(), create_category(), create_oss(), create_product(), generate_auto_product_no(), generate_barcode() (+26 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (58): _alias_row_to_dict(), _assert_brand_deletable(), barcode_exists(), _brand_row_to_dict(), _build_category_tree(), category_code_exists(), _category_row_to_dict(), _collect_category_with_ancestors() (+50 more)
|
||||
|
||||
### Community 22 - "Community 22"
|
||||
Cohesion: 0.08
|
||||
@@ -292,40 +294,40 @@ Cohesion: 0.15
|
||||
Nodes (6): convert_heic_to_jpeg(), process_image_content(), QiniuStorage, 将 HEIC/HEIF 格式转换为 JPEG 格式, 处理图片内容,如果是 HEIC 格式则转换为 JPEG, BytesIO
|
||||
|
||||
### Community 24 - "Community 24"
|
||||
Cohesion: 0.17
|
||||
Nodes (31): _apply_plan_product_update(), _apply_plan_update(), AutoGenerateMonthlyResult, _base_query(), create_plan(), delete_plan(), _generate_plan_no(), get_plan() (+23 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (44): _apply_plan_product_update(), _apply_plan_update(), AutoGenerateMonthlyResult, _base_query(), create_plan(), delete_plan(), _generate_plan_no(), get_plan() (+36 more)
|
||||
|
||||
### Community 25 - "Community 25"
|
||||
Cohesion: 0.12
|
||||
Nodes (28): PlInventory, PlInventoryTransaction, 库存流水表 pl_inventory_transaction, load_brand_qtys_by_plan_product_ids(), persist_plan_product_brand_qtys(), Any, Decimal, Session (+20 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (28): generate_uuid(), PlInventoryTransaction, 库存流水表 pl_inventory_transaction, load_brand_qtys_by_plan_product_ids(), persist_plan_product_brand_qtys(), Any, Decimal, Session (+20 more)
|
||||
|
||||
### Community 26 - "Community 26"
|
||||
Cohesion: 0.09
|
||||
Nodes (58): day_detail(), delete_assignment(), _enrich_assign_names(), month_summary(), Session, 指定用户时补全 personName(用 nick_name)。, save_day(), set_link() (+50 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (70): day_detail(), delete_assignment(), duty_user_options(), _enrich_assign_names(), month_summary(), Session, 指定用户时补全 personName(用 nick_name)。, 值班可安排人员:仅「值班人员」角色下的启用用户。 (+62 more)
|
||||
|
||||
### Community 27 - "Community 27"
|
||||
Cohesion: 0.10
|
||||
Nodes (33): CRM 报价单 API 路由 — 挂接到 crm.router, total_pages(), QuoteApproverSettingSaveBody, QuoteAcceptBody, QuoteApprovalApproveBody, QuoteApprovalListBody, QuoteApprovalRefreshNamesBody, QuoteApprovalWithdrawBody (+25 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (32): CRM 报价单 API 路由 — 挂接到 crm.router, QuoteApproverSettingSaveBody, QuoteAcceptBody, QuoteApprovalApproveBody, QuoteApprovalListBody, QuoteApprovalRefreshNamesBody, QuoteApprovalWithdrawBody, QuoteCreateBody (+24 more)
|
||||
|
||||
### Community 28 - "Community 28"
|
||||
Cohesion: 0.10
|
||||
Nodes (59): PlFreightSettlement, PlFreightSettlementApproval, PlFreightSettlementTransport, 运费结算表 pl_freight_settlement, 运费结算审批 pl_freight_settlement_approval, 结算单-运输关联表 pl_freight_settlement_transport, _advance_after_approval(), _approval_to_dict() (+51 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (94): approve_settlement_legacy(), cancel_settlement(), create_settlement(), delete_settlement(), disburse_settlement(), _generate_settlement_no(), get_settlement(), get_settlement_approval_flow() (+86 more)
|
||||
|
||||
### Community 29 - "Community 29"
|
||||
Cohesion: 0.12
|
||||
Nodes (46): _apply_contract_entity_fields(), _build_contract_filters(), _build_contract_name_from_parties(), _build_customer_address(), _calc_amount_with_tax(), contract_no_exists(), _contract_period_key(), create_contract() (+38 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (96): register_contract_routes(), _apply_contract_entity_fields(), batch_assign_owner(), batch_submit_contract_approval(), _build_contract_filters(), _build_contract_name_from_parties(), _build_customer_address(), _calc_amount_with_tax() (+88 more)
|
||||
|
||||
### Community 30 - "Community 30"
|
||||
Cohesion: 0.16
|
||||
Nodes (26): clear_target_categories(), compute_level(), count_target_rows(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_runtime_settings() (+18 more)
|
||||
|
||||
### Community 33 - "Community 33"
|
||||
Cohesion: 0.16
|
||||
Nodes (33): CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), _change_row_to_dict(), create_contract_change(), _enrich_change_rows(), execute_change(), export_contract_changes(), export_contract_templates() (+25 more)
|
||||
Cohesion: 0.18
|
||||
Nodes (25): CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), _change_row_to_dict(), create_contract_change(), execute_change(), export_contract_changes(), _get_change_row(), get_contract_change_detail() (+17 more)
|
||||
|
||||
### Community 34 - "Community 34"
|
||||
Cohesion: 0.13
|
||||
Nodes (23): ProcessDefCreateBody, ProcessDefUpdateBody, PublishVersionBody, 审批意见:前端传 commentText,兼容 comment。, StartInstanceBody, TaskActionBody, 流程实例 wf_process_instance, WfNode (+15 more)
|
||||
Cohesion: 0.26
|
||||
Nodes (6): start_instance(), StartInstanceBody, WfNode, Any, Session, WorkflowEngine
|
||||
|
||||
### Community 35 - "Community 35"
|
||||
Cohesion: 0.18
|
||||
@@ -333,67 +335,67 @@ Nodes (36): clear_portal_workflow(), _dec(), derive_source_url(), fetch_portal_a
|
||||
|
||||
### Community 36 - "Community 36"
|
||||
Cohesion: 0.15
|
||||
Nodes (27): change_password(), create_user(), get_user(), get_user_with_relations(), _hash_password(), list_post_ids_for_user(), list_user_ids_bound_to_post(), list_users() (+19 more)
|
||||
Nodes (27): 验证密码(哈希非 bcrypt 或损坏时返回 False,避免抛错), verify_password(), change_password(), create_user(), get_user(), get_user_with_relations(), _hash_password(), list_post_ids_for_user() (+19 more)
|
||||
|
||||
### Community 37 - "Community 37"
|
||||
Cohesion: 0.20
|
||||
Nodes (24): count_source_rows(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_runtime_settings(), load_settings_env(), load_user_mapping() (+16 more)
|
||||
|
||||
### Community 38 - "Community 38"
|
||||
Cohesion: 0.20
|
||||
Nodes (13): create_expense_item(), delete_expense_item(), get_expense_item(), get_expense_item_tree(), Session, update_expense_item(), BxExpenseItem, _coerce_id() (+5 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (14): create_expense_item(), delete_expense_item(), get_expense_item(), get_expense_item_tree(), Session, update_expense_item(), get_bx_current_user(), BxExpenseItem (+6 more)
|
||||
|
||||
### Community 39 - "Community 39"
|
||||
Cohesion: 0.22
|
||||
Nodes (28): assign_clues(), check_convert(), check_duplicate_clue(), convert_clue(), create_clue(), _enrich_user_names(), _ensure_clue_in_scope(), get_clue() (+20 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (42): clue_follow_detail(), assign_clues(), check_convert(), check_duplicate_clue(), convert_clue(), create_clue(), _enrich_user_names(), _ensure_clue_in_scope() (+34 more)
|
||||
|
||||
### Community 42 - "Community 42"
|
||||
Cohesion: 0.19
|
||||
Nodes (32): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_oss_id_to_url(), load_runtime_settings(), load_settings_env() (+24 more)
|
||||
|
||||
### Community 43 - "Community 43"
|
||||
Cohesion: 0.09
|
||||
Nodes (34): create_invoice(), delete_invoice(), get_mine_wallet_summary(), list_invoice_ledgers(), list_invoice_wallets(), list_invoices(), Request, Session (+26 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (23): bx_health(), 报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, create_invoice(), delete_invoice(), get_mine_wallet_summary(), list_invoice_ledgers(), list_invoice_wallets() (+15 more)
|
||||
|
||||
### Community 44 - "Community 44"
|
||||
Cohesion: 0.18
|
||||
Nodes (31): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), legacy_parent_id(), load_oss_id_to_url(), load_runtime_settings() (+23 more)
|
||||
Nodes (30): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), legacy_parent_id(), load_oss_id_to_url(), load_runtime_settings() (+22 more)
|
||||
|
||||
### Community 45 - "Community 45"
|
||||
Cohesion: 0.08
|
||||
Nodes (71): get_plan_arrange_info(), 获取计划已安排运输后的司机链接与地磅出入库关联(供查看弹窗复制简述/二维码)。, _apply_plan_logistics_from_payload(), _apply_transport_arrange_fields(), arrange_transport(), _assert_vehicle_carrier_eligible(), _build_arrange_result(), _build_driver_url() (+63 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (70): _build_driver_url(), get_plan_arrange_info(), 获取计划已安排运输后的司机链接与地磅出入库关联(供查看弹窗复制简述/二维码)。, _apply_plan_logistics_from_payload(), _apply_transport_arrange_fields(), arrange_transport(), _assert_vehicle_carrier_eligible(), _build_arrange_result() (+62 more)
|
||||
|
||||
### Community 46 - "Community 46"
|
||||
Cohesion: 0.19
|
||||
Nodes (28): apply_biz_backfill(), BackfillRule, BizRef, build_biz_index(), count_target_rows(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows() (+20 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (32): Settings, BaseSettings, apply_biz_backfill(), BackfillRule, BizRef, build_biz_index(), count_target_rows(), derive_source_url() (+24 more)
|
||||
|
||||
### Community 48 - "Community 48"
|
||||
Cohesion: 0.30
|
||||
Nodes (10): get_last_month_range(), month_range(), date, Session, 地磅计划按月自动生成 — 迁移自 simple-dibang-xiaoshou/auto-create-plan/auto_create_monthly_pla, 按月自动生成采购计划。 - 默认仅在每月 1 日执行(force=True 时跳过该限制,供手动触发验收) - 遍历所有租户,按上月计划模板生, run_auto_generate_monthly_plans(), default_execution_status() (+2 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (22): cancel_apply(), create_apply(), create_disburse(), delete_applies(), delete_disburses(), get_apply(), get_disburse(), list_applies() (+14 more)
|
||||
|
||||
### Community 49 - "Community 49"
|
||||
Cohesion: 0.58
|
||||
Nodes (9): _apply_create_range(), _base_query(), get_clue_level_statistics(), get_clue_overview_statistics(), get_clue_owner_statistics(), get_clue_source_statistics(), get_clue_trend_statistics(), Any (+1 more)
|
||||
Cohesion: 0.49
|
||||
Nodes (10): clue_statistics_level(), _apply_create_range(), _base_query(), get_clue_level_statistics(), get_clue_overview_statistics(), get_clue_owner_statistics(), get_clue_source_statistics(), get_clue_trend_statistics() (+2 more)
|
||||
|
||||
### Community 50 - "Community 50"
|
||||
Cohesion: 0.12
|
||||
Nodes (15): category_add(), category_delete(), category_tree(), category_update(), product_delete(), 删除产品(支持单条 body.id 和批量 body.ids), CategoryDeleteBody, ProductAliasItem (+7 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (25): clue_assign(), clue_convert(), clue_create(), clue_delete(), clue_follow_create(), clue_follow_delete(), clue_follow_list(), clue_follow_update() (+17 more)
|
||||
|
||||
### Community 51 - "Community 51"
|
||||
Cohesion: 0.27
|
||||
Nodes (16): _cargo_stats(), get_dashboard_stats(), get_inbound_by_cargo(), get_inbound_by_partner_cargo(), get_outbound_by_cargo(), get_outbound_by_partner_cargo(), _partner_cargo_stats(), Session (+8 more)
|
||||
Cohesion: 0.25
|
||||
Nodes (17): _cargo_stats(), get_dashboard_stats(), get_inbound_by_cargo(), get_inbound_by_partner_cargo(), get_outbound_by_cargo(), get_outbound_by_partner_cargo(), _partner_cargo_stats(), Session (+9 more)
|
||||
|
||||
### Community 52 - "Community 52"
|
||||
Cohesion: 0.18
|
||||
Nodes (29): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_oss_id_to_url(), load_runtime_settings(), load_settings_env() (+21 more)
|
||||
|
||||
### Community 53 - "Community 53"
|
||||
Cohesion: 0.20
|
||||
Nodes (14): format_datetime(), get_current_time(), parse_datetime(), datetime, _create_by_name(), datetime_end_of_day(), fmt_date(), fmt_datetime() (+6 more)
|
||||
Cohesion: 0.14
|
||||
Nodes (24): PlTransportProductBrandQty, PlTransportProductFeedback, 运输单按产品回传 pl_transport_product_feedback, 运输单产品回传品牌数量 pl_transport_product_brand_qty, _dict_field(), format_brand_qty_summary(), load_transport_driver_product_feedbacks(), persist_io_item_brand_qtys() (+16 more)
|
||||
|
||||
### Community 54 - "Community 54"
|
||||
Cohesion: 0.26
|
||||
Nodes (23): _get_by_plan(), get_inbound(), get_inbound_by_plan(), _get_order(), get_outbound(), get_outbound_by_plan(), inbound_site_url(), list_inbound() (+15 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (28): _get_by_plan(), get_inbound(), get_inbound_by_plan(), _get_order(), get_outbound(), get_outbound_by_plan(), inbound_site_url(), list_inbound() (+20 more)
|
||||
|
||||
### Community 58 - "Community 58"
|
||||
Cohesion: 0.28
|
||||
@@ -404,32 +406,32 @@ Cohesion: 0.20
|
||||
Nodes (28): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_oss_id_to_url(), load_runtime_settings(), load_settings_env() (+20 more)
|
||||
|
||||
### Community 60 - "Community 60"
|
||||
Cohesion: 0.10
|
||||
Nodes (19): 分页查询供方列表 — Java: CrmSupplierInfoController.list, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方详情 — Java: CrmSupplierInfoController.getInfo, 新增供方 — Java: CrmSupplierInfoController.add, 修改供方 — Java: CrmSupplierInfoController.edit, 删除供方 — Java: CrmSupplierInfoController.remove, supplier_info_add(), supplier_info_delete() (+11 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (16): 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方详情 — Java: CrmSupplierInfoController.getInfo, 新增供方 — Java: CrmSupplierInfoController.add, 修改供方 — Java: CrmSupplierInfoController.edit, 删除供方 — Java: CrmSupplierInfoController.remove, supplier_info_add(), supplier_info_delete(), supplier_info_detail() (+8 more)
|
||||
|
||||
### Community 61 - "Community 61"
|
||||
Cohesion: 0.10
|
||||
Nodes (48): _generate_notify_message(), PlPlan, PlTransportDbLink, 运输-地磅出入库关联 pl_transport_db_link, parse_date_str(), _apply_plan_quantity_delta(), _create_db_inventory(), _create_db_plan() (+40 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (42): PlTransportDbLink, 运输-地磅出入库关联 pl_transport_db_link, _apply_plan_quantity_delta(), _create_db_inventory(), _create_db_plan(), DibangInventoryLinkResult, find_monthly_db_plan(), _generate_batch_no() (+34 more)
|
||||
|
||||
### Community 62 - "Community 62"
|
||||
Cohesion: 0.19
|
||||
Nodes (26): _apply_weighing_product_update(), _apply_weighing_update(), _base_query(), create_weighing(), delete_weighing(), _get_weighing(), get_weighing_related(), list_weighing() (+18 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (27): _apply_weighing_product_update(), _apply_weighing_update(), _base_query(), create_weighing(), delete_weighing(), _get_weighing(), get_weighing_related(), list_weighing() (+19 more)
|
||||
|
||||
### Community 63 - "Community 63"
|
||||
Cohesion: 0.22
|
||||
Nodes (22): advance_issue_stats(), batch_offset(), export_advance_issues(), issue_advance(), list_advance_issues(), list_advance_offset_records(), list_pending_payments(), list_processed_payments() (+14 more)
|
||||
Cohesion: 0.24
|
||||
Nodes (13): BxInvoiceLedger, BxInvoiceWalletSummary, InvoiceLedgerService, Any, Decimal, Session, should_skip_release(), summarize_entries() (+5 more)
|
||||
|
||||
### Community 64 - "Community 64"
|
||||
Cohesion: 0.29
|
||||
Nodes (16): paste_recognize_commit(), PlVehicle, ConflictAction, PasteCommitBody, PasteCommitResult, PastePersonnelIn, PasteVehicleIn, 运输计划 - 三方粘贴识别提交 Schema (+8 more)
|
||||
Cohesion: 0.30
|
||||
Nodes (15): paste_recognize_commit(), ConflictAction, PasteCommitBody, PasteCommitResult, PastePersonnelIn, PasteVehicleIn, 运输计划 - 三方粘贴识别提交 Schema, commit_paste_recognize() (+7 more)
|
||||
|
||||
### Community 65 - "Community 65"
|
||||
Cohesion: 0.15
|
||||
Nodes (42): PlVehicleMaintenanceApply, PlVehicleMaintenanceProcess, 车辆维保申请 pl_vehicle_maintenance_apply, 车辆维保处理登记 pl_vehicle_maintenance_process, Decimal, VehicleMaintenanceApplyCreate, VehicleMaintenanceApplyRead, VehicleMaintenanceApplyReminder (+34 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (40): PlVehicleMaintenanceApply, PlVehicleMaintenanceProcess, 车辆维保申请 pl_vehicle_maintenance_apply, 车辆维保处理登记 pl_vehicle_maintenance_process, Decimal, VehicleMaintenanceApplyCreate, VehicleMaintenanceApplyRead, VehicleMaintenanceApplyUpdate (+32 more)
|
||||
|
||||
### Community 66 - "Community 66"
|
||||
Cohesion: 0.09
|
||||
Nodes (33): create_workflow(), delete_workflow(), get_workflow(), get_workflow_by_biz_type(), list_workflows(), Session, save_workflow_nodes(), update_workflow() (+25 more)
|
||||
Cohesion: 0.14
|
||||
Nodes (21): create_workflow(), delete_workflow(), get_workflow(), get_workflow_by_biz_type(), list_workflows(), Session, save_workflow_nodes(), update_workflow() (+13 more)
|
||||
|
||||
### Community 67 - "Community 67"
|
||||
Cohesion: 0.12
|
||||
@@ -440,28 +442,28 @@ Cohesion: 0.33
|
||||
Nodes (13): _build_tree(), _cascade_soft_delete(), _collect_with_ancestors(), create_dept(), get_dept(), list_depts(), list_depts_tree(), Any (+5 more)
|
||||
|
||||
### Community 69 - "Community 69"
|
||||
Cohesion: 0.11
|
||||
Nodes (33): _append_user_scope_conditions(), apply_data_scope(), assert_row_in_data_scope(), _collect_scope_ids(), _get_child_dept_ids(), get_user_dept_id(), Session, 数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3 (+25 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (25): _append_user_scope_conditions(), apply_data_scope(), assert_row_in_data_scope(), _collect_scope_ids(), _get_child_dept_ids(), get_user_dept_id(), Session, 数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3 (+17 more)
|
||||
|
||||
### Community 70 - "Community 70"
|
||||
Cohesion: 0.18
|
||||
Nodes (18): align_contract_no_to_sign_date(), generate_contract_no(), date, Java: generateContractNo — {供方编码}/X-JT{yyyyMMdd}{3位序号} 流水与撞号检测须含软删:uk_contr, 标准编号替换日期段,保留序号;非标准返回 None。, 将标准合同编号日期段对齐签订日;撞号则序号顺延(含软删查重)。 非标准编号原样返回。无签订日则原样返回。, replace_contract_no_date(), _mock_last_contract() (+10 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (16): align_contract_no_to_sign_date(), date, 标准编号替换日期段,保留序号;非标准返回 None。, 将标准合同编号日期段对齐签订日;撞号则序号顺延(含软删查重)。 非标准编号原样返回。无签订日则原样返回。, replace_contract_no_date(), _mock_last_contract(), 软删占用的编号仍占唯一索引,生成时须跳过(对齐 uk_contract_tenant_no)。, 取最大流水号须含软删,避免复用已软删的最大编号。 (+8 more)
|
||||
|
||||
### Community 71 - "Community 71"
|
||||
Cohesion: 0.11
|
||||
Nodes (31): PlCert, PlDocumentReminder, 证件到期提醒表 pl_document_reminder, CertRead, 运输计划 - 安排运输时车辆/人员/证件资源快照 Schema, SnapshotCertRead, SnapshotPersonnelRow, TransportResourceSnapshot (+23 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (26): PlCert, CertRead, parse_resource_snapshot(), Any, 运输计划 - 安排运输时车辆/人员/证件资源快照 Schema, 从 ORM 文本列或 dict 解析快照。, SnapshotCertRead, SnapshotPersonnelRow (+18 more)
|
||||
|
||||
### Community 72 - "Community 72"
|
||||
Cohesion: 0.24
|
||||
Nodes (20): register_quote_routes(), accept_quote(), _ensure_quote_in_scope(), generate_pdf(), generate_share(), get_quote(), get_quote_detail(), _get_quote_in_scope() (+12 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (23): bind_vehicle_driver(), create_driver(), create_personnel(), delete_carrier(), delete_driver(), delete_personnel(), delete_vehicle(), get_driver() (+15 more)
|
||||
|
||||
### Community 73 - "Community 73"
|
||||
Cohesion: 0.20
|
||||
Nodes (25): derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_oss_id_to_url(), load_runtime_settings(), load_settings_env(), load_user_mapping() (+17 more)
|
||||
|
||||
### Community 74 - "Community 74"
|
||||
Cohesion: 0.11
|
||||
Nodes (17): ApiCryptoMiddleware, _db_pool_keepalive_loop(), _error_json(), lifespan(), Exception, Request, 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin (+9 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (21): list_public_vehicle_plates(), Session, 地磅公共只读:免登车牌 options(现场填写页), 免登:按出入库/计划解析 tenant_no,返回 pl_vehicle 车牌(self + carrier)。, _resolve_tenant_no(), menu_badge_stats(), Session, Session (+13 more)
|
||||
|
||||
### Community 77 - "Community 77"
|
||||
Cohesion: 0.11
|
||||
@@ -484,36 +486,36 @@ Cohesion: 0.23
|
||||
Nodes (23): build_id_maps(), clip_text(), count_rows(), export_mapping(), fetch_rows(), legacy_id_to_str(), main(), map_id() (+15 more)
|
||||
|
||||
### Community 86 - "Community 86"
|
||||
Cohesion: 0.33
|
||||
Nodes (11): create_leave(), get_leave(), list_leaves(), Any, Session, _row_to_dict(), soft_delete_leave(), update_leave() (+3 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (15): create_leave(), get_leave(), list_leaves(), Any, Session, _row_to_dict(), soft_delete_leave(), update_leave() (+7 more)
|
||||
|
||||
### Community 87 - "Community 87"
|
||||
Cohesion: 0.11
|
||||
Nodes (32): approve_quote(), can_user_approve(), create_approval_records(), delete_pending_approvals(), get_quote_approval(), invalidate_all_approvals(), list_quote_approvals(), Any (+24 more)
|
||||
|
||||
### Community 88 - "Any"
|
||||
Cohesion: 0.29
|
||||
Nodes (14): create_clue_follow(), delete_clue_follow(), get_clue_follow(), get_follow_statistics(), list_clue_follows(), Any, Session, 更新线索跟进记录,必要时同步线索 next_time (+6 more)
|
||||
Cohesion: 0.34
|
||||
Nodes (18): batch_add_opportunity_products(), _calc_subtotal(), create_opportunity_product(), _decimal_value(), _fill_product_redundant(), _get_opportunity_for_product(), get_opportunity_product(), list_opportunity_products() (+10 more)
|
||||
|
||||
### Community 89 - "pl_ocr_service.py"
|
||||
Cohesion: 0.19
|
||||
Nodes (22): PlOcrUsageMonth, 阿里云 OCR 月度调用计数 pl_ocr_usage_month(按自然月全局统计), assert_quota_available(), _build_ocr_client(), compress_image_bytes(), current_usage_month(), _first_attachment_url(), get_or_create_usage_row() (+14 more)
|
||||
|
||||
### Community 91 - "pl_vehicle_recharge_service.py"
|
||||
Cohesion: 0.29
|
||||
Nodes (16): create_contact(), get_contact(), list_contacts_by_customer(), _parse_optional_date(), Any, date, Session, _row_to_dict() (+8 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (34): apply_crm_create_by_scope(), ensure_crm_create_by_row_in_scope(), ensure_crm_customer_linked_row_in_scope(), ensure_crm_owner_row_in_scope(), Session, CRM 数据权限辅助(负责人 owner_user_id + 标准 create_by/create_dept_id)。, 客户子表(开票信息等):先校验关联客户 owner scope,否则校验 create_by。, _clear_default_for_customer() (+26 more)
|
||||
|
||||
### Community 92 - "Community 92"
|
||||
Cohesion: 0.18
|
||||
Nodes (22): _assert_users_exist(), get_setting(), Any, Session, _row_to_dict(), save_setting(), _assert_users_exist(), get_setting() (+14 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (21): _assert_users_exist(), get_setting(), Any, Session, _row_to_dict(), save_setting(), _assert_users_exist(), get_setting() (+13 more)
|
||||
|
||||
### Community 93 - "_invoice_info_by_customer_impl"
|
||||
Cohesion: 0.33
|
||||
Nodes (8): allocate_next_biz_no(), _format_biz_no(), _prefix_for(), datetime, Session, 业务协议号自动生成:XBCC / JZCC + YYYYMMDD + 6 位序号, 原子分配下一个业务协议号。 须在 create 事务内调用;使用 MySQL LAST_INSERT_ID 保证并发安全。, BizNoKind
|
||||
Cohesion: 0.19
|
||||
Nodes (11): get_current_time(), parse_datetime(), datetime, allocate_next_biz_no(), _format_biz_no(), _prefix_for(), datetime, Session (+3 more)
|
||||
|
||||
### Community 94 - "response.py"
|
||||
Cohesion: 0.19
|
||||
Nodes (15): get_user_menu_codes(), Session, 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。, _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), _map_role_name_to_web(), Session (+7 more)
|
||||
Cohesion: 0.18
|
||||
Nodes (17): get_user_menu_codes(), Session, 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。, _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), _map_role_name_to_web(), Session (+9 more)
|
||||
|
||||
### Community 95 - "Community 95"
|
||||
Cohesion: 0.35
|
||||
@@ -524,12 +526,12 @@ Cohesion: 0.21
|
||||
Nodes (22): clear_target_products(), count_target_rows(), _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_runtime_settings() (+14 more)
|
||||
|
||||
### Community 100 - "price_letter_detail"
|
||||
Cohesion: 0.27
|
||||
Nodes (15): Settings, BaseSettings, apply_renumber(), build_mapping(), fetch_products(), format_new_product_no(), load_settings_env(), main() (+7 more)
|
||||
Cohesion: 0.31
|
||||
Nodes (13): apply_renumber(), build_mapping(), fetch_products(), format_new_product_no(), load_settings_env(), main(), product_id_sort_key(), Engine (+5 more)
|
||||
|
||||
### Community 101 - ".to_tenant_user_dict"
|
||||
Cohesion: 0.18
|
||||
Nodes (17): get_oper_log_meta(), OperLogMeta, 请求级操作日志元数据(ContextVar), 供异步落库线程使用,避免 ContextVar 跨线程丢失。, set_oper_log_meta(), snapshot_oper_log_meta(), _format_summary(), oper_log() (+9 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (18): _build_quote_filters(), _fill_contract_linked_count(), list_quotes(), _parse_optional_datetime(), _period_key(), Any, datetime, Query (+10 more)
|
||||
|
||||
### Community 102 - "dept.py"
|
||||
Cohesion: 0.25
|
||||
@@ -544,16 +546,16 @@ Cohesion: 0.15
|
||||
Nodes (9): 微信消息通知服务 支持微信小程序模板消息推送 使用方式: from app.core.wechat_message import WechatMes, 发送订单状态通知 Args: openid: 用户openid order_n, 发送支付成功通知 Args: openid: 用户openid order_n, 发送配送通知 Args: openid: 配送员openid task_no:, 发送配送时效预警 Args: openid: 配送员openid task_n, 发送退款结果通知 Args: openid: 用户openid order_n, 发送催单通知给配送员 Args: deliver_openid: 配送员openid, 发送模板消息 Args: openid: 用户openid template_ (+1 more)
|
||||
|
||||
### Community 106 - "Community 106"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): get_db_current_user_optional(), Session, 有 Bearer 且为 admin/super_admin 时返回上下文,否则 None(供三方 H5 无登录调用)。
|
||||
Cohesion: 0.12
|
||||
Nodes (15): pool_rule_add(), pool_rule_delete(), pool_rule_detail(), pool_rule_execute(), pool_rule_list(), pool_rule_update(), pool_rule_update_status(), PoolRuleAddBody (+7 more)
|
||||
|
||||
### Community 107 - "apply_pl_scope"
|
||||
Cohesion: 0.15
|
||||
Nodes (32): create_instance(), create_process_def(), create_task(), get_all_tasks_for_business(), get_instance(), get_latest_version(), get_nodes_by_version(), get_pending_tasks_by_node() (+24 more)
|
||||
|
||||
### Community 109 - "Community 109"
|
||||
Cohesion: 0.17
|
||||
Nodes (21): bind_vehicle_driver(), create_vehicle(), get_vehicle(), list_vehicles(), update_vehicle(), _vehicle_to_detail(), _vehicle_to_read(), generate_uuid() (+13 more)
|
||||
Cohesion: 0.46
|
||||
Nodes (7): VehiclePersonnelRow, load_vehicle_personnel_rows(), Session, 运输计划 - 人员 upsert 与车辆-人员关联保存, 按 personnelId → phone → name 弱匹配 upsert,返回 personnel_id。, save_vehicle_personnel(), upsert_personnel()
|
||||
|
||||
### Community 110 - "Base"
|
||||
Cohesion: 0.31
|
||||
@@ -564,32 +566,32 @@ Cohesion: 0.28
|
||||
Nodes (14): _assert_editable(), _build_public_page(), _format_file_size(), _get_inventory_by_token(), get_public_inventory(), _parse_feedback_images(), Session, UploadFile (+6 more)
|
||||
|
||||
### Community 112 - "SysApiRequestLog"
|
||||
Cohesion: 0.16
|
||||
Nodes (15): ApiRequestLogCRUD, Session, list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), 数据模型(与 docs/sql/shanxia2.0.sql 全库导出基线对齐的核心系统表) (+7 more)
|
||||
Cohesion: 0.47
|
||||
Nodes (5): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict()
|
||||
|
||||
### Community 113 - "quote_share_log.py"
|
||||
Cohesion: 0.26
|
||||
Nodes (12): list_share_logs(), _parse_user_agent(), Any, Session, CRM 报价单分享访问日志 CRUD — 对照 CrmQuoteShareLogServiceImpl.java, Java: statisticsVisits, 简易 User-Agent 解析(替代 Hutool UserAgentUtil), Java: queryLogsByQuoteId (+4 more)
|
||||
|
||||
### Community 114 - "db_models.py"
|
||||
Cohesion: 0.16
|
||||
Nodes (17): list_public_vehicle_plates(), Session, 地磅公共只读:免登车牌 options(现场填写页), 免登:按出入库/计划解析 tenant_no,返回 pl_vehicle 车牌(self + carrier)。, _resolve_tenant_no(), DbSequence, 地磅(db)模块数据模型 — 对齐 docs/sql/db_tables.sql, _allocate_inbound_outbound_id() (+9 more)
|
||||
Cohesion: 0.24
|
||||
Nodes (12): DbSequence, 地磅(db)模块数据模型 — 对齐 docs/sql/db_tables.sql, _allocate_inbound_outbound_id(), _ensure_sequence_row(), max_numeric_inbound_outbound_id(), next_inbound_outbound_id(), Session, 出入库单 id 生成 — 租户内纯数字自增,并发安全。 (+4 more)
|
||||
|
||||
### Community 115 - "site.py"
|
||||
Cohesion: 0.09
|
||||
Nodes (55): approve_carrier(), create_carrier(), create_driver(), create_personnel(), delete_carrier(), delete_driver(), delete_personnel(), delete_vehicle() (+47 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (45): approve_carrier(), create_carrier(), create_vehicle(), get_carrier(), get_vehicle(), list_carriers(), list_drivers(), list_vehicles() (+37 more)
|
||||
|
||||
### Community 116 - "Community 116"
|
||||
Cohesion: 0.18
|
||||
Nodes (27): calculate_subtotal(), _decimal_value(), delete_products_by_quote_id(), _ensure_quote_parent_scope(), _get_field(), get_quote_product(), insert_quote_product(), list_products_by_quote_ids() (+19 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (28): batch_insert_quote_products(), calculate_subtotal(), _decimal_value(), delete_products_by_quote_id(), _ensure_quote_parent_scope(), _get_field(), get_quote_product(), insert_quote_product() (+20 more)
|
||||
|
||||
### Community 118 - "Community 118"
|
||||
Cohesion: 0.20
|
||||
Nodes (24): batch_insert_contract_products(), calculate_subtotal(), _decimal_value(), delete_price_tiers_by_contract_id(), delete_products_by_contract_id(), _get_field(), insert_contract_product(), _letter_oss_ids_to_json() (+16 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (29): batch_insert_contract_products(), calculate_subtotal(), _decimal_value(), delete_price_tiers_by_contract_id(), delete_products_by_contract_id(), _get_field(), insert_contract_product(), _letter_oss_ids_to_json() (+21 more)
|
||||
|
||||
### Community 119 - "Community 119"
|
||||
Cohesion: 0.16
|
||||
Nodes (29): CertRow, VehiclePersonnelRow, _cert_row_complete(), collect_required_cert_errors(), _find_cert_for_required(), get_required_personnel_cert_names(), match_required_cert_name(), _missing_field_labels() (+21 more)
|
||||
Nodes (28): CertRow, _cert_row_complete(), collect_required_cert_errors(), _find_cert_for_required(), get_required_personnel_cert_names(), match_required_cert_name(), _missing_field_labels(), Session (+20 more)
|
||||
|
||||
### Community 122 - "Community 122"
|
||||
Cohesion: 0.39
|
||||
@@ -604,8 +606,8 @@ Cohesion: 0.36
|
||||
Nodes (13): _build_tree(), _cascade_soft_delete(), create_menu(), get_menu(), list_menus(), list_menus_tree(), menu_name_exists(), Any (+5 more)
|
||||
|
||||
### Community 127 - "Community 127"
|
||||
Cohesion: 0.11
|
||||
Nodes (37): approve_settlement_legacy(), cancel_settlement(), create_settlement(), delete_settlement(), disburse_settlement(), _generate_settlement_no(), get_settlement(), get_settlement_approval_flow() (+29 more)
|
||||
Cohesion: 0.37
|
||||
Nodes (14): create_opportunity_follow(), _ensure_parent_opportunity(), list_follows_by_opportunity(), list_opportunity_follows(), _parse_optional_datetime(), Any, datetime, Session (+6 more)
|
||||
|
||||
### Community 128 - "plan.py"
|
||||
Cohesion: 0.39
|
||||
@@ -616,24 +618,24 @@ Cohesion: 0.12
|
||||
Nodes (24): _auto_contract_name_body(), generate_contract_name(), 按面板单位全称精确匹配交易主体/客户主数据,取 shortName;对不上则用全称。, 前端预览误用单位全称时,名称片段会等于面板/客户/开票全称。, 按面板供方(partyA)-需方(partyB)生成:{供方简称}-{需方简称}({合同编号})。 - 名称为空:按主数据简称自动生成 - 名, resolve_party_short_name(), _strip_contract_name_no_suffix(), _user_contract_name_uses_party_full_name() (+16 more)
|
||||
|
||||
### Community 130 - "datetime_parse.py"
|
||||
Cohesion: 0.15
|
||||
Nodes (24): ApiRequestLogMiddleware, _claims_from_auth(), _format_body_bytes(), _persist_log(), Any, Request, 统一记录 API 请求/响应出入参的中间件, _redact_obj() (+16 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (56): operlog_detail(), operlog_list(), Session, 操作日志分页列表(基于 API 请求日志适配 RuoYi OperLog 结构), _user_info(), _claims_from_auth(), _format_body_bytes(), _persist_log() (+48 more)
|
||||
|
||||
### Community 131 - "LocalStorage"
|
||||
Cohesion: 0.60
|
||||
Nodes (3): assert_contract_editable_for_update(), test_assert_allows_editable(), test_assert_rejects_non_editable()
|
||||
Cohesion: 0.18
|
||||
Nodes (22): cancel_apply(), create_apply(), create_process(), delete_applies(), delete_processes(), get_apply(), get_process(), list_applies() (+14 more)
|
||||
|
||||
### Community 132 - "crm_supplier_hazard.py"
|
||||
Cohesion: 0.18
|
||||
Nodes (12): invoice_info_add(), invoice_info_by_customer(), _invoice_info_by_customer_impl(), invoice_info_delete(), invoice_info_list(), invoice_info_set_default(), 按客户ID查询开票信息(与 by-customer 等价), InvoiceInfoByCustomerBody (+4 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (14): invoice_info_add(), invoice_info_by_customer(), _invoice_info_by_customer_impl(), invoice_info_delete(), invoice_info_list(), invoice_info_set_default(), invoice_info_update(), 按客户ID查询开票信息(与 by-customer 等价) (+6 more)
|
||||
|
||||
### Community 134 - "Community 134"
|
||||
Cohesion: 0.25
|
||||
Nodes (18): batch_generate_sample_codes(), batch_issue_sample_codes(), batch_revoke_sample_codes(), create_sample_code(), get_sample_code(), list_sample_codes(), _parse_issued_time(), Any (+10 more)
|
||||
|
||||
### Community 135 - "unsettled_plans_q_filter"
|
||||
Cohesion: 0.16
|
||||
Nodes (23): Session, recognize_cert(), RecognizeCertBody, cancel_apply(), create_apply(), create_process(), delete_applies(), delete_processes() (+15 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (23): cancel_apply(), create_apply(), create_record(), delete_applies(), delete_records(), get_apply(), get_record(), list_applies() (+15 more)
|
||||
|
||||
### Community 136 - "Community 136"
|
||||
Cohesion: 0.19
|
||||
@@ -652,56 +654,56 @@ Cohesion: 0.22
|
||||
Nodes (15): get_storage(), download_file_bytes(), file_stream(), get_access_url(), get_download_url(), get_preview_url(), normalize_storage_path(), 报销附件存储适配 — 复用门户 app.core.storage,对外保持 bx 协议。 (+7 more)
|
||||
|
||||
### Community 141 - "PlTransport"
|
||||
Cohesion: 0.19
|
||||
Nodes (23): approve_task(), _assert_wf_instance_in_scope(), _business_type_label(), create_process_def(), delete_process_def(), _enrich_task_list(), get_business_all_tasks(), _get_business_form_fields() (+15 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (27): approve_task(), _assert_wf_instance_in_scope(), _business_type_label(), create_process_def(), _enrich_task_list(), get_business_all_tasks(), _get_business_form_fields(), get_designer_data() (+19 more)
|
||||
|
||||
### Community 143 - "SysEthnic"
|
||||
Cohesion: 0.21
|
||||
Nodes (17): apply_crm_create_by_scope(), _apply_list_filters(), create_supplier_info(), list_all_supplier_info(), list_supplier_info(), Any, Session, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java (+9 more)
|
||||
Cohesion: 0.34
|
||||
Nodes (13): create_contact(), get_contact(), _parse_optional_date(), date, Session, set_primary_contact(), soft_delete_contact(), total_pages() (+5 more)
|
||||
|
||||
### Community 144 - "dict_data.py"
|
||||
Cohesion: 0.27
|
||||
Nodes (11): create_dict_data(), get_dict_data(), list_dict_data(), list_dict_data_options(), Any, Session, 字典数据 CRUD(sys_dict_data), 字典下拉选项:租户主数据,忽略数据范围(user_info 保留兼容调用方,不参与过滤)。 (+3 more)
|
||||
|
||||
### Community 145 - "resolve_crm_product"
|
||||
Cohesion: 0.17
|
||||
Nodes (11): price_letter_add(), price_letter_detail(), price_letter_list(), price_letter_update(), price_letter_void(), PriceLetterCreateBody, PriceLetterDetailBody, PriceLetterListBody (+3 more)
|
||||
Cohesion: 0.51
|
||||
Nodes (10): apply_site_feedback(), OrderItem, _header(), _item(), test_apply_site_feedback_does_not_reset_first_submitted_at(), test_apply_site_feedback_keeps_in_progress_when_requested(), test_apply_site_feedback_rejects_already_voided(), test_apply_site_feedback_rejects_invalid_status() (+2 more)
|
||||
|
||||
### Community 146 - "__init__.py"
|
||||
Cohesion: 0.22
|
||||
Nodes (11): menu_badge_stats(), Session, RecognizeCertResult, _auto_fill_create_dept_id(), get_db(), ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID, get_db_current_user(), 地磅模块认证适配:门户 JWT 用户 → db 业务上下文。 (+3 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (12): 流程实例 wf_process_instance, WfProcessInstance, _dispatch_local(), Any, 工作流回调服务 —— 流程状态变更时通知业务系统, 注册本地回调函数。当 callback_url 以 path 开头时直接调用 fn。, 尝试本地直调。返回 True 表示已处理,False 表示无匹配的本地回调。, 流程实例状态变更后,向业务系统发送回调通知。 优先级: 1. 如果 callback_url 是内部路径(以 / 开头),优先尝试本地直调 (+4 more)
|
||||
|
||||
### Community 147 - "Community 147"
|
||||
Cohesion: 0.37
|
||||
Nodes (17): check_env(), check_python(), create_venv(), init_env(), install_dependencies(), log_error(), log_info(), log_success() (+9 more)
|
||||
|
||||
### Community 150 - "apply_site_feedback"
|
||||
Cohesion: 0.29
|
||||
Nodes (9): ProductSnapshot, Session, 地磅模块 — CRM 产品解析与快照写入。, 校验 CRM 产品并返回名称/规格快照。新建单据 product_id 必填。 require_on_shelf=False 用于运输计划联动地磅等历, resolve_crm_product(), _product(), resolve_crm_product:运输联动场景允许已下架产品。, test_resolve_allows_off_shelf_when_not_required() (+1 more)
|
||||
Cohesion: 0.27
|
||||
Nodes (10): apply_product_snapshot_to_plan(), ProductSnapshot, Session, 地磅模块 — CRM 产品解析与快照写入。, 校验 CRM 产品并返回名称/规格快照。新建单据 product_id 必填。 require_on_shelf=False 用于运输计划联动地磅等历, resolve_crm_product(), _product(), resolve_crm_product:运输联动场景允许已下架产品。 (+2 more)
|
||||
|
||||
### Community 152 - "response.py"
|
||||
Cohesion: 0.29
|
||||
Nodes (16): ensure_crm_customer_linked_row_in_scope(), ensure_crm_owner_row_in_scope(), Session, CRM 数据权限辅助(负责人 owner_user_id + 标准 create_by/create_dept_id)。, 客户子表(开票信息等):先校验关联客户 owner scope,否则校验 create_by。, _clear_default_for_customer(), create_invoice_info(), get_invoice_info() (+8 more)
|
||||
Cohesion: 0.23
|
||||
Nodes (10): check_customer_protect_time(), pool_recovery_job(), Session, 每天凌晨1点:检查保护期到期客户,跟进次数不足则退回公海, 每天早上9点:保护期到期提醒(3天内到期且跟进不足), _recycle_to_pool(), remind_customer_recycle(), warn_customer_recycle() (+2 more)
|
||||
|
||||
### Community 154 - "response.py"
|
||||
Cohesion: 0.24
|
||||
Nodes (5): MinIOStorage, Any, 从 MINIO_BASE_URL 解析公网 endpoint;未配置或与内网相同时复用 self.client。, MinIO 预签名下载 URL,携带原始文件名。, MinIO 预签名内联预览 URL(图片新标签页 / PDF iframe 等)。 上传时 put_object 未写 content_typ
|
||||
|
||||
### Community 156 - "utils.py"
|
||||
Cohesion: 0.47
|
||||
Nodes (8): create_oss(), get_oss_by_id(), get_oss_by_url(), Session, 按主键 id 查询附件(兼容旧 CRM 雪花 oss_id 迁入后的记录), 将 fileUrl 或旧 CRM 数字 ossId 解析为 MinIO 相对路径。 门户新上传把相对路径写入业务字段;迁入合同附件仍存数字 ossId, resolve_storage_path(), SysOss
|
||||
Cohesion: 0.20
|
||||
Nodes (16): get_pool_record(), list_pool_records(), Any, Session, _row_to_dict(), total_pages(), create_oss(), get_oss_by_id() (+8 more)
|
||||
|
||||
### Community 159 - "customer_update"
|
||||
Cohesion: 0.11
|
||||
Nodes (33): filter_current_cycle_approvals(), 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, 审批进度仅展示当前轮次;完整历史由 get_approval_history 返回。, allocate_reimburse_title_seq(), format_reimburse_title(), generate_apply_code(), generate_title(), is_auto_reimburse_title() (+25 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (47): 报销模块认证适配:门户 JWT 用户 → bx 业务上下文。, 菜单 code 权限守卫(V0.3:通过 sys_user_role → sys_role_menu → sys_menu.perms), BxReimburseInvoice, BxWorkflowNode, 报销(bx)模块数据模型 — 对齐 docs/sql/20260606_bx_tables.sql, filter_current_cycle_approvals(), 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, 审批进度仅展示当前轮次;完整历史由 get_approval_history 返回。 (+39 more)
|
||||
|
||||
### Community 160 - "register_local_callback"
|
||||
Cohesion: 0.09
|
||||
Nodes (29): API 路由包 — 山峡化工生产一体化门户, create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), Session (+21 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (49): category_add(), category_delete(), category_tree(), product_add(), product_delete(), product_detail(), product_options(), product_update() (+41 more)
|
||||
|
||||
### Community 161 - "backfill_crm_contract_attachment_urls.py"
|
||||
Cohesion: 0.24
|
||||
Nodes (11): extract_minio_object_key(), join_relative_urls(), normalize_oss_storage_url(), MinIO 附件 URL 规范化(数据迁移共用)。 背景 ---- CRM / 地磅 / 报销与 shanxia2.0 共用同一 MinIO(bucket 默, 业务表 OSS ID 串 → 相对 URL 串(用于客户证照、跟进附件等)。, 去掉预签名 query(``?X-Amz-...``)。, 将绝对/相对 URL 规范为 MinIO object key(不含 bucket)。, 迁移 CRM ``sys_oss`` 行:``url`` + ``file_name`` → 门户相对路径。 (+3 more)
|
||||
Cohesion: 0.29
|
||||
Nodes (10): normalize_attachment_csv(), extract_minio_object_key(), join_relative_urls(), MinIO 附件 URL 规范化(数据迁移共用)。 背景 ---- CRM / 地磅 / 报销与 shanxia2.0 共用同一 MinIO(bucket 默, 业务表 OSS ID 串 → 相对 URL 串(用于客户证照、跟进附件等)。, 去掉预签名 query(``?X-Amz-...``)。, 将绝对/相对 URL 规范为 MinIO object key(不含 bucket)。, resolve_oss_id_csv() (+2 more)
|
||||
|
||||
### Community 162 - ".to_tenant_user_dict"
|
||||
Cohesion: 0.42
|
||||
@@ -713,27 +715,27 @@ Nodes (22): bind_biz(), delete_attachment(), download_file(), list_by_biz(), _pa
|
||||
|
||||
### Community 164 - "get_client_ip"
|
||||
Cohesion: 0.10
|
||||
Nodes (43): _avatar_url_field(), _build_user_info_payload(), _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/shanxia2.0.sql 基线), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。无 Token 或已失效时仍返回成功(幂等)。, 与 web-admin 静态路由 meta.roles(admin/super_admin)对齐的单元素数组。, 与 web-admin `userInfo` 字段约定一致。 (+35 more)
|
||||
Nodes (47): _avatar_url_field(), _build_user_info_payload(), change_current_user_password(), get_current_user_profile(), get_web_auth_menu_codes(), _jwt_user_payload(), logout(), public_quote_share() (+39 more)
|
||||
|
||||
### Community 170 - "test_quote_approver_setting.py"
|
||||
Cohesion: 0.22
|
||||
Nodes (3): BaseStorage, 带下载文件名的访问 URL;默认实现为普通访问地址。, 浏览器内联预览 URL;默认实现为普通访问地址。
|
||||
|
||||
### Community 171 - "minio_url.py"
|
||||
Cohesion: 0.11
|
||||
Nodes (31): get_pool_record(), list_pool_records(), Any, Session, _row_to_dict(), total_pages(), create_pool_rule(), delete_pool_rules() (+23 more)
|
||||
Cohesion: 0.31
|
||||
Nodes (14): create_pool_rule(), delete_pool_rules(), execute_pool_rules(), _execute_single_rule(), get_pool_rule(), list_pool_rules(), Any, Session (+6 more)
|
||||
|
||||
### Community 172 - "apply_pl_scope"
|
||||
Cohesion: 0.31
|
||||
Nodes (9): change_current_user_password(), get_current_user_profile(), get_web_auth_menu_codes(), public_quote_share(), Request, Session, 获取当前用户信息(与 sys_user 字段对应)。, 获取当前用户菜单权限标识(sys_menu.perms,经角色继承)。 (+1 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (15): _db_pool_keepalive_loop(), _error_json(), lifespan(), Exception, Request, 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin, 定期 ping MySQL,避免远程库/NAT 回收空闲 TCP 后首请求长时间卡住。 (+7 more)
|
||||
|
||||
### Community 173 - "resolve_create_time_bounds"
|
||||
Cohesion: 0.04
|
||||
Nodes (91): _build_page(), _get_by_token(), _models(), Session, 运输计划 · 入库/出库单现场免登录公共 API, SoftDeleteModel, BizAttachment, PlDriver (+83 more)
|
||||
Cohesion: 0.05
|
||||
Nodes (77): _build_page(), _get_by_token(), _make_handlers(), _models(), Session, 运输计划 · 入库/出库单现场免登录公共 API, SoftDeleteModel, BizAttachment (+69 more)
|
||||
|
||||
### Community 174 - "register_local_callback"
|
||||
Cohesion: 0.07
|
||||
Nodes (56): 返回 (作废, 归档)。现场链接实际走入库/出库单公共页。, _resolve_io_order_link_flags(), _build_public_page(), _build_site_product_read(), _format_file_size(), get_public_site(), _get_site_link_by_token(), _parse_feedback_images() (+48 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (60): 返回 (作废, 归档)。现场链接实际走入库/出库单公共页。, _resolve_io_order_link_flags(), _build_public_page(), _build_site_product_read(), _format_file_size(), get_public_site(), _get_site_link_by_token(), _parse_feedback_images() (+52 more)
|
||||
|
||||
### Community 179 - "test_pl_vehicle_personnel_photo_schema.py"
|
||||
Cohesion: 0.27
|
||||
@@ -741,27 +743,31 @@ Nodes (16): add_favorite(), count_active(), find_active(), find_soft_deleted(),
|
||||
|
||||
### Community 180 - "OSSStorage"
|
||||
Cohesion: 0.06
|
||||
Nodes (73): archive_plan(), _build_driver_url(), cancel_plan(), cancel_plan_wait_notice(), count_plans_by_contract(), create_from_contract(), create_plan(), delete_plan() (+65 more)
|
||||
Nodes (82): archive_plan(), cancel_plan(), cancel_plan_wait_notice(), count_plans_by_contract(), create_from_contract(), create_plan(), create_plan_full(), delete_plan() (+74 more)
|
||||
|
||||
### Community 181 - "allocate_next_biz_no"
|
||||
Cohesion: 0.28
|
||||
Nodes (11): assert_products_allowed_for_supplier(), enrich_products_with_hazard_flags(), get_supplier_hazard_flags(), product_allowed(), Any, Session, 批量回填明细行 isToxic/isExplosive(来自产品主数据,供前端切换主体剔除)。, test_dual_requires_both() (+3 more)
|
||||
Cohesion: 0.18
|
||||
Nodes (13): list_customer_options(), 客户下拉选项:租户内只读搜索,不做 owner 数据权限(供地磅/合同等主数据选用)。, list_products(), get_supplier_hazard_flags(), product_allowed(), 产品/客户列表 keyword:名称/编号/拼音首字母 OR 匹配。, test_list_customer_options_keyword_includes_name_and_pinyin(), test_list_customers_keyword_includes_name_and_pinyin() (+5 more)
|
||||
|
||||
### Community 182 - "statistics.py"
|
||||
Cohesion: 0.45
|
||||
Nodes (11): _customer_base_query(), get_follow_statistics(), get_industry_statistics(), get_level_statistics(), get_overview_statistics(), get_owner_statistics(), get_source_statistics(), get_trend_statistics() (+3 more)
|
||||
|
||||
### Community 183 - "resolve_create_time_bounds"
|
||||
Cohesion: 0.49
|
||||
Nodes (10): apply_pl_scope(), Session, build_menu_badge_counts(), count_document_reminder_expired_pending(), count_freight_approval_pending(), count_freight_disburse_pending(), _count_pending_applies(), count_plan_archive_pending() (+2 more)
|
||||
Cohesion: 0.67
|
||||
Nodes (3): parse_optional_plan_datetime(), datetime, 运输计划相关日期时间解析:前端 date-picker 仅传 YYYY-MM-DD。
|
||||
|
||||
### Community 184 - "excel_export.py"
|
||||
Cohesion: 0.27
|
||||
Nodes (8): CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _build_workbook(), DictLabelResolver, ExportColumn, Any, Excel 导出工具:集中处理字典 code → label(对齐 Java ExcelDictConvert / ExcelDictPreloadConver, 导出列定义,dict_type 非空时自动将字典 value 转为 label。, 导出单元格解析:按列配置做字典翻译或自定义格式化。
|
||||
Cohesion: 0.24
|
||||
Nodes (11): CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _build_workbook(), DictLabelResolver, export_rows_to_xlsx_response(), ExportColumn, Any, Excel 导出工具:集中处理字典 code → label(对齐 Java ExcelDictConvert / ExcelDictPreloadConver, CRM 列表导出统一入口:表头 + 行数据 + 字典 label 转换 + 文件流响应。 (+3 more)
|
||||
|
||||
### Community 188 - "get_client_ip"
|
||||
Cohesion: 0.24
|
||||
Nodes (12): get_last_month_range(), month_range(), date, Session, 地磅计划按月自动生成 — 迁移自 simple-dibang-xiaoshou/auto-create-plan/auto_create_monthly_pla, 按月自动生成采购计划。 - 默认仅在每月 1 日执行(force=True 时跳过该限制,供手动触发验收) - 遍历所有租户,按上月计划模板生, run_auto_generate_monthly_plans(), default_execution_status() (+4 more)
|
||||
|
||||
### Community 193 - "storage.py"
|
||||
Cohesion: 0.17
|
||||
Nodes (11): pool_customer_assign(), pool_customer_claim(), pool_customer_list(), pool_record_detail(), pool_record_list(), PoolAssignBody, PoolClaimBody, PoolCustomerListBody (+3 more)
|
||||
Cohesion: 0.04
|
||||
Nodes (83): category_update(), clue_import_template(), contact_by_customer(), customer_create(), customer_import_template(), customer_update(), opportunity_add(), opportunity_assign() (+75 more)
|
||||
|
||||
### Community 194 - "get_current_user_by_token"
|
||||
Cohesion: 0.40
|
||||
@@ -775,13 +781,13 @@ Nodes (3): Any, 供 get_tenant_no 等门户工具使用。, 与门户 JWT / appl
|
||||
Cohesion: 0.20
|
||||
Nodes (4): _guess_preview_content_type(), OSSStorage, 文件存储工具模块 支持多种存储方式: 1. 本地存储 (local) - 默认 2. 七牛云存储 (qiniu) - 推荐生产环境使用 3. 阿里云OSS (, 按对象键后缀推断内联预览 Content-Type(纠正上传时未写入 MIME 的情况)。
|
||||
|
||||
### Community 200 - "register_local_callback"
|
||||
Cohesion: 0.51
|
||||
Nodes (10): apply_site_feedback(), OrderItem, _header(), _item(), test_apply_site_feedback_does_not_reset_first_submitted_at(), test_apply_site_feedback_keeps_in_progress_when_requested(), test_apply_site_feedback_rejects_already_voided(), test_apply_site_feedback_rejects_invalid_status() (+2 more)
|
||||
### Community 199 - "price_letter_detail"
|
||||
Cohesion: 0.17
|
||||
Nodes (11): price_letter_add(), price_letter_detail(), price_letter_list(), price_letter_update(), price_letter_void(), PriceLetterCreateBody, PriceLetterDetailBody, PriceLetterListBody (+3 more)
|
||||
|
||||
### Community 203 - "__init__.py"
|
||||
Cohesion: 0.09
|
||||
Nodes (29): _alias_row_to_dict(), _brand_row_to_dict(), _build_category_tree(), _category_row_to_dict(), _collect_category_with_ancestors(), list_categories(), list_category_tree(), list_oss_by_biz() (+21 more)
|
||||
### Community 200 - "assert_contract_editable_for_update"
|
||||
Cohesion: 0.60
|
||||
Nodes (3): assert_contract_editable_for_update(), test_assert_allows_editable(), test_assert_rejects_non_editable()
|
||||
|
||||
### Community 206 - "crm_quote_pdf.py"
|
||||
Cohesion: 0.36
|
||||
@@ -792,8 +798,8 @@ Cohesion: 0.18
|
||||
Nodes (10): 1. 创建虚拟环境, 2. 安装依赖, 3. 配置环境变量, 4. 启动服务, API 路由分组, shanxia2.0 后端骨架(FastAPI), 开发规范, 快速开始 (+2 more)
|
||||
|
||||
### Community 220 - "api_crypto_middleware.py"
|
||||
Cohesion: 0.13
|
||||
Nodes (22): _claims_from_auth(), _coerce_post_method_override_to_get(), _get_redis_client(), _is_crypto_api(), _json_error_response(), _mark_nonce_once(), _nonce_key(), Redis (+14 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (23): ApiCryptoMiddleware, _claims_from_auth(), _coerce_post_method_override_to_get(), _get_redis_client(), _is_crypto_api(), _json_error_response(), _mark_nonce_once(), _nonce_key() (+15 more)
|
||||
|
||||
### Community 237 - "order_status_compat.py"
|
||||
Cohesion: 0.36
|
||||
@@ -810,22 +816,22 @@ Nodes (6): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时
|
||||
## Knowledge Gaps
|
||||
- **30 isolated node(s):** `Config`, `Config`, `Config`, `Config`, `Config` (+25 more)
|
||||
These have ≤1 connection - possible missing edges or undocumented components.
|
||||
- **17 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
- **18 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
|
||||
## Suggested Questions
|
||||
_Questions this graph is uniquely positioned to answer:_
|
||||
|
||||
- **Why does `generate_uuid()` connect `Community 109` to `Community 0`, `plan.py`, `Community 4`, `Community 5`, `Community 6`, `Community 134`, `Community 8`, `statistics.py`, `Community 136`, `Community 11`, `SysEthnic`, `dict_data.py`, `Community 15`, `Community 18`, `Community 16`, `Community 21`, `Community 24`, `response.py`, `Community 25`, `utils.py`, `Community 29`, `Community 28`, `customer_update`, `Community 33`, `get_client_ip`, `Community 36`, `Community 39`, `minio_url.py`, `Community 43`, `Community 45`, `resolve_create_time_bounds`, `Community 48`, `OSSStorage`, `Community 53`, `Community 58`, `Community 61`, `Community 62`, `Community 64`, `Community 65`, `get_current_user_by_token`, `Community 66`, `Community 68`, `Community 67`, `Community 71`, `Community 83`, `Community 86`, `Community 87`, `Any`, `pl_ocr_service.py`, `pl_vehicle_recharge_service.py`, `Community 92`, `_invoice_info_by_customer_impl`, `Community 95`, `apply_crm_create_by_scope`, `apply_pl_scope`, `quote_share_log.py`, `db_models.py`, `site.py`, `Community 116`, `Community 118`, `Community 122`, `customer_pool.py`?**
|
||||
_High betweenness centrality (0.088) - this node is a cross-community bridge._
|
||||
- **Why does `get_tenant_no()` connect `Community 7` to `Community 0`, `Community 1`, `Community 2`, `crm_supplier_hazard.py`, `Community 5`, `unsettled_plans_q_filter`, `Community 11`, `Community 12`, `Community 13`, `Community 15`, `Community 16`, `resolve_crm_product`, `Community 18`, `Community 19`, `__init__.py`, `Community 24`, `Community 27`, `customer_update`, `Community 33`, `__init__.py`, `Community 38`, `Community 43`, `Community 45`, `Community 50`, `Community 51`, `OSSStorage`, `Community 54`, `Community 58`, `Community 60`, `Community 62`, `Community 63`, `Community 64`, `storage.py`, `Community 66`, `Community 72`, `Community 109`, `site.py`, `Community 127`?**
|
||||
- **Why does `generate_uuid()` connect `Community 25` to `Community 0`, `plan.py`, `Community 4`, `Community 5`, `Community 6`, `Community 134`, `Community 8`, `statistics.py`, `Community 136`, `Community 11`, `SysEthnic`, `dict_data.py`, `Community 15`, `Community 18`, `Community 16`, `Community 21`, `Community 24`, `response.py`, `utils.py`, `Community 29`, `Community 28`, `customer_update`, `Community 33`, `get_client_ip`, `Community 36`, `Community 39`, `minio_url.py`, `Community 45`, `resolve_create_time_bounds`, `OSSStorage`, `Community 53`, `Community 58`, `get_client_ip`, `Community 61`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `get_current_user_by_token`, `Community 66`, `Community 68`, `Community 67`, `Community 71`, `Community 72`, `Community 83`, `Community 86`, `Community 87`, `Any`, `pl_ocr_service.py`, `pl_vehicle_recharge_service.py`, `Community 92`, `_invoice_info_by_customer_impl`, `Community 95`, `apply_crm_create_by_scope`, `apply_pl_scope`, `Community 109`, `quote_share_log.py`, `db_models.py`, `site.py`, `Community 116`, `Community 118`, `Community 122`, `customer_pool.py`, `Community 127`?**
|
||||
_High betweenness centrality (0.095) - this node is a cross-community bridge._
|
||||
- **Why does `BaseModel` connect `Community 12` to `Community 0`, `Community 1`, `Community 2`, `datetime_parse.py`, `crm_supplier_hazard.py`, `Community 5`, `LocalStorage`, `Community 7`, `unsettled_plans_q_filter`, `Community 11`, `PlTransport`, `Community 13`, `Community 15`, `Community 16`, `Community 18`, `Community 19`, `Community 24`, `Community 26`, `Community 27`, `Community 28`, `register_local_callback`, `Community 33`, `Community 34`, `__init__.py`, `Community 38`, `Community 43`, `Community 45`, `resolve_create_time_bounds`, `Community 48`, `Community 50`, `Community 51`, `OSSStorage`, `Community 54`, `Community 58`, `Community 60`, `Community 62`, `Community 64`, `storage.py`, `Community 66`, `Community 65`, `price_letter_detail`, `Community 72`, `Community 71`, `Community 74`, `Community 106`, `Community 109`, `Community 111`, `site.py`, `Community 119`?**
|
||||
_High betweenness centrality (0.081) - this node is a cross-community bridge._
|
||||
- **Why does `Settings` connect `Community 46` to `_ensure_subpack_slip_no`, `Community 35`, `Community 67`, `Community 37`, `price_letter_detail`, `Community 73`, `Community 42`, `Community 44`, `Community 52`, `Community 59`, `api_crypto_middleware.py`, `Community 30`?**
|
||||
_High betweenness centrality (0.073) - this node is a cross-community bridge._
|
||||
- **Why does `BaseModel` connect `Community 12` to `Community 0`, `Community 1`, `Community 2`, `Community 3`, `crm_supplier_hazard.py`, `Community 5`, `unsettled_plans_q_filter`, `Community 7`, `Community 11`, `Community 13`, `Community 15`, `Community 16`, `resolve_crm_product`, `__init__.py`, `Community 18`, `Community 24`, `Community 26`, `Community 27`, `register_local_callback`, `Community 33`, `Community 34`, `__init__.py`, `Community 38`, `Community 43`, `Community 45`, `resolve_create_time_bounds`, `Community 50`, `Community 51`, `OSSStorage`, `Community 54`, `Community 58`, `Community 60`, `Community 62`, `Community 63`, `Community 64`, `storage.py`, `Community 66`, `Community 65`, `Community 71`, `Community 109`, `Community 111`, `site.py`, `Community 119`, `Community 127`?**
|
||||
_High betweenness centrality (0.070) - this node is a cross-community bridge._
|
||||
- **Are the 8 inferred relationships involving `DbUserContext` (e.g. with `InventoryRelatedData` and `AutoGenerateMonthlyResult`) actually correct?**
|
||||
_`DbUserContext` has 8 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **What connects `API 路由包 — 山峡化工生产一体化门户`, `返回运营端角色下拉选项(label=库中角色名,value=Web 角色码)。`, `返回用户下拉选项(label=昵称,value=用户ID,附带 nickName/userNo)。 供申请人/审批人等选择场景使用,返回本租户全部有效` to the rest of the system?**
|
||||
_554 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
_558 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
- **Should `Community 0` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.10638297872340426 - nodes in this community are weakly interconnected._
|
||||
- **Should `Community 1` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.07804878048780488 - nodes in this community are weakly interconnected._
|
||||
- **Should `Community 3` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.08261945554920998 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.07308970099667775 - nodes in this community are weakly interconnected._
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "label": "duty.py", "file_type": "code", "source_file": "app/api/duty.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_enrich_assign_names", "label": "_enrich_assign_names()", "file_type": "code", "source_file": "app/api/duty.py", "source_location": "L21"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/duty.py"}, {"id": "dutydaysavebody", "label": "DutyDaySaveBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/duty.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_month_summary", "label": "month_summary()", "file_type": "code", "source_file": "app/api/duty.py", "source_location": "L39"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_day_detail", "label": "day_detail()", "file_type": "code", "source_file": "app/api/duty.py", "source_location": "L51"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_duty_user_options", "label": "duty_user_options()", "file_type": "code", "source_file": "app/api/duty.py", "source_location": "L65"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_save_day", "label": "save_day()", "file_type": "code", "source_file": "app/api/duty.py", "source_location": "L77"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_set_link", "label": "set_link()", "file_type": "code", "source_file": "app/api/duty.py", "source_location": "L92"}, {"id": "dutylinkbody", "label": "DutyLinkBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/duty.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_delete_assignment", "label": "delete_assignment()", "file_type": "code", "source_file": "app/api/duty.py", "source_location": "L108"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_rationale_22", "label": "\u6307\u5b9a\u7528\u6237\u65f6\u8865\u5168 personName\uff08\u7528 nick_name\uff09\u3002", "file_type": "rationale", "source_file": "app/api/duty.py", "source_location": "L22"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_rationale_69", "label": "\u503c\u73ed\u53ef\u5b89\u6392\u4eba\u5458\uff1a\u4ec5\u300c\u503c\u73ed\u4eba\u5458\u300d\u89d2\u8272\u4e0b\u7684\u542f\u7528\u7528\u6237\u3002", "file_type": "rationale", "source_file": "app/api/duty.py", "source_location": "L69"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "fastapi", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "sqlalchemy_orm", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "app_core_database", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L10", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "app_core_menu_guard", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "app_core_response", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L12", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "app_crud", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L13", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_duty_py", "target": "app_schemas_duty", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/duty.py", "source_location": "L14", "weight":Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "label": "duty_models.py", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "label": "DutyDay", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L25"}, {"id": "base", "label": "Base", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "label": "DutySlot", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L45"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "label": "DutyAssignment", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L65"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_rationale_1", "label": "\u503c\u73ed\u6392\u73ed\u6a21\u578b \u2014 docs/superpowers/specs/2026-08-14-duty-schedule-design.md", "file_type": "rationale", "source_file": "app/models/duty_models.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "sqlalchemy", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "app_core_database", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L25", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L25", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L45", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L45", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L65", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L65", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_rationale_1", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L1", "weight": 1.0}], "raw_calls": [], "callable_nids": ["users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot"]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_py", "label": "test_duty_schedule.py", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_normalize_person_name_ok", "label": "test_normalize_person_name_ok()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L31"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_normalize_person_name_empty", "label": "test_normalize_person_name_empty()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L35"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_normalize_person_name_too_long", "label": "test_normalize_person_name_too_long()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L40"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_shift_labels", "label": "test_shift_labels()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L45"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_grab_rejects_when_full", "label": "test_grab_rejects_when_full()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L49"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_grab_rejects_when_closed", "label": "test_grab_rejects_when_closed()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L111"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_grab_rejects_invalid_user", "label": "test_grab_rejects_invalid_user()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L129"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_grab_rejects_duplicate_same_shift", "label": "test_grab_rejects_duplicate_same_shift()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L158"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_save_day_rejects_shrink_below_grab_count", "label": "test_save_day_rejects_shrink_below_grab_count()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L224"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_resolve_duty_staff_role_id_by_fixed_id", "label": "test_resolve_duty_staff_role_id_by_fixed_id()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L298"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_list_duty_staff_users_empty_when_no_role", "label": "test_list_duty_staff_users_empty_when_no_role()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L307"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_assert_user_is_duty_staff_rejects_without_role", "label": "test_assert_user_is_duty_staff_rejects_without_role()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L315"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_grab_rejects_non_duty_staff", "label": "test_grab_rejects_non_duty_staff()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L336"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_save_day_grandfathers_existing_assign_without_role", "label": "test_save_day_grandfathers_existing_assign_without_role()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L381"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_test_save_day_rejects_new_assign_without_role", "label": "test_save_day_rejects_new_assign_without_role()", "file_type": "code", "source_file": "tests/test_duty_schedule.py", "source_location": "L469"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_rationale_225", "label": "\u7f29\u5bb9\uff1a\u5df2\u6709 1 \u4eba\u62a2\u73ed\u65f6 capacity=1 \u4e14\u518d\u6307\u5b9a 1 \u4eba\u5e94\u5931\u8d25\u3002", "file_type": "rationale", "source_file": "tests/test_duty_schedule.py", "source_location": "L225"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_duty_schedule_rationale_382", "label": "\u5386\u53f2\u6307\u5b9a\u7528\u6237\u65e0\u503c\u73ed\u4eba\u5458\u89d2\u8272\u65f6\uff0c\u539f\u6837\u518d\u4fdd\u5b58\u4e0d\u5f97\u56e0\u89d2\u8272\u6821\u9a8c\u5931\u8d25\u3002", "file_type": "rationale", "source_file": "tests/test_duty_schedule.py", "source_location": "L382"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_testsLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "label": "duty.py", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyassignmentin", "label": "DutyAssignmentIn", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L14"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyslotsavein", "label": "DutySlotSaveIn", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L20"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutydaysavebody", "label": "DutyDaySaveBody", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L27"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutylinkbody", "label": "DutyLinkBody", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L33"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutygrabbody", "label": "DutyGrabBody", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L37"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_rationale_1", "label": "\u503c\u73ed\u6392\u73ed Pydantic schemas", "file_type": "rationale", "source_file": "app/schemas/duty.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "pydantic", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyassignmentin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L14", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyassignmentin", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L14", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyslotsavein", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyslotsavein", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutydaysavebody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L27", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutydaysavebody", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L27", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutylinkbody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L33", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutylinkbody", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L33", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutygrabbody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L37", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutygrabbody", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/dutLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_py", "label": "duty_schedule.py", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_dutybizerror", "label": "DutyBizError", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L32"}, {"id": "valueerror", "label": "ValueError", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_normalize_person_name", "label": "normalize_person_name()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L36"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_new_access_token", "label": "new_access_token()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L45"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_build_public_url", "label": "build_public_url()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L49"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_assignment_dict", "label": "_assignment_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L54"}, {"id": "dutyassignment", "label": "DutyAssignment", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_slot_dict", "label": "_slot_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L63"}, {"id": "dutyslot", "label": "DutySlot", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_day_dict", "label": "_day_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L75"}, {"id": "dutyday", "label": "DutyDay", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_day_by_date", "label": "_load_day_by_date()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L95"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "date", "label": "date", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_day_by_id", "label": "_load_day_by_id()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L107"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_slots", "label": "_load_slots()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L115"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_assignments_for_slots", "label": "_load_assignments_for_slots()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L123"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_serialize_day", "label": "_serialize_day()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L139"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_empty_day_skeleton", "label": "empty_day_skeleton()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L145"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_get_month_summary", "label": "get_month_summary()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L156"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_get_day_detail", "label": "get_day_detail()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L179"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_soft_delete_assigLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "label": "duty_models.py", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "label": "DutyDay", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L25"}, {"id": "base", "label": "Base", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "label": "DutySlot", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L45"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "label": "DutyAssignment", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L65"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_rationale_1", "label": "\u503c\u73ed\u6392\u73ed\u6a21\u578b \u2014 docs/superpowers/specs/2026-08-14-duty-schedule-design.md", "file_type": "rationale", "source_file": "app/models/duty_models.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "sqlalchemy", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "app_core_database", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L25", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L25", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L45", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L45", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L65", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L65", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_rationale_1", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L1", "weight": 1.0}], "raw_calls": [], "callable_nids": ["users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot"]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "label": "duty_models.py", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "label": "DutyDay", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L25"}, {"id": "base", "label": "Base", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "label": "DutySlot", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L45"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "label": "DutyAssignment", "file_type": "code", "source_file": "app/models/duty_models.py", "source_location": "L65"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_rationale_1", "label": "\u503c\u73ed\u6392\u73ed\u6a21\u578b \u2014 docs/superpowers/specs/2026-08-14-duty-schedule-design.md", "file_type": "rationale", "source_file": "app/models/duty_models.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "sqlalchemy", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "app_core_database", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L25", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L25", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L45", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L45", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L65", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "target": "base", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L65", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_rationale_1", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "app/models/duty_models.py", "source_location": "L1", "weight": 1.0}], "raw_calls": [], "callable_nids": ["users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyassignment", "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyday", "users_wuzilong_work_00code_shanxia2_0_backend_app_models_duty_models_dutyslot"]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "label": "duty.py", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyassignmentin", "label": "DutyAssignmentIn", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L14"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyslotsavein", "label": "DutySlotSaveIn", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L20"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutydaysavebody", "label": "DutyDaySaveBody", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L26"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutylinkbody", "label": "DutyLinkBody", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L34"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutygrabbody", "label": "DutyGrabBody", "file_type": "code", "source_file": "app/schemas/duty.py", "source_location": "L38"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_rationale_1", "label": "\u503c\u73ed\u6392\u73ed Pydantic schemas", "file_type": "rationale", "source_file": "app/schemas/duty.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "pydantic", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyassignmentin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L14", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyassignmentin", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L14", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyslotsavein", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutyslotsavein", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutydaysavebody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L26", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutydaysavebody", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L26", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutylinkbody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L34", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutylinkbody", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L34", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutygrabbody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/duty.py", "source_location": "L38", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_duty_dutygrabbody", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/dutLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_py", "label": "duty_schedule.py", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_dutybizerror", "label": "DutyBizError", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L32"}, {"id": "valueerror", "label": "ValueError", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_normalize_person_name", "label": "normalize_person_name()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L36"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_new_access_token", "label": "new_access_token()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L45"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_build_public_url", "label": "build_public_url()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L49"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_assignment_dict", "label": "_assignment_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L54"}, {"id": "dutyassignment", "label": "DutyAssignment", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_slot_dict", "label": "_slot_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L63"}, {"id": "dutyslot", "label": "DutySlot", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_day_dict", "label": "_day_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L76"}, {"id": "dutyday", "label": "DutyDay", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_day_by_date", "label": "_load_day_by_date()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L96"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "date", "label": "date", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_day_by_id", "label": "_load_day_by_id()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L108"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_slots", "label": "_load_slots()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L116"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_assignments_for_slots", "label": "_load_assignments_for_slots()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L124"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_serialize_day", "label": "_serialize_day()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L140"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_empty_day_skeleton", "label": "empty_day_skeleton()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L146"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_get_month_summary", "label": "get_month_summary()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L157"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_get_day_detail", "label": "get_day_detail()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L180"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_soft_delete_assigLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_py", "label": "duty_schedule.py", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_dutybizerror", "label": "DutyBizError", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L32"}, {"id": "valueerror", "label": "ValueError", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_normalize_person_name", "label": "normalize_person_name()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L36"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_new_access_token", "label": "new_access_token()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L45"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_build_public_url", "label": "build_public_url()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L49"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_assignment_dict", "label": "_assignment_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L54"}, {"id": "dutyassignment", "label": "DutyAssignment", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_slot_dict", "label": "_slot_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L63"}, {"id": "dutyslot", "label": "DutySlot", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_day_dict", "label": "_day_dict()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L75"}, {"id": "dutyday", "label": "DutyDay", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_day_by_date", "label": "_load_day_by_date()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L96"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "date", "label": "date", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/duty_schedule.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_day_by_id", "label": "_load_day_by_id()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L108"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_slots", "label": "_load_slots()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L116"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_load_assignments_for_slots", "label": "_load_assignments_for_slots()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L124"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_serialize_day", "label": "_serialize_day()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L140"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_empty_day_skeleton", "label": "empty_day_skeleton()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L146"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_get_month_summary", "label": "get_month_summary()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L158"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_get_day_detail", "label": "get_day_detail()", "file_type": "code", "source_file": "app/services/duty_schedule.py", "source_location": "L181"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_duty_schedule_soft_delete_assigLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_py", "label": "plans.py", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_base_query", "label": "_base_query()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L47"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/db/plans.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_list_plans", "label": "list_plans()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L55"}, {"id": "dbusercontext", "label": "DbUserContext", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/db/plans.py"}, {"id": "purchaseplanwithfilllink", "label": "PurchasePlanWithFillLink", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/db/plans.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_generate_plan_no", "label": "_generate_plan_no()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L202"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_create_plan", "label": "create_plan()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L209"}, {"id": "purchaseplancreate", "label": "PurchasePlanCreate", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/db/plans.py"}, {"id": "purchaseplanread", "label": "PurchasePlanRead", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/db/plans.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_autogeneratemonthlyresult", "label": "AutoGenerateMonthlyResult", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L252"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_run_auto_generate_monthly", "label": "run_auto_generate_monthly()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L259"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_get_plan", "label": "get_plan()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L273"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_update_plan", "label": "update_plan()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L284"}, {"id": "purchaseplanupdate", "label": "PurchasePlanUpdate", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/db/plans.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_delete_plan", "label": "delete_plan()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L302"}, {"id": "dbpurchaseplan", "label": "DbPurchasePlan", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/db/plans.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_get_plan_by_id_only", "label": "_get_plan_by_id_only()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L339"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_apply_plan_product_update", "label": "_apply_plan_product_update()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L353"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_apply_plan_update", "label": "_apply_plan_update()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L369"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_planrelateddata", "label": "PlanRelatedData", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L390"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_get_plan_related", "label": "get_plan_related()", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L396"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_thirdpartyplanpagedata", "label": "ThirdPartyPlanPageData", "file_type": "code", "source_file": "app/api/db/plans.py", "source_location": "L441"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_db_plans_get_third_party_plan_page", "label": "get_third_party_plan_page()", "file_type"Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"/Users/zlwu/work/00code/shanxia2.0/backend/start-prod.sh":{"size":7357,"mtime_ns":1782639355476060453,"hash":"ca89869446be74a2bf2367b3b28f448580220859a39a84ad9613ac5fe35a8433"},"/Users/zlwu/work/00code/shanxia2.0/backend/start.sh":{"size":9548,"mtime_ns":1780114661446983244,"hash":"4d632863e8a0cd81194b491d83a0218a4157435ae812dec76a6f6197b4d48e57"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/__init__.py":{"size":21,"mtime_ns":1780113982281973984,"hash":"60a04ff08fd97084e83ea809fd13feda6d2848be20ebf309e31fc1dad7523230"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/main.py":{"size":6280,"mtime_ns":1782790852770448643,"hash":"8f9da799977bee7134d87a26ff8434ac5ef8eabb0b7368dd537eee49ad7fd00b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/tasks/__init__.py":{"size":2207,"mtime_ns":1783208067881286091,"hash":"313e6da0e91d743ce891dd283458c79b50b24c4d909dc96ca7b3fd9d2bfa5013"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/auth.py":{"size":7457,"mtime_ns":1782790841500516545,"hash":"34bac56e1c2cb6215f4b5fa2dc32d77d4b4abca51428819eebf4afd269cc51cf"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_crypto.py":{"size":1870,"mtime_ns":1780108930724444498,"hash":"c04b748aea86890a5971f749523c7b17dbad1ddd6f9f7f07a5679d159c984e33"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/login_crypto.py":{"size":3858,"mtime_ns":1780108930725155710,"hash":"b82d51afabf2293a9cb1fb2e5f994c383948e7f47ea95fe674686b4f3f3342b1"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/config.py":{"size":6958,"mtime_ns":1784032424448146538,"hash":"c2fb44aedb880733de28afa7f92d2c1c681eb600f821bbeba2bcda3933e5bc37"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/wechat_pay.py":{"size":23585,"mtime_ns":1780108930725768130,"hash":"3d52265ce65d21e7103f94afa1e8547aee0823b5ea6d65c50317436ac81fb4fc"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_request_log_middleware.py":{"size":11971,"mtime_ns":1782701669198208175,"hash":"0b84c32828939e6102bb3647691fa8f04b1f68e0e0e9f28127374cc44e19a11c"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/database.py":{"size":1510,"mtime_ns":1782790847265601586,"hash":"8bc9c8ae62e2be2c6920036582ba448dfcd1711c41cebb62274ff6bc6ee14b0b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/security.py":{"size":728,"mtime_ns":1780108930725470004,"hash":"df0f01115064f7b8de1c81dbe9a6db39360c236610b68c33b3234a51d7f0025b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/request_payload.py":{"size":2842,"mtime_ns":1780108930725350836,"hash":"e9937151530ab1417ef297aef59111977725cf90be2a8fa76c00a0618789aba0"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/__init__.py":{"size":61,"mtime_ns":1780108930724312414,"hash":"3dd1842ee59b0c804176b03b4b8a323bd4a252b7feb1bbc32db64f3a8928570e"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/response.py":{"size":1824,"mtime_ns":1780108930725412462,"hash":"f1739352d65ea8287d76e282a59553aa8d63c97e35764c64ac378aa5bd9c347e"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/menu_guard.py":{"size":1611,"mtime_ns":1780108930725223002,"hash":"3e26077288c3620a4780038b891a326206b45bffe00aca545bdae30172487235"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/db_collation.py":{"size":548,"mtime_ns":1780108930725025043,"hash":"0c680e25a18244ca839a7de6ed1f4313b33bc8da118d89c463aee1b6af00c6f9"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/context.py":{"size":421,"mtime_ns":1780108930724824458,"hash":"83a10aee67162374993c10a30bf8bb8bd9c4b35cf48f42c832415ccebd91660f"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/utils.py":{"size":1498,"mtime_ns":1780108930725607296,"hash":"09323693661c1d4560458b86a954128ccff82bbaf6522da0b44f24da99ddf9ea"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/storage.py":{"size":14141,"mtime_ns":1782855136810943216,"hash":"3ae2c413c10898a8adb3d6773870bafbfbc18c739c10e0e8b4f765b4b5ca6c08"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/order_status_compat.py":{"size":2828,"mtime_ns":1780108930725284669,"hash":"5349e5a0745ee6734c4a995337779307adefc46f453906171988a77de2081540"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/exceptions.py":{"size":4946,"mtime_ns":1780108930725084335,"hash":"79c997d964bca1a4f12f2b92fb1f181fdb9e2b3cf72eae39f4cc164d23794fd7"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/data_scope.py":{"size":8043,"mtime_ns":1782648925694296304,"hash":"626dff86937e5cacec634ecbc61cd53d3763d760223a1d4ec7cd11f64e59a220"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/admin_request_json.py":{"size":2669,"mtime_ns":1780108930724378914,"hash":"4f68b3cf84291e7bddad6ecf4bb4d29ca5e1ec246a9f7f9c4cf5909d0ec1174a"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_crypto_middleware.py":{"size":10876,"mtime_ns":1782790001926627098,"hash":"b39f128b6612589ea6ac5babd30752e9585b3af07b82bb1ad53c9e3c0d90816f"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/wechat_message.py":{"size":11194,"mtime_ns":1780108930725684255,"hash":"5086070deb14d99d1a69e419b2299ec4Line truncated
|
||||
{"/Users/zlwu/work/00code/shanxia2.0/backend/start-prod.sh":{"size":7357,"mtime_ns":1782639355476060453,"hash":"ca89869446be74a2bf2367b3b28f448580220859a39a84ad9613ac5fe35a8433"},"/Users/zlwu/work/00code/shanxia2.0/backend/start.sh":{"size":9548,"mtime_ns":1780114661446983244,"hash":"4d632863e8a0cd81194b491d83a0218a4157435ae812dec76a6f6197b4d48e57"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/__init__.py":{"size":21,"mtime_ns":1780113982281973984,"hash":"60a04ff08fd97084e83ea809fd13feda6d2848be20ebf309e31fc1dad7523230"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/main.py":{"size":6280,"mtime_ns":1782790852770448643,"hash":"8f9da799977bee7134d87a26ff8434ac5ef8eabb0b7368dd537eee49ad7fd00b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/tasks/__init__.py":{"size":2207,"mtime_ns":1783208067881286091,"hash":"313e6da0e91d743ce891dd283458c79b50b24c4d909dc96ca7b3fd9d2bfa5013"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/auth.py":{"size":7457,"mtime_ns":1782790841500516545,"hash":"34bac56e1c2cb6215f4b5fa2dc32d77d4b4abca51428819eebf4afd269cc51cf"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_crypto.py":{"size":1870,"mtime_ns":1780108930724444498,"hash":"c04b748aea86890a5971f749523c7b17dbad1ddd6f9f7f07a5679d159c984e33"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/login_crypto.py":{"size":3858,"mtime_ns":1780108930725155710,"hash":"b82d51afabf2293a9cb1fb2e5f994c383948e7f47ea95fe674686b4f3f3342b1"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/config.py":{"size":6958,"mtime_ns":1784032424448146538,"hash":"c2fb44aedb880733de28afa7f92d2c1c681eb600f821bbeba2bcda3933e5bc37"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/wechat_pay.py":{"size":23585,"mtime_ns":1780108930725768130,"hash":"3d52265ce65d21e7103f94afa1e8547aee0823b5ea6d65c50317436ac81fb4fc"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_request_log_middleware.py":{"size":11971,"mtime_ns":1782701669198208175,"hash":"0b84c32828939e6102bb3647691fa8f04b1f68e0e0e9f28127374cc44e19a11c"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/database.py":{"size":1510,"mtime_ns":1782790847265601586,"hash":"8bc9c8ae62e2be2c6920036582ba448dfcd1711c41cebb62274ff6bc6ee14b0b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/security.py":{"size":728,"mtime_ns":1780108930725470004,"hash":"df0f01115064f7b8de1c81dbe9a6db39360c236610b68c33b3234a51d7f0025b"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/request_payload.py":{"size":2842,"mtime_ns":1780108930725350836,"hash":"e9937151530ab1417ef297aef59111977725cf90be2a8fa76c00a0618789aba0"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/__init__.py":{"size":61,"mtime_ns":1780108930724312414,"hash":"3dd1842ee59b0c804176b03b4b8a323bd4a252b7feb1bbc32db64f3a8928570e"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/response.py":{"size":1824,"mtime_ns":1780108930725412462,"hash":"f1739352d65ea8287d76e282a59553aa8d63c97e35764c64ac378aa5bd9c347e"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/menu_guard.py":{"size":1611,"mtime_ns":1780108930725223002,"hash":"3e26077288c3620a4780038b891a326206b45bffe00aca545bdae30172487235"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/db_collation.py":{"size":548,"mtime_ns":1780108930725025043,"hash":"0c680e25a18244ca839a7de6ed1f4313b33bc8da118d89c463aee1b6af00c6f9"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/context.py":{"size":421,"mtime_ns":1780108930724824458,"hash":"83a10aee67162374993c10a30bf8bb8bd9c4b35cf48f42c832415ccebd91660f"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/utils.py":{"size":1498,"mtime_ns":1780108930725607296,"hash":"09323693661c1d4560458b86a954128ccff82bbaf6522da0b44f24da99ddf9ea"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/storage.py":{"size":14141,"mtime_ns":1782855136810943216,"hash":"3ae2c413c10898a8adb3d6773870bafbfbc18c739c10e0e8b4f765b4b5ca6c08"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/order_status_compat.py":{"size":2828,"mtime_ns":1780108930725284669,"hash":"5349e5a0745ee6734c4a995337779307adefc46f453906171988a77de2081540"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/exceptions.py":{"size":4946,"mtime_ns":1780108930725084335,"hash":"79c997d964bca1a4f12f2b92fb1f181fdb9e2b3cf72eae39f4cc164d23794fd7"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/data_scope.py":{"size":8043,"mtime_ns":1782648925694296304,"hash":"626dff86937e5cacec634ecbc61cd53d3763d760223a1d4ec7cd11f64e59a220"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/admin_request_json.py":{"size":2669,"mtime_ns":1780108930724378914,"hash":"4f68b3cf84291e7bddad6ecf4bb4d29ca5e1ec246a9f7f9c4cf5909d0ec1174a"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/api_crypto_middleware.py":{"size":10876,"mtime_ns":1782790001926627098,"hash":"b39f128b6612589ea6ac5babd30752e9585b3af07b82bb1ad53c9e3c0d90816f"},"/Users/zlwu/work/00code/shanxia2.0/backend/app/core/wechat_message.py":{"size":11194,"mtime_ns":1780108930725684255,"hash":"5086070deb14d99d1a69e419b2299ec4Line truncated
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>graphify - /Users/wuzilong/work/00code/shanxia2.0/backend/graphify-out/graph.html</title>
|
||||
<title>graphify - graphify-out/graph.html</title>
|
||||
<script src="https://unpkg.com/vis-network@9.1.6/standalone/umd/vis-network.min.js"
|
||||
integrity="sha384-Ux6phic9PEHJ38YtrijhkzyJ8yQlH8i/+buBR8s3mAZOJrP1gwyvAcIYl3GWtpX1"
|
||||
crossorigin="anonymous"></script>
|
||||
@@ -63,12 +63,12 @@
|
||||
</div>
|
||||
<div id="legend"></div>
|
||||
</div>
|
||||
<div id="stats">4805 nodes · 16492 edges · 543 communities</div>
|
||||
<div id="stats">4819 nodes · 16536 edges · 545 communities</div>
|
||||
</div>
|
||||
<script>
|
||||
const RAW_NODES = [{"id": "app_init", "label": "__init__.py", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 304, "community_name": "__init__.py", "source_file": "app/__init__.py", "file_type": "code", "degree": 0}, {"id": "app_api_init", "label": "__init__.py", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 160, "community_name": "register_local_callback", "source_file": "app/api/__init__.py", "file_type": "code", "degree": 10}, {"id": "app_api_init_rationale_1", "label": "API \u8def\u7531\u5305 \u2014 \u5c71\u5ce1\u5316\u5de5\u751f\u4ea7\u4e00\u4f53\u5316\u95e8\u6237", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "API \u8def\u7531\u5305 \u2014 \u5c71\u5ce1\u5316\u5de5\u751f\u4ea7\u4e00\u4f53\u5316\u95e8\u6237", "community": 160, "community_name": "register_local_callback", "source_file": "app/api/__init__.py", "file_type": "rationale", "degree": 1}, {"id": "app_api_admin", "label": "admin.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 17.7, "font": {"size": 12, "color": "#ffffff"}, "title": "admin.py", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 119}, {"id": "app_api_admin_list_roles_for_select", "label": "list_roles_for_select()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "list_roles_for_select()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_py_session", "label": "Session", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 13.7, "font": {"size": 0, "color": "#ffffff"}, "title": "Session", "community": 3, "community_name": "Community 3", "source_file": "", "file_type": "code", "degree": 57}, {"id": "app_api_admin_list_users_for_select", "label": "list_users_for_select()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "list_users_for_select()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_list_roles_for_designer", "label": "list_roles_for_designer()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "list_roles_for_designer()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_tenantcreatebody", "label": "TenantCreateBody", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantCreateBody", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 10}, {"id": "app_api_admin_tenantupdatebody", "label": "TenantUpdateBody", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantUpdateBody", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 10}, {"id": "app_api_admin_list_tenants", "label": "list_tenants()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "list_tenants()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 3}, {"id": "app_api_admin_create_tenant", "label": "create_tenant()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "create_tenant()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_update_tenant", "label": "update_tenant()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border":Line truncated
|
||||
const RAW_EDGES = [{"from": "app_api_init", "to": "app_api_admin", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_bx_init", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_crm", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_db_init", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_leave", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_menu", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_monitor", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_public", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_workflow", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init_rationale_1", "to": "app_api_init", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachment_download_url", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachment_preview_url", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachmentdownloadurlbody", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dept", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dict_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dict_type", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_menu", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_menu_favorite", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_post", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_role_management", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_site", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_tenant", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_user", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dept", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dict_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"Line truncated
|
||||
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 35}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 41}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 29}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 103}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 79}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 72}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 33}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 216}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 49}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 1}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 1}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 61}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 85}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 50}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 14}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 55}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 66}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 1}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 66}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 43}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 1}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 35}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 43}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 17}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 33}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 31}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 65}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 36}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 61}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 47}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 27}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 1}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 1}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 34}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 38}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 38}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 31}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 26}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 24}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 29}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 1}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 1}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 34}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 63}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 33}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 78}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 29}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 1}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 12}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 10}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 16}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 20}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 31}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 18}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 24}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 1}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 1}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 1}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 20}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 30}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 20}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 51}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 29}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 24}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 18}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 45}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 59}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 38}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 14}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 37}, {"cid": 70, "color": "#4E79A7", "label": "CLine truncated
|
||||
const RAW_NODES = [{"id": "app_init", "label": "__init__.py", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 304, "community_name": "__init__.py", "source_file": "app/__init__.py", "file_type": "code", "degree": 0}, {"id": "app_api_init", "label": "__init__.py", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 160, "community_name": "register_local_callback", "source_file": "app/api/__init__.py", "file_type": "code", "degree": 10}, {"id": "app_api_init_rationale_1", "label": "API \u8def\u7531\u5305 \u2014 \u5c71\u5ce1\u5316\u5de5\u751f\u4ea7\u4e00\u4f53\u5316\u95e8\u6237", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "API \u8def\u7531\u5305 \u2014 \u5c71\u5ce1\u5316\u5de5\u751f\u4ea7\u4e00\u4f53\u5316\u95e8\u6237", "community": 160, "community_name": "register_local_callback", "source_file": "app/api/__init__.py", "file_type": "rationale", "degree": 1}, {"id": "app_api_admin", "label": "admin.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 17.7, "font": {"size": 12, "color": "#ffffff"}, "title": "admin.py", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 119}, {"id": "app_api_admin_list_roles_for_select", "label": "list_roles_for_select()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "list_roles_for_select()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_py_session", "label": "Session", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 13.7, "font": {"size": 0, "color": "#ffffff"}, "title": "Session", "community": 3, "community_name": "Community 3", "source_file": "", "file_type": "code", "degree": 57}, {"id": "app_api_admin_list_users_for_select", "label": "list_users_for_select()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "list_users_for_select()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_list_roles_for_designer", "label": "list_roles_for_designer()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "list_roles_for_designer()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_tenantcreatebody", "label": "TenantCreateBody", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantCreateBody", "community": 19, "community_name": "Community 19", "source_file": "app/api/admin.py", "file_type": "code", "degree": 10}, {"id": "app_api_admin_tenantupdatebody", "label": "TenantUpdateBody", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantUpdateBody", "community": 19, "community_name": "Community 19", "source_file": "app/api/admin.py", "file_type": "code", "degree": 10}, {"id": "app_api_admin_list_tenants", "label": "list_tenants()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "list_tenants()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 3}, {"id": "app_api_admin_create_tenant", "label": "create_tenant()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "create_tenant()", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 5}, {"id": "app_api_admin_update_tenant", "label": "update_tenant()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "bordLine truncated
|
||||
const RAW_EDGES = [{"from": "app_api_init", "to": "app_api_admin", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_bx_init", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_crm", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_db_init", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_leave", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_menu", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_monitor", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_public", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init", "to": "app_api_workflow", "label": "re_exports", "title": "re_exports [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_init_rationale_1", "to": "app_api_init", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachment_download_url", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachment_preview_url", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_attachmentdownloadurlbody", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dept", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dict_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_dict_type", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_menu", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_menu_favorite", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_post", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_role_management", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_site", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_tenant", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_create_user", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dept", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_api_admin", "to": "app_api_admin_delete_dict_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"Line truncated
|
||||
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 48}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 43}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 29}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 66}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 44}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 59}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 31}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 97}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 51}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 1}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 1}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 34}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 80}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 72}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 14}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 52}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 39}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 1}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 66}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 31}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 1}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 60}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 43}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 17}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 47}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 31}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 76}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 35}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 99}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 99}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 27}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 1}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 1}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 26}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 18}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 38}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 31}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 26}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 25}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 44}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 1}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 1}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 34}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 42}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 32}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 75}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 33}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 1}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 27}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 11}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 26}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 21}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 31}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 26}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 30}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 1}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 1}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 1}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 20}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 30}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 17}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 45}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 31}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 23}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 17}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 43}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 38}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 38}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 14}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 27}, {"cid": 70, "color": "#4E79A7", "label": "ComLine truncated
|
||||
|
||||
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
||||
function esc(s) {
|
||||
|
||||
+1958
-1350
File diff suppressed because it is too large.
Load diff
+155
-130
@@ -10,8 +10,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/admin.py": {
|
||||
"mtime": 1785469147.0588133,
|
||||
"ast_hash": "54a5e224688d83edf4a48504e858ced3",
|
||||
"mtime": 1786164471.3850935,
|
||||
"ast_hash": "d0ec6137607e9dc5f49e049ca72eb798",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/__init__.py": {
|
||||
@@ -45,8 +45,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/reimburse.py": {
|
||||
"mtime": 1785473021.3119955,
|
||||
"ast_hash": "20e4825f4e028f49c383c84e9b52e96f",
|
||||
"mtime": 1786953500.862205,
|
||||
"ast_hash": "7f8ab65012210296805864f17dd4a23b",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/workflow.py": {
|
||||
@@ -60,8 +60,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/crm_contract_routes.py": {
|
||||
"mtime": 1786150042.6971638,
|
||||
"ast_hash": "2ff1320f296eedf9a83f378932df2d47",
|
||||
"mtime": 1786239377.894416,
|
||||
"ast_hash": "af1828c032f67e912276c1c100ddd217",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/crm_contract_sub_routes.py": {
|
||||
@@ -90,8 +90,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/db/plans.py": {
|
||||
"mtime": 1785807158.0938885,
|
||||
"ast_hash": "a9ba5ad89611a1b75bcfc67b31e95be8",
|
||||
"mtime": 1786955259.1402967,
|
||||
"ast_hash": "2241aa6f91554243ab39afe7c8e93f41",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/db/public_inventory.py": {
|
||||
@@ -125,8 +125,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/base_data.py": {
|
||||
"mtime": 1785637805.321715,
|
||||
"ast_hash": "3071f29aea1fa3f41bbb52269d8255f9",
|
||||
"mtime": 1786887371.4499524,
|
||||
"ast_hash": "e1c6a866a651145cefe411c2949963ff",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/freight.py": {
|
||||
@@ -155,8 +155,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/plan.py": {
|
||||
"mtime": 1785970865.1852741,
|
||||
"ast_hash": "c296fd2e85f35769dca5ea0f66222a27",
|
||||
"mtime": 1786885472.5030537,
|
||||
"ast_hash": "f5020cc3715a0da38ec34ea8298d7cf2",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/public_io_order.py": {
|
||||
@@ -200,8 +200,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/public.py": {
|
||||
"mtime": 1783858998.0,
|
||||
"ast_hash": "1420acc2c5e0e425f32478d4e40de74d",
|
||||
"mtime": 1786197474.707909,
|
||||
"ast_hash": "0b474dfb38e4ddb5accea2aeb84ef9e9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/workflow.py": {
|
||||
@@ -250,8 +250,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/core/config.py": {
|
||||
"mtime": 1785768184.947508,
|
||||
"ast_hash": "f7dd0409c040e47e64b7db8aae71cd40",
|
||||
"mtime": 1786698748.8260324,
|
||||
"ast_hash": "e9e65ac730bb5b0ed6df9e2114a67130",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/core/context.py": {
|
||||
@@ -410,13 +410,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract.py": {
|
||||
"mtime": 1786074001.2027,
|
||||
"ast_hash": "86a7fdaa90393f5c4d67928e7befd2f4",
|
||||
"mtime": 1786863780.7033699,
|
||||
"ast_hash": "783e2d3c50225588fcde4ede86c577ed",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract_approval.py": {
|
||||
"mtime": 1780763324.0,
|
||||
"ast_hash": "c9c338510247afdcd733412c10e0ded3",
|
||||
"mtime": 1786365604.7703958,
|
||||
"ast_hash": "0b9d54a2b442bb72e31f8c9e39786022",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract_approver_setting.py": {
|
||||
@@ -485,13 +485,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote.py": {
|
||||
"mtime": 1784996795.0,
|
||||
"ast_hash": "19be4876f99cd7d6122f96bc555f3296",
|
||||
"mtime": 1786365631.647346,
|
||||
"ast_hash": "79ad7553ba657a2ea0ccd8ae735e6803",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote_approval.py": {
|
||||
"mtime": 1782650314.0,
|
||||
"ast_hash": "06df363f67ef49fe7398d0204b59031f",
|
||||
"mtime": 1786365604.675762,
|
||||
"ast_hash": "f2baf17da1de4975d1adfe3e4708e3ff",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote_approver_setting.py": {
|
||||
@@ -500,8 +500,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote_product.py": {
|
||||
"mtime": 1785201813.742914,
|
||||
"ast_hash": "c564d384d49252d384f053bb1939f2ec",
|
||||
"mtime": 1786184473.6230762,
|
||||
"ast_hash": "528cb895aad43d6767cf06d23a22f82f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote_share_log.py": {
|
||||
@@ -600,13 +600,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/main.py": {
|
||||
"mtime": 1785768184.2015946,
|
||||
"ast_hash": "53dd49c12260225acb5eae0e4c02c370",
|
||||
"mtime": 1786698748.399432,
|
||||
"ast_hash": "bbdd8cb8ca573957346a6350cdd9bcec",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/__init__.py": {
|
||||
"mtime": 1785445893.8509457,
|
||||
"ast_hash": "de0cea51503ca0f7113471fad4505c3f",
|
||||
"mtime": 1786203409.8909836,
|
||||
"ast_hash": "4df3e326af85ac0f5de9bc7e0f17fd6f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/base.py": {
|
||||
@@ -615,13 +615,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/bx_models.py": {
|
||||
"mtime": 1785472986.385442,
|
||||
"ast_hash": "d481ff1153261d1e99737ebf6a7370b0",
|
||||
"mtime": 1786953008.5586357,
|
||||
"ast_hash": "5ebf94313f9bf2c88a53bb4f81cab13a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/crm_models.py": {
|
||||
"mtime": 1786093453.4452932,
|
||||
"ast_hash": "053b820ca65c4e8a41fdfc25214af3f8",
|
||||
"mtime": 1786171074.9211452,
|
||||
"ast_hash": "3108b3d96a3377f347456d5b7ad7c3c9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/db_models.py": {
|
||||
@@ -635,8 +635,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/pl_models.py": {
|
||||
"mtime": 1786027579.800696,
|
||||
"ast_hash": "18d20026701c9a26e4124a963b4095e0",
|
||||
"mtime": 1786203406.7116644,
|
||||
"ast_hash": "d5aeee9c5945baf12f1c4200a59012a8",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/__init__.py": {
|
||||
@@ -685,8 +685,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/bx/reimburse.py": {
|
||||
"mtime": 1785473904.0760102,
|
||||
"ast_hash": "895312d916362d2f30fdae467b2c4c1c",
|
||||
"mtime": 1786953496.3100414,
|
||||
"ast_hash": "a3bf2c3966e3a12654e944af4f224165",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/bx/workflow.py": {
|
||||
@@ -715,8 +715,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/contract.py": {
|
||||
"mtime": 1785418059.662177,
|
||||
"ast_hash": "b8610597478fbf5dacca6f24e901696c",
|
||||
"mtime": 1786239355.7093923,
|
||||
"ast_hash": "dd33cb6f4ffee2c8f5737182c3c1497a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/contract_approver_setting.py": {
|
||||
@@ -765,8 +765,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/quote.py": {
|
||||
"mtime": 1785418147.320159,
|
||||
"ast_hash": "6f2eb027a97447585d109a653ce3b3a7",
|
||||
"mtime": 1786171088.0675073,
|
||||
"ast_hash": "502fd8639a90ae7a52e6d1f38f4b1f61",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/quote_approver_setting.py": {
|
||||
@@ -835,8 +835,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/__init__.py": {
|
||||
"mtime": 1783242582.0,
|
||||
"ast_hash": "13deaeb249ba9b315dd19ad0c72989ab",
|
||||
"mtime": 1786203494.3296576,
|
||||
"ast_hash": "b7920c32ba18bca6b047446059e97d57",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/base_data.py": {
|
||||
@@ -875,8 +875,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/plan.py": {
|
||||
"mtime": 1786026516.372507,
|
||||
"ast_hash": "ca4673bc3019d00f5a0d29340cc64be4",
|
||||
"mtime": 1786203421.9045327,
|
||||
"ast_hash": "87763f7d7771e6341ffbcdf911351f5e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/resource_snapshot.py": {
|
||||
@@ -950,18 +950,18 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/invoice.py": {
|
||||
"mtime": 1784991670.0,
|
||||
"ast_hash": "301b58c855f5651c676dda01f53d9078",
|
||||
"mtime": 1786272473.4044263,
|
||||
"ast_hash": "ce4c31b5f377719a084171e0dfd2b04d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/invoice_ledger.py": {
|
||||
"mtime": 1784980394.0,
|
||||
"ast_hash": "3032da65e6f94863a761479ef2405abd",
|
||||
"mtime": 1786539462.7763708,
|
||||
"ast_hash": "095bd0dba56d35fafc230999deb28aa6",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/reimburse.py": {
|
||||
"mtime": 1785473904.0761359,
|
||||
"ast_hash": "f1ddebadb0f08f0cad5072aa2b3fb439",
|
||||
"mtime": 1786953507.819708,
|
||||
"ast_hash": "95d31f9adfe395354b300c1212ed9dd0",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/storage.py": {
|
||||
@@ -980,8 +980,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/crm_quote_pdf.py": {
|
||||
"mtime": 1780242127.0,
|
||||
"ast_hash": "c6247a99b20d9541dbabd49791104918",
|
||||
"mtime": 1786172982.774929,
|
||||
"ast_hash": "6df1e094e858559da7414197bfd814df",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/crm_supplier_hazard.py": {
|
||||
@@ -1105,8 +1105,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_plan_service.py": {
|
||||
"mtime": 1785970855.7289765,
|
||||
"ast_hash": "30b37d35ef133d390c5ee3e906e65105",
|
||||
"mtime": 1786204013.4685726,
|
||||
"ast_hash": "8ee28eee450db2496cb4e5a687655c6d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_product_display.py": {
|
||||
@@ -1185,8 +1185,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/utils/bx_codegen.py": {
|
||||
"mtime": 1782003396.0,
|
||||
"ast_hash": "ab0faf38020f30611bf4f6f6696f7289",
|
||||
"mtime": 1786953427.7518795,
|
||||
"ast_hash": "50af2e1a0b5d4b367db45fc56c745f4a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/utils/bx_date_range.py": {
|
||||
@@ -1209,56 +1209,6 @@
|
||||
"ast_hash": "fe3e36317dd396513ca21b57101ee48f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/backfill_crm_contract_attachment_urls.py": {
|
||||
"mtime": 1785469147.228035,
|
||||
"ast_hash": "f7419274bfc1113c43360c4c408ad731",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/backfill_crm_customer_license_urls.py": {
|
||||
"mtime": 1785467213.3740296,
|
||||
"ast_hash": "29694d834f575fc9b71cf5173873ffd4",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260727_crm_product_brand_alias.sql": {
|
||||
"mtime": 1785160650.0307376,
|
||||
"ast_hash": "a8378474a507e34e93c793de5bd4b468",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260727_pl_plan_create_date.sql": {
|
||||
"mtime": 1785140686.8755436,
|
||||
"ast_hash": "ca737a8bb5cbc8694d2131ec04ac48e2",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260727_split_brand_from_product_name.py": {
|
||||
"mtime": 1785202591.7822654,
|
||||
"ast_hash": "b6fffc10a38c2607af35b69679baa403",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260731_bx_reimburse_invoice_attachment_id.sql": {
|
||||
"mtime": 1785473095.766881,
|
||||
"ast_hash": "361b571af480b78065c92f355ee29551",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260731_pl_feedback_brand_qty.sql": {
|
||||
"mtime": 1785445506.58171,
|
||||
"ast_hash": "7c9750fd82bc08bdf8012a8da42ca9be",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260731_pl_plan_plan_date_nullable.sql": {
|
||||
"mtime": 1785439209.757662,
|
||||
"ast_hash": "a59fac95d970de9d509e1118b566eb4a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260801_crm_contract_approver_setting.sql": {
|
||||
"mtime": 1785561454.9404912,
|
||||
"ast_hash": "23daa450c42083b524c9e14b2d062604",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260801_crm_quote_approver_setting.sql": {
|
||||
"mtime": 1785560449.173092,
|
||||
"ast_hash": "4a58c46df0aa2b512aa240dc95a72408",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_bx_data.py": {
|
||||
"mtime": 1785455807.1058779,
|
||||
"ast_hash": "eb57e09f1d0a31d7170e6fba30a91ef2",
|
||||
@@ -1340,8 +1290,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_bx_invoice_ledger.py": {
|
||||
"mtime": 1784980394.0,
|
||||
"ast_hash": "084487db01bf249429e177a9ce7a125c",
|
||||
"mtime": 1786539462.1709106,
|
||||
"ast_hash": "c65d74b1fb940e805e6a7ccb141e798f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_supplier_hazard.py": {
|
||||
@@ -1514,21 +1464,6 @@
|
||||
"ast_hash": "0df1f9d8316fe2a23559da13e850bf6e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260802_pl_vehicle_personnel_photo_urls.sql": {
|
||||
"mtime": 1785637173.5641549,
|
||||
"ast_hash": "e65b3a65437e9ff61234e164641a65c9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260806_pl_plan_pickup_delivery_contact.sql": {
|
||||
"mtime": 1785967900.2186763,
|
||||
"ast_hash": "5aaec782a2aaed968f72ebfc8df12a67",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260806_pl_plan_product_cert_urls_multi.sql": {
|
||||
"mtime": 1786026516.3846612,
|
||||
"ast_hash": "e61c1b4ff92153418d6b65e04788eb16",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_contract_name_from_parties.py": {
|
||||
"mtime": 1785828057.088218,
|
||||
"ast_hash": "8fcd74a7c9ceeed56cc26842259dc8b9",
|
||||
@@ -1594,11 +1529,6 @@
|
||||
"ast_hash": "b8b34771fcc0499115ead29448ce34ba",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/backfill_name_pinyin_abbr.py": {
|
||||
"mtime": 1786094939.0200698,
|
||||
"ast_hash": "80c4de634da8bd1bf372270460411515",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_name_pinyin_search.py": {
|
||||
"mtime": 1786094657.392019,
|
||||
"ast_hash": "cd9d359114a86b80ad39cb19b61be435",
|
||||
@@ -1608,5 +1538,100 @@
|
||||
"mtime": 1786093018.7557743,
|
||||
"ast_hash": "a1d38e436dd4e926ee3c39a295d930e3",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/duty.py": {
|
||||
"mtime": 1786962300.7785535,
|
||||
"ast_hash": "373ab9a759e0aa3f4a37bc827afe00f8",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/public_duty.py": {
|
||||
"mtime": 1786782175.1074886,
|
||||
"ast_hash": "7621313191ee9ed99b4b0aece4b38ce2",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/menu_favorite.py": {
|
||||
"mtime": 1786164467.195259,
|
||||
"ast_hash": "12308ecbf901e2710416423383c22707",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/duty_models.py": {
|
||||
"mtime": 1786968943.7894385,
|
||||
"ast_hash": "ac4ef5228cbf8821ca6abf160b11634e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/duty.py": {
|
||||
"mtime": 1786968917.036718,
|
||||
"ast_hash": "48a191d6b71d0367844a20c0b58ced32",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/menu_favorite.py": {
|
||||
"mtime": 1786164463.9583578,
|
||||
"ast_hash": "8ef910f4360507aded21297732b7cda4",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/crm_settlement_clause.py": {
|
||||
"mtime": 1786936843.88089,
|
||||
"ast_hash": "5c925ba943ce3fdd35ad767ff69bd3b9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/duty_schedule.py": {
|
||||
"mtime": 1786968943.2990172,
|
||||
"ast_hash": "95a2c1fd6c9848f584fbbd5e817d42ea",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_internal_customer.py": {
|
||||
"mtime": 1786203402.2958312,
|
||||
"ast_hash": "a11ce7d29f7285bc4d65f9fe9845805e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260814_duty_schedule.sql": {
|
||||
"mtime": 1786780828.212848,
|
||||
"ast_hash": "cc55e9e99cb71881758315e366178240",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260815_duty_menu_portal_fix.sql": {
|
||||
"mtime": 1786862443.5190866,
|
||||
"ast_hash": "b639e0673848f86bd7f0e46d00b24601",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260816_crm_settlement_method_options.sql": {
|
||||
"mtime": 1786863543.5774279,
|
||||
"ast_hash": "1926afbfb9d9534d4f96a743160d0394",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260817_bx_reimburse_detail_occur_date.sql": {
|
||||
"mtime": 1786952998.7556877,
|
||||
"ast_hash": "115e7bc5352900901cbc7222d6055afc",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260817_duty_staff_role.sql": {
|
||||
"mtime": 1786961977.381234,
|
||||
"ast_hash": "485a6e3405d4b04dcf0654b701ac4ca8",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_bx_optional_date.py": {
|
||||
"mtime": 1786953396.8217323,
|
||||
"ast_hash": "352fd5738fdbcf11d8c9706588492610",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_approval_reedit.py": {
|
||||
"mtime": 1786365642.4439082,
|
||||
"ast_hash": "911e944dfa9e92500797e8e0d9fe44c6",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_settlement_clause.py": {
|
||||
"mtime": 1786936844.0551229,
|
||||
"ast_hash": "24fefbbc0e587d3e4d043adcf9de32ee",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_duty_schedule.py": {
|
||||
"mtime": 1786962525.0293584,
|
||||
"ast_hash": "b4f8930c8641f23bba5a411774fa66bc",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_menu_favorite_crud.py": {
|
||||
"mtime": 1786161663.839656,
|
||||
"ast_hash": "4404ae2a3524b330074edb2605990226",
|
||||
"semantic_hash": ""
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,8 @@ export type BxMenuEntry = {
|
||||
group: string
|
||||
icon: string
|
||||
color: string
|
||||
/** true 时不在首页等入口展示(保留定义与路由,便于恢复) */
|
||||
hidden?: boolean
|
||||
}
|
||||
|
||||
/** 仅叶子业务入口;用户/角色/菜单管理不收录 */
|
||||
@@ -29,6 +31,7 @@ export const BX_MENU_CATALOG: BxMenuEntry[] = [
|
||||
group: '备用金',
|
||||
icon: 'passed',
|
||||
color: '#059669',
|
||||
hidden: true,
|
||||
},
|
||||
{
|
||||
menuCode: 'bx:advanceIssue:list',
|
||||
@@ -38,6 +41,7 @@ export const BX_MENU_CATALOG: BxMenuEntry[] = [
|
||||
group: '备用金',
|
||||
icon: 'balance-o',
|
||||
color: '#0d9488',
|
||||
hidden: true,
|
||||
},
|
||||
{
|
||||
menuCode: 'bx:reimburseApply:list',
|
||||
@@ -56,6 +60,7 @@ export const BX_MENU_CATALOG: BxMenuEntry[] = [
|
||||
group: '报销',
|
||||
icon: 'checked',
|
||||
color: '#1d4ed8',
|
||||
hidden: true,
|
||||
},
|
||||
{
|
||||
menuCode: 'bx:payment:list',
|
||||
@@ -65,6 +70,7 @@ export const BX_MENU_CATALOG: BxMenuEntry[] = [
|
||||
group: '报销',
|
||||
icon: 'paid',
|
||||
color: '#7c3aed',
|
||||
hidden: true,
|
||||
},
|
||||
{
|
||||
menuCode: 'bx:viewMine:list',
|
||||
@@ -83,6 +89,7 @@ export const BX_MENU_CATALOG: BxMenuEntry[] = [
|
||||
group: '视图',
|
||||
icon: 'todo-list-o',
|
||||
color: '#d97706',
|
||||
hidden: true,
|
||||
},
|
||||
{
|
||||
menuCode: 'bx:viewAll:list',
|
||||
|
||||
@@ -12,7 +12,9 @@ export function filterVisibleEntries(
|
||||
opts: { isSuperAdmin: boolean; all: boolean; menuCodes: string[] },
|
||||
phase: number = BX_MENU_CURRENT_PHASE,
|
||||
): BxMenuEntry[] {
|
||||
return BX_MENU_CATALOG.filter((e) => e.phase <= phase && canAccess(e.menuCode, opts))
|
||||
return BX_MENU_CATALOG.filter(
|
||||
(e) => !e.hidden && e.phase <= phase && canAccess(e.menuCode, opts),
|
||||
)
|
||||
}
|
||||
|
||||
export function entryByPath(path: string): BxMenuEntry | undefined {
|
||||
|
||||
@@ -17,8 +17,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Todo card(置于功能菜单上方) -->
|
||||
<div class="home-panels" style="margin-top: 12px; display: flex; flex-direction: column; gap: 10px">
|
||||
<!-- Todo card(置于功能菜单上方;SHOW_HOME_TODO_PANEL 恢复展示) -->
|
||||
<div
|
||||
v-if="SHOW_HOME_TODO_PANEL"
|
||||
class="home-panels"
|
||||
style="margin-top: 12px; display: flex; flex-direction: column; gap: 10px"
|
||||
>
|
||||
<div class="todo-card">
|
||||
<div v-if="todoItems.length" class="todo-head todo-head--badge-only">
|
||||
<span class="badge">{{ todoItems.length }}</span>
|
||||
@@ -98,6 +102,9 @@ import { advanceApi, paymentApi, reimburseApi } from '@/api'
|
||||
const router = useRouter()
|
||||
const auth = useAuthStore()
|
||||
|
||||
/** 首页待办事项区域:false 隐藏(保留逻辑,改 true 即可恢复) */
|
||||
const SHOW_HOME_TODO_PANEL = false
|
||||
|
||||
const stats = ref({
|
||||
submittedThisMonth: 0,
|
||||
pendingCount: 0,
|
||||
|
||||
@@ -28,32 +28,32 @@
|
||||
<van-cell title="修改密码" icon="lock" is-link @click="showPasswordDialog = true" />
|
||||
</van-cell-group>
|
||||
|
||||
<!-- 按门户 menuCode 显隐快捷入口 -->
|
||||
<!-- 按门户 menuCode + 目录 hidden 显隐快捷入口 -->
|
||||
<template v-if="showQuickNav">
|
||||
<van-cell-group inset class="group-block" title="快捷入口">
|
||||
<van-cell
|
||||
v-if="auth.can('bx:advanceApprove:list')"
|
||||
v-if="isEntryVisible('bx:advanceApprove:list')"
|
||||
title="备用金审批"
|
||||
icon="cash-back-record"
|
||||
is-link
|
||||
to="/advance/approve"
|
||||
/>
|
||||
<van-cell
|
||||
v-if="auth.can('bx:reimburseApprove:list')"
|
||||
v-if="isEntryVisible('bx:reimburseApprove:list')"
|
||||
title="报销审批"
|
||||
icon="description"
|
||||
is-link
|
||||
to="/reimburse/approve"
|
||||
/>
|
||||
<van-cell
|
||||
v-if="auth.can('bx:advanceIssue:list')"
|
||||
v-if="isEntryVisible('bx:advanceIssue:list')"
|
||||
title="发放管理"
|
||||
icon="balance-list-o"
|
||||
is-link
|
||||
to="/advance/issue"
|
||||
/>
|
||||
<van-cell
|
||||
v-if="auth.can('bx:viewAll:list')"
|
||||
v-if="isEntryVisible('bx:viewAll:list')"
|
||||
title="全部记录"
|
||||
icon="records"
|
||||
is-link
|
||||
@@ -145,12 +145,16 @@ const passwordForm = reactive({
|
||||
confirmPassword: '',
|
||||
})
|
||||
|
||||
function isEntryVisible(menuCode: string) {
|
||||
return auth.visibleEntries.some((e) => e.menuCode === menuCode)
|
||||
}
|
||||
|
||||
const showQuickNav = computed(
|
||||
() =>
|
||||
auth.can('bx:advanceApprove:list') ||
|
||||
auth.can('bx:reimburseApprove:list') ||
|
||||
auth.can('bx:advanceIssue:list') ||
|
||||
auth.can('bx:viewAll:list'),
|
||||
isEntryVisible('bx:advanceApprove:list') ||
|
||||
isEntryVisible('bx:reimburseApprove:list') ||
|
||||
isEntryVisible('bx:advanceIssue:list') ||
|
||||
isEntryVisible('bx:viewAll:list'),
|
||||
)
|
||||
|
||||
const avatarChar = computed(() => {
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
# 门户首页「待办列表」汇总入口
|
||||
|
||||
## 背景与目标
|
||||
|
||||
门户首页(`web-admin/src/views/portal/home/index.vue`)已对部分菜单卡片展示右上角数字角标,但分散在各一级模块中,用户需逐个翻找。目标:在侧栏「收藏」下方增加虚拟分类 **「待办列表」**,集中展示当前有待办的菜单入口。
|
||||
|
||||
## 已确认决策
|
||||
|
||||
| 项 | 决策 |
|
||||
|----|------|
|
||||
| 展示范围 | 仅角标数量 > 0 的菜单(方案 B) |
|
||||
| 与原模块关系 | 两边都有;待办列表为汇总,原模块卡片不变(方案 A) |
|
||||
| 卡片排序 | 按角标数量降序;相同则按标题(zh) |
|
||||
| 侧栏数字 | **角标数字总和**(>99 显示 `99+`) |
|
||||
| 实现形态 | 侧栏虚拟模块(非独立路由) |
|
||||
| 后端 | 不新增接口;复用 `refreshMenuBadges` + CRM 报价/合同 pending |
|
||||
|
||||
## 角标来源(与现网一致)
|
||||
|
||||
- 统一体系:`MENU_BADGE_CODES`(PL / BX / workflow)
|
||||
- 首页单独:报价单审批、合同审批(`PENDING_CARD_RULES`)
|
||||
|
||||
## SHALL
|
||||
|
||||
1. 侧栏顺序:收藏 → **待办列表** → 各一级业务模块。
|
||||
2. 待办列表仅列出当前用户可见且 `pendingCount > 0` 的卡片;空态文案「暂无待办」。
|
||||
3. 卡片交互与模块页一致(进入、角标、星标收藏)。
|
||||
4. 侧栏「待办列表」右侧数字为各待办卡片角标之和(格式化同卡片)。
|
||||
5. 不改侧栏业务菜单树、不改角标拉取 API。
|
||||
|
||||
## 非目标
|
||||
|
||||
- 不把 CRM 角标并入侧栏 `menu-badge` 体系(仍仅首页拉取)。
|
||||
- 不隐藏原模块内同名卡片。
|
||||
- 不做拖拽排序(待办顺序由数量决定)。
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"/Users/wuzilong/work/00code/shanxia2.0/.agents/skills/brainstorming/scripts/start-server.sh":{"size":4606,"mtime_ns":1780108930000000000,"hash":"7c3c6c5cce454f755159758334ffb434c970a29960bbff6669efe0cb22d1f2fb"},"/Users/wuzilong/work/00code/shanxia2.0/.agents/skills/brainstorming/scripts/stop-server.sh":{"size":1314,"mtime_ns":1780108930000000000,"hash":"9581ff879388aaa10463aea1fc1e9f9c00d69f2106f055ac976f97513ab84aba"},"/Users/wuzilong/work/00code/shanxia2.0/.agents/skills/systematic-debugging/find-polluter.sh":{"size":1528,"mtime_ns":1780108930000000000,"hash":"8340aac47e1279874e46d7ecb4954b5faae531a883abf05b118951687d8ca044"},"/Users/wuzilong/work/00code/shanxia2.0/.cursor/mcp.json":{"size":468,"mtime_ns":1780120483000000000,"hash":"ce4b438767a095c6a830e4612c221303ea16ab46af23f438bfb033eace904c36"},"/Users/wuzilong/work/00code/shanxia2.0/.opencode/opencode.json":{"size":105,"mtime_ns":1780120095000000000,"hash":"936122822138b12f363fb9b7a8567edaa1f834c835137a4c72d81c17116ce11e"},"/Users/wuzilong/work/00code/shanxia2.0/.opencode/package.json":{"size":65,"mtime_ns":1780109751000000000,"hash":"cf97d417f1ebce0ba81ad4629a5345e13cc95cb799c6eb2632caead5364880de"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_17f66cf13ffeo6JpSbBDM7Jx4t.json":{"size":214,"mtime_ns":1780274139000000000,"hash":"26182a523926188400188b8cc668585f8e81586416fa2399fd3585b0c07ff86c"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_1818ffbf9ffezXCeRFVV3Jj01O.json":{"size":263,"mtime_ns":1780238536000000000,"hash":"bf2e860eaa6fa5051d4cb0f70a53cf419b558c57759154e559712efef636dcb5"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_181f43997ffeO8mkoWfZl8v2Ri.json":{"size":214,"mtime_ns":1780236423000000000,"hash":"8252a79ead22a73fe0e229ef4eb6e1aac159547cdc04607d4102c75b077501a2"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_1823f3f66ffesCD5qohVVcWtbf.json":{"size":214,"mtime_ns":1780230242000000000,"hash":"27ba5fb0606f8ddda44c4f01ce5fbce77d7429f890317c6a1a6f9456058b1f70"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_183d2d323ffeBMoLOLwwPmAXym.json":{"size":214,"mtime_ns":1780210339000000000,"hash":"26814a22a2f0ee80b65a7306c4f52becca5edb09358cc12b588efa896546f571"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_183f72fc4ffeCZI7jMs3P9gB5n.json":{"size":214,"mtime_ns":1780201410000000000,"hash":"cd6c278503c190ec5dae59675957e9a963cbd94ce09cf974b838a0e717b42817"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_184f894aeffej3cvErXgdYFhY8.json":{"size":263,"mtime_ns":1780201410000000000,"hash":"d3bb6c88a4c332c09d2684c3a34f10e311620956a8777a894cb1492ab15cce86"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_186a13679ffenULQIK102x2NfS.json":{"size":214,"mtime_ns":1780201410000000000,"hash":"eb2fe454abea5ef36854bc2858ba6e9ac5e8f4d18e0121901f007816e0e40ebe"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_187ac729affeBH1jDFb5X7rWz0.json":{"size":214,"mtime_ns":1780201410000000000,"hash":"b571d2be1c871201f1d572c536b57c89a277b0b3eb3f3a3e4125db5008b37a3f"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_18880f06fffeJSijqM7oWZ6JYI.json":{"size":214,"mtime_ns":1780201410000000000,"hash":"efb86e46a8d0c2af314450407bfacd3f422ec8f68025291a440760cffe4ca092"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_1892f6be2ffe1K80MWGl0oc2Fo.json":{"size":214,"mtime_ns":1780114611000000000,"hash":"9b109fac4a24678ea27b4afe2840bcd06c339b490508d6aa531e051fe3f034b7"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/__init__.py":{"size":21,"mtime_ns":1780113982000000000,"hash":"5d7c80dd077475acb7eb12227dc0e7cf38bbb5fd9e84c4eab9eb2be8c5406357"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/__init__.py":{"size":665,"mtime_ns":1780804649000000000,"hash":"349c40e55e8aae86d0913a17da2f9d338d842243e5fdf807bad52382bc2876d9"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/admin.py":{"size":52987,"mtime_ns":1786164471385093466,"hash":"4566289fd8c57c51d4047a461b3953f67f5ddb83dbd59cd999c9d0c77caf142a"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/__init__.py":{"size":827,"mtime_ns":1784980394000000000,"hash":"7605bb52b5361261c5e04d52bec9a1e704b49dd4ffe5c561da079831e8d8db9e"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/advance.py":{"size":13404,"mtime_ns":1784992736000000000,"hash":"7e4bacb178dde4fddc158713abe0eb9e8ab6fedf57e571701e45a5af3189f858"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/attachment.py":{"size":5758,"mtime_ns":1782790898000000000,"hash":"f2d20fc5b2a98748835ae1710666f11eae1aa323d80a4678189bb2d032559b4b"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/expense_item.py":{"size":3362,"mtime_ns":1782650913000000000,"hash":"142f0f6a3e45cb5d7b8153ee3048c5fb82258167264f325dd4fa8801b2e56c35"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/apLine truncated
|
||||
{"/Users/wuzilong/work/00code/shanxia2.0/.agents/skills/brainstorming/scripts/start-server.sh":{"size":4606,"mtime_ns":1780108930000000000,"hash":"7c3c6c5cce454f755159758334ffb434c970a29960bbff6669efe0cb22d1f2fb"},"/Users/wuzilong/work/00code/shanxia2.0/.agents/skills/brainstorming/scripts/stop-server.sh":{"size":1314,"mtime_ns":1780108930000000000,"hash":"9581ff879388aaa10463aea1fc1e9f9c00d69f2106f055ac976f97513ab84aba"},"/Users/wuzilong/work/00code/shanxia2.0/.agents/skills/systematic-debugging/find-polluter.sh":{"size":1528,"mtime_ns":1780108930000000000,"hash":"8340aac47e1279874e46d7ecb4954b5faae531a883abf05b118951687d8ca044"},"/Users/wuzilong/work/00code/shanxia2.0/.cursor/mcp.json":{"size":468,"mtime_ns":1780120483000000000,"hash":"ce4b438767a095c6a830e4612c221303ea16ab46af23f438bfb033eace904c36"},"/Users/wuzilong/work/00code/shanxia2.0/.opencode/opencode.json":{"size":105,"mtime_ns":1780120095000000000,"hash":"936122822138b12f363fb9b7a8567edaa1f834c835137a4c72d81c17116ce11e"},"/Users/wuzilong/work/00code/shanxia2.0/.opencode/package.json":{"size":65,"mtime_ns":1780109751000000000,"hash":"cf97d417f1ebce0ba81ad4629a5345e13cc95cb799c6eb2632caead5364880de"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_17f66cf13ffeo6JpSbBDM7Jx4t.json":{"size":214,"mtime_ns":1780274139000000000,"hash":"26182a523926188400188b8cc668585f8e81586416fa2399fd3585b0c07ff86c"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_1818ffbf9ffezXCeRFVV3Jj01O.json":{"size":263,"mtime_ns":1780238536000000000,"hash":"bf2e860eaa6fa5051d4cb0f70a53cf419b558c57759154e559712efef636dcb5"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_181f43997ffeO8mkoWfZl8v2Ri.json":{"size":214,"mtime_ns":1780236423000000000,"hash":"8252a79ead22a73fe0e229ef4eb6e1aac159547cdc04607d4102c75b077501a2"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_1823f3f66ffesCD5qohVVcWtbf.json":{"size":214,"mtime_ns":1780230242000000000,"hash":"27ba5fb0606f8ddda44c4f01ce5fbce77d7429f890317c6a1a6f9456058b1f70"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_183d2d323ffeBMoLOLwwPmAXym.json":{"size":214,"mtime_ns":1780210339000000000,"hash":"26814a22a2f0ee80b65a7306c4f52becca5edb09358cc12b588efa896546f571"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_183f72fc4ffeCZI7jMs3P9gB5n.json":{"size":214,"mtime_ns":1780201410000000000,"hash":"cd6c278503c190ec5dae59675957e9a963cbd94ce09cf974b838a0e717b42817"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_184f894aeffej3cvErXgdYFhY8.json":{"size":263,"mtime_ns":1780201410000000000,"hash":"d3bb6c88a4c332c09d2684c3a34f10e311620956a8777a894cb1492ab15cce86"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_186a13679ffenULQIK102x2NfS.json":{"size":214,"mtime_ns":1780201410000000000,"hash":"eb2fe454abea5ef36854bc2858ba6e9ac5e8f4d18e0121901f007816e0e40ebe"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_187ac729affeBH1jDFb5X7rWz0.json":{"size":214,"mtime_ns":1780201410000000000,"hash":"b571d2be1c871201f1d572c536b57c89a277b0b3eb3f3a3e4125db5008b37a3f"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_18880f06fffeJSijqM7oWZ6JYI.json":{"size":214,"mtime_ns":1780201410000000000,"hash":"efb86e46a8d0c2af314450407bfacd3f422ec8f68025291a440760cffe4ca092"},"/Users/wuzilong/work/00code/shanxia2.0/.sisyphus/run-continuation/ses_1892f6be2ffe1K80MWGl0oc2Fo.json":{"size":214,"mtime_ns":1780114611000000000,"hash":"9b109fac4a24678ea27b4afe2840bcd06c339b490508d6aa531e051fe3f034b7"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/__init__.py":{"size":21,"mtime_ns":1780113982000000000,"hash":"5d7c80dd077475acb7eb12227dc0e7cf38bbb5fd9e84c4eab9eb2be8c5406357"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/__init__.py":{"size":665,"mtime_ns":1780804649000000000,"hash":"349c40e55e8aae86d0913a17da2f9d338d842243e5fdf807bad52382bc2876d9"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/admin.py":{"size":52987,"mtime_ns":1786164471385093466,"hash":"4566289fd8c57c51d4047a461b3953f67f5ddb83dbd59cd999c9d0c77caf142a"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/__init__.py":{"size":827,"mtime_ns":1784980394000000000,"hash":"7605bb52b5361261c5e04d52bec9a1e704b49dd4ffe5c561da079831e8d8db9e"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/advance.py":{"size":13404,"mtime_ns":1784992736000000000,"hash":"7e4bacb178dde4fddc158713abe0eb9e8ab6fedf57e571701e45a5af3189f858"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/attachment.py":{"size":5758,"mtime_ns":1782790898000000000,"hash":"f2d20fc5b2a98748835ae1710666f11eae1aa323d80a4678189bb2d032559b4b"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/expense_item.py":{"size":3362,"mtime_ns":1782650913000000000,"hash":"142f0f6a3e45cb5d7b8153ee3048c5fb82258167264f325dd4fa8801b2e56c35"},"/Users/wuzilong/work/00code/shanxia2.0/backend/app/apLine truncated
|
||||
+990
-4740
File diff suppressed because it is too large.
Load diff
@@ -184,33 +184,47 @@
|
||||
"182": "Community 182",
|
||||
"183": "Ha",
|
||||
"184": "highlight.ts",
|
||||
"185": "handleConfirmApproval",
|
||||
"186": "StorageKeyManager",
|
||||
"187": "Community 187",
|
||||
"188": "Community 188",
|
||||
"189": "Community 189",
|
||||
"190": "error-handle.ts",
|
||||
"191": "fetchDesignerData",
|
||||
"193": "loadDefaultCustomerOptions",
|
||||
"191": "formatYmd",
|
||||
"192": "loadDefaultCustomerOptions",
|
||||
"193": "fetchData",
|
||||
"194": "fetchData",
|
||||
"195": "Community 195",
|
||||
"196": "Community 196",
|
||||
"197": "handleEdit",
|
||||
"198": "fetchData",
|
||||
"199": "fetchData",
|
||||
"200": "index.js",
|
||||
"201": "fetchCustomerDetail",
|
||||
"202": "Community 202",
|
||||
"203": "menuFavorite.ts",
|
||||
"204": "fetchData",
|
||||
"205": "index.vue",
|
||||
"206": "price-letter.ts",
|
||||
"207": "emit",
|
||||
"208": "handleSearch",
|
||||
"209": "Community 209",
|
||||
"210": "Community 210",
|
||||
"211": "loadUserOptions",
|
||||
"212": "index.js",
|
||||
"213": "Community 213",
|
||||
"214": "Community 214",
|
||||
"215": "handleDelete",
|
||||
"216": "handleSearch",
|
||||
"217": "index.js",
|
||||
"218": "index.js",
|
||||
"219": "handleAdd",
|
||||
"220": "index.vue",
|
||||
"221": "zh_CN.js",
|
||||
"221": "getInventoryStatCellValue",
|
||||
"222": "handleEdit",
|
||||
"223": "Community 223",
|
||||
"224": "Community 224",
|
||||
"225": "getPlMaintenanceApplyStatusLabel",
|
||||
"225": "zh_CN.js",
|
||||
"226": "form.vue",
|
||||
"227": "Community 227",
|
||||
"228": "Community 228",
|
||||
@@ -297,7 +311,6 @@
|
||||
"405": "zh_CN.js",
|
||||
"406": "Community 406",
|
||||
"408": "Community 408",
|
||||
"409": "DbCrmCustomerSelect.vue",
|
||||
"410": "Community 410",
|
||||
"412": "Community 412",
|
||||
"416": "Community 416",
|
||||
|
||||
@@ -1 +1 @@
|
||||
/Users/wuzilong/work/00code/shanxia2.0/web-admin
|
||||
.
|
||||
@@ -184,39 +184,35 @@
|
||||
"182": "Community 182",
|
||||
"183": "Ha",
|
||||
"184": "highlight.ts",
|
||||
"185": "initLineBrandMetaFromProduct",
|
||||
"185": "handleConfirmApproval",
|
||||
"186": "StorageKeyManager",
|
||||
"187": "Community 187",
|
||||
"188": "Community 188",
|
||||
"189": "Community 189",
|
||||
"190": "error-handle.ts",
|
||||
"191": "fetchDesignerData",
|
||||
"192": "handleOpen",
|
||||
"193": "loadDefaultCustomerOptions",
|
||||
"192": "loadDefaultCustomerOptions",
|
||||
"194": "fetchData",
|
||||
"195": "Community 195",
|
||||
"196": "Community 196",
|
||||
"197": "handleEdit",
|
||||
"198": "fetchCustomerDetail",
|
||||
"199": "fetchData",
|
||||
"200": "index.js",
|
||||
"201": "fetchData",
|
||||
"201": "fetchCustomerDetail",
|
||||
"202": "Community 202",
|
||||
"208": "menuFavorite.ts",
|
||||
"204": "fetchData",
|
||||
"206": "price-letter.ts",
|
||||
"208": "handleSearch",
|
||||
"209": "Community 209",
|
||||
"210": "Community 210",
|
||||
"211": "loadUserOptions",
|
||||
"212": "index.js",
|
||||
"213": "Community 213",
|
||||
"214": "Community 214",
|
||||
"216": "loadUserOptions",
|
||||
"217": "index.js",
|
||||
"218": "index.js",
|
||||
"220": "index.vue",
|
||||
"221": "zh_CN.js",
|
||||
"223": "Community 223",
|
||||
"224": "Community 224",
|
||||
"225": "getPlMaintenanceApplyStatusLabel",
|
||||
"226": "form.vue",
|
||||
"227": "Community 227",
|
||||
"228": "Community 228",
|
||||
@@ -303,7 +299,6 @@
|
||||
"405": "zh_CN.js",
|
||||
"406": "Community 406",
|
||||
"408": "Community 408",
|
||||
"409": "DbCrmCustomerSelect.vue",
|
||||
"410": "Community 410",
|
||||
"412": "Community 412",
|
||||
"416": "Community 416",
|
||||
@@ -505,7 +500,6 @@
|
||||
"1223": "emojiimages.min.js",
|
||||
"1224": "emojis.js",
|
||||
"1225": "emojis.min.js",
|
||||
"1226": "index.js",
|
||||
"1228": "ar.js",
|
||||
"1229": "bg_BG.js",
|
||||
"1230": "ca.js",
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+2410
-2155
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -115,7 +115,9 @@ export interface PlanListParams {
|
||||
executionStatus?: string
|
||||
createdFrom?: string
|
||||
createdTo?: string
|
||||
/** 筛选区间开始:与计划有效期(起始~截止)有交集 */
|
||||
startDateFrom?: string
|
||||
/** 筛选区间结束:与计划有效期(起始~截止)有交集 */
|
||||
startDateTo?: string
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ export interface DutySlotItem {
|
||||
shiftLabel?: string
|
||||
capacity: number
|
||||
taken?: number
|
||||
/** 班次工作安排 */
|
||||
remark?: string | null
|
||||
assignments: DutyAssignmentItem[]
|
||||
}
|
||||
|
||||
@@ -47,6 +49,7 @@ export function saveDutyDay(data: {
|
||||
slots: Array<{
|
||||
shiftType: ShiftType
|
||||
capacity: number
|
||||
remark?: string | null
|
||||
assignments: DutyAssignmentItem[]
|
||||
}>
|
||||
linkStatus?: LinkStatus
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface PublicDutySlot {
|
||||
shiftLabel?: string
|
||||
capacity: number
|
||||
taken: number
|
||||
remark?: string | null
|
||||
assignments: Array<{ id?: string; source: string; personName: string; userId?: string }>
|
||||
}
|
||||
|
||||
|
||||
@@ -405,10 +405,17 @@
|
||||
loadBxAttachments
|
||||
} from '@/utils/bx/attachment'
|
||||
import { invoicesToLinkedAttachmentFiles } from '@/utils/bx/invoice-link-files'
|
||||
import { matchesApplyDateRange, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { buildApplyDateRangeQuery, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { usePagedTable } from '@/hooks/bx/usePagedTable'
|
||||
import { useApplicantOptions } from '@/hooks/bx/useApplicantOptions'
|
||||
|
||||
const STATUS_LABEL_TO_CODE: Record<string, string> = {
|
||||
待提交: 'draft',
|
||||
审批中: 'pending',
|
||||
审批通过: 'approved',
|
||||
审批驳回: 'rejected'
|
||||
}
|
||||
|
||||
type DialogKey = 'viewDetail'
|
||||
|
||||
const loading = ref(false)
|
||||
@@ -464,7 +471,7 @@
|
||||
const filterForm = reactive({
|
||||
code: '',
|
||||
bizType: '' as string,
|
||||
applicantId: undefined as number | undefined,
|
||||
applicantId: undefined as string | number | undefined,
|
||||
status: '' as string,
|
||||
applyDateRange: null as ApplyDateRange,
|
||||
amountRange: '',
|
||||
@@ -474,7 +481,7 @@
|
||||
const appliedFilter = reactive({
|
||||
code: '',
|
||||
bizType: '' as string,
|
||||
applicantId: undefined as number | undefined,
|
||||
applicantId: undefined as string | number | undefined,
|
||||
status: '' as string,
|
||||
applyDateRange: null as ApplyDateRange,
|
||||
amountRange: '',
|
||||
@@ -485,6 +492,7 @@
|
||||
Object.assign(appliedFilter, { ...filterForm })
|
||||
}
|
||||
|
||||
/** 接口已支持的条件在 loadData 中下发;此处仅处理合并列表后的本地条件 */
|
||||
function filterMergedRows(rows: any[]) {
|
||||
let list = [...rows]
|
||||
const quickKw = appliedQuickSearch.value.trim().toLowerCase()
|
||||
@@ -502,32 +510,11 @@
|
||||
.includes(quickKw)
|
||||
)
|
||||
}
|
||||
const code = appliedFilter.code.trim()
|
||||
if (code) list = list.filter((r: any) => String(r.applyCode || '').includes(code))
|
||||
if (appliedFilter.bizType && appliedFilter.bizType !== '全部') {
|
||||
list = list.filter((r: any) => r.bizType === appliedFilter.bizType)
|
||||
}
|
||||
if (appliedFilter.applicantId != null) {
|
||||
list = list.filter((r: any) => Number(r.applicantId) === Number(appliedFilter.applicantId))
|
||||
}
|
||||
if (appliedFilter.applyDateRange?.[0] || appliedFilter.applyDateRange?.[1]) {
|
||||
list = list.filter((r: any) =>
|
||||
matchesApplyDateRange(r.applyTime, appliedFilter.applyDateRange)
|
||||
)
|
||||
}
|
||||
if (appliedFilter.status && appliedFilter.status !== '全部') {
|
||||
if (appliedFilter.status === '已发放') {
|
||||
list = list.filter((r: any) => ['issued', 'paid', 'offset'].includes(r.status))
|
||||
} else {
|
||||
const map: Record<string, string> = {
|
||||
待提交: 'draft',
|
||||
审批中: 'pending',
|
||||
审批通过: 'approved',
|
||||
审批驳回: 'rejected'
|
||||
}
|
||||
const want = map[appliedFilter.status]
|
||||
if (want) list = list.filter((r: any) => r.status === want)
|
||||
}
|
||||
if (appliedFilter.status === '已发放') {
|
||||
list = list.filter((r: any) => ['issued', 'paid', 'offset'].includes(r.status))
|
||||
}
|
||||
if (appliedFilter.currentNode && appliedFilter.currentNode !== '全部') {
|
||||
list = list.filter((r: any) => (r.currentNode || '') === appliedFilter.currentNode)
|
||||
@@ -548,6 +535,21 @@
|
||||
return list
|
||||
}
|
||||
|
||||
function buildApiQuery() {
|
||||
const q: Record<string, string | number> = {}
|
||||
const code = appliedFilter.code.trim()
|
||||
if (code) q.keyword = code
|
||||
if (appliedFilter.applicantId != null && appliedFilter.applicantId !== '') {
|
||||
q.applicantId = String(appliedFilter.applicantId)
|
||||
}
|
||||
if (appliedFilter.status && appliedFilter.status !== '全部' && appliedFilter.status !== '已发放') {
|
||||
const statusCode = STATUS_LABEL_TO_CODE[appliedFilter.status]
|
||||
if (statusCode) q.status = statusCode
|
||||
}
|
||||
buildApplyDateRangeQuery(appliedFilter.applyDateRange, q)
|
||||
return q
|
||||
}
|
||||
|
||||
const filteredMergedRows = computed(() => filterMergedRows(mergedRows.value))
|
||||
|
||||
const pager = usePagedTable(() => filteredMergedRows.value, { initialPageSize: 20 })
|
||||
@@ -641,29 +643,44 @@
|
||||
'已发放'
|
||||
]
|
||||
|
||||
function mapAdvanceRow(r: any) {
|
||||
return {
|
||||
...r,
|
||||
bizType: '备用金',
|
||||
title: r.reason,
|
||||
applyCode: r.applyCode || r.code,
|
||||
applicantName: r.applicantName || r.user,
|
||||
applicantId: r.applicantId
|
||||
}
|
||||
}
|
||||
|
||||
function mapReimburseRow(r: any) {
|
||||
return {
|
||||
...r,
|
||||
bizType: '报销单',
|
||||
title: r.title,
|
||||
applyCode: r.applyCode || r.code,
|
||||
applicantName: r.applicantName || r.user,
|
||||
applicantId: r.applicantId
|
||||
}
|
||||
}
|
||||
|
||||
async function loadData() {
|
||||
loading.value = true
|
||||
try {
|
||||
const [advRes, reimRes]: any[] = await Promise.all([
|
||||
advanceApi.list({ page: 1, pageSize: 999 }),
|
||||
reimburseApi.list({ page: 1, pageSize: 999 })
|
||||
const listParams = { page: 1, pageSize: 9999, ...buildApiQuery() }
|
||||
const [advRes, reimRes] = await Promise.allSettled([
|
||||
advanceApi.list(listParams),
|
||||
reimburseApi.list(listParams)
|
||||
])
|
||||
const advRows = (advRes.data?.rows || []).map((r: any) => ({
|
||||
...r,
|
||||
bizType: '备用金',
|
||||
title: r.reason,
|
||||
applyCode: r.applyCode || r.code,
|
||||
applicantName: r.applicantName || r.user,
|
||||
applicantId: r.applicantId
|
||||
}))
|
||||
const reimRows = (reimRes.data?.rows || []).map((r: any) => ({
|
||||
...r,
|
||||
bizType: '报销单',
|
||||
title: r.title,
|
||||
applyCode: r.applyCode || r.code,
|
||||
applicantName: r.applicantName || r.user,
|
||||
applicantId: r.applicantId
|
||||
}))
|
||||
const advRows =
|
||||
advRes.status === 'fulfilled'
|
||||
? ((advRes.value as any).data?.rows || []).map(mapAdvanceRow)
|
||||
: []
|
||||
const reimRows =
|
||||
reimRes.status === 'fulfilled'
|
||||
? ((reimRes.value as any).data?.rows || []).map(mapReimburseRow)
|
||||
: []
|
||||
mergedRows.value = [...advRows, ...reimRows]
|
||||
} catch {
|
||||
// error handled by interceptor
|
||||
@@ -677,6 +694,7 @@
|
||||
appliedQuickSearch.value = ''
|
||||
syncAppliedFilter()
|
||||
pager.currentPage.value = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
useDbInstantSearch(
|
||||
@@ -714,6 +732,7 @@
|
||||
currentNode: ''
|
||||
})
|
||||
pager.currentPage.value = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleQuickSearch() {
|
||||
|
||||
@@ -758,7 +758,7 @@
|
||||
|
||||
const handleDateRangeChange = () => {
|
||||
activeDateShortcut.value = ''
|
||||
currentPage.value = 1
|
||||
handleSearch()
|
||||
}
|
||||
|
||||
const resetFormData = () => {
|
||||
|
||||
@@ -110,6 +110,7 @@
|
||||
:key="ci"
|
||||
class="chip"
|
||||
:class="chip.cls"
|
||||
:title="chip.title || chip.text"
|
||||
>
|
||||
{{ chip.text }}
|
||||
</span>
|
||||
@@ -179,7 +180,7 @@
|
||||
v-model="dialogVisible"
|
||||
class="dialog-form-layout duty-day-dialog"
|
||||
:title="`配置 · ${editingDate}`"
|
||||
width="640px"
|
||||
width="880px"
|
||||
align-center
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
@@ -198,23 +199,35 @@
|
||||
</div>
|
||||
</div>
|
||||
<template v-if="slot.enabled">
|
||||
<el-form-item label="直接安排(值班人员)">
|
||||
<el-select
|
||||
v-model="slot.pendingUserId"
|
||||
filterable
|
||||
clearable
|
||||
placeholder="选择员工后添加"
|
||||
style="width: 100%"
|
||||
@change="(v) => addAssign(slot, String(v || ''))"
|
||||
>
|
||||
<el-option
|
||||
v-for="u in userOptions"
|
||||
:key="u.value"
|
||||
:label="u.label"
|
||||
:value="u.value"
|
||||
<div class="form-grid-2 slot-assign-row">
|
||||
<el-form-item label="值班安排">
|
||||
<el-select
|
||||
v-model="slot.pendingUserId"
|
||||
filterable
|
||||
clearable
|
||||
placeholder="选择员工后添加"
|
||||
style="width: 100%"
|
||||
@change="(v) => addAssign(slot, String(v || ''))"
|
||||
>
|
||||
<el-option
|
||||
v-for="u in userOptions"
|
||||
:key="u.value"
|
||||
:label="u.label"
|
||||
:value="u.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="工作安排">
|
||||
<el-input
|
||||
v-model="slot.remark"
|
||||
type="textarea"
|
||||
:rows="2"
|
||||
maxlength="500"
|
||||
show-word-limit
|
||||
placeholder="可选,填写本班次工作安排"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="person-tags">
|
||||
<el-tag
|
||||
v-for="(a, ai) in slot.assignments"
|
||||
@@ -320,6 +333,7 @@
|
||||
shiftType: ShiftType
|
||||
enabled: boolean
|
||||
capacity: number
|
||||
remark: string
|
||||
pendingUserId: string
|
||||
assignments: DutySlotItem['assignments']
|
||||
}
|
||||
@@ -329,6 +343,7 @@
|
||||
shiftType: t,
|
||||
enabled: false,
|
||||
capacity: 1,
|
||||
remark: '',
|
||||
pendingUserId: '',
|
||||
assignments: []
|
||||
}))
|
||||
@@ -473,7 +488,7 @@
|
||||
dateStr: string
|
||||
isToday: boolean
|
||||
summary?: DutyDayItem
|
||||
chips: Array<{ text: string; cls: string }>
|
||||
chips: Array<{ text: string; cls: string; title?: string }>
|
||||
}> = []
|
||||
|
||||
const prevDays = new Date(y, m - 1, 0).getDate()
|
||||
@@ -484,7 +499,7 @@
|
||||
for (let d = 1; d <= daysInMonth; d++) {
|
||||
const dateStr = toDateStr(y, m, d)
|
||||
const summary = dayMap.value.get(dateStr)
|
||||
const chips: Array<{ text: string; cls: string }> = []
|
||||
const chips: Array<{ text: string; cls: string; title?: string }> = []
|
||||
if (summary?.slots?.length) {
|
||||
for (const s of summary.slots) {
|
||||
if (shiftFilter && s.shiftType !== shiftFilter) continue
|
||||
@@ -494,6 +509,7 @@
|
||||
if (filterKey && !matched.length) continue
|
||||
const names = matched.map((a) => a.personName).filter(Boolean)
|
||||
const taken = s.taken ?? (s.assignments || []).length
|
||||
const remark = (s.remark || '').trim()
|
||||
let text: string
|
||||
if (filterKey) {
|
||||
text = `${s.shiftLabel || SHIFT_LABELS[s.shiftType]} ${names.join('、')}`
|
||||
@@ -502,7 +518,14 @@
|
||||
} else {
|
||||
text = `${s.shiftLabel || SHIFT_LABELS[s.shiftType]} ${taken}/${s.capacity}`
|
||||
}
|
||||
chips.push({ text, cls: SHIFT_CLS[s.shiftType] || 'am' })
|
||||
if (remark) {
|
||||
text = `${text} · ${remark}`
|
||||
}
|
||||
chips.push({
|
||||
text,
|
||||
cls: SHIFT_CLS[s.shiftType] || 'am',
|
||||
title: remark || undefined
|
||||
})
|
||||
}
|
||||
if (!hasFilter && !chips.length) {
|
||||
chips.push({ text: '未排班 · 点击配置', cls: 'empty' })
|
||||
@@ -598,6 +621,7 @@
|
||||
const found = detail?.slots?.find((s) => s.shiftType === fs.shiftType)
|
||||
fs.enabled = !!found
|
||||
fs.capacity = found?.capacity || 1
|
||||
fs.remark = (found?.remark || '').trim()
|
||||
fs.pendingUserId = ''
|
||||
fs.assignments = found ? [...(found.assignments || [])] : []
|
||||
}
|
||||
@@ -665,6 +689,7 @@
|
||||
.map((s) => ({
|
||||
shiftType: s.shiftType,
|
||||
capacity: s.capacity,
|
||||
remark: s.remark.trim() || null,
|
||||
assignments: s.assignments
|
||||
.filter((a) => a.source === 'assign')
|
||||
.map((a) => ({
|
||||
@@ -1147,6 +1172,12 @@
|
||||
justify-content: space-between;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.slot-assign-row {
|
||||
margin-bottom: 4px;
|
||||
:deep(.el-form-item) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.cap-field {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
|
||||
@@ -11,6 +11,15 @@
|
||||
<span>收藏</span>
|
||||
<span class="n">{{ favoriteList.length }}</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="portal-home-aside__item"
|
||||
:class="{ 'is-on': isTodoView }"
|
||||
@click="activeModule = TODO_KEY"
|
||||
>
|
||||
<span>待办列表</span>
|
||||
<span class="n">{{ formatPendingCount(todoTotalSum) }}</span>
|
||||
</button>
|
||||
<button
|
||||
v-for="mod in modules"
|
||||
:key="mod.modulePath"
|
||||
@@ -77,6 +86,44 @@
|
||||
<p v-else class="portal-home-empty">暂无收藏,可在各模块菜单卡片上点星标添加</p>
|
||||
</section>
|
||||
|
||||
<section v-else-if="isTodoView" class="portal-home-block portal-home-block--flat">
|
||||
<div v-if="todoList.length" class="portal-home-grid">
|
||||
<button
|
||||
v-for="card in todoList"
|
||||
:key="'todo-' + card.path"
|
||||
type="button"
|
||||
class="portal-home-card"
|
||||
@click="openCard(card.path)"
|
||||
>
|
||||
<span
|
||||
class="portal-home-card__pending"
|
||||
:aria-label="`${pendingCountFor(card)} 条待审批`"
|
||||
>
|
||||
{{ formatPendingCount(pendingCountFor(card)) }}
|
||||
</span>
|
||||
<span class="portal-home-card__badge" aria-hidden="true">
|
||||
{{ titleAbbr(card.title) }}
|
||||
</span>
|
||||
<span class="portal-home-card__body">
|
||||
<span class="portal-home-card__title">{{ card.title }}</span>
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
class="portal-home-card__star"
|
||||
:class="{ 'is-on': favoritePathSet.has(card.path) }"
|
||||
:aria-label="favoritePathSet.has(card.path) ? '取消收藏' : '加入收藏'"
|
||||
@click.stop="onToggleStar(card.path)"
|
||||
>
|
||||
<ElIcon>
|
||||
<StarFilled v-if="favoritePathSet.has(card.path)" />
|
||||
<Star v-else />
|
||||
</ElIcon>
|
||||
</button>
|
||||
</button>
|
||||
</div>
|
||||
<p v-else class="portal-home-empty">暂无待办</p>
|
||||
</section>
|
||||
|
||||
<template v-else>
|
||||
<section
|
||||
v-for="(group, gIdx) in activeGroups"
|
||||
@@ -156,6 +203,7 @@
|
||||
defineOptions({ name: 'PortalHome' })
|
||||
|
||||
const FAV_KEY = '__favorites__'
|
||||
const TODO_KEY = '__todos__'
|
||||
/** CRM 报价/合同审批:侧栏角标体系尚未覆盖,首页单独拉取 */
|
||||
const PENDING_CARD_RULES: Array<{
|
||||
key: 'quote' | 'contract'
|
||||
@@ -194,9 +242,10 @@
|
||||
const favoritePathSet = computed(() => new Set(favItems.value.map((i) => i.path)))
|
||||
|
||||
const isFavView = computed(() => activeModule.value === FAV_KEY)
|
||||
const isTodoView = computed(() => activeModule.value === TODO_KEY)
|
||||
|
||||
const activeSection = computed(() => {
|
||||
if (isFavView.value) return undefined
|
||||
if (isFavView.value || isTodoView.value) return undefined
|
||||
return modules.value.find((m) => m.modulePath === activeModule.value)
|
||||
})
|
||||
|
||||
@@ -204,48 +253,6 @@
|
||||
|
||||
const activeCards = computed(() => activeSection.value?.cards || [])
|
||||
|
||||
const panelTitle = computed(() => {
|
||||
if (isFavView.value) return '收藏'
|
||||
return activeSection.value?.moduleTitle || ''
|
||||
})
|
||||
|
||||
const panelDesc = computed(() =>
|
||||
isFavView.value ? '可拖拽调整顺序,星标取消收藏' : '按二级菜单分组展示,点击卡片进入功能'
|
||||
)
|
||||
|
||||
const panelCount = computed(() =>
|
||||
isFavView.value ? favoriteList.value.length : activeCards.value.length
|
||||
)
|
||||
|
||||
const titleAbbr = (title: string) => {
|
||||
const t = String(title || '').trim()
|
||||
if (!t) return '?'
|
||||
return t.slice(0, 1)
|
||||
}
|
||||
|
||||
const ensureActiveModule = () => {
|
||||
if (activeModule.value === FAV_KEY) return
|
||||
const list = modules.value
|
||||
if (!list.length) {
|
||||
activeModule.value = FAV_KEY
|
||||
return
|
||||
}
|
||||
if (!list.some((m) => m.modulePath === activeModule.value)) {
|
||||
activeModule.value = FAV_KEY
|
||||
}
|
||||
}
|
||||
|
||||
const syncFavoriteList = () => {
|
||||
favoriteList.value = favItems.value.map(
|
||||
(i) => findHomeCardByPath(modules.value, i.path) || { path: i.path, title: i.path }
|
||||
)
|
||||
}
|
||||
|
||||
const resolveCurrentUserId = (): string => {
|
||||
const info = (userStore.info || {}) as { id?: string | number; userId?: string | number }
|
||||
return String(info.id || info.userId || '')
|
||||
}
|
||||
|
||||
const resolveBadgeMenuCode = (card: PortalHomeCardItem) => {
|
||||
const code = String(card.menuCode || '').trim()
|
||||
if (code && MENU_BADGE_CODE_SET.has(code)) return code
|
||||
@@ -276,6 +283,84 @@
|
||||
|
||||
const formatPendingCount = (n: number) => (n > 99 ? '99+' : String(n))
|
||||
|
||||
const allHomeCards = computed(() => {
|
||||
const seen = new Set<string>()
|
||||
const out: PortalHomeCardItem[] = []
|
||||
for (const sec of modules.value) {
|
||||
for (const card of sec.cards) {
|
||||
if (seen.has(card.path)) continue
|
||||
seen.add(card.path)
|
||||
out.push(card)
|
||||
}
|
||||
}
|
||||
return out
|
||||
})
|
||||
|
||||
const todoEntries = computed(() => {
|
||||
void badgeCounts.value
|
||||
void badgeLoaded.value
|
||||
void pendingCounts.value
|
||||
return allHomeCards.value
|
||||
.map((card) => ({ card, count: pendingCountFor(card) }))
|
||||
.filter((x) => x.count > 0)
|
||||
.sort(
|
||||
(a, b) => b.count - a.count || String(a.card.title).localeCompare(String(b.card.title), 'zh')
|
||||
)
|
||||
})
|
||||
|
||||
const todoList = computed(() => todoEntries.value.map((x) => x.card))
|
||||
|
||||
const todoTotalSum = computed(() =>
|
||||
todoEntries.value.reduce((sum, x) => sum + x.count, 0)
|
||||
)
|
||||
|
||||
const panelTitle = computed(() => {
|
||||
if (isFavView.value) return '收藏'
|
||||
if (isTodoView.value) return '待办列表'
|
||||
return activeSection.value?.moduleTitle || ''
|
||||
})
|
||||
|
||||
const panelDesc = computed(() => {
|
||||
if (isFavView.value) return '可拖拽调整顺序,星标取消收藏'
|
||||
if (isTodoView.value) return '汇总当前有待办的菜单,按数量从多到少排列'
|
||||
return '按二级菜单分组展示,点击卡片进入功能'
|
||||
})
|
||||
|
||||
const panelCount = computed(() => {
|
||||
if (isFavView.value) return favoriteList.value.length
|
||||
if (isTodoView.value) return todoList.value.length
|
||||
return activeCards.value.length
|
||||
})
|
||||
|
||||
const titleAbbr = (title: string) => {
|
||||
const t = String(title || '').trim()
|
||||
if (!t) return '?'
|
||||
return t.slice(0, 1)
|
||||
}
|
||||
|
||||
const ensureActiveModule = () => {
|
||||
if (activeModule.value === FAV_KEY || activeModule.value === TODO_KEY) return
|
||||
const list = modules.value
|
||||
if (!list.length) {
|
||||
activeModule.value = FAV_KEY
|
||||
return
|
||||
}
|
||||
if (!list.some((m) => m.modulePath === activeModule.value)) {
|
||||
activeModule.value = FAV_KEY
|
||||
}
|
||||
}
|
||||
|
||||
const syncFavoriteList = () => {
|
||||
favoriteList.value = favItems.value.map(
|
||||
(i) => findHomeCardByPath(modules.value, i.path) || { path: i.path, title: i.path }
|
||||
)
|
||||
}
|
||||
|
||||
const resolveCurrentUserId = (): string => {
|
||||
const info = (userStore.info || {}) as { id?: string | number; userId?: string | number }
|
||||
return String(info.id || info.userId || '')
|
||||
}
|
||||
|
||||
const loadCrmPendingCounts = async () => {
|
||||
const userId = resolveCurrentUserId()
|
||||
if (!userId) {
|
||||
|
||||
@@ -59,6 +59,9 @@
|
||||
<span>名额</span>
|
||||
<strong>{{ slot.taken }} / {{ slot.capacity }}</strong>
|
||||
</div>
|
||||
<p v-if="slot.remark" class="slot-remark">
|
||||
工作安排:<strong>{{ slot.remark }}</strong>
|
||||
</p>
|
||||
<div class="bar"><i :style="{ width: barWidth(slot) }" :class="slot.shiftType"></i></div>
|
||||
<div class="people">
|
||||
<span v-for="(a, i) in slot.assignments" :key="i" class="person">{{ a.personName }}</span>
|
||||
@@ -376,6 +379,18 @@
|
||||
font-size: 15px;
|
||||
color: #1f2a26;
|
||||
}
|
||||
.slot-remark {
|
||||
margin: 8px 0 0;
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
color: #6b7b74;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.slot-remark strong {
|
||||
font-weight: 600;
|
||||
color: #1f2a26;
|
||||
}
|
||||
.bar {
|
||||
height: 7px;
|
||||
margin-top: 8px;
|
||||
|
||||
Reference in new issue
Block a user