Files
shanxia2.0/backend/graphify-out/GRAPH_REPORT.md
T
2026-06-21 12:41:39 +08:00

40 KiB
Raw Blame History

Graph Report - backend (2026-06-21)

Corpus Check

  • 191 files · ~131,118 words
  • Verdict: corpus is large enough that graph structure adds value.

Summary

  • 3860 nodes · 29584 edges · 135 communities (131 shown, 4 thin omitted)
  • Extraction: 48% EXTRACTED · 52% INFERRED · 0% AMBIGUOUS · INFERRED: 15299 edges (avg confidence: 0.5)
  • Token cost: 0 input · 0 output

Graph Freshness

  • Built from commit: 29960970
  • Run git rev-parse HEAD and compare to check if the graph is stale.
  • Run graphify update . after code changes (no API cost).

Community Hubs (Navigation)

God Nodes (most connected - your core abstractions)

  1. Session - 1123 edges
  2. BaseModel - 369 edges
  3. int - 336 edges
  4. Any - 331 edges
  5. get_tenant_no() - 258 edges
  6. Session - 256 edges
  7. bool - 255 edges
  8. success_response() - 250 edges
  9. error_response() - 237 edges
  10. SysUser - 203 edges

Surprising Connections (you probably didn't know these)

  • bool --uses--> DbUserContext [INFERRED] scripts/migrate_dibang_data.py → app/core/db_auth.py
  • date --uses--> DbUserContext [INFERRED] scripts/migrate_dibang_data.py → app/core/db_auth.py
  • int --uses--> DbUserContext [INFERRED] scripts/run_db_auto_generate_plans.py → app/core/db_auth.py
  • int --uses--> ApiRequestLogMiddleware [INFERRED] scripts/run_db_auto_generate_plans.py → app/core/api_request_log_middleware.py
  • int --uses--> LocalStorage [INFERRED] scripts/run_db_auto_generate_plans.py → app/core/storage.py

Communities (135 total, 4 thin omitted)

Community 0 - "Community 0"

Cohesion: 0.23 Nodes (74): date, DbUserContext, int, Session, str, DocumentReminderRead, DocumentReminderUpdate, InventoryLedgerResponse (+66 more)

Community 1 - "Community 1"

Cohesion: 0.10 Nodes (43): CRM 报价单 API 路由 — 挂接到 crm.router, CRM 报价单 Pydantic Schemas, BaseModel, AdvanceApplyOut, AdvanceApprovalCreate, ReimburseApplyUpdate, ReimburseApprovalCreate, CustomerAssignPoolBody (+35 more)

Community 2 - "Community 2"

Cohesion: 0.35 Nodes (218): Any, bool, str, UploadFile, CRM 线索管理 Pydantic Schemas, CRM 客户管理 Pydantic Schemas, CRM 商机管理 Pydantic Schemas, CRM 客户公海池规则 Pydantic Schemas (+210 more)

Community 3 - "Community 3"

Cohesion: 0.06 Nodes (167): _apply_default_invoice_info_to_customers(), category_add(), category_delete(), category_tree(), category_update(), clue_assign(), clue_check_convert(), clue_check_duplicate() (+159 more)

Community 4 - "Community 4"

Cohesion: 0.19 Nodes (38): Decimal, PlPlan, PlPlanProduct, PlTransport, PlVehicle, Session, str, PlanProductCreate (+30 more)

Community 5 - "Community 5"

Cohesion: 0.09 Nodes (33): _error_json(), lifespan(), _mask_secret(), Exception, int, Request, str, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin (+25 more)

Community 6 - "Community 6"

Cohesion: 0.08 Nodes (98): attachment_download_url(), AttachmentDownloadUrlBody, create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_post(), create_role_management() (+90 more)

Community 7 - "Community 7"

Cohesion: 0.19 Nodes (23): bool, date, datetime, int, Session, str, allocate_reimburse_title_seq(), format_reimburse_title() (+15 more)

Community 8 - "Community 8"

Cohesion: 0.23 Nodes (10): Any, bool, int, Session, str, camel_to_snake(), CRUDBase, get_model_attr() (+2 more)

Community 9 - "Community 9"

Cohesion: 0.03 Nodes (201): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, register_contract_routes(), CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), Any, bool, CRM 合同 CRUD — 对照 CrmContractServiceImpl.java(列表/详情 P1), CrmContract (+193 more)

Community 10 - "Community 10"

Cohesion: 0.24 Nodes (32): DbInboundOutbound, DbUserContext, Session, str, CreateLinkForPlanPayload, _apply_inventory_product_update(), _apply_inventory_update(), _base_query() (+24 more)

Community 11 - "Community 11"

Cohesion: 0.18 Nodes (28): Any, bool, BxUserContext, BxWorkflowNode, float, int, ReimburseApplyOut, Session (+20 more)

Community 12 - "Community 12"

Cohesion: 0.06 Nodes (54): str, CRM 合同 Pydantic Schemas — 对照 CrmContractBo / CrmContractVo, ContractApprovalActionBody, ContractApprovalApproveBody, ContractApprovalByContractBody, ContractApprovalExportBody, ContractApprovalListBody, ContractApprovalListQuery (+46 more)

Community 13 - "Community 13"

Cohesion: 0.11 Nodes (17): Exception, bytes, int, Path, str, BytesIO, BaseStorage, convert_heic_to_jpeg() (+9 more)

Community 14 - "Community 14"

Cohesion: 0.09 Nodes (61): Any, bool, CrmContract, datetime, int, Query, Session, str (+53 more)

Community 15 - "Community 15"

Cohesion: 0.22 Nodes (30): DbUserContext, DbWeighingSlip, Session, str, Session, str, parse_datetime_str(), weighing_to_read() (+22 more)

Community 16 - "Community 16"

Cohesion: 0.08 Nodes (40): AttachmentUploadResponse, ChangePasswordRequest, Config, LoginRequest, LoginResponse, Pydantic schemas - 用户认证, ResetPasswordRequest, UserCreate (+32 more)

Community 17 - "Community 17"

Cohesion: 0.20 Nodes (48): Any, Any, CRM 商机 CRUD(主表 + 阶段/赢输单/统计/看板/漏斗), date, datetime, Decimal, int, Session (+40 more)

Community 18 - "Community 18"

Cohesion: 0.14 Nodes (29): Any, bool, BxUserContext, BxWorkflowNode, float, int, Session, str (+21 more)

Community 19 - "Community 19"

Cohesion: 0.04 Nodes (151): register_quote_routes(), Any, bool, int, Session, str, Any, bool (+143 more)

Community 20 - "Community 20"

Cohesion: 0.36 Nodes (31): AdvanceApplyCreate, AdvanceApplyOut, AdvanceApplyUpdate, AdvanceApprovalCreate, BxUserContext, int, Session, str (+23 more)

Community 21 - "Community 21"

Cohesion: 0.07 Nodes (110): DbUserContext, 运输计划管理 - 基础数据 API(承运商、车辆、人员), PlVehicle, Session, str, VehicleCreate, VehicleRead, VehicleUpdate (+102 more)

Community 22 - "Community 22"

Cohesion: 0.16 Nodes (12): float, int, str, 微信消息通知服务 支持微信小程序模板消息推送 使用方式: 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 (+4 more)

Community 23 - "Community 23"

Cohesion: 0.23 Nodes (37): AdvanceIssueRequest, BxUserContext, int, ReimburseApplyOut, Session, str, datetime, str (+29 more)

Community 24 - "Community 24"

Cohesion: 0.19 Nodes (18): str, Any, bool, Session, str, CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _yes_no(), _build_workbook() (+10 more)

Community 25 - "Community 25"

Cohesion: 0.21 Nodes (27): Session, str, parse_date_str(), plan_to_read(), plan_to_read_with_fill_link(), _apply_plan_product_update(), _apply_plan_update(), _base_query() (+19 more)

Community 26 - "Community 26"

Cohesion: 0.15 Nodes (14): Any, int, str, get_wechat_pay_client(), get_wechat_pay_v2(), 微信支付工具模块 支持微信支付 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: 订单 (+6 more)

Community 27 - "Community 27"

Cohesion: 0.21 Nodes (32): Any, bool, CRM 线索 CRUD(线索主表 + 转化/分配/无效/等级操作), date, datetime, int, Session, str (+24 more)

Community 28 - "Community 28"

Cohesion: 0.16 Nodes (31): Any, bool, int, Session, str, Any, Session, str (+23 more)

Community 29 - "Community 29"

Cohesion: 0.12 Nodes (31): Any, bool, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java, int, Session, str, generate_contract_no(), Java: generateContractNo — {供方编码}/X-JT + yyyyMMdd + 3位流水 (+23 more)

Community 30 - "Community 30"

Cohesion: 0.35 Nodes (31): BxUserContext, int, Session, str, PagedData, approve_reimburse(), approved_by_me(), _build_details_data() (+23 more)

Community 31 - "Community 31"

Cohesion: 0.12 Nodes (44): Decimal, str, Any, bool, CrmContractProductPriceTier, date, Decimal, int (+36 more)

Community 32 - "Community 32"

Cohesion: 0.18 Nodes (19): bytes, int, str, download_file_bytes(), file_stream(), get_access_url(), get_download_url(), get_preview_url() (+11 more)

Community 33 - "Community 33"

Cohesion: 0.13 Nodes (57): Any, int, Session, str, Any, bool, CRM 客户 CRUD(客户主表 + 转移/成交/公海池操作), CrmCustomer (+49 more)

Community 34 - "Community 34"

Cohesion: 0.22 Nodes (29): Engine, Path, build_id_maps(), clip_text(), count_rows(), export_mapping(), fetch_rows(), legacy_id_to_str() (+21 more)

Community 35 - "Community 35"

Cohesion: 0.26 Nodes (19): Any, bool, date, int, Session, str, _contact_row_to_dict(), create_contact() (+11 more)

Community 36 - "Community 36"

Cohesion: 0.13 Nodes (41): pool_rule_delete(), pool_rule_toggle(), pool_rule_update(), Any, bool, CRM 公海池规则 CRUD + 规则执行逻辑, int, Session (+33 more)

Community 37 - "Community 37"

Cohesion: 0.35 Nodes (17): Any, bool, int, Session, str, _build_tree(), _cascade_soft_delete(), create_menu() (+9 more)

Community 38 - "Community 38"

Cohesion: 0.41 Nodes (13): BxUserContext, Session, str, UploadFile, bind_biz(), delete_attachment(), download_file(), list_by_biz() (+5 more)

Community 39 - "Community 39"

Cohesion: 0.18 Nodes (9): 报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。, 报销(bx)Pydantic 模型 — 响应协议与 bx 原系统保持一致, bx_health(), 报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。 (+1 more)

Community 40 - "Community 40"

Cohesion: 0.20 Nodes (26): Any, bool, Decimal, int, Session, str, batch_insert_quote_products(), calculate_subtotal() (+18 more)

Community 41 - "Community 41"

Cohesion: 0.24 Nodes (18): BxUserContext, Session, str, bool, BxUserContext, Session, str, create_expense_item() (+10 more)

Community 42 - "Community 42"

Cohesion: 0.08 Nodes (25): 技术栈, 1. 创建虚拟环境, 项目结构, 1. 创建虚拟环境, 2. 安装依赖, 2. 安装依赖, 3. 配置环境变量, 快速开始 (+17 more)

Community 43 - "Community 43"

Cohesion: 0.08 Nodes (51): Any, str, Any, str, Any, int, str, Any (+43 more)

Community 44 - "Community 44"

Cohesion: 0.25 Nodes (23): Any, bool, int, Session, str, create_role(), get_role(), get_role_data_scope() (+15 more)

Community 45 - "Community 45"

Cohesion: 0.38 Nodes (15): Any, bool, int, Session, str, create_site(), get_site(), list_sites() (+7 more)

Community 46 - "Community 46"

Cohesion: 0.33 Nodes (10): Any, int, Session, str, list_ethnics(), 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), 民族码表 sys_ethnic(国标 GB/T 3304,全局) (+2 more)

Community 47 - "Community 47"

Cohesion: 0.34 Nodes (20): Any, Decimal, int, Session, str, batch_add_opportunity_products(), _calc_subtotal(), create_opportunity_product() (+12 more)

Community 48 - "Community 48"

Cohesion: 0.20 Nodes (18): datetime, int, str, date, 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, format_datetime(), generate_random_password(), get_current_time() (+10 more)

Community 49 - "Community 49"

Cohesion: 0.05 Nodes (134): approve_task(), _business_type_label(), delete_process_def(), _enrich_task_list(), get_business_all_tasks(), _get_business_form_fields(), get_designer_data(), get_instance_detail() (+126 more)

Community 50 - "Community 50"

Cohesion: 0.08 Nodes (47): 运输计划管理 - 基础数据 Schema(承运商、车辆、人员、证书), CarrierBase, CarrierCreate, CarrierRead, CarrierUpdate, DriverBase, DriverCreate, DriverRead (+39 more)

Community 51 - "Community 51"

Cohesion: 0.20 Nodes (10): 导出供方列表 — Java: CrmSupplierInfoController.export, 导出供方列表 — Java: CrmSupplierInfoController.export, 导出供方列表 — Java: CrmSupplierInfoController.export, 导出供方列表 — Java: CrmSupplierInfoController.export, 导出供方列表 — Java: CrmSupplierInfoController.export, 导出供方列表 — Java: CrmSupplierInfoController.export, 导出供方列表 — Java: CrmSupplierInfoController.export, 导出供方列表 — Java: CrmSupplierInfoController.export (+2 more)

Community 52 - "Community 52"

Cohesion: 0.34 Nodes (18): Any, bool, datetime, int, Session, str, create_opportunity_follow(), get_opportunity_follow() (+10 more)

Community 53 - "Community 53"

Cohesion: 0.11 Nodes (81): date, DbUserContext, int, PlanCreateFull, PlPlan, Session, str, int (+73 more)

Community 54 - "Community 54"

Cohesion: 0.11 Nodes (19): 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list (+11 more)

Community 55 - "Community 55"

Cohesion: 0.11 Nodes (19): 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll (+11 more)

Community 56 - "Community 56"

Cohesion: 0.39 Nodes (8): int, LeaveCreate, LeaveUpdate, Config, LeaveCreate, LeaveResponse, LeaveUpdate, Pydantic schemas - 请假申请

Community 57 - "Community 57"

Cohesion: 0.11 Nodes (18): product_delete(), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids) (+10 more)

Community 58 - "Community 58"

Cohesion: 0.37 Nodes (17): check_env(), check_python(), create_venv(), init_env(), install_dependencies(), log_error(), log_info(), log_success() (+9 more)

Community 59 - "Community 59"

Cohesion: 0.34 Nodes (16): Any, bool, int, Session, str, create_tenant(), get_tenant(), list_tenants() (+8 more)

Community 60 - "Community 60"

Cohesion: 0.34 Nodes (16): Any, bool, int, Session, str, create_dict_type(), dict_type_code_exists(), get_dict_type() (+8 more)

Community 61 - "Community 61"

Cohesion: 0.33 Nodes (5): _coerce_optional_id(), WorkflowDefCreate, WorkflowDefUpdate, WorkflowNodeCreate, WorkflowNodeOut

Community 62 - "Community 62"

Cohesion: 0.21 Nodes (43): DbUserContext, int, Session, str, DbUserContext, FreightSettlementCreate, FreightSettlementListResponse, FreightSettlementRead (+35 more)

Community 63 - "Community 63"

Cohesion: 0.23 Nodes (26): bool, date, DbInboundOutbound, DbPurchasePlan, float, PlPlan, PlPlanProduct, PlTransport (+18 more)

Community 64 - "Community 64"

Cohesion: 0.33 Nodes (15): Any, int, Session, str, BizLeaveRequest, create_leave(), get_leave(), list_leaves() (+7 more)

Community 65 - "Community 65"

Cohesion: 0.28 Nodes (8): date, datetime, str, _date_to_str(), _dt_to_str(), PagedQuery, PagedResponse, bx 原系统 API 响应包装(code=0 / msg / data.rows),与门户 success_response 分离。

Community 66 - "Community 66"

Cohesion: 0.38 Nodes (15): Any, bool, int, Session, str, create_post(), get_post(), list_posts() (+7 more)

Community 67 - "Community 67"

Cohesion: 0.11 Nodes (28): bool, Redis, str, bool, bool, Any, bool, Session (+20 more)

Community 68 - "Community 68"

Cohesion: 0.12 Nodes (16): invoice_info_list(), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价) (+8 more)

Community 69 - "Community 69"

Cohesion: 0.38 Nodes (11): Any, int, Session, str, _business_type_from_path(), get_oper_log(), list_oper_logs(), _oper_status() (+3 more)

Community 70 - "Community 70"

Cohesion: 0.29 Nodes (14): is_valid_dict_type(), load_portal_baseline(), load_sx(), load_zkxw(), main(), map_tag_type(), normalize_row(), parse_insert() (+6 more)

Community 71 - "Community 71"

Cohesion: 0.30 Nodes (11): Session, str, apply_data_scope(), _get_child_dept_ids(), get_user_dept_id(), 数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3, 根据用户角色的数据权限过滤查询。 Args: query: SQLAlchemy query 对象 model: 查询, 从 SysUser 读取用户的 dept_id。 (+3 more)

Community 72 - "Community 72"

Cohesion: 0.40 Nodes (13): check_python(), ensure_dirs(), ensure_venv_and_runtime(), is_running(), log_error(), log_info(), log_warn(), show_help() (+5 more)

Community 73 - "Community 73"

Cohesion: 0.42 Nodes (13): Any, bool, Session, str, _clear_default_for_customer(), create_invoice_info(), get_invoice_info(), list_invoice_info_by_customer() (+5 more)

Community 74 - "Community 74"

Cohesion: 0.40 Nodes (4): ContactByCustomerBody, ContactDetailBody, ContactSetPrimaryBody, CRM 联系人 Pydantic Schemas

Community 75 - "Community 75"

Cohesion: 0.27 Nodes (11): Any, bool, str, decrypt_login_payload(), ensure_initialized(), extract_login_credentials(), get_public_pem(), 登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。 (+3 more)

Community 76 - "Community 76"

Cohesion: 0.13 Nodes (17): Any, Request, str, int, Request, str, parse_admin_request_json(), 运营 Web(/web/admin)JSON 请求体解析。 与 ApiCryptoMiddleware 配合:中间件未改写 body 时,在路由内解密 `{ (+9 more)

Community 77 - "Community 77"

Cohesion: 0.40 Nodes (4): CreateLinkForPlanPayload, InboundOutboundBase, InboundOutboundCreate, InboundOutboundUpdate

Community 78 - "Community 78"

Cohesion: 0.28 Nodes (22): bool, CRM 产品模块 CRUD(产品分类 + 产品 + 附件), Session, str, barcode_exists(), category_code_exists(), create_category(), create_product() (+14 more)

Community 79 - "Community 79"

Cohesion: 0.46 Nodes (6): BxUserContext, Session, str, 按业务类型获取工作流;已知类型不存在时自动创建空定义(无节点)。, WorkflowService, BxWorkflowDef

Community 80 - "Community 80"

Cohesion: 0.60 Nodes (10): Any, Session, str, _apply_create_range(), _base_query(), get_clue_level_statistics(), get_clue_overview_statistics(), get_clue_owner_statistics() (+2 more)

Community 81 - "Community 81"

Cohesion: 0.29 Nodes (10): datetime, int, Session, str, BizNoKind, allocate_next_biz_no(), _format_biz_no(), _prefix_for() (+2 more)

Community 82 - "Community 82"

Cohesion: 0.29 Nodes (9): AST, expr, field_has_alias(), iter_field_assignments(), main(), bool, int, str (+1 more)

Community 83 - "Community 83"

Cohesion: 0.20 Nodes (10): 删除供方 — Java: CrmSupplierInfoController.remove, 删除供方 — Java: CrmSupplierInfoController.remove, 删除供方 — Java: CrmSupplierInfoController.remove, 删除供方 — Java: CrmSupplierInfoController.remove, 删除供方 — Java: CrmSupplierInfoController.remove, 删除供方 — Java: CrmSupplierInfoController.remove, 删除供方 — Java: CrmSupplierInfoController.remove, 删除供方 — Java: CrmSupplierInfoController.remove (+2 more)

Community 84 - "Community 84"

Cohesion: 0.20 Nodes (10): 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo (+2 more)

Community 85 - "Community 85"

Cohesion: 0.09 Nodes (56): _avatar_url_field(), _build_user_info_payload(), get_current_user_profile(), get_web_auth_menu_codes(), _jwt_user_payload(), logout(), public_quote_share(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/shanxia2.0.sql 基线) (+48 more)

Community 86 - "Community 86"

Cohesion: 0.12 Nodes (20): bool, date, Session, str, get_last_month_range(), month_range(), 地磅计划按月自动生成 — 迁移自 simple-dibang-xiaoshou/auto-create-plan/auto_create_monthly_pla, 按月自动生成采购计划。 - 默认仅在每月 1 日执行(force=True 时跳过该限制,供手动触发验收) - 遍历所有租户,按上月计划模板生 (+12 more)

Community 87 - "Community 87"

Cohesion: 0.50 Nodes (3): PurchasePlanBase, PurchasePlanCreate, PurchasePlanUpdate

Community 88 - "Community 88"

Cohesion: 0.16 Nodes (27): BxUserContext, int, Session, str, bool, BxUserContext, int, Session (+19 more)

Community 89 - "Community 89"

Cohesion: 0.26 Nodes (22): Any, bool, datetime, int, Session, str, BizSampleCode, batch_generate_sample_codes() (+14 more)

Community 90 - "Community 90"

Cohesion: 0.17 Nodes (23): Any, bool, bytes, int, Request, str, bool, int (+15 more)

Community 91 - "Community 91"

Cohesion: 0.32 Nodes (7): str, eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时统一排序规则,避免 Illegal mix of collations。, 跨表字符串等值比较(JOIN / WHERE)时统一为 utf8mb4_unicode_ci。, 将列显式设为 utf8mb4_unicode_ci。, unicode_ci()

Community 92 - "Community 92"

Cohesion: 0.40 Nodes (3): AdvanceApplyCreate, AdvanceApplyUpdate, _coerce_optional_id()

Community 93 - "Community 93"

Cohesion: 0.28 Nodes (42): InboundOutboundRead, bool, DbPurchasePlan, DbUserContext, PurchasePlanRead, PurchasePlanWithFillLink, WeighingSlipRead, bool (+34 more)

Community 94 - "Community 94"

Cohesion: 0.27 Nodes (18): Any, bool, int, Session, str, create_clue_follow(), delete_clue_follow(), get_clue_follow() (+10 more)

Community 95 - "Community 95"

Cohesion: 0.28 Nodes (13): int, Session, str, _allocate_inbound_outbound_id(), _ensure_sequence_row(), max_numeric_inbound_outbound_id(), next_inbound_outbound_id(), 出入库单 id 生成 — 租户内纯数字自增,并发安全。 (+5 more)

Community 96 - "Community 96"

Cohesion: 0.47 Nodes (5): OperLogDetailBody, OperLogListBody, 操作日志(兼容 RuoYi OperLog 视图), OperLogDetailBody, OperLogListBody

Community 97 - "Community 97"

Cohesion: 0.33 Nodes (14): Any, int, Session, str, create_dict_data(), get_dict_data(), list_dict_data(), list_dict_data_options() (+6 more)

Community 98 - "Community 98"

Cohesion: 0.50 Nodes (3): WeighingSlipBase, WeighingSlipCreate, WeighingSlipUpdate

Community 99 - "Community 99"

Cohesion: 0.17 Nodes (17): API 路由包 — 山峡化工生产一体化门户, create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), submit_leave() (+9 more)

Community 100 - "Community 100"

Cohesion: 0.38 Nodes (4): str, _coerce_id(), ExpenseItemCreate, ExpenseItemUpdate

Community 101 - "Community 101"

Cohesion: 0.40 Nodes (3): BaseSettings, Config, Settings

Community 102 - "Community 102"

Cohesion: 0.15 Nodes (17): Any, _build_category_tree(), _category_row_to_dict(), _collect_category_with_ancestors(), list_categories(), list_category_tree(), list_oss_by_biz(), list_product_options() (+9 more)

Community 103 - "Community 103"

Cohesion: 0.30 Nodes (46): DbUserContext, int, PlTransport, Session, str, ApprovalRecordRead, ApprovalRequest, ApprovalSubmit (+38 more)

Community 105 - "Community 105"

Cohesion: 0.37 Nodes (16): DbUserContext, Session, str, DashboardCargoStat, DashboardPartnerCargoStat, DashboardStats, _cargo_stats(), DashboardCargoStat (+8 more)

Community 106 - "Community 106"

Cohesion: 0.30 Nodes (14): Any, bool, bytes, int, str, bytes, ApiCryptoError, _b64url_decode() (+6 more)

Community 107 - "Community 107"

Cohesion: 0.40 Nodes (10): SysOss, int, Session, str, SysOss, create_oss(), create_oss(), get_oss_by_url() (+2 more)

Community 109 - "Community 109"

Cohesion: 0.30 Nodes (9): Any, bool, int, M, Session, str, BxCrudService, 报销模块 Service 基类 — 租户隔离 + UUID + 软删除。 (+1 more)

Community 122 - "Community 122"

Cohesion: 0.22 Nodes (9): generate_product_no(), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001) (+1 more)

Community 123 - "Community 123"

Cohesion: 0.22 Nodes (9): _get_quote_item_field(), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配) (+1 more)

Community 128 - "Community 128"

Cohesion: 0.33 Nodes (3): _coerce_id(), OffsetItem, ReimburseDetailCreate

Community 133 - "Community 133"

Cohesion: 0.25 Nodes (8): generate_auto_product_no(), Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符

Community 135 - "Community 135"

Cohesion: 0.33 Nodes (6): generate_barcode(), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001)

Community 136 - "Community 136"

Cohesion: 0.14 Nodes (16): Session, str, Session, str, get_user_menu_codes(), 菜单 code 权限守卫(V0.3:通过 sys_user_role → sys_role_menu → sys_menu.perms), 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。, 接口菜单权限守卫。super_admin 直接放行。 (+8 more)

Community 137 - "Community 137"

Cohesion: 0.67 Nodes (3): Session, get_db_current_user_optional(), 有 Bearer 且为 admin/super_admin 时返回上下文,否则 None(供三方 H5 无登录调用)。

Community 138 - "Community 138"

Cohesion: 0.50 Nodes (3): Config, PageResult, ResponseModel

Community 139 - "Community 139"

Cohesion: 0.33 Nodes (3): 地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。, 地磅(db)Pydantic schemas — 对齐原 simple-dibang-xiaoshou 契约。, 地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。

Community 141 - "Community 141"

Cohesion: 0.22 Nodes (9): generate_contract_name(), Java: generateContractName, Java: generateContractName, Java: generateContractName, Java: generateContractName, Java: generateContractName, Java: generateContractName, Java: generateContractName (+1 more)

Community 143 - "Community 143"

Cohesion: 0.25 Nodes (8): int, list_products(), _product_row_to_dict(), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), total_pages()

Community 144 - "Community 144"

Cohesion: 0.40 Nodes (5): bool, str, get_password_hash(), 验证密码(哈希非 bcrypt 或损坏时返回 False,避免抛错), verify_password()

Community 146 - "Community 146"

Cohesion: 0.15 Nodes (29): int, PlTransport, Session, str, UploadFile, str, 附件上传 bizType 与 MinIO 目录映射(对齐原 CRM oss 上传语义), 优先使用显式 folder;否则按 bizType 映射默认目录。 (+21 more)

Community 147 - "Community 147"

Cohesion: 0.67 Nodes (3): Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), web_login_rsa_public_key()

Knowledge Gaps

  • 61 isolated node(s): Any, Session, bool, bool, Config (+56 more) These have ≤1 connection - possible missing edges or undocumented components.
  • 4 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 Session connect Community 3 to Community 2, Community 6, Community 7, Community 8, Community 9, Community 10, Community 11, Community 14, Community 15, Community 17, Community 18, Community 19, Community 20, Community 21, Community 23, Community 24, Community 25, Community 27, Community 28, Community 29, Community 30, Community 31, Community 33, Community 35, Community 36, Community 37, Community 38, Community 40, Community 41, Community 43, Community 44, Community 45, Community 46, Community 47, Community 49, Community 51, Community 52, Community 53, Community 54, Community 55, Community 56, Community 57, Community 59, Community 60, Community 62, Community 63, Community 64, Community 66, Community 67, Community 68, Community 69, Community 71, Community 73, Community 78, Community 79, Community 80, Community 81, Community 83, Community 84, Community 85, Community 86, Community 88, Community 89, Community 90, Community 93, Community 94, Community 95, Community 96, Community 97, Community 99, Community 102, Community 103, Community 104, Community 105, Community 107, Community 109, Community 122, Community 123, Community 133, Community 135, Community 136, Community 137, Community 143? High betweenness centrality (0.226) - this node is a cross-community bridge.
  • Why does BaseModel connect Community 12 to Community 128, Community 1, Community 2, Community 0, Community 4, Community 134, Community 6, Community 9, Community 138, Community 11, Community 10, Community 15, Community 16, Community 146, Community 20, Community 21, Community 23, Community 30, Community 41, Community 49, Community 50, Community 53, Community 56, Community 61, Community 62, Community 65, Community 74, Community 77, Community 87, Community 88, Community 92, Community 93, Community 96, Community 98, Community 100, Community 103, Community 104, Community 105, Community 108? High betweenness centrality (0.061) - this node is a cross-community bridge.
  • Why does datetime connect Community 48 to Community 0, Community 1, Community 2, Community 3, Community 4, Community 5, Community 134, Community 7, Community 6, Community 9, Community 10, Community 13, Community 14, Community 15, Community 16, Community 17, Community 146, Community 19, Community 18, Community 21, Community 22, Community 23, Community 25, Community 26, Community 27, Community 28, Community 29, Community 31, Community 32, Community 33, Community 34, Community 35, Community 36, Community 37, Community 40, Community 43, Community 44, Community 45, Community 47, Community 49, Community 50, Community 52, Community 53, Community 59, Community 60, Community 62, Community 63, Community 64, Community 65, Community 66, Community 67, Community 69, Community 73, Community 78, Community 80, Community 81, Community 85, Community 86, Community 89, Community 90, Community 93, Community 94, Community 97, Community 103, Community 105? High betweenness centrality (0.039) - this node is a cross-community bridge.
  • Are the 251 inferred relationships involving str (e.g. with AdvanceApplyCreate and AdvanceApplyOut) actually correct? str has 251 INFERRED edges - model-reasoned connections that need verification.
  • Are the 248 inferred relationships involving Session (e.g. with AdvanceApplyCreate and AdvanceApplyOut) actually correct? Session has 248 INFERRED edges - model-reasoned connections that need verification.
  • Are the 140 inferred relationships involving int (e.g. with AdvanceApplyCreate and AdvanceApplyOut) actually correct? int has 140 INFERRED edges - model-reasoned connections that need verification.
  • What connects 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin, 每月 1 日凌晨执行:按上月计划模板生成本月计划。 to the rest of the system? 813 weakly-connected nodes found - possible documentation gaps or missing edges.