提交
This commit is contained in:
1 parent
6dc8cfb2c1
commit
d26fb23fcf
181 files changed
+25727
-24557
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
87141
|
||||
25924
|
||||
@@ -18,6 +18,7 @@ from app.core.storage import storage
|
||||
from app.crud import tenant as tenant_svc
|
||||
from app.crud import dict_type as dict_type_svc
|
||||
from app.crud import dict_data as dict_data_svc
|
||||
from app.services import dict_ensure as dict_ensure_svc
|
||||
from app.crud import dept as dept_svc
|
||||
from app.crud import site as site_svc
|
||||
from app.crud import post as post_svc
|
||||
@@ -148,7 +149,7 @@ class TenantUpdateBody(BaseModel):
|
||||
@router.get("/tenants")
|
||||
def list_tenants(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
_user: dict = Depends(require_admin_or_super_admin),
|
||||
db: Session = Depends(get_db),
|
||||
@@ -279,7 +280,7 @@ class UserUpdateBody(BaseModel):
|
||||
@router.get("/users")
|
||||
def list_users(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
deptId: Optional[str] = Query(None, alias="deptId"),
|
||||
status: Optional[str] = None,
|
||||
@@ -469,7 +470,7 @@ class DictTypeUpdateBody(BaseModel):
|
||||
@router.get("/dict-types")
|
||||
def list_dict_types(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
user: dict = Depends(require_menu_code("system:dict:list")),
|
||||
db: Session = Depends(get_db),
|
||||
@@ -571,7 +572,7 @@ class DictDataUpdateBody(BaseModel):
|
||||
@router.get("/dict-data")
|
||||
def list_dict_data(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
dictType: Optional[str] = None,
|
||||
keyword: Optional[str] = None,
|
||||
user: dict = Depends(require_menu_code("system:dict:list")),
|
||||
@@ -683,6 +684,66 @@ def dict_data_all(
|
||||
return success_response(grouped)
|
||||
|
||||
|
||||
class DictEnsureBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
dict_type: str = Field(..., alias="dictType")
|
||||
label: str
|
||||
preferred_value: Optional[str] = Field(None, alias="preferredValue")
|
||||
|
||||
|
||||
class DictEnsureRemoveBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
dict_type: str = Field(..., alias="dictType")
|
||||
value: str
|
||||
|
||||
|
||||
@router.post("/dict-data/ensure")
|
||||
def ensure_dict_data_api(
|
||||
body: DictEnsureBody,
|
||||
user: dict = Depends(require_admin_or_super_admin),
|
||||
db: Session = Depends(get_db),
|
||||
):
|
||||
try:
|
||||
tenant_no = _get_tenant_no(db, user)
|
||||
data = dict_ensure_svc.ensure_dict_data(
|
||||
db,
|
||||
tenant_no=tenant_no,
|
||||
dict_type=body.dict_type,
|
||||
label=body.label,
|
||||
user_id=user.get("user_id") or user.get("id") or "",
|
||||
preferred_value=body.preferred_value,
|
||||
)
|
||||
db.commit()
|
||||
return success_response(data, message="已保存")
|
||||
except dict_ensure_svc.DictEnsureError as e:
|
||||
db.rollback()
|
||||
return error_response(400, str(e))
|
||||
|
||||
|
||||
@router.post("/dict-data/ensure-remove")
|
||||
def ensure_remove_dict_data_api(
|
||||
body: DictEnsureRemoveBody,
|
||||
user: dict = Depends(require_admin_or_super_admin),
|
||||
db: Session = Depends(get_db),
|
||||
):
|
||||
try:
|
||||
tenant_no = _get_tenant_no(db, user)
|
||||
dict_ensure_svc.ensure_remove_dict_data(
|
||||
db,
|
||||
tenant_no=tenant_no,
|
||||
dict_type=body.dict_type,
|
||||
value=body.value,
|
||||
user_id=user.get("user_id") or user.get("id") or "",
|
||||
)
|
||||
db.commit()
|
||||
return success_response(None, message="已删除")
|
||||
except dict_ensure_svc.DictEnsureError as e:
|
||||
db.rollback()
|
||||
return error_response(400, str(e))
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 组织管理
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -827,7 +888,7 @@ class SiteUpdateBody(BaseModel):
|
||||
@router.get("/sites")
|
||||
def list_sites(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
user: dict = Depends(require_menu_code("system:site:list")),
|
||||
db: Session = Depends(get_db),
|
||||
@@ -936,7 +997,7 @@ class PostUpdateBody(BaseModel):
|
||||
@router.get("/posts")
|
||||
def list_posts(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
user: dict = Depends(require_menu_code("system:post:list")),
|
||||
db: Session = Depends(get_db),
|
||||
@@ -1206,7 +1267,7 @@ class RoleDataScopeBody(BaseModel):
|
||||
@router.get("/role-management")
|
||||
def list_role_management(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
user: dict = Depends(require_menu_code("system:role:list")),
|
||||
db: Session = Depends(get_db),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import List, Optional
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, status
|
||||
from fastapi import APIRouter, Depends, HTTPException, status, Query
|
||||
from sqlalchemy import or_
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
@@ -41,7 +41,7 @@ def _fill_offset_amounts(db: Session, tenant_no: str, rows, out_rows: List[Advan
|
||||
@router.get("/", response_model=ApiResponse[PagedData[AdvanceApplyOut]])
|
||||
def list_advances(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
status: Optional[str] = None,
|
||||
keyword: str = "",
|
||||
applicantId: Optional[str] = None,
|
||||
@@ -80,7 +80,7 @@ def list_advances(
|
||||
@router.get("/my", response_model=ApiResponse[PagedData[AdvanceApplyOut]])
|
||||
def my_advances(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
status: Optional[str] = None,
|
||||
keyword: str = "",
|
||||
applyDate: Optional[str] = None,
|
||||
@@ -140,7 +140,7 @@ def advance_status_counts(
|
||||
@router.get("/pending-approval", response_model=ApiResponse[PagedData[AdvanceApplyOut]])
|
||||
def pending_approval(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: str = "",
|
||||
applicantId: Optional[str] = None,
|
||||
applyDate: Optional[str] = None,
|
||||
@@ -180,7 +180,7 @@ def advance_pending_approval_stats(
|
||||
@router.get("/approved-by-me", response_model=ApiResponse[PagedData[AdvanceApplyOut]])
|
||||
def approved_by_me(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: str = "",
|
||||
applicantId: Optional[str] = None,
|
||||
applyDate: Optional[str] = None,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import mimetypes
|
||||
from typing import List, Optional, Set
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, Request, status
|
||||
from fastapi import APIRouter, Depends, HTTPException, Request, status, Query
|
||||
from sqlalchemy.orm import Session
|
||||
from starlette.datastructures import UploadFile as StarletteUploadFile
|
||||
|
||||
@@ -27,7 +27,7 @@ def get_mine_wallet_summary(
|
||||
@router.get("/invoice-wallets", response_model=ApiResponse[PagedData[WalletSummaryOut]])
|
||||
def list_invoice_wallets(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: str = "",
|
||||
db: Session = Depends(get_db),
|
||||
user: BxUserContext = Depends(get_bx_current_user),
|
||||
@@ -42,7 +42,7 @@ def list_invoice_wallets(
|
||||
@router.get("/invoices", response_model=ApiResponse[PagedData[InvoiceOut]])
|
||||
def list_invoices(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
userId: Optional[str] = None,
|
||||
db: Session = Depends(get_db),
|
||||
user: BxUserContext = Depends(get_bx_current_user),
|
||||
|
||||
@@ -4,7 +4,7 @@ from datetime import datetime
|
||||
from typing import Any, List, Optional
|
||||
from urllib.parse import quote
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, status
|
||||
from fastapi import APIRouter, Depends, HTTPException, status, Query
|
||||
from fastapi.responses import StreamingResponse
|
||||
from sqlalchemy import or_
|
||||
from sqlalchemy.orm import Session
|
||||
@@ -47,7 +47,7 @@ def _wrap_reimburse_rows(outs: List[ReimburseApplyOut]) -> List[dict]:
|
||||
@router.get("/pending", response_model=ApiResponse[PagedData[Any]])
|
||||
def list_pending_payments(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: str = "",
|
||||
applicantId: Optional[str] = None,
|
||||
applyDate: Optional[str] = None,
|
||||
@@ -94,7 +94,7 @@ def payment_finance_stats(
|
||||
@router.get("/processed", response_model=ApiResponse[PagedData[Any]])
|
||||
def list_processed_payments(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: str = "",
|
||||
applicantId: Optional[str] = None,
|
||||
applyDate: Optional[str] = None,
|
||||
@@ -197,7 +197,7 @@ def batch_offset(
|
||||
@router.get("/advance-issues", response_model=ApiResponse[PagedData[AdvanceIssueOut]])
|
||||
def list_advance_issues(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
issue_status: Optional[str] = None,
|
||||
keyword: str = "",
|
||||
applicantId: Optional[str] = None,
|
||||
|
||||
@@ -146,7 +146,7 @@ def import_reimburses(
|
||||
@router.get("/", response_model=ApiResponse[PagedData[ReimburseApplyOut]])
|
||||
def list_reimburses(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
status: Optional[str] = None,
|
||||
keyword: str = "",
|
||||
expense_id: Optional[str] = None,
|
||||
@@ -256,7 +256,7 @@ def reimburse_status_counts(
|
||||
@router.get("/pending-approval", response_model=ApiResponse[PagedData[ReimburseApplyOut]])
|
||||
def pending_approval(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: str = "",
|
||||
applicantId: Optional[str] = None,
|
||||
expenseName: Optional[str] = None,
|
||||
@@ -298,7 +298,7 @@ def pending_approval_stats(
|
||||
@router.get("/approved-by-me", response_model=ApiResponse[PagedData[ReimburseApplyOut]])
|
||||
def approved_by_me(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: str = "",
|
||||
applicantId: Optional[str] = None,
|
||||
expenseName: Optional[str] = None,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import List
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, status
|
||||
from fastapi import APIRouter, Depends, HTTPException, status, Query
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.bx_auth import BxUserContext, get_bx_current_user
|
||||
@@ -21,7 +21,7 @@ router = APIRouter(prefix="/workflows", tags=["工作流配置"])
|
||||
@router.get("/", response_model=ApiResponse[PagedData[WorkflowDefOut]])
|
||||
def list_workflows(
|
||||
page: int = 1,
|
||||
pageSize: int = 10,
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
db: Session = Depends(get_db),
|
||||
user: BxUserContext = Depends(get_bx_current_user),
|
||||
):
|
||||
|
||||
@@ -618,6 +618,8 @@ def product_list(
|
||||
status=body.status,
|
||||
supplier_id=body.supplier_id,
|
||||
user_info=user_info,
|
||||
match_product_no=True if body.match_product_no is None else bool(body.match_product_no),
|
||||
match_model=bool(body.match_model) if body.match_model is not None else False,
|
||||
)
|
||||
tp = total_pages(total, body.pageSize)
|
||||
return success_response(
|
||||
@@ -888,6 +890,8 @@ def product_export(
|
||||
category_id=body.category_id,
|
||||
status=body.status,
|
||||
supplier_id=body.supplier_id,
|
||||
match_product_no=True if body.match_product_no is None else bool(body.match_product_no),
|
||||
match_model=bool(body.match_model) if body.match_model is not None else False,
|
||||
)
|
||||
date_str = datetime.now().strftime("%Y%m%d")
|
||||
return export_rows_to_xlsx_response(
|
||||
|
||||
@@ -79,7 +79,7 @@ def register_contract_routes(router):
|
||||
@router.get("/contract/list")
|
||||
async def contract_list(
|
||||
pageNum: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100),
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: Optional[str] = Query(
|
||||
None, description="即时检索:合同编号/合同产品名称/产品拼音首字母"
|
||||
),
|
||||
|
||||
@@ -70,7 +70,7 @@ def register_contract_sub_routes(router):
|
||||
@router.get("/contract/change/list")
|
||||
async def contract_change_list(
|
||||
pageNum: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100),
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
contractId: Optional[str] = None,
|
||||
contractNo: Optional[str] = None,
|
||||
contractName: Optional[str] = None,
|
||||
@@ -293,7 +293,7 @@ def register_contract_sub_routes(router):
|
||||
@router.get("/contract/template/list")
|
||||
async def contract_template_list(
|
||||
pageNum: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100),
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
templateNo: Optional[str] = None,
|
||||
templateName: Optional[str] = None,
|
||||
templateType: Optional[str] = None,
|
||||
@@ -494,7 +494,7 @@ def register_contract_sub_routes(router):
|
||||
@router.get("/contract/approval/list")
|
||||
async def contract_approval_list(
|
||||
pageNum: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100),
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
contractId: Optional[str] = None,
|
||||
contractNo: Optional[str] = None,
|
||||
contractName: Optional[str] = None,
|
||||
|
||||
@@ -38,7 +38,7 @@ register_local_callback("/api/admin/leave/callback", _leave_local_callback)
|
||||
@router.get("")
|
||||
def list_leaves(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100),
|
||||
pageSize: int = Query(10, ge=1, le=500),
|
||||
keyword: Optional[str] = Query(None),
|
||||
status: Optional[str] = Query(None),
|
||||
_user: dict = Depends(require_admin_or_super_admin),
|
||||
|
||||
@@ -76,7 +76,7 @@ def list_carriers(
|
||||
status: Optional[str] = Query(default=None, description="状态"),
|
||||
audit_status: Optional[str] = Query(default=None, alias="auditStatus", description="审核状态"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> CarrierListResponse:
|
||||
@@ -283,7 +283,7 @@ def list_vehicles(
|
||||
description="排除资质不全或协议过期的承运商车辆",
|
||||
),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleListResponse:
|
||||
@@ -611,7 +611,7 @@ def list_personnel(
|
||||
default=None, alias="personnelType", description="人员类型 driver/escort"
|
||||
),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> PersonnelListResponse:
|
||||
@@ -837,7 +837,7 @@ def _personnel_to_driver_read(personnel: PlPersonnel) -> DriverRead:
|
||||
def list_drivers(
|
||||
q: Optional[str] = Query(default=None, description="模糊搜索姓名/手机号"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> DriverListResponse:
|
||||
|
||||
@@ -52,7 +52,7 @@ def list_unsettled_plans(
|
||||
plan_type: Optional[str] = Query(default=None, alias="planType"),
|
||||
license_plate: Optional[str] = Query(default=None, alias="licensePlate"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> UnsettledPlanListResponse:
|
||||
@@ -81,7 +81,7 @@ def list_settlements(
|
||||
description="bills|approval_pending|approval_done|disburse|settled",
|
||||
),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> FreightSettlementListResponse:
|
||||
|
||||
@@ -50,7 +50,7 @@ router = APIRouter(prefix="/inventory", tags=["运输计划-盘存统计"])
|
||||
def get_inventory_ledger(
|
||||
product_name: Optional[str] = Query(default=None, alias="productName", description="产品名称"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> InventoryLedgerResponse:
|
||||
@@ -198,7 +198,7 @@ def list_transactions(
|
||||
date_from: Optional[date] = Query(default=None, alias="dateFrom", description="开始日期"),
|
||||
date_to: Optional[date] = Query(default=None, alias="dateTo", description="结束日期"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> InventoryTransactionResponse:
|
||||
|
||||
@@ -227,7 +227,7 @@ def list_inbound(
|
||||
plan_date_from: Optional[str] = Query(default=None, alias="planDateFrom"),
|
||||
plan_date_to: Optional[str] = Query(default=None, alias="planDateTo"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> IoOrderListResponse:
|
||||
@@ -305,7 +305,7 @@ def list_outbound(
|
||||
plan_date_from: Optional[str] = Query(default=None, alias="planDateFrom"),
|
||||
plan_date_to: Optional[str] = Query(default=None, alias="planDateTo"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> IoOrderListResponse:
|
||||
|
||||
@@ -310,7 +310,7 @@ def list_plans(
|
||||
description="incomplete=至少一张必需危化证书未上传",
|
||||
),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> PlanListResponse:
|
||||
@@ -517,7 +517,7 @@ def count_plans_by_contract(
|
||||
@router.get("/contract-gaps", response_model=PlanContractGapListResponse)
|
||||
def list_contract_gaps(
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
plan_no: Optional[str] = Query(default=None, alias="planNo", description="计划编号"),
|
||||
gap_type: Optional[str] = Query(
|
||||
default=None,
|
||||
|
||||
@@ -175,7 +175,7 @@ def _build_history_page(
|
||||
merged.sort(key=lambda x: x[0] or datetime.min, reverse=True)
|
||||
total = len(merged)
|
||||
page = max(1, int(page or 1))
|
||||
page_size = min(max(1, int(page_size or 20)), 100)
|
||||
page_size = min(max(1, int(page_size or 20)), 500)
|
||||
start = (page - 1) * page_size
|
||||
page_rows = merged[start : start + page_size]
|
||||
return PublicIoOrderHistoryPageRead(
|
||||
@@ -218,7 +218,7 @@ def _make_handlers(kind: str):
|
||||
date: str = Query(..., description="筛选日 YYYY-MM-DD"),
|
||||
q: Optional[str] = Query(None, description="供方/需方名称模糊"),
|
||||
page: int = Query(1, ge=1, description="页码,从 1 开始"),
|
||||
page_size: int = Query(20, ge=1, le=100, alias="pageSize", description="每页条数"),
|
||||
page_size: int = Query(20, ge=1, le=500, alias="pageSize", description="每页条数"),
|
||||
db: Session = Depends(get_db),
|
||||
):
|
||||
try:
|
||||
|
||||
@@ -384,7 +384,7 @@ def list_transports(
|
||||
vehicle_id: Optional[str] = Query(default=None, alias="vehicleId", description="车辆ID"),
|
||||
driver_id: Optional[str] = Query(default=None, alias="driverId", description="司机ID"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> TransportListResponse:
|
||||
|
||||
@@ -57,7 +57,7 @@ def list_transport_addresses(
|
||||
q: Optional[str] = Query(default=None, description="搜索名称或地址"),
|
||||
status: Optional[str] = Query(default=None, description="状态 1-启用 0-停用"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> TransportAddressListResponse:
|
||||
|
||||
@@ -34,7 +34,7 @@ def list_applies(
|
||||
apply_date_to: Optional[date] = Query(default=None, alias="applyDateTo"),
|
||||
applicant_id: Optional[str] = Query(default=None, alias="applicantId"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleMaintenanceApplyListResponse:
|
||||
@@ -136,7 +136,7 @@ def list_process_board(
|
||||
process_date_from: Optional[date] = Query(default=None, alias="processDateFrom"),
|
||||
process_date_to: Optional[date] = Query(default=None, alias="processDateTo"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleMaintenanceProcessBoardListResponse:
|
||||
|
||||
@@ -35,7 +35,7 @@ def list_applies(
|
||||
apply_date_to: Optional[date] = Query(default=None, alias="applyDateTo"),
|
||||
applicant_id: Optional[str] = Query(default=None, alias="applicantId"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleRechargeApplyListResponse:
|
||||
@@ -129,7 +129,7 @@ def list_records(
|
||||
gas_station: Optional[str] = Query(default=None, alias="gasStation"),
|
||||
apply_no: Optional[str] = Query(default=None, alias="applyNo"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleRechargeRecordListResponse:
|
||||
@@ -162,7 +162,7 @@ def list_disburse_board(
|
||||
recharge_date_from: Optional[date] = Query(default=None, alias="rechargeDateFrom"),
|
||||
recharge_date_to: Optional[date] = Query(default=None, alias="rechargeDateTo"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleRechargeDisburseBoardListResponse:
|
||||
|
||||
@@ -32,7 +32,7 @@ def list_applies(
|
||||
apply_date_to: Optional[date] = Query(default=None, alias="applyDateTo"),
|
||||
applicant_id: Optional[str] = Query(default=None, alias="applicantId"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleUreaApplyListResponse:
|
||||
@@ -115,7 +115,7 @@ def list_disburse_board(
|
||||
disburse_date_from: Optional[date] = Query(default=None, alias="disburseDateFrom"),
|
||||
disburse_date_to: Optional[date] = Query(default=None, alias="disburseDateTo"),
|
||||
page: int = Query(default=1, ge=1),
|
||||
page_size: int = Query(default=20, ge=1, le=100, alias="pageSize"),
|
||||
page_size: int = Query(default=20, ge=1, le=500, alias="pageSize"),
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleUreaDisburseBoardListResponse:
|
||||
|
||||
@@ -175,7 +175,7 @@ class TaskActionBody(BaseModel):
|
||||
@router.get("/defs")
|
||||
def list_process_defs(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
status: Optional[str] = None,
|
||||
_user: dict = Depends(require_admin_or_super_admin),
|
||||
@@ -362,7 +362,7 @@ def start_instance(
|
||||
@router.get("/instances/my")
|
||||
def list_my_instances(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
status: Optional[str] = None,
|
||||
user: dict = Depends(require_admin_or_super_admin),
|
||||
@@ -446,7 +446,7 @@ def get_instance_detail(
|
||||
@router.get("/tasks/pending")
|
||||
def list_pending_tasks(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
user: dict = Depends(require_admin_or_super_admin),
|
||||
db: Session = Depends(get_db),
|
||||
@@ -464,7 +464,7 @@ def list_pending_tasks(
|
||||
@router.get("/tasks/completed")
|
||||
def list_completed_tasks(
|
||||
page: int = Query(1, ge=1),
|
||||
pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
|
||||
pageSize: int = Query(10, ge=1, le=500, alias="pageSize"),
|
||||
keyword: Optional[str] = None,
|
||||
user: dict = Depends(require_admin_or_super_admin),
|
||||
db: Session = Depends(get_db),
|
||||
|
||||
@@ -228,7 +228,7 @@ def list_clues(
|
||||
|
||||
total = q.order_by(None).with_entities(func.count(CrmClue.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
|
||||
order_by = CrmClue.create_time.desc()
|
||||
if effective_view == "toFollow":
|
||||
|
||||
@@ -140,7 +140,7 @@ def list_contacts(
|
||||
|
||||
total = q.order_by(None).with_entities(func.count(CrmContact.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
|
||||
rows = (
|
||||
q.order_by(CrmContact.create_time.desc())
|
||||
|
||||
@@ -449,7 +449,7 @@ def list_contracts(
|
||||
q = apply_crm_owner_scope(q, CrmContract, user_info, db, tenant_no)
|
||||
total = q.order_by(None).with_entities(func.count(CrmContract.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = q.offset((page - 1) * page_size).limit(page_size).all()
|
||||
result = [_row_to_dict(r) for r in rows]
|
||||
|
||||
@@ -2195,7 +2195,7 @@ def list_contract_changes(
|
||||
q = q.filter(CrmContractChange.contract_no.like(f"%{contract_no}%"))
|
||||
total = q.order_by(None).with_entities(func.count(CrmContractChange.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = q.order_by(CrmContractChange.create_time.desc()).offset((page - 1) * page_size).limit(page_size).all()
|
||||
return [_change_row_to_dict(r) for r in rows], int(total)
|
||||
|
||||
@@ -2275,7 +2275,7 @@ def list_contract_templates(
|
||||
q = q.filter(CrmContractTemplate.is_active == int(filters["isActive"]))
|
||||
total = q.order_by(None).with_entities(func.count(CrmContractTemplate.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = q.order_by(CrmContractTemplate.sort.asc(), CrmContractTemplate.create_time.desc()).offset(
|
||||
(page - 1) * page_size
|
||||
).limit(page_size).all()
|
||||
|
||||
@@ -122,7 +122,7 @@ def list_contract_approvals_page(
|
||||
q = _build_approval_list_filters(q, filters or {}, tenant_no=tenant_no)
|
||||
total = q.order_by(None).with_entities(func.count(CrmContractApproval.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = q.offset((page - 1) * page_size).limit(page_size).all()
|
||||
result = [_row_to_dict(r) for r in rows]
|
||||
for item in result:
|
||||
|
||||
@@ -321,7 +321,7 @@ def list_customers(
|
||||
|
||||
total = q.order_by(None).with_entities(func.count(CrmCustomer.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
|
||||
order_by = CrmCustomer.create_time.desc()
|
||||
if view_mode == "toFollow":
|
||||
|
||||
@@ -103,7 +103,7 @@ def list_follows(
|
||||
|
||||
total = q.order_by(None).with_entities(func.count(CrmCustomerFollow.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
|
||||
rows = (
|
||||
q.order_by(CrmCustomerFollow.follow_time.desc(), CrmCustomerFollow.create_time.desc())
|
||||
|
||||
@@ -353,7 +353,7 @@ def list_opportunities(
|
||||
|
||||
total = q.order_by(None).with_entities(func.count(CrmOpportunity.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
q.order_by(CrmOpportunity.create_time.desc())
|
||||
.offset((page - 1) * page_size)
|
||||
|
||||
@@ -150,7 +150,7 @@ def list_opportunity_follows(
|
||||
rows = (
|
||||
q.order_by(CrmOpportunityFollow.create_time.desc())
|
||||
.offset((max(1, page) - 1) * page_size)
|
||||
.limit(min(max(1, page_size), 100))
|
||||
.limit(min(max(1, page_size), 500))
|
||||
.all()
|
||||
)
|
||||
return [_row_to_dict(r) for r in rows], total
|
||||
|
||||
@@ -139,7 +139,7 @@ def list_opportunity_products(
|
||||
rows = (
|
||||
q.order_by(CrmOpportunityProduct.sort.asc(), CrmOpportunityProduct.create_time.asc())
|
||||
.offset((max(1, page) - 1) * page_size)
|
||||
.limit(min(max(1, page_size), 100))
|
||||
.limit(min(max(1, page_size), 500))
|
||||
.all()
|
||||
)
|
||||
return [_row_to_dict(r) for r in rows], total
|
||||
|
||||
@@ -157,7 +157,7 @@ def list_price_letters(
|
||||
|
||||
total = q.order_by(None).with_entities(func.count(CrmPriceLetter.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
q.order_by(CrmPriceLetter.create_time.desc())
|
||||
.offset((page - 1) * page_size)
|
||||
|
||||
@@ -571,8 +571,14 @@ def list_products(
|
||||
status: str = None,
|
||||
supplier_id: str = None,
|
||||
user_info=None,
|
||||
match_product_no: bool = True,
|
||||
match_model: bool = False,
|
||||
) -> Tuple[List[Dict[str, Any]], int]:
|
||||
"""分页查询产品列表"""
|
||||
"""分页查询产品列表
|
||||
|
||||
keyword 默认匹配:名称 / 编号 / 拼音首字母。
|
||||
选择器场景可关闭编号匹配、开启规格型号匹配(避免短数字误命中产品编号)。
|
||||
"""
|
||||
q = db.query(CrmProduct).filter(
|
||||
CrmProduct.tenant_no == tenant_no,
|
||||
CrmProduct.del_flag == 0,
|
||||
@@ -580,18 +586,19 @@ def list_products(
|
||||
if user_info:
|
||||
q = apply_crm_create_by_scope(q, CrmProduct, user_info, db, tenant_no)
|
||||
|
||||
# keyword 筛选:名称 / 编号 / 拼音首字母
|
||||
kw = (keyword or "").strip()
|
||||
if kw:
|
||||
like = f"%{kw}%"
|
||||
pinyin_like = f"%{kw.lower()}%"
|
||||
q = q.filter(
|
||||
or_(
|
||||
CrmProduct.product_name.like(like),
|
||||
CrmProduct.product_no.like(like),
|
||||
func.lower(func.coalesce(CrmProduct.name_pinyin_abbr, "")).like(pinyin_like),
|
||||
)
|
||||
)
|
||||
conds = [
|
||||
CrmProduct.product_name.like(like),
|
||||
func.lower(func.coalesce(CrmProduct.name_pinyin_abbr, "")).like(pinyin_like),
|
||||
]
|
||||
if match_product_no:
|
||||
conds.append(CrmProduct.product_no.like(like))
|
||||
if match_model:
|
||||
conds.append(CrmProduct.model.like(like))
|
||||
q = q.filter(or_(*conds))
|
||||
|
||||
# category_id 筛选
|
||||
if category_id:
|
||||
@@ -621,7 +628,7 @@ def list_products(
|
||||
|
||||
total = q.order_by(None).with_entities(func.count(CrmProduct.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
|
||||
rows = (
|
||||
q.order_by(CrmProduct.product_no.desc())
|
||||
|
||||
@@ -573,7 +573,7 @@ def list_quotes(
|
||||
q = apply_crm_owner_scope(q, CrmQuote, user_info, db, tenant_no)
|
||||
total = q.order_by(None).with_entities(func.count(CrmQuote.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = q.offset((page - 1) * page_size).limit(page_size).all()
|
||||
result = [_row_to_dict(r) for r in rows]
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ def list_dict_data(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(SysDictData.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(SysDictData.create_time.desc())
|
||||
|
||||
@@ -49,7 +49,7 @@ def list_dict_types(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(SysDictType.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(SysDictType.create_time.desc())
|
||||
|
||||
@@ -50,7 +50,7 @@ def list_posts(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(SysPost.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(SysPost.create_time.desc())
|
||||
|
||||
@@ -68,7 +68,7 @@ def list_roles(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(SysRole.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(SysRole.create_time.desc())
|
||||
|
||||
@@ -90,7 +90,7 @@ def list_sample_codes(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(BizSampleCode.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(BizSampleCode.create_time.desc())
|
||||
|
||||
@@ -55,7 +55,7 @@ def list_sites(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(SysSite.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(SysSite.create_time.desc())
|
||||
|
||||
@@ -50,7 +50,7 @@ def list_tenants(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(SysTenant.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(SysTenant.create_time.desc())
|
||||
|
||||
@@ -104,7 +104,7 @@ def list_users(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(SysUser.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(SysUser.create_time.desc())
|
||||
|
||||
@@ -69,7 +69,7 @@ def list_process_defs(
|
||||
|
||||
total = _filtered().order_by(None).with_entities(func.count(WfProcessDef.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
_filtered()
|
||||
.order_by(WfProcessDef.create_time.desc())
|
||||
@@ -486,7 +486,7 @@ def list_my_instances(
|
||||
|
||||
total = q0.order_by(None).with_entities(func.count(WfProcessInstance.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
q0.order_by(WfProcessInstance.create_time.desc())
|
||||
.offset((page - 1) * page_size)
|
||||
@@ -690,7 +690,7 @@ def list_pending_tasks(
|
||||
|
||||
total = q0.order_by(None).with_entities(func.count(WfTask.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
q0.order_by(WfTask.create_time.desc())
|
||||
.offset((page - 1) * page_size)
|
||||
@@ -753,7 +753,7 @@ def list_completed_tasks(
|
||||
|
||||
total = q0.order_by(None).with_entities(func.count(WfTask.id)).scalar() or 0
|
||||
page = max(1, page)
|
||||
page_size = min(max(1, page_size), 100)
|
||||
page_size = min(max(1, page_size), 500)
|
||||
rows = (
|
||||
q0.order_by(WfTask.update_time.desc())
|
||||
.offset((page - 1) * page_size)
|
||||
|
||||
@@ -12,7 +12,7 @@ class ClueListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
keyword: Optional[str] = Field(default=None, description="搜索关键词(线索名称/手机号)")
|
||||
search_keyword: Optional[str] = Field(
|
||||
default=None, alias="searchKeyword", description="快速搜索关键词(与 keyword 等价)"
|
||||
@@ -133,7 +133,7 @@ class ClueFollowListBody(BaseModel):
|
||||
|
||||
clue_id: str = Field(..., alias="clueId", description="线索ID")
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
|
||||
|
||||
class ClueFollowCreateBody(BaseModel):
|
||||
|
||||
@@ -9,7 +9,7 @@ class ContactListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
keyword: Optional[str] = Field(default=None, description="搜索关键词(姓名/手机号/邮箱/职位 OR)")
|
||||
contact_name: Optional[str] = Field(default=None, alias="contactName", description="联系人姓名(模糊)")
|
||||
mobile: Optional[str] = Field(default=None, description="手机号(模糊)")
|
||||
|
||||
@@ -60,7 +60,7 @@ class ContractListQuery(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
pageNum: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
# 即时检索:合同编号 / 合同产品名称 / 产品拼音首字母
|
||||
keyword: Optional[str] = None
|
||||
contractNo: Optional[str] = None
|
||||
@@ -252,7 +252,7 @@ class ContractApprovalRefreshNamesBody(BaseModel):
|
||||
|
||||
class ContractApprovalListQuery(BaseModel):
|
||||
pageNum: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
contractId: Optional[str] = None
|
||||
contractNo: Optional[str] = None
|
||||
contractName: Optional[str] = None
|
||||
@@ -264,7 +264,7 @@ class ContractApprovalListQuery(BaseModel):
|
||||
|
||||
class ContractChangeListQuery(BaseModel):
|
||||
pageNum: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
contractId: Optional[str] = None
|
||||
contractNo: Optional[str] = None
|
||||
contractName: Optional[str] = None
|
||||
@@ -276,7 +276,7 @@ class ContractChangeListQuery(BaseModel):
|
||||
|
||||
class ContractTemplateListQuery(BaseModel):
|
||||
pageNum: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
templateNo: Optional[str] = None
|
||||
templateName: Optional[str] = None
|
||||
templateType: Optional[str] = None
|
||||
|
||||
@@ -28,7 +28,7 @@ class CustomerListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
keyword: Optional[str] = Field(default=None, description="搜索关键词(客户名称/编号/手机号)")
|
||||
search_keyword: Optional[str] = Field(
|
||||
default=None, alias="searchKeyword", description="快速搜索关键词(与 keyword 等价)"
|
||||
|
||||
@@ -9,7 +9,7 @@ class CustomerFollowListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
keyword: Optional[str] = Field(default=None, description="搜索关键词")
|
||||
customer_id: Optional[str] = Field(default=None, alias="customerId", description="客户ID")
|
||||
follow_type: Optional[str] = Field(default=None, alias="followType", description="跟进方式")
|
||||
@@ -62,4 +62,4 @@ class CustomerFollowByCustomerBody(BaseModel):
|
||||
|
||||
customer_id: str = Field(..., alias="customerId", description="客户ID")
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
@@ -8,7 +8,7 @@ class PoolCustomerListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
keyword: Optional[str] = Field(default=None)
|
||||
level: Optional[str] = Field(default=None)
|
||||
industry: Optional[str] = Field(default=None)
|
||||
@@ -33,7 +33,7 @@ class PoolRecordListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
customerId: Optional[str] = Field(default=None)
|
||||
operationType: Optional[str] = Field(default=None)
|
||||
keyword: Optional[str] = Field(default=None)
|
||||
|
||||
@@ -9,7 +9,7 @@ class OpportunityListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
keyword: Optional[str] = Field(default=None, description="关键词(商机名/客户名 OR)")
|
||||
opportunity_no: Optional[str] = Field(default=None, alias="opportunityNo")
|
||||
opportunity_name: Optional[str] = Field(default=None, alias="opportunityName")
|
||||
@@ -150,7 +150,7 @@ class OpportunityFollowListBody(BaseModel):
|
||||
|
||||
opportunity_id: Optional[str] = Field(default=None, alias="opportunityId")
|
||||
page: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
|
||||
|
||||
class OpportunityFollowDetailBody(BaseModel):
|
||||
@@ -189,7 +189,7 @@ class OpportunityProductListBody(BaseModel):
|
||||
opportunity_id: Optional[str] = Field(default=None, alias="opportunityId")
|
||||
product_id: Optional[str] = Field(default=None, alias="productId")
|
||||
page: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
|
||||
|
||||
class OpportunityProductByOpportunityBody(BaseModel):
|
||||
|
||||
@@ -8,7 +8,7 @@ class PoolRuleListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
poolName: Optional[str] = Field(default=None)
|
||||
ruleType: Optional[str] = Field(default=None)
|
||||
status: Optional[str] = Field(default=None)
|
||||
|
||||
@@ -12,7 +12,7 @@ class PriceLetterListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
letter_type: Optional[str] = Field(default=None, alias="letterType", description="类型 receive/send")
|
||||
customer_name: Optional[str] = Field(default=None, alias="customerName", description="客户名称模糊")
|
||||
product_name: Optional[str] = Field(default=None, alias="productName", description="产品名称模糊")
|
||||
|
||||
@@ -69,11 +69,25 @@ class ProductListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
keyword: Optional[str] = Field(default=None, description="搜索关键词(产品名称/编号)")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
keyword: Optional[str] = Field(
|
||||
default=None, description="搜索关键词(默认:产品名称/编号/拼音首字母)"
|
||||
)
|
||||
category_id: Optional[str] = Field(default=None, alias="categoryId", description="分类ID")
|
||||
status: Optional[str] = Field(default=None, description="状态")
|
||||
supplier_id: Optional[str] = Field(default=None, alias="supplierId", description="报价/合同主体ID,传入则按危化品能力过滤")
|
||||
supplier_id: Optional[str] = Field(
|
||||
default=None, alias="supplierId", description="报价/合同主体ID,传入则按危化品能力过滤"
|
||||
)
|
||||
match_product_no: Optional[bool] = Field(
|
||||
default=True,
|
||||
alias="matchProductNo",
|
||||
description="keyword 是否匹配产品编号(选择器建议 false)",
|
||||
)
|
||||
match_model: Optional[bool] = Field(
|
||||
default=False,
|
||||
alias="matchModel",
|
||||
description="keyword 是否匹配规格型号(选择器建议 true)",
|
||||
)
|
||||
|
||||
|
||||
class ProductBrandItem(BaseModel):
|
||||
|
||||
@@ -36,7 +36,7 @@ class QuoteListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1)
|
||||
pageSize: int = Field(default=10, ge=1, le=100)
|
||||
pageSize: int = Field(default=10, ge=1, le=500)
|
||||
keyword: Optional[str] = None
|
||||
quoteNo: Optional[str] = None
|
||||
quoteTitle: Optional[str] = None
|
||||
|
||||
@@ -11,7 +11,7 @@ class SupplierInfoListBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
pageSize: int = Field(default=10, ge=1, le=100, description="每页条数")
|
||||
pageSize: int = Field(default=10, ge=1, le=500, description="每页条数")
|
||||
supplier_name: Optional[str] = Field(default=None, alias="supplierName", description="供方名称")
|
||||
status: Optional[str] = Field(default=None, description="状态(0正常 1停用)")
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ class FreightSettlementListQuery(BaseModel):
|
||||
settlement_status: Optional[str] = Field(default=None, alias="settlementStatus", description="结算状态")
|
||||
tab: Optional[str] = Field(default=None, description="bills|disburse|settled")
|
||||
page: int = Field(default=1, ge=1)
|
||||
page_size: int = Field(default=20, ge=1, le=100, alias="pageSize")
|
||||
page_size: int = Field(default=20, ge=1, le=500, alias="pageSize")
|
||||
model_config = {"populate_by_name": True}
|
||||
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ class DocumentReminderStatsRead(BaseModel):
|
||||
class InventoryLedgerQuery(BaseModel):
|
||||
product_name: Optional[str] = Field(default=None, alias="productName", description="产品名称")
|
||||
page: int = Field(default=1, ge=1)
|
||||
page_size: int = Field(default=20, ge=1, le=100, alias="pageSize")
|
||||
page_size: int = Field(default=20, ge=1, le=500, alias="pageSize")
|
||||
model_config = {"populate_by_name": True}
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ class InventoryTransactionQuery(BaseModel):
|
||||
date_from: Optional[date] = Field(default=None, alias="dateFrom", description="开始日期")
|
||||
date_to: Optional[date] = Field(default=None, alias="dateTo", description="结束日期")
|
||||
page: int = Field(default=1, ge=1)
|
||||
page_size: int = Field(default=20, ge=1, le=100, alias="pageSize")
|
||||
page_size: int = Field(default=20, ge=1, le=500, alias="pageSize")
|
||||
model_config = {"populate_by_name": True}
|
||||
|
||||
|
||||
|
||||
@@ -346,7 +346,7 @@ class PlanListQuery(BaseModel):
|
||||
description="incomplete=至少一张必需危化证书未上传",
|
||||
)
|
||||
page: int = Field(default=1, ge=1, description="页码")
|
||||
page_size: int = Field(default=20, ge=1, le=100, alias="pageSize", description="每页数量")
|
||||
page_size: int = Field(default=20, ge=1, le=500, alias="pageSize", description="每页数量")
|
||||
model_config = {"populate_by_name": True}
|
||||
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ class TransportListQuery(BaseModel):
|
||||
vehicle_id: Optional[str] = Field(default=None, alias="vehicleId", description="车辆ID")
|
||||
driver_id: Optional[str] = Field(default=None, alias="driverId", description="司机ID")
|
||||
page: int = Field(default=1, ge=1)
|
||||
page_size: int = Field(default=20, ge=1, le=100, alias="pageSize")
|
||||
page_size: int = Field(default=20, ge=1, le=500, alias="pageSize")
|
||||
model_config = {"populate_by_name": True}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
"""业务页字典 ensure:白名单内按 label 复用或插入 sys_dict_data。"""
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Dict, Optional, Set
|
||||
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.utils import generate_uuid
|
||||
from app.models.models import SysDictData
|
||||
|
||||
DICT_ENSURE_WHITELIST: Set[str] = {
|
||||
"crm_product_gg",
|
||||
"crm_shfs",
|
||||
"crm_product_unit",
|
||||
"crm_customer_park",
|
||||
}
|
||||
|
||||
|
||||
class DictEnsureError(ValueError):
|
||||
pass
|
||||
|
||||
|
||||
def ensure_dict_data(
|
||||
db: Session,
|
||||
*,
|
||||
tenant_no: str,
|
||||
dict_type: str,
|
||||
label: str,
|
||||
user_id: str = "",
|
||||
preferred_value: Optional[str] = None,
|
||||
) -> Dict[str, object]:
|
||||
label = (label or "").strip()
|
||||
if not label:
|
||||
raise DictEnsureError("字典标签不能为空")
|
||||
if dict_type not in DICT_ENSURE_WHITELIST:
|
||||
raise DictEnsureError("不支持的字典类型")
|
||||
|
||||
preferred = (preferred_value or "").strip() or label
|
||||
|
||||
existing_label = (
|
||||
db.query(SysDictData)
|
||||
.filter(
|
||||
SysDictData.tenant_no == tenant_no,
|
||||
SysDictData.dict_type == dict_type,
|
||||
SysDictData.dict_label == label,
|
||||
SysDictData.del_flag == 0,
|
||||
)
|
||||
.first()
|
||||
)
|
||||
if existing_label:
|
||||
return {
|
||||
"label": existing_label.dict_label,
|
||||
"value": existing_label.dict_value,
|
||||
"created": False,
|
||||
}
|
||||
|
||||
by_value = (
|
||||
db.query(SysDictData)
|
||||
.filter(
|
||||
SysDictData.tenant_no == tenant_no,
|
||||
SysDictData.dict_type == dict_type,
|
||||
SysDictData.dict_value == preferred,
|
||||
SysDictData.del_flag == 0,
|
||||
)
|
||||
.first()
|
||||
)
|
||||
if by_value:
|
||||
return {
|
||||
"label": by_value.dict_label,
|
||||
"value": by_value.dict_value,
|
||||
"created": False,
|
||||
}
|
||||
|
||||
obj = SysDictData(
|
||||
id=generate_uuid(),
|
||||
dict_label=label,
|
||||
dict_value=preferred,
|
||||
dict_type=dict_type,
|
||||
tag_type="",
|
||||
tenant_no=tenant_no,
|
||||
order_num=0,
|
||||
remark=None,
|
||||
create_by=user_id or None,
|
||||
create_dept_id="",
|
||||
create_time=datetime.now(),
|
||||
update_by=user_id or None,
|
||||
update_time=datetime.now(),
|
||||
del_flag=0,
|
||||
)
|
||||
db.add(obj)
|
||||
db.flush()
|
||||
return {"label": obj.dict_label, "value": obj.dict_value, "created": True}
|
||||
|
||||
|
||||
def ensure_remove_dict_data(
|
||||
db: Session,
|
||||
*,
|
||||
tenant_no: str,
|
||||
dict_type: str,
|
||||
value: str,
|
||||
user_id: str = "",
|
||||
) -> None:
|
||||
value = (value or "").strip()
|
||||
if not value:
|
||||
raise DictEnsureError("字典值不能为空")
|
||||
if dict_type not in DICT_ENSURE_WHITELIST:
|
||||
raise DictEnsureError("不支持的字典类型")
|
||||
|
||||
row = (
|
||||
db.query(SysDictData)
|
||||
.filter(
|
||||
SysDictData.tenant_no == tenant_no,
|
||||
SysDictData.dict_type == dict_type,
|
||||
SysDictData.dict_value == value,
|
||||
SysDictData.del_flag == 0,
|
||||
)
|
||||
.first()
|
||||
)
|
||||
if not row:
|
||||
raise DictEnsureError("字典数据不存在")
|
||||
if (row.create_by or "") != (user_id or ""):
|
||||
raise DictEnsureError("无权删除该字典项")
|
||||
|
||||
row.del_flag = 1
|
||||
row.update_by = user_id or None
|
||||
row.update_time = datetime.now()
|
||||
db.add(row)
|
||||
db.flush()
|
||||
@@ -127,17 +127,27 @@
|
||||
"125": "build_annotated_result_bytes",
|
||||
"126": "customer_pool.py",
|
||||
"127": "web_login_rsa_public_key",
|
||||
"128": "get_client_ip",
|
||||
"128": "product_allowed",
|
||||
"129": "BaseStorage",
|
||||
"130": "context.py",
|
||||
"131": "PlPlanChange",
|
||||
"130": ".to_tenant_user_dict",
|
||||
"131": "list_product_options",
|
||||
"132": "context.py",
|
||||
"133": "product.py",
|
||||
"134": "test_crm_approval_reedit.py",
|
||||
"135": "opportunity_follow.py",
|
||||
"136": "Community 136",
|
||||
"137": "statistics.py",
|
||||
"138": "Community 138",
|
||||
"139": "get_current_user_by_token",
|
||||
"140": "utils.py",
|
||||
"141": "customer_follow.py",
|
||||
"142": "price_letter_detail",
|
||||
"143": "opportunity_export",
|
||||
"144": "dict_data.py",
|
||||
"145": "resolve_crm_product",
|
||||
"146": "__init__.py",
|
||||
"147": "Community 147",
|
||||
"148": "get_db_current_user_optional",
|
||||
"151": "Community 151",
|
||||
"154": "response.py",
|
||||
"159": "customer_update",
|
||||
|
||||
@@ -95,7 +95,10 @@
|
||||
"93": "api_request_log_middleware.py",
|
||||
"94": "assert_contract_editable_for_update",
|
||||
"95": "test_pl_public_link_archived.py",
|
||||
"96": "minio_url.py",
|
||||
"97": "contact.py",
|
||||
"98": "LocalStorage",
|
||||
"99": "redis_client.py",
|
||||
"100": "price_letter_detail",
|
||||
"101": "tenant.py",
|
||||
"102": "crm_supplier_hazard.py",
|
||||
@@ -105,6 +108,8 @@
|
||||
"106": "site.py",
|
||||
"107": "apply_pl_scope",
|
||||
"108": "statistics.py",
|
||||
"109": "_ensure_subpack_slip_no",
|
||||
"110": "list_duty_staff_users",
|
||||
"111": "Community 111",
|
||||
"112": ".to_tenant_user_dict",
|
||||
"113": "quote_share_log.py",
|
||||
@@ -117,10 +122,16 @@
|
||||
"120": "sqlalchemy_exception_handler",
|
||||
"121": "Session",
|
||||
"122": "Community 122",
|
||||
"123": "customer_options",
|
||||
"124": "datetime_parse.py",
|
||||
"125": "build_annotated_result_bytes",
|
||||
"126": "customer_pool.py",
|
||||
"127": "web_login_rsa_public_key",
|
||||
"128": "product_allowed",
|
||||
"129": "BaseStorage",
|
||||
"134": "Community 134",
|
||||
"130": ".to_tenant_user_dict",
|
||||
"131": "list_product_options",
|
||||
"132": "context.py",
|
||||
"136": "Community 136",
|
||||
"137": "statistics.py",
|
||||
"138": "Community 138",
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# Graph Report - backend (2026-08-21)
|
||||
|
||||
## Corpus Check
|
||||
- 335 files · ~222,128 words
|
||||
- 338 files · ~223,450 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 4604 nodes · 17064 edges · 166 communities (151 shown, 15 thin omitted)
|
||||
- Extraction: 95% EXTRACTED · 5% INFERRED · 0% AMBIGUOUS · INFERRED: 783 edges (avg confidence: 0.62)
|
||||
- 4635 nodes · 16891 edges · 177 communities (159 shown, 18 thin omitted)
|
||||
- Extraction: 97% EXTRACTED · 3% INFERRED · 0% AMBIGUOUS · INFERRED: 537 edges (avg confidence: 0.53)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `d01603f7`
|
||||
- Built from commit: `e9ad26cb`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
@@ -111,7 +111,10 @@
|
||||
- [[_COMMUNITY_api_request_log_middleware.py|api_request_log_middleware.py]]
|
||||
- [[_COMMUNITY_assert_contract_editable_for_update|assert_contract_editable_for_update]]
|
||||
- [[_COMMUNITY_test_pl_public_link_archived.py|test_pl_public_link_archived.py]]
|
||||
- [[_COMMUNITY_minio_url.py|minio_url.py]]
|
||||
- [[_COMMUNITY_contact.py|contact.py]]
|
||||
- [[_COMMUNITY_LocalStorage|LocalStorage]]
|
||||
- [[_COMMUNITY_redis_client.py|redis_client.py]]
|
||||
- [[_COMMUNITY_price_letter_detail|price_letter_detail]]
|
||||
- [[_COMMUNITY_tenant.py|tenant.py]]
|
||||
- [[_COMMUNITY_crm_supplier_hazard.py|crm_supplier_hazard.py]]
|
||||
@@ -121,6 +124,8 @@
|
||||
- [[_COMMUNITY_site.py|site.py]]
|
||||
- [[_COMMUNITY_apply_pl_scope|apply_pl_scope]]
|
||||
- [[_COMMUNITY_statistics.py|statistics.py]]
|
||||
- [[_COMMUNITY__ensure_subpack_slip_no|_ensure_subpack_slip_no]]
|
||||
- [[_COMMUNITY_list_duty_staff_users|list_duty_staff_users]]
|
||||
- [[_COMMUNITY_Community 111|Community 111]]
|
||||
- [[_COMMUNITY_.to_tenant_user_dict|.to_tenant_user_dict]]
|
||||
- [[_COMMUNITY_quote_share_log.py|quote_share_log.py]]
|
||||
@@ -133,10 +138,16 @@
|
||||
- [[_COMMUNITY_sqlalchemy_exception_handler|sqlalchemy_exception_handler]]
|
||||
- [[_COMMUNITY_Session|Session]]
|
||||
- [[_COMMUNITY_Community 122|Community 122]]
|
||||
- [[_COMMUNITY_customer_options|customer_options]]
|
||||
- [[_COMMUNITY_datetime_parse.py|datetime_parse.py]]
|
||||
- [[_COMMUNITY_build_annotated_result_bytes|build_annotated_result_bytes]]
|
||||
- [[_COMMUNITY_customer_pool.py|customer_pool.py]]
|
||||
- [[_COMMUNITY_web_login_rsa_public_key|web_login_rsa_public_key]]
|
||||
- [[_COMMUNITY_product_allowed|product_allowed]]
|
||||
- [[_COMMUNITY_BaseStorage|BaseStorage]]
|
||||
- [[_COMMUNITY_Community 134|Community 134]]
|
||||
- [[_COMMUNITY_.to_tenant_user_dict|.to_tenant_user_dict]]
|
||||
- [[_COMMUNITY_list_product_options|list_product_options]]
|
||||
- [[_COMMUNITY_context.py|context.py]]
|
||||
- [[_COMMUNITY_Community 136|Community 136]]
|
||||
- [[_COMMUNITY_statistics.py|statistics.py]]
|
||||
- [[_COMMUNITY_Community 138|Community 138]]
|
||||
@@ -173,12 +184,12 @@
|
||||
- [[_COMMUNITY_PlanResourceSnapshotMixin|PlanResourceSnapshotMixin]]
|
||||
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `BaseModel` - 459 edges
|
||||
1. `BaseModel` - 461 edges
|
||||
2. `get_tenant_no()` - 353 edges
|
||||
3. `success_response()` - 271 edges
|
||||
4. `DbUserContext` - 258 edges
|
||||
5. `error_response()` - 250 edges
|
||||
6. `generate_uuid()` - 196 edges
|
||||
6. `generate_uuid()` - 198 edges
|
||||
7. `BxUserContext` - 188 edges
|
||||
8. `crm_user_info()` - 137 edges
|
||||
9. `assert_row_deletable_by_creator()` - 83 edges
|
||||
@@ -199,95 +210,95 @@
|
||||
## Import Cycles
|
||||
- None detected.
|
||||
|
||||
## Communities (166 total, 15 thin omitted)
|
||||
## Communities (177 total, 18 thin omitted)
|
||||
|
||||
### Community 0 - "Community 0"
|
||||
Cohesion: 0.12
|
||||
Nodes (40): register_contract_routes(), batch_assign_owner(), batch_submit_contract_approval(), create_from_quote(), download_contract_pdf(), _ensure_contract_in_scope(), export_contracts(), finish_contract() (+32 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (23): BxAdvanceApply, BxAdvanceApproval, BxReimburseOffset, BxWorkflowNode, 报销(bx)模块数据模型 — 对齐 docs/sql/20260606_bx_tables.sql, AdvanceService, Any, Session (+15 more)
|
||||
|
||||
### Community 1 - "Community 1"
|
||||
Cohesion: 0.10
|
||||
Nodes (32): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, ContractApproverSettingSaveBody, ContractApprovalActionBody, ContractBatchAssignBody, ContractBatchSubmitBody, ContractChangeCreateBody, ContractChangeUpdateBody, ContractCreateBody (+24 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (39): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, 运营端角色守卫:admin / super_admin 可访问。, 接口菜单权限守卫。super_admin 直接放行。, require_admin_or_super_admin(), require_menu_code(), oper_log(), 在 handler 执行前设置操作日志元数据。, ContractApproverSettingSaveBody (+31 more)
|
||||
|
||||
### Community 2 - "Community 2"
|
||||
Cohesion: 0.13
|
||||
Nodes (11): _coerce_id(), OffsetItem, PaymentFinanceStatsOut, 报销单勾选的发票附件(同一发票可勾选多个附件,各占一条)。, ReimburseApplyCreate, ReimburseApprovalOut, ReimburseApproverPendingStatsOut, ReimburseDetailCreate (+3 more)
|
||||
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)
|
||||
|
||||
### Community 3 - "Community 3"
|
||||
Cohesion: 0.08
|
||||
Nodes (104): attachment_download_url(), attachment_preview_url(), AttachmentDownloadUrlBody, create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_menu_favorite() (+96 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (66): attachment_download_url(), attachment_preview_url(), create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_menu_favorite(), create_post() (+58 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)
|
||||
|
||||
### Community 5 - "Community 5"
|
||||
Cohesion: 0.05
|
||||
Nodes (105): archive_plan(), cancel_plan(), cancel_plan_wait_notice(), count_plans_by_contract(), create_from_contract(), create_plan(), create_plan_full(), delete_plan() (+97 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (69): archive_plan(), _build_driver_url(), cancel_plan(), cancel_plan_wait_notice(), count_plans_by_contract(), create_from_contract(), create_plan(), create_plan_full() (+61 more)
|
||||
|
||||
### Community 6 - "Community 6"
|
||||
Cohesion: 0.13
|
||||
Nodes (44): assign_customer(), batch_claim_customers(), check_duplicate_customer(), claim_customer(), create_customer(), deal_customer(), _enrich_user_names(), _ensure_customer_in_scope() (+36 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (51): customer_create(), customer_update(), follow_by_customer(), follow_detail(), assign_customer(), batch_claim_customers(), check_duplicate_customer(), claim_customer() (+43 more)
|
||||
|
||||
### Community 7 - "Community 7"
|
||||
Cohesion: 0.03
|
||||
Nodes (223): clue_assign(), clue_check_convert(), clue_check_duplicate(), clue_convert(), clue_create(), clue_delete(), clue_detail(), clue_export() (+215 more)
|
||||
Cohesion: 0.04
|
||||
Nodes (204): category_add(), category_delete(), category_tree(), category_update(), clue_assign(), clue_check_convert(), clue_check_duplicate(), clue_convert() (+196 more)
|
||||
|
||||
### Community 8 - "Community 8"
|
||||
Cohesion: 0.10
|
||||
Nodes (54): assert_quote_editable_for_update(), _build_quote_filters(), calculate_quote_amount(), create_new_version(), create_quote(), _decimal_value(), _enrich_contact_fields(), _enrich_supplier_name() (+46 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 9 - "Community 9"
|
||||
Cohesion: 0.10
|
||||
Nodes (49): download_reimburse_import_template(), build_annotated_result_bytes(), build_applicant_label(), build_expense_path_labels(), build_import_template_bytes(), cell_str(), _ids_visible_in_web_tree(), import_reimburse_workbook() (+41 more)
|
||||
|
||||
### Community 10 - "Community 10"
|
||||
Cohesion: 0.11
|
||||
Nodes (20): 地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。, list_public_vehicle_plates(), Session, 地磅公共只读:免登车牌 options(现场填写页), 免登:按出入库/计划解析 tenant_no,返回 pl_vehicle 车牌(self + carrier)。, _resolve_tenant_no(), menu_badge_stats(), Session (+12 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (34): _apply_inventory_product_update(), _apply_inventory_update(), _base_query(), create_inventory(), create_link_for_plan(), delete_inventory(), _generate_batch_no(), _get_inventory() (+26 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)
|
||||
|
||||
### Community 12 - "Community 12"
|
||||
Cohesion: 0.06
|
||||
Nodes (64): contact_add(), contact_delete(), contact_update(), customer_delete(), BaseModel, AttachmentUploadResponse, ChangePasswordRequest, Config (+56 more)
|
||||
Cohesion: 0.05
|
||||
Nodes (72): RecognizeCertResult, BaseModel, AttachmentUploadResponse, ChangePasswordRequest, Config, LoginRequest, LoginResponse, Pydantic schemas - 用户认证 (+64 more)
|
||||
|
||||
### Community 13 - "Community 13"
|
||||
Cohesion: 0.20
|
||||
Cohesion: 0.19
|
||||
Nodes (13): create_expense_item(), delete_expense_item(), get_expense_item(), get_expense_item_tree(), Session, update_expense_item(), BxExpenseItem, _coerce_id() (+5 more)
|
||||
|
||||
### Community 14 - "Community 14"
|
||||
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.11
|
||||
Nodes (27): bind_biz(), delete_attachment(), download_file(), list_by_biz(), _parse_id_list(), preview_attachment(), Session, UploadFile (+19 more)
|
||||
|
||||
### Community 15 - "Community 15"
|
||||
Cohesion: 0.10
|
||||
Nodes (41): approve_reimburse(), approved_by_me(), _build_details_data(), create_reimburse(), delete_reimburse(), get_approval_history(), get_approvals(), get_generated_title() (+33 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (42): approve_reimburse(), approved_by_me(), _build_details_data(), create_reimburse(), delete_reimburse(), get_approval_history(), get_approvals(), get_generated_title() (+34 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 17 - "Community 17"
|
||||
Cohesion: 0.18
|
||||
Nodes (21): allocate_reimburse_title_seq(), format_reimburse_title(), generate_apply_code(), generate_title(), is_auto_reimburse_title(), parse_optional_date(), parse_reimburse_date(), preview_reimburse_title_seq() (+13 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (32): build_dict_value_from_label(), ensure_dict_data(), grab(), join_work_plans(), list_duty_staff_users(), normalize_person_name(), _pad_hhmm(), parse_time_range_input() (+24 more)
|
||||
|
||||
### Community 18 - "Community 18"
|
||||
Cohesion: 0.08
|
||||
Nodes (63): advance_pending_approval_stats(), advance_status_counts(), approve_advance(), approved_by_me(), create_advance(), delete_advance(), _fill_offset_amounts(), get_advance() (+55 more)
|
||||
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)
|
||||
|
||||
### Community 19 - "Community 19"
|
||||
Cohesion: 0.14
|
||||
Nodes (13): BxAdvanceApply, BxAdvanceApproval, AdvanceService, Any, Session, 同一节点多次审批时,取 approval_time 最新的一条作为当前节点状态。, 返回全部审批动作,按时间正序排列,用于展示完整审批历史。, Any (+5 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 20 - "Community 20"
|
||||
Cohesion: 0.20
|
||||
Nodes (20): register_quote_routes(), 接口菜单权限守卫。super_admin 直接放行。, require_menu_code(), accept_quote(), generate_pdf(), generate_share(), _get_quote_in_scope(), get_template() (+12 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (34): approve_settlement_legacy(), cancel_settlement(), create_settlement(), delete_settlement(), disburse_settlement(), _generate_settlement_no(), get_settlement(), get_settlement_approval_flow() (+26 more)
|
||||
|
||||
### Community 21 - "Community 21"
|
||||
Cohesion: 0.15
|
||||
Nodes (32): _assert_brand_deletable(), barcode_exists(), category_code_exists(), create_category(), create_product(), generate_auto_product_no(), generate_barcode(), generate_product_no() (+24 more)
|
||||
Nodes (34): _assert_brand_deletable(), barcode_exists(), category_code_exists(), create_category(), create_oss(), create_product(), generate_auto_product_no(), generate_barcode() (+26 more)
|
||||
|
||||
### Community 22 - "Community 22"
|
||||
Cohesion: 0.08
|
||||
@@ -295,103 +306,103 @@ Nodes (28): parse_admin_request_json(), Any, Request, 运营 Web(/web/admin)
|
||||
|
||||
### Community 23 - "Community 23"
|
||||
Cohesion: 0.10
|
||||
Nodes (61): _generate_notify_message(), PlPlan, PlPlanProduct, 计划产品明细表 pl_plan_product, PlanArchiveFreightBlock, PlanArchiveProductItem, PlanDriverFeedbackUpdateBody, PlanProductCreate (+53 more)
|
||||
Nodes (60): _generate_notify_message(), update_plan(), PlPlan, PlanArchiveFreightBlock, PlanArchiveProductItem, PlanProductCreate, PlanTransportCreateBlock, all_hazard_products_cert_complete() (+52 more)
|
||||
|
||||
### Community 24 - "Community 24"
|
||||
Cohesion: 0.14
|
||||
Nodes (23): 报销模块认证适配:门户 JWT 用户 → bx 业务上下文。, BxReimburseInvoice, BxReimburseOffset, BxWorkflowNode, 报销(bx)模块数据模型 — 对齐 docs/sql/20260606_bx_tables.sql, filter_current_cycle_approvals(), 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, 审批进度仅展示当前轮次;完整历史由 get_approval_history 返回。 (+15 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (16): DictEnsureError, ensure_dict_data(), ensure_remove_dict_data(), Session, 业务页字典 ensure:白名单内按 label 复用或插入 sys_dict_data。, label miss, but preferred value already exists → reuse, no insert, test_ensure_honors_explicit_preferred_value_on_insert(), test_ensure_inserts_new_with_value_equals_label() (+8 more)
|
||||
|
||||
### Community 25 - "Community 25"
|
||||
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 26 - "Community 26"
|
||||
Cohesion: 0.05
|
||||
Nodes (89): generate_id(), camel_to_snake(), CRUDBase, get_model_attr(), HistoryCRUD, Any, Session, DutyAssignment (+81 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (29): DutyAssignment, DutyDay, DutySlot, 值班排班模型 — docs/superpowers/specs/2026-08-14-duty-schedule-design.md, assert_user_is_duty_staff(), build_public_url(), _count_active_assignments(), _day_dict() (+21 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.05
|
||||
Nodes (98): approve_settlement_legacy(), cancel_settlement(), create_settlement(), delete_settlement(), disburse_settlement(), _generate_settlement_no(), get_settlement(), get_settlement_approval_flow() (+90 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (61): PlFreightSettlement, PlFreightSettlementApproval, PlFreightSettlementTransport, PlRemittanceVoucher, 运费结算表 pl_freight_settlement, 运费结算审批 pl_freight_settlement_approval, 结算单-运输关联表 pl_freight_settlement_transport, 汇款凭证表 pl_remittance_voucher (+53 more)
|
||||
|
||||
### Community 29 - "Community 29"
|
||||
Cohesion: 0.12
|
||||
Nodes (43): CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), _change_row_to_dict(), contract_row_to_dict(), create_contract_change(), create_contract_template(), _enrich_change_rows(), execute_change() (+35 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (102): 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() (+94 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)
|
||||
Cohesion: 0.09
|
||||
Nodes (50): 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() (+42 more)
|
||||
|
||||
### Community 31 - "Community 31"
|
||||
Cohesion: 0.11
|
||||
Nodes (31): 列表展示用:优先 CRM 标准名(详情仍返回库内 product_name,以便编辑反推别名)。, _resolve_list_product_name(), _build_public_page(), _build_site_product_read(), _format_file_size(), get_public_site(), _get_site_link_by_token(), _parse_feedback_images() (+23 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (42): 返回 (作废, 归档)。现场链接实际走入库/出库单公共页。, _resolve_io_order_link_flags(), _resolve_site_link_flags(), _as_date(), _build_driver_url(), _build_public_page(), _format_file_size(), _format_plan_date() (+34 more)
|
||||
|
||||
### Community 32 - "Community 32"
|
||||
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.12
|
||||
Nodes (44): check_document_expiry(), document_reminder_stats(), get_inventory_ledger(), get_summary(), list_document_reminders(), list_transactions(), list_warnings(), date (+36 more)
|
||||
|
||||
### Community 33 - "Community 33"
|
||||
Cohesion: 0.10
|
||||
Nodes (46): create_contact(), get_contact(), list_contacts_by_customer(), _parse_optional_date(), Any, date, Session, _row_to_dict() (+38 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (37): clue_detail(), contact_by_customer(), contact_detail(), contact_set_primary(), customer_detail(), create_contact(), get_contact(), list_contacts_by_customer() (+29 more)
|
||||
|
||||
### Community 34 - "Community 34"
|
||||
Cohesion: 0.18
|
||||
Nodes (25): 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() (+17 more)
|
||||
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)
|
||||
|
||||
### Community 35 - "Community 35"
|
||||
Cohesion: 0.18
|
||||
Nodes (36): clear_portal_workflow(), _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_bx_user_mapping(), load_runtime_settings() (+28 more)
|
||||
|
||||
### Community 36 - "Community 36"
|
||||
Cohesion: 0.16
|
||||
Nodes (28): 验证密码(哈希非 bcrypt 或损坏时返回 False,避免抛错), verify_password(), change_password(), create_user(), get_user(), get_user_with_relations(), _hash_password(), list_post_ids_for_user() (+20 more)
|
||||
Cohesion: 0.15
|
||||
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.16
|
||||
Nodes (26): _build_contract_filters(), _contract_period_key(), create_contract(), create_from_opportunity(), _decimal_value(), _get_field(), is_framework_contract_type(), _normalize_framework_contract_data() (+18 more)
|
||||
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 38 - "Community 38"
|
||||
Cohesion: 0.18
|
||||
Nodes (11): Config, decrypt_login_payload(), ensure_initialized(), extract_login_credentials(), get_public_pem(), Any, 登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。, Base64 密文 -> JSON 对象(须含 username、password、ts 毫秒时间戳)。 (+3 more)
|
||||
Cohesion: 0.31
|
||||
Nodes (9): decrypt_login_payload(), ensure_initialized(), extract_login_credentials(), get_public_pem(), Any, 登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。, Base64 密文 -> JSON 对象(须含 username、password、ts 毫秒时间戳)。, 从请求体解析用户名、密码。 返回 (username, password, error_message);error_message 非空时表示失败。 (+1 more)
|
||||
|
||||
### Community 39 - "Community 39"
|
||||
Cohesion: 0.14
|
||||
Nodes (41): assign_clues(), check_convert(), check_duplicate_clue(), convert_clue(), create_clue(), _enrich_user_names(), _ensure_clue_in_scope(), create_clue_follow() (+33 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 40 - "Community 40"
|
||||
Cohesion: 0.06
|
||||
Nodes (108): _apply_inventory_product_update(), _apply_inventory_update(), _base_query(), create_inventory(), create_link_for_plan(), _generate_batch_no(), _get_inventory(), _get_inventory_by_id() (+100 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (72): _apply_plan_product_update(), _apply_plan_update(), AutoGenerateMonthlyResult, _base_query(), create_plan(), _generate_plan_no(), get_plan(), _get_plan_by_id_only() (+64 more)
|
||||
|
||||
### Community 41 - "Community 41"
|
||||
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)
|
||||
Cohesion: 0.16
|
||||
Nodes (22): operlog_detail(), operlog_list(), Session, 操作日志分页列表(基于 API 请求日志适配 RuoYi OperLog 结构), _user_info(), 获取用户所有角色的数据权限配置。 返回: [{"data_scope": str, "details": [SysRoleDataScopeDetai, _resolve_user_role_scopes(), business_type_from_path() (+14 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.09
|
||||
Nodes (34): create_invoice(), delete_invoice(), get_mine_wallet_summary(), list_invoice_ledgers(), list_invoice_wallets(), list_invoices(), Request, Session (+26 more)
|
||||
|
||||
### Community 44 - "Community 44"
|
||||
Cohesion: 0.21
|
||||
Nodes (16): _apply_contract_entity_fields(), _build_contract_name_from_parties(), _build_customer_address(), _calc_amount_with_tax(), _first_non_blank(), get_contract(), _get_default_invoice_info(), _get_supplier_short_name() (+8 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (32): 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() (+24 more)
|
||||
|
||||
### Community 45 - "Community 45"
|
||||
Cohesion: 0.11
|
||||
Nodes (17): category_add(), category_delete(), category_tree(), category_update(), product_delete(), product_update_status(), 删除产品(支持单条 body.id 和批量 body.ids), CategoryDeleteBody (+9 more)
|
||||
Cohesion: 0.34
|
||||
Nodes (32): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, MenuCreateBody (+24 more)
|
||||
|
||||
### Community 46 - "Community 46"
|
||||
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)
|
||||
Cohesion: 0.15
|
||||
Nodes (26): Session, recognize_cert(), RecognizeCertBody, cancel_apply(), create_apply(), create_record(), delete_applies(), delete_records() (+18 more)
|
||||
|
||||
### Community 47 - "Community 47"
|
||||
Cohesion: 0.39
|
||||
Nodes (8): compute_contract_gap_sides(), _compile(), test_both_external_no_contracts_gaps_both(), test_both_internal_no_gap(), test_empty_names_treated_as_non_internal_gap_both(), test_external_with_contracts_no_gap(), test_internal_supplier_external_demander_missing_only_demander(), test_plan_has_contract_gap_exists_mentions_contract_and_internal_names()
|
||||
Cohesion: 0.14
|
||||
Nodes (31): PlanContractGapRead, PlanContractLink, PlanProductRead, is_internal_customer_name(), 运输计划:内置山峡/云栋客户判定(合同可免), build_plan_contract_gap_read(), compute_contract_gap_sides(), _demander_gap_expr() (+23 more)
|
||||
|
||||
### Community 48 - "Community 48"
|
||||
Cohesion: 0.21
|
||||
@@ -402,56 +413,56 @@ 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.13
|
||||
Nodes (22): _alias_row_to_dict(), _brand_row_to_dict(), _build_category_tree(), _category_row_to_dict(), _collect_category_with_ancestors(), get_product_by_no(), list_categories(), list_category_tree() (+14 more)
|
||||
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)
|
||||
|
||||
### Community 51 - "Community 51"
|
||||
Cohesion: 0.26
|
||||
Nodes (18): _address_to_read(), _build_address_query(), create_transport_address(), delete_transport_address(), _get_address(), get_transport_address(), list_all_transport_addresses(), list_transport_addresses() (+10 more)
|
||||
|
||||
### Community 52 - "Community 52"
|
||||
Cohesion: 0.19
|
||||
Nodes (15): CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _build_workbook(), DictLabelResolver, export_rows_to_xlsx_response(), ExportColumn, load_dict_label_maps(), Any, Session (+7 more)
|
||||
Cohesion: 0.22
|
||||
Nodes (12): CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _build_workbook(), DictLabelResolver, export_rows_to_xlsx_response(), ExportColumn, Any, Session, Excel 导出工具:集中处理字典 code → label(对齐 Java ExcelDictConvert / ExcelDictPreloadConver (+4 more)
|
||||
|
||||
### Community 53 - "Community 53"
|
||||
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.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)
|
||||
|
||||
### Community 54 - "Community 54"
|
||||
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)
|
||||
Cohesion: 0.08
|
||||
Nodes (52): _build_history_page(), _build_page(), _get_by_token(), _history_status_label(), _make_handlers(), _models(), _parse_history_date(), date (+44 more)
|
||||
|
||||
### Community 55 - "Community 55"
|
||||
Cohesion: 0.09
|
||||
Nodes (38): generate_uuid(), get_current_time(), parse_datetime(), datetime, allocate_next_biz_no(), _format_biz_no(), _prefix_for(), datetime (+30 more)
|
||||
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
|
||||
|
||||
### Community 56 - "Community 56"
|
||||
Cohesion: 0.29
|
||||
Nodes (12): build_name_pinyin_abbr(), normalize_name_pinyin_abbr(), 名称拼音首字母缩写:库内存小写,检索时大小写不敏感。, 保存时解析拼音字段。 - submitted_provided=True:用提交值(空则按 name 生成) - 否则:已有非空 existi, resolve_name_pinyin_abbr(), test_chinese_and_alnum(), test_empty_and_whitespace(), test_resolve_not_submitted_empty_existing_generates() (+4 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 57 - "Community 57"
|
||||
Cohesion: 0.25
|
||||
Nodes (13): day_detail(), delete_assignment(), duty_user_options(), _enrich_assign_names(), ensure_duty_dict(), month_summary(), Session, 指定用户时补全 personName(用 nick_name)。 (+5 more)
|
||||
Cohesion: 0.23
|
||||
Nodes (15): create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), Session, submit_leave() (+7 more)
|
||||
|
||||
### Community 58 - "Community 58"
|
||||
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)
|
||||
Nodes (22): ReimburseDetailOut, allocate_reimburse_title_seq(), format_reimburse_title(), generate_apply_code(), generate_title(), is_auto_reimburse_title(), parse_optional_date(), parse_reimburse_date() (+14 more)
|
||||
|
||||
### Community 59 - "Community 59"
|
||||
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.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)
|
||||
Cohesion: 0.08
|
||||
Nodes (35): 分页查询供方列表 — Java: CrmSupplierInfoController.list, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 新增供方 — Java: CrmSupplierInfoController.add, 修改供方 — Java: CrmSupplierInfoController.edit, 删除供方 — Java: CrmSupplierInfoController.remove, 导出供方列表 — Java: CrmSupplierInfoController.export, supplier_info_add(), supplier_info_delete() (+27 more)
|
||||
|
||||
### Community 61 - "Community 61"
|
||||
Cohesion: 0.11
|
||||
Nodes (43): PlTransportDbLink, 运输-地磅出入库关联 pl_transport_db_link, _apply_plan_quantity_delta(), _create_db_inventory(), _create_db_plan(), DibangInventoryLinkResult, find_monthly_db_plan(), _generate_batch_no() (+35 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (45): DbInboundOutbound, PlPlanProduct, PlTransportDbLink, 计划产品明细表 pl_plan_product, 运输-地磅出入库关联 pl_transport_db_link, parse_date_str(), _apply_plan_quantity_delta(), _create_db_inventory() (+37 more)
|
||||
|
||||
### Community 62 - "Community 62"
|
||||
Cohesion: 0.09
|
||||
Nodes (35): approve_carrier(), create_carrier(), get_carrier(), update_carrier(), PlCarrier, carrier_to_read(), CarrierBase, CarrierCreate (+27 more)
|
||||
Nodes (53): approve_carrier(), bind_vehicle_driver(), create_carrier(), create_driver(), create_personnel(), delete_driver(), delete_personnel(), delete_vehicle() (+45 more)
|
||||
|
||||
### Community 63 - "Community 63"
|
||||
Cohesion: 0.38
|
||||
@@ -466,8 +477,8 @@ 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.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.15
|
||||
Nodes (20): ApiRequestLogMiddleware, _claims_from_auth(), _format_body_bytes(), _persist_log(), Any, Request, 统一记录 API 请求/响应出入参的中间件, _redact_obj() (+12 more)
|
||||
|
||||
### Community 67 - "Community 67"
|
||||
Cohesion: 0.12
|
||||
@@ -478,101 +489,101 @@ 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.14
|
||||
Nodes (28): _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 (+20 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.16
|
||||
Nodes (20): align_contract_no_to_sign_date(), contract_no_exists(), generate_contract_no(), date, Java: generateContractNo — {供方编码}/X-JT{yyyyMMdd}{3位序号} 流水与撞号检测须含软删:uk_contr, 租户内合同编号是否已占用(含软删,保证全局唯一)。, 标准编号替换日期段,保留序号;非标准返回 None。, 将标准合同编号日期段对齐签订日;撞号则序号顺延(含软删查重)。 非标准编号原样返回。无签订日则原样返回。 (+12 more)
|
||||
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)
|
||||
|
||||
### Community 71 - "Community 71"
|
||||
Cohesion: 0.25
|
||||
Nodes (13): _claims_from_auth(), _format_body_bytes(), _persist_log(), Any, Request, 统一记录 API 请求/响应出入参的中间件, _redact_obj(), _schedule_persist_log() (+5 more)
|
||||
Cohesion: 0.24
|
||||
Nodes (7): camel_to_snake(), CRUDBase, get_model_attr(), HistoryCRUD, Any, Session, ModelType
|
||||
|
||||
### Community 72 - "Community 72"
|
||||
Cohesion: 0.40
|
||||
Nodes (9): create_oss(), create_oss(), get_oss_by_id(), get_oss_by_url(), Session, 按主键 id 查询附件(兼容旧 CRM 雪花 oss_id 迁入后的记录), 将 fileUrl 或旧 CRM 数字 ossId 解析为 MinIO 相对路径。 门户新上传把相对路径写入业务字段;迁入合同附件仍存数字 ossId, resolve_storage_path() (+1 more)
|
||||
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 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.13
|
||||
Nodes (21): ProcessDefCreateBody, ProcessDefUpdateBody, PublishVersionBody, StartInstanceBody, 流程实例 wf_process_instance, WfNode, WfProcessInstance, WfTask (+13 more)
|
||||
Cohesion: 0.24
|
||||
Nodes (16): create_vehicle(), update_vehicle(), _vehicle_to_detail(), generate_uuid(), PlVehiclePersonnel, 车辆-人员关联表 pl_vehicle_personnel, VehicleDetailRead, VehiclePersonnelRow (+8 more)
|
||||
|
||||
### Community 75 - "apply_crm_create_by_scope"
|
||||
Cohesion: 0.22
|
||||
Nodes (20): delete_driver(), delete_personnel(), delete_vehicle(), paste_recognize_commit(), PlVehicle, ConflictAction, PasteCommitBody, PasteCommitResult (+12 more)
|
||||
Cohesion: 0.27
|
||||
Nodes (17): get_vehicle(), paste_recognize_commit(), PlVehicle, ConflictAction, PasteCommitBody, PasteCommitResult, PastePersonnelIn, PasteVehicleIn (+9 more)
|
||||
|
||||
### Community 76 - "opportunity_follow.py"
|
||||
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.14
|
||||
Nodes (19): _avatar_url_field(), _build_user_info_payload(), change_current_user_password(), get_current_user_profile(), get_web_auth_menu_codes(), public_quote_share(), Request, Session (+11 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.14
|
||||
Nodes (30): delete_inventory(), delete_plan(), _actor_ids(), _actor_names(), assert_row_deletable_by_creator(), assert_rows_deletable_by_creator(), can_delete_by_creator(), is_super_admin() (+22 more)
|
||||
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)
|
||||
|
||||
### Community 79 - "PlCarrier"
|
||||
Cohesion: 0.08
|
||||
Nodes (44): 返回 (作废, 归档)。现场链接实际走入库/出库单公共页。, _resolve_io_order_link_flags(), _resolve_site_link_flags(), _as_date(), _build_driver_url(), _build_public_page(), _format_file_size(), _format_plan_date() (+36 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 80 - "resolve_crm_product"
|
||||
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.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 81 - "customer_follow.py"
|
||||
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)
|
||||
Cohesion: 0.17
|
||||
Nodes (9): API 路由包 — 山峡化工生产一体化门户, get_menu_list(), 运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,14 个一级菜单), Config, format_api_error_message(), PageResult, Exception, 将 HTTP/SQLAlchemy 等异常转为可展示的错误文案(避免 str([]) 空列表)。 (+1 more)
|
||||
|
||||
### Community 82 - "storage.py"
|
||||
Cohesion: 0.10
|
||||
Nodes (30): create_vehicle(), get_vehicle(), update_vehicle(), _vehicle_to_detail(), calc_age_from_chinese_id_card(), date, 从 18 位身份证号计算周岁。号码不完整或出生日期无效时返回 None。, PlVehiclePersonnel (+22 more)
|
||||
Cohesion: 0.39
|
||||
Nodes (10): create_site(), get_site(), list_sites(), Any, Session, _row_to_dict(), site_code_exists(), soft_delete_site() (+2 more)
|
||||
|
||||
### Community 83 - "Community 83"
|
||||
Cohesion: 0.14
|
||||
Nodes (33): _advance_contract_after_approval(), approve_contract(), approve_contract_by_contract_id(), approve_pass(), approve_reject(), approve_transfer(), _build_approval_list_filters(), can_user_approve() (+25 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (52): CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), _advance_contract_after_approval(), approve_contract(), approve_contract_by_contract_id(), approve_pass(), approve_reject(), approve_transfer() (+44 more)
|
||||
|
||||
### Community 84 - "Community 84"
|
||||
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 85 - "allocate_next_biz_no"
|
||||
Cohesion: 0.21
|
||||
Nodes (14): get_oper_log_meta(), OperLogMeta, 请求级操作日志元数据(ContextVar), 供异步落库线程使用,避免 ContextVar 跨线程丢失。, set_oper_log_meta(), snapshot_oper_log_meta(), _format_summary(), _pick_field() (+6 more)
|
||||
|
||||
### Community 86 - "Community 86"
|
||||
Cohesion: 0.33
|
||||
Nodes (6): list_products(), get_supplier_hazard_flags(), 产品/客户列表 keyword:名称/编号/拼音首字母 OR 匹配。, test_list_customer_options_keyword_includes_name_and_pinyin(), test_list_customers_keyword_includes_name_and_pinyin(), test_list_products_keyword_includes_name_and_pinyin()
|
||||
Cohesion: 0.15
|
||||
Nodes (15): calc_age_from_chinese_id_card(), date, 从 18 位身份证号计算周岁。号码不完整或出生日期无效时返回 None。, 按 18 位身份证号重算 pl_personnel.age,仅更新算出值与库中不一致的记录。返回更新条数。, refresh_personnel_ages_from_id_card(), check_customer_protect_time(), pool_recovery_job(), 每天凌晨1点:检查保护期到期客户,跟进次数不足则退回公海 (+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 - "CrmProduct"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): list_product_options(), 产品下拉 options:keyword 按产品名称/拼音首字母模糊匹配,不匹配产品编号。, test_list_product_options_keyword_only_filters_product_name()
|
||||
Cohesion: 0.22
|
||||
Nodes (3): BaseStorage, 带下载文件名的访问 URL;默认实现为普通访问地址。, 浏览器内联预览 URL;默认实现为普通访问地址。
|
||||
|
||||
### 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 90 - "WechatMessageService"
|
||||
Cohesion: 0.17
|
||||
Nodes (8): 发送订单状态通知 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_, WechatMessageService
|
||||
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 91 - "opportunity_product.py"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): Session, recognize_cert(), RecognizeCertBody
|
||||
Cohesion: 0.21
|
||||
Nodes (15): create_leave(), get_leave(), list_leaves(), Any, Session, _row_to_dict(), soft_delete_leave(), update_leave() (+7 more)
|
||||
|
||||
### Community 92 - "Community 92"
|
||||
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 - "api_request_log_middleware.py"
|
||||
Cohesion: 0.17
|
||||
Nodes (3): OSSStorage, process_image_content(), 处理图片内容,如果是 HEIC 格式则转换为 JPEG
|
||||
|
||||
### Community 94 - "assert_contract_editable_for_update"
|
||||
Cohesion: 0.60
|
||||
Nodes (3): assert_contract_editable_for_update(), test_assert_allows_editable(), test_assert_rejects_non_editable()
|
||||
@@ -581,113 +592,145 @@ Nodes (3): assert_contract_editable_for_update(), test_assert_allows_editable(),
|
||||
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 96 - "minio_url.py"
|
||||
Cohesion: 0.31
|
||||
Nodes (3): Any, Session, WorkflowEngine
|
||||
|
||||
### Community 97 - "contact.py"
|
||||
Cohesion: 0.22
|
||||
Nodes (10): invoice_info_by_customer(), _invoice_info_by_customer_impl(), invoice_info_delete(), invoice_info_list(), invoice_info_set_default(), 按客户ID查询开票信息(与 by-customer 等价), InvoiceInfoByCustomerBody, InvoiceInfoDeleteBody (+2 more)
|
||||
|
||||
### Community 98 - "LocalStorage"
|
||||
Cohesion: 0.35
|
||||
Nodes (11): create_tenant(), get_tenant(), list_tenants(), Any, Session, _row_to_dict(), soft_delete_tenant(), tenant_no_exists() (+3 more)
|
||||
|
||||
### Community 99 - "redis_client.py"
|
||||
Cohesion: 0.13
|
||||
Nodes (27): pool_rule_add(), pool_rule_detail(), pool_rule_execute(), pool_rule_update_status(), 供方详情 — Java: CrmSupplierInfoController.getInfo, supplier_info_detail(), ensure_crm_create_by_row_in_scope(), create_pool_rule() (+19 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)
|
||||
|
||||
### Community 101 - "tenant.py"
|
||||
Cohesion: 0.08
|
||||
Nodes (34): ApiRequestLogCRUD, Session, list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), SoftDeleteModel (+26 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (47): SoftDeleteModel, BizAttachment, 民族码表 sys_ethnic(国标 GB/T 3304,全局), SysEthnic, PlDocumentReminder, PlDriver, PlInboundOrder, PlInboundOrderItem (+39 more)
|
||||
|
||||
### Community 102 - "crm_supplier_hazard.py"
|
||||
Cohesion: 0.52
|
||||
Nodes (5): product_allowed(), test_dual_requires_both(), test_explosive_only_requires_allow_explosive(), test_plain_always_allowed(), test_toxic_only_requires_allow_toxic()
|
||||
Cohesion: 0.12
|
||||
Nodes (30): list_vehicles(), _vehicle_to_read(), PlCert, CertRead, VehicleListResponse, 运输计划 - 安排运输时车辆/人员/证件资源快照 Schema, SnapshotCertRead, SnapshotPersonnelRow (+22 more)
|
||||
|
||||
### Community 103 - "pl_internal_customer.py"
|
||||
Cohesion: 0.14
|
||||
Nodes (26): list_vehicles(), _vehicle_to_read(), PlCert, PlDocumentReminder, 证件到期提醒表 pl_document_reminder, CertRead, VehicleListResponse, SnapshotCertRead (+18 more)
|
||||
Cohesion: 0.47
|
||||
Nodes (5): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict()
|
||||
|
||||
### Community 104 - "apply_crm_create_by_scope"
|
||||
Cohesion: 0.29
|
||||
Nodes (15): create_price_letter(), get_price_letter(), list_price_letters(), _parse_date(), Any, date, Session, _row_to_dict() (+7 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (24): price_letter_add(), price_letter_detail(), price_letter_list(), price_letter_update(), create_price_letter(), get_price_letter(), list_price_letters(), _parse_date() (+16 more)
|
||||
|
||||
### Community 105 - "pool_customer_assign"
|
||||
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.29
|
||||
Nodes (12): build_name_pinyin_abbr(), normalize_name_pinyin_abbr(), 名称拼音首字母缩写:库内存小写,检索时大小写不敏感。, 保存时解析拼音字段。 - submitted_provided=True:用提交值(空则按 name 生成) - 否则:已有非空 existi, resolve_name_pinyin_abbr(), test_chinese_and_alnum(), test_empty_and_whitespace(), test_resolve_not_submitted_empty_existing_generates() (+4 more)
|
||||
|
||||
### Community 106 - "site.py"
|
||||
Cohesion: 0.39
|
||||
Nodes (10): create_site(), get_site(), list_sites(), Any, Session, _row_to_dict(), site_code_exists(), soft_delete_site() (+2 more)
|
||||
Cohesion: 0.22
|
||||
Nodes (8): contact_add(), contact_update(), ContactByCustomerBody, ContactCreateBody, ContactDetailBody, ContactSetPrimaryBody, ContactUpdateBody, CRM 联系人 Pydantic Schemas
|
||||
|
||||
### Community 107 - "apply_pl_scope"
|
||||
Cohesion: 0.16
|
||||
Nodes (30): 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() (+22 more)
|
||||
Nodes (31): 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() (+23 more)
|
||||
|
||||
### Community 108 - "statistics.py"
|
||||
Cohesion: 0.10
|
||||
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 109 - "_ensure_subpack_slip_no"
|
||||
Cohesion: 0.13
|
||||
Nodes (18): pool_customer_claim(), pool_customer_list(), pool_record_detail(), pool_record_list(), get_pool_record(), list_pool_records(), Any, Session (+10 more)
|
||||
|
||||
### Community 110 - "list_duty_staff_users"
|
||||
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 111 - "Community 111"
|
||||
Cohesion: 0.08
|
||||
Nodes (45): _assert_editable(), _build_public_page(), _format_file_size(), _get_inventory_by_token(), get_public_inventory(), _parse_feedback_images(), Session, UploadFile (+37 more)
|
||||
|
||||
### Community 112 - ".to_tenant_user_dict"
|
||||
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 111 - "Community 111"
|
||||
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 - ".to_tenant_user_dict"
|
||||
Cohesion: 0.40
|
||||
Nodes (3): Any, 供 get_tenant_no 等门户工具使用。, 与门户 JWT / apply_data_scope 所需的 user_info 字段对齐。
|
||||
|
||||
### Community 113 - "quote_share_log.py"
|
||||
Cohesion: 0.47
|
||||
Nodes (11): 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() (+3 more)
|
||||
Cohesion: 0.50
|
||||
Nodes (4): customer_options(), 客户下拉选项(租户内只读,不做 owner 数据权限), CustomerOptionsBody, 客户下拉选项请求体(租户内只读搜索,不做 owner 数据权限)
|
||||
|
||||
### Community 114 - "db_models.py"
|
||||
Cohesion: 0.28
|
||||
Nodes (11): DbSequence, _allocate_inbound_outbound_id(), _ensure_sequence_row(), max_numeric_inbound_outbound_id(), next_inbound_outbound_id(), Session, 出入库单 id 生成 — 租户内纯数字自增,并发安全。, 当前租户下纯数字 id 的最大值(不含 UUID 等非数字主键)。 (+3 more)
|
||||
|
||||
### Community 115 - "site.py"
|
||||
Cohesion: 0.17
|
||||
Nodes (29): bind_vehicle_driver(), create_driver(), create_personnel(), delete_carrier(), get_driver(), get_personnel(), list_carriers(), list_drivers() (+21 more)
|
||||
Cohesion: 0.25
|
||||
Nodes (11): _assignment_dict(), format_hhmm(), format_time_label(), parse_hhmm(), _slot_dict(), test_format_time_label_cross_day(), test_format_time_label_empty(), test_format_time_label_same_day() (+3 more)
|
||||
|
||||
### Community 116 - "Community 116"
|
||||
Cohesion: 0.19
|
||||
Nodes (25): 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() (+17 more)
|
||||
|
||||
### Community 117 - "get_web_auth_menu_codes"
|
||||
Cohesion: 0.25
|
||||
Nodes (10): _cert_url_blank(), plan_has_hazard_product_exists(), plan_has_incomplete_hazard_cert_exists(), 证书 URL 为空(NULL / 空串 / 纯空白)。, 列表筛选:计划下存在 CRM 标识为易制毒/易制爆的产品。, 列表筛选:存在危化产品且至少一张必需证书未上传。, _compile(), 危化品证上传列表筛选:EXISTS 子查询应覆盖 CRM 危化标识与证书缺口。 (+2 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.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)
|
||||
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)
|
||||
|
||||
### Community 119 - "Community 119"
|
||||
Cohesion: 0.12
|
||||
Nodes (37): CertRow, _cert_row_complete(), collect_required_cert_errors(), _find_cert_for_required(), get_required_personnel_cert_names(), is_huolala_trailer_no(), match_required_cert_name(), _missing_field_labels() (+29 more)
|
||||
|
||||
### Community 120 - "sqlalchemy_exception_handler"
|
||||
Cohesion: 0.11
|
||||
Nodes (18): ApiCryptoMiddleware, ApiRequestLogMiddleware, _db_pool_keepalive_loop(), _error_json(), lifespan(), Exception, Request, 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误 (+10 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (33): 地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。, list_public_vehicle_plates(), Session, 地磅公共只读:免登车牌 options(现场填写页), 免登:按出入库/计划解析 tenant_no,返回 pl_vehicle 车牌(self + carrier)。, _resolve_tenant_no(), menu_badge_stats(), Session (+25 more)
|
||||
|
||||
### Community 121 - "Session"
|
||||
Cohesion: 0.07
|
||||
Nodes (37): API 路由包 — 山峡化工生产一体化门户, create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), Session (+29 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (26): day_detail(), delete_assignment(), duty_user_options(), _enrich_assign_names(), ensure_duty_dict(), month_summary(), Session, 指定用户时补全 personName(用 nick_name)。 (+18 more)
|
||||
|
||||
### Community 122 - "Community 122"
|
||||
Cohesion: 0.39
|
||||
Nodes (10): create_post(), get_post(), list_posts(), post_code_exists(), Any, Session, _row_to_dict(), soft_delete_post() (+2 more)
|
||||
|
||||
### Community 123 - "customer_options"
|
||||
Cohesion: 0.12
|
||||
Nodes (20): list_plans(), _plan_plate_match(), 列表展示用:优先 CRM 标准名(详情仍返回库内 product_name,以便编辑反推别名)。, _resolve_list_product_name(), load_brand_qtys_by_plan_product_ids(), persist_plan_product_brand_qtys(), Any, Session (+12 more)
|
||||
|
||||
### Community 124 - "datetime_parse.py"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): parse_optional_plan_datetime(), datetime, 运输计划相关日期时间解析:前端 date-picker 仅传 YYYY-MM-DD。
|
||||
|
||||
### Community 125 - "build_annotated_result_bytes"
|
||||
Cohesion: 0.18
|
||||
Nodes (6): convert_heic_to_jpeg(), _guess_preview_content_type(), QiniuStorage, 文件存储工具模块 支持多种存储方式: 1. 本地存储 (local) - 默认 2. 七牛云存储 (qiniu) - 推荐生产环境使用 3. 阿里云OSS (, 按对象键后缀推断内联预览 Content-Type(纠正上传时未写入 MIME 的情况)。, 将 HEIC/HEIF 格式转换为 JPEG 格式
|
||||
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)
|
||||
|
||||
### Community 126 - "customer_pool.py"
|
||||
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 - "web_login_rsa_public_key"
|
||||
Cohesion: 0.36
|
||||
Nodes (9): create_oss(), get_oss_by_id(), get_oss_by_url(), Session, 按主键 id 查询附件(兼容旧 CRM 雪花 oss_id 迁入后的记录), 将 fileUrl 或旧 CRM 数字 ossId 解析为 MinIO 相对路径。 门户新上传把相对路径写入业务字段;迁入合同附件仍存数字 ossId, resolve_storage_path(), CRM 模块数据模型(产品分类、产品主表、统一附件表、客户管理、公海池、线索管理) (+1 more)
|
||||
|
||||
### Community 128 - "product_allowed"
|
||||
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)
|
||||
|
||||
### Community 129 - "BaseStorage"
|
||||
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 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 130 - ".to_tenant_user_dict"
|
||||
Cohesion: 0.40
|
||||
Nodes (3): Any, 供 get_tenant_no 等门户工具使用。, 与门户 JWT / apply_data_scope 所需的 user_info 字段对齐。
|
||||
|
||||
### Community 131 - "list_product_options"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): list_product_options(), 产品下拉 options:keyword 按产品名称/拼音首字母模糊匹配,不匹配产品编号。, test_list_product_options_keyword_only_filters_product_name()
|
||||
|
||||
### Community 136 - "Community 136"
|
||||
Cohesion: 0.26
|
||||
Nodes (14): 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) (+6 more)
|
||||
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)
|
||||
|
||||
### Community 137 - "statistics.py"
|
||||
Cohesion: 0.35
|
||||
@@ -706,36 +749,36 @@ 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.07
|
||||
Nodes (59): _build_page(), _get_by_token(), _models(), Session, 运输计划 · 入库/出库单现场免登录公共 API, PlInboundOrder, PlInboundOrderItem, PlInboundOrderItemBrandQty (+51 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (34): get_current_time(), parse_datetime(), datetime, PlTransportProductBrandQty, 运输单产品回传品牌数量 pl_transport_product_brand_qty, Decimal, validate_brand_qty_rows(), _dict_field() (+26 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 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
|
||||
Cohesion: 0.19
|
||||
Nodes (7): _guess_preview_content_type(), MinIOStorage, Any, 从 MINIO_BASE_URL 解析公网 endpoint;未配置或与内网相同时复用 self.client。, 按对象键后缀推断内联预览 Content-Type(纠正上传时未写入 MIME 的情况)。, MinIO 预签名下载 URL,携带原始文件名。, MinIO 预签名内联预览 URL(图片新标签页 / PDF iframe 等)。 上传时 put_object 未写 content_typ
|
||||
|
||||
### Community 159 - "customer_update"
|
||||
Cohesion: 0.28
|
||||
Nodes (12): _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), Session, Web 管理端登录:基于 V0.3 sys_user / sys_user_role / sys_role 的角色与菜单权限解析, 角色仅勾选按钮(F)时,补齐祖先 C/M 菜单 id,便于前端匹配 :list 路由。, 用户通过角色关联得到的菜单权限标识(sys_menu.perms,与前端 meta.menuCode 对齐)。, 用户是否在 sys_user_role 中绑定了至少一个有效角色。 (+4 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (18): get_user_menu_codes(), Session, 菜单 code 权限守卫(V0.3:通过 sys_user_role → sys_role_menu → sys_menu.perms), 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。, _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), _map_role_name_to_web() (+10 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 164 - "get_client_ip"
|
||||
Cohesion: 0.11
|
||||
Nodes (39): _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` 字段约定一致。 (+31 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (24): _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/shanxia2.0.sql 基线), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。无 Token 或已失效时仍返回成功(幂等)。, Web 端登录:账号为 sys_user.user_no,密码为 sys_user.password(bcrypt)。, refresh_token(), web_login(), create_access_token() (+16 more)
|
||||
|
||||
### Community 170 - "test_quote_approver_setting.py"
|
||||
Cohesion: 0.22
|
||||
Nodes (3): BaseStorage, 带下载文件名的访问 URL;默认实现为普通访问地址。, 浏览器内联预览 URL;默认实现为普通访问地址。
|
||||
Cohesion: 0.11
|
||||
Nodes (7): convert_heic_to_jpeg(), OSSStorage, process_image_content(), QiniuStorage, 文件存储工具模块 支持多种存储方式: 1. 本地存储 (local) - 默认 2. 七牛云存储 (qiniu) - 推荐生产环境使用 3. 阿里云OSS (, 将 HEIC/HEIF 格式转换为 JPEG 格式, 处理图片内容,如果是 HEIC 格式则转换为 JPEG
|
||||
|
||||
### Community 173 - "resolve_create_time_bounds"
|
||||
Cohesion: 0.08
|
||||
Nodes (76): _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() (+68 more)
|
||||
Nodes (76): 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() (+68 more)
|
||||
|
||||
### Community 179 - "test_pl_vehicle_personnel_photo_schema.py"
|
||||
Cohesion: 0.27
|
||||
@@ -750,8 +793,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.23
|
||||
Nodes (14): ApiCryptoMiddleware, _claims_from_auth(), _coerce_post_method_override_to_get(), _get_redis_client(), _is_crypto_api(), _json_error_response(), _mark_nonce_once(), _nonce_key() (+6 more)
|
||||
|
||||
### Community 237 - "order_status_compat.py"
|
||||
Cohesion: 0.36
|
||||
@@ -768,22 +811,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.
|
||||
- **15 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 55` to `Community 4`, `Community 5`, `Community 6`, `Community 134`, `Community 8`, `statistics.py`, `Community 136`, `Community 11`, `Community 15`, `dict_data.py`, `resolve_crm_product`, `Community 16`, `Community 19`, `Community 21`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 28`, `Community 29`, `Community 32`, `Community 33`, `get_client_ip`, `Community 37`, `Community 36`, `Community 39`, `Community 40`, `Community 41`, `Community 43`, `resolve_create_time_bounds`, `Community 51`, `Community 61`, `Community 62`, `Community 64`, `Community 65`, `Community 67`, `Community 68`, `Community 72`, `apply_crm_create_by_scope`, `Community 78`, `resolve_crm_product`, `storage.py`, `Community 83`, `Community 87`, `pl_ocr_service.py`, `Community 92`, `test_pl_public_link_archived.py`, `LocalStorage`, `pl_internal_customer.py`, `apply_crm_create_by_scope`, `site.py`, `apply_pl_scope`, `db_models.py`, `site.py`, `Community 116`, `Community 118`, `Community 122`, `customer_pool.py`?**
|
||||
_High betweenness centrality (0.120) - this node is a cross-community bridge._
|
||||
- **Why does `BaseModel` connect `Community 12` to `Community 1`, `Community 2`, `Community 3`, `Community 5`, `Community 7`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 18`, `Community 23`, `Community 26`, `Community 27`, `Community 28`, `Community 29`, `Community 32`, `Community 34`, `Community 40`, `Community 43`, `resolve_create_time_bounds`, `Community 45`, `Community 51`, `Community 54`, `Community 57`, `Community 60`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `Community 74`, `apply_crm_create_by_scope`, `PlCarrier`, `customer_follow.py`, `storage.py`, `opportunity_product.py`, `tenant.py`, `pl_internal_customer.py`, `pool_customer_assign`, `Community 111`, `site.py`, `Community 119`, `Session`?**
|
||||
_High betweenness centrality (0.095) - this node is a cross-community bridge._
|
||||
- **Why does `Settings` connect `price_letter_detail` to `Community 35`, `Community 67`, `Community 38`, `Community 73`, `Community 42`, `Community 46`, `Community 48`, `Community 58`, `Community 59`, `Community 30`?**
|
||||
_High betweenness centrality (0.082) - this node is a cross-community bridge._
|
||||
- **Why does `generate_uuid()` connect `Community 74` to `Community 0`, `Community 4`, `Community 5`, `Community 6`, `Community 8`, `statistics.py`, `Community 136`, `Community 11`, `Community 14`, `Community 15`, `dict_data.py`, `resolve_crm_product`, `Community 17`, `Community 19`, `Community 16`, `Community 21`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 28`, `Community 29`, `Community 32`, `Community 33`, `get_client_ip`, `Community 36`, `Community 39`, `Community 40`, `Community 43`, `resolve_create_time_bounds`, `Community 47`, `Community 51`, `Community 54`, `Community 55`, `Community 58`, `Community 60`, `Community 61`, `Community 62`, `Community 64`, `Community 65`, `Community 67`, `Community 68`, `Community 72`, `apply_crm_create_by_scope`, `storage.py`, `Community 83`, `Community 86`, `Community 87`, `pl_ocr_service.py`, `opportunity_product.py`, `Community 92`, `test_pl_public_link_archived.py`, `LocalStorage`, `redis_client.py`, `tenant.py`, `crm_supplier_hazard.py`, `apply_crm_create_by_scope`, `apply_pl_scope`, `_ensure_subpack_slip_no`, `Community 116`, `Community 118`, `Community 122`, `customer_options`, `customer_pool.py`, `web_login_rsa_public_key`?**
|
||||
_High betweenness centrality (0.129) - this node is a cross-community bridge._
|
||||
- **Why does `BaseModel` connect `Community 12` to `Community 1`, `Community 2`, `Community 5`, `Community 6`, `Community 7`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 18`, `Community 20`, `Community 23`, `Community 27`, `Community 32`, `Community 40`, `Community 41`, `Community 43`, `Community 44`, `Community 45`, `Community 46`, `resolve_create_time_bounds`, `Community 47`, `Community 50`, `Community 51`, `Community 54`, `Community 57`, `Community 58`, `Community 60`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `Community 74`, `apply_crm_create_by_scope`, `customer_follow.py`, `Community 83`, `contact.py`, `redis_client.py`, `tenant.py`, `crm_supplier_hazard.py`, `apply_crm_create_by_scope`, `site.py`, `_ensure_subpack_slip_no`, `Community 111`, `quote_share_log.py`, `Community 119`, `sqlalchemy_exception_handler`, `Session`?**
|
||||
_High betweenness centrality (0.113) - this node is a cross-community bridge._
|
||||
- **Why does `Settings` connect `price_letter_detail` to `Community 34`, `Community 35`, `Community 67`, `Community 37`, `Community 73`, `Community 42`, `Community 111`, `Community 48`, `Community 53`, `Community 59`, `Community 30`?**
|
||||
_High betweenness centrality (0.088) - 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?**
|
||||
_577 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
_582 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
- **Should `Community 0` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.11846689895470383 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.10745098039215686 - nodes in this community are weakly interconnected._
|
||||
- **Should `Community 1` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.09747899159663866 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.07549361207897794 - nodes in this community are weakly interconnected._
|
||||
+4785
-6408
File diff suppressed because it is too large.
Load diff
@@ -10,8 +10,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/admin.py": {
|
||||
"mtime": 1786164471.3850935,
|
||||
"ast_hash": "d0ec6137607e9dc5f49e049ca72eb798",
|
||||
"mtime": 1787220370.8659623,
|
||||
"ast_hash": "6d88a608b9edf8f2a6e21453fd2a3030",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/__init__.py": {
|
||||
@@ -45,8 +45,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/reimburse.py": {
|
||||
"mtime": 1786953500.862205,
|
||||
"ast_hash": "7f8ab65012210296805864f17dd4a23b",
|
||||
"mtime": 1787292827.7676315,
|
||||
"ast_hash": "c23dec0233165fd1af5f0baae7145391",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/workflow.py": {
|
||||
@@ -55,8 +55,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/crm.py": {
|
||||
"mtime": 1785808418.671982,
|
||||
"ast_hash": "a30d4b2d4cdcf06d2a6f01e28a0c2fcb",
|
||||
"mtime": 1787293703.6985583,
|
||||
"ast_hash": "b525fc2d5ef8de84f27f477ddcd87aad",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/crm_contract_routes.py": {
|
||||
@@ -155,13 +155,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/plan.py": {
|
||||
"mtime": 1786885472.5030537,
|
||||
"ast_hash": "f5020cc3715a0da38ec34ea8298d7cf2",
|
||||
"mtime": 1787278873.7961476,
|
||||
"ast_hash": "ca11b671db9f5d4fd7138a3aed88be11",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/public_io_order.py": {
|
||||
"mtime": 1785969250.5664592,
|
||||
"ast_hash": "7fc4764733f4958838d56664aed4b501",
|
||||
"mtime": 1787286154.3652413,
|
||||
"ast_hash": "424a29d161e9d7a006c38d05aa608b6d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/public_site.py": {
|
||||
@@ -170,8 +170,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/public_transport.py": {
|
||||
"mtime": 1785969005.314447,
|
||||
"ast_hash": "d811e61d7519874f41202bdd7a1c5aa6",
|
||||
"mtime": 1787282688.1905942,
|
||||
"ast_hash": "f4803f3cc1038dd97ade634a90945aa9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/transport.py": {
|
||||
@@ -180,8 +180,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/transport_address.py": {
|
||||
"mtime": 1784993134.0,
|
||||
"ast_hash": "b46673e553d2f4620d39aae6f0c3a128",
|
||||
"mtime": 1787277380.1085398,
|
||||
"ast_hash": "b79eab98f7537a1767138402b9f22c0d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/vehicle_maintenance.py": {
|
||||
@@ -410,8 +410,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract.py": {
|
||||
"mtime": 1786863780.7033699,
|
||||
"ast_hash": "783e2d3c50225588fcde4ede86c577ed",
|
||||
"mtime": 1787132857.3574011,
|
||||
"ast_hash": "bc090013cb5b1fd718f23d07b126b733",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract_approval.py": {
|
||||
@@ -425,8 +425,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract_product.py": {
|
||||
"mtime": 1786031232.2085078,
|
||||
"ast_hash": "4f46b853fd6b3c81ec9ac9489d28e9b8",
|
||||
"mtime": 1787130846.1417708,
|
||||
"ast_hash": "4c0a8c790bf09c467cfa778054e44e56",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/customer.py": {
|
||||
@@ -480,8 +480,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/product.py": {
|
||||
"mtime": 1786094315.6811244,
|
||||
"ast_hash": "d6ea0dbcf8ede9c05568b9a9613320db",
|
||||
"mtime": 1787293668.683282,
|
||||
"ast_hash": "da4c7d8530f8cb77739fc96940450df1",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote.py": {
|
||||
@@ -620,8 +620,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/crm_models.py": {
|
||||
"mtime": 1786171074.9211452,
|
||||
"ast_hash": "3108b3d96a3377f347456d5b7ad7c3c9",
|
||||
"mtime": 1787130817.7947948,
|
||||
"ast_hash": "5ee9b7791b1c97edbc17014e9aab2f5d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/db_models.py": {
|
||||
@@ -715,8 +715,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/contract.py": {
|
||||
"mtime": 1786239355.7093923,
|
||||
"ast_hash": "dd33cb6f4ffee2c8f5737182c3c1497a",
|
||||
"mtime": 1787130826.2278907,
|
||||
"ast_hash": "c99bcc40110fac739e82797714a69844",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/contract_approver_setting.py": {
|
||||
@@ -760,8 +760,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/product.py": {
|
||||
"mtime": 1786094283.3140867,
|
||||
"ast_hash": "2113f33131b1fcbc250465b7243029da",
|
||||
"mtime": 1787293668.6831603,
|
||||
"ast_hash": "9766adb75810663ecac94a2933e5fff0",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/quote.py": {
|
||||
@@ -835,13 +835,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/__init__.py": {
|
||||
"mtime": 1786203494.3296576,
|
||||
"ast_hash": "b7920c32ba18bca6b047446059e97d57",
|
||||
"mtime": 1787198187.9137607,
|
||||
"ast_hash": "ad4432fdb117062d34913e058e82fdf1",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/base_data.py": {
|
||||
"mtime": 1785637803.20416,
|
||||
"ast_hash": "8a998a55e4bc7532852a48b77a3397ea",
|
||||
"mtime": 1787200527.8208919,
|
||||
"ast_hash": "fd9abf326ca8d9ef29cf460e9cfbb8ac",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/datetime_parse.py": {
|
||||
@@ -860,8 +860,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/io_order.py": {
|
||||
"mtime": 1785967869.0524,
|
||||
"ast_hash": "fd8021a2c991b1c02237d60ed7ea3af1",
|
||||
"mtime": 1787286144.0774581,
|
||||
"ast_hash": "6e528992d8c401f8e9539ce48e656268",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/menu_badge.py": {
|
||||
@@ -870,13 +870,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/paste_recognize.py": {
|
||||
"mtime": 1785808688.3868103,
|
||||
"ast_hash": "8720817ed0646cd7d00d7ba9f0690bc0",
|
||||
"mtime": 1787201019.8200278,
|
||||
"ast_hash": "88ad005e7557f44dabe2282f00f8f0de",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/plan.py": {
|
||||
"mtime": 1786203421.9045327,
|
||||
"ast_hash": "87763f7d7771e6341ffbcdf911351f5e",
|
||||
"mtime": 1787278860.7404675,
|
||||
"ast_hash": "e2330f1ccaa052f56ef203ea3bc73de3",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/resource_snapshot.py": {
|
||||
@@ -885,8 +885,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/transport.py": {
|
||||
"mtime": 1785968996.0035603,
|
||||
"ast_hash": "219ba1cd026db8463bf987541c865896",
|
||||
"mtime": 1787282296.7963567,
|
||||
"ast_hash": "937f86f8be800138db7cb8092d5ef5c0",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/transport_address.py": {
|
||||
@@ -1040,8 +1040,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_cert_required_service.py": {
|
||||
"mtime": 1785643505.274516,
|
||||
"ast_hash": "b98cd18f818dd489894b663b4e0a811f",
|
||||
"mtime": 1787200437.8182042,
|
||||
"ast_hash": "e7c4f9a292ee90e4284ccda739066601",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_cert_service.py": {
|
||||
@@ -1085,8 +1085,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_menu_badge_service.py": {
|
||||
"mtime": 1783258109.0,
|
||||
"ast_hash": "2819fceaa269a00af0f7983b8be27cdb",
|
||||
"mtime": 1787199006.5479605,
|
||||
"ast_hash": "3857f682b2594f4b42d9390a2a41c56e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_ocr_service.py": {
|
||||
@@ -1095,18 +1095,18 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_paste_recognize_service.py": {
|
||||
"mtime": 1785808688.436616,
|
||||
"ast_hash": "ad1eb07fcfe0800419e4b80c7493f26d",
|
||||
"mtime": 1787201020.688178,
|
||||
"ast_hash": "7025fdc7f96668db7295824e2beef6a6",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_personnel_service.py": {
|
||||
"mtime": 1783845044.0,
|
||||
"ast_hash": "94f2517f259023b46dfef7f0f74fede3",
|
||||
"mtime": 1787140670.5933692,
|
||||
"ast_hash": "df714dfb82d5d1777499ab6180b761e3",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_plan_service.py": {
|
||||
"mtime": 1786204013.4685726,
|
||||
"ast_hash": "8ee28eee450db2496cb4e5a687655c6d",
|
||||
"mtime": 1787195004.716748,
|
||||
"ast_hash": "1c2e4be0f6ca141d4b8a2ff3d5511fc2",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_product_display.py": {
|
||||
@@ -1160,8 +1160,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/tasks/__init__.py": {
|
||||
"mtime": 1783208067.0,
|
||||
"ast_hash": "65f48f08b50ecea837b57abb9f1e01bb",
|
||||
"mtime": 1787140680.3792932,
|
||||
"ast_hash": "2d651868335e57015c66149887c4b0ce",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/tasks/customer_pool.py": {
|
||||
@@ -1530,8 +1530,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_name_pinyin_search.py": {
|
||||
"mtime": 1786094657.392019,
|
||||
"ast_hash": "cd9d359114a86b80ad39cb19b61be435",
|
||||
"mtime": 1787293720.0864913,
|
||||
"ast_hash": "859c85ee2163c95789eb29e1fdb572c9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_pinyin_abbr.py": {
|
||||
@@ -1540,8 +1540,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/duty.py": {
|
||||
"mtime": 1786962300.7785535,
|
||||
"ast_hash": "373ab9a759e0aa3f4a37bc827afe00f8",
|
||||
"mtime": 1787234033.9137535,
|
||||
"ast_hash": "ccf7e59af0e0404edfd9c131a557ce34",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/public_duty.py": {
|
||||
@@ -1555,13 +1555,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/duty_models.py": {
|
||||
"mtime": 1786968943.7894385,
|
||||
"ast_hash": "ac4ef5228cbf8821ca6abf160b11634e",
|
||||
"mtime": 1787233986.1581693,
|
||||
"ast_hash": "2ef1c6a59c58f94b060fb9d538fa11f7",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/duty.py": {
|
||||
"mtime": 1786968917.036718,
|
||||
"ast_hash": "48a191d6b71d0367844a20c0b58ced32",
|
||||
"mtime": 1787233986.15777,
|
||||
"ast_hash": "9842cdd57c5c37306c052da67ee8fac9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/menu_favorite.py": {
|
||||
@@ -1575,8 +1575,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/duty_schedule.py": {
|
||||
"mtime": 1786968943.2990172,
|
||||
"ast_hash": "95a2c1fd6c9848f584fbbd5e817d42ea",
|
||||
"mtime": 1787234210.6898406,
|
||||
"ast_hash": "b52deffb5e6a20a98e797c9afc25894f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_internal_customer.py": {
|
||||
@@ -1584,31 +1584,6 @@
|
||||
"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",
|
||||
@@ -1625,13 +1600,98 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_duty_schedule.py": {
|
||||
"mtime": 1786962525.0293584,
|
||||
"ast_hash": "b4f8930c8641f23bba5a411774fa66bc",
|
||||
"mtime": 1787234218.5751219,
|
||||
"ast_hash": "7539c27a87f0e442b8031b5c7a89c5e8",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_menu_favorite_crud.py": {
|
||||
"mtime": 1786161663.839656,
|
||||
"ast_hash": "4404ae2a3524b330074edb2605990226",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/core/id_card.py": {
|
||||
"mtime": 1787140660.3752768,
|
||||
"ast_hash": "ea14b76f1b299c27e47c02fb4eacf5ea",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/reimburse_import.py": {
|
||||
"mtime": 1787059477.5401058,
|
||||
"ast_hash": "b34213a76b56cf3897f06a207dfb93a1",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/dict_ensure.py": {
|
||||
"mtime": 1787296137.624254,
|
||||
"ast_hash": "3e999cc609a5546b724791ee7e1219a7",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_plan_contract_gap.py": {
|
||||
"mtime": 1787202689.374864,
|
||||
"ast_hash": "8cf065f81ee8b548875211cd6ed18b2b",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/tasks/pl_personnel_age.py": {
|
||||
"mtime": 1787140671.7765138,
|
||||
"ast_hash": "6645d9c056aad90f64cdd7fb33eb3daa",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/utils/excel_list_validation.py": {
|
||||
"mtime": 1787058157.6880832,
|
||||
"ast_hash": "e17d6c4acc619bd2a3d14800dd3432ee",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260820_duty_shift_dict_time.sql": {
|
||||
"mtime": 1787230059.4213135,
|
||||
"ast_hash": "5442a321ea0d78f90df78d0d1c52fdfb",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260820_duty_time_range_dict.sql": {
|
||||
"mtime": 1787234296.4603348,
|
||||
"ast_hash": "1c0d678eb254feec33e31894c40097be",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260820_pl_plan_contract_complete_menu.sql": {
|
||||
"mtime": 1787235628.9670775,
|
||||
"ast_hash": "686849e28378a8d0c824f89794bfc26a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260821_pl_plan_force_follow_status_menu.sql": {
|
||||
"mtime": 1787278886.924597,
|
||||
"ast_hash": "68340d696269746964619abe56d58970",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_bx_reimburse_import.py": {
|
||||
"mtime": 1787059491.7636578,
|
||||
"ast_hash": "b8fa1f5145c190fc2c3cfd384c2af145",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_bx_reimburse_my_page_size.py": {
|
||||
"mtime": 1787292906.6472108,
|
||||
"ast_hash": "f2c2edf993a2bb24e1f9f61a4b7a2d91",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_dict_ensure.py": {
|
||||
"mtime": 1787296131.347678,
|
||||
"ast_hash": "6e2dc0f1608b406a93d23b1094f994e9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_id_card_age.py": {
|
||||
"mtime": 1787140680.9154348,
|
||||
"ast_hash": "23f28ca2ee80a5522bbc0b254af4d126",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_pl_plan_contract_gap.py": {
|
||||
"mtime": 1787198187.9137385,
|
||||
"ast_hash": "ba5f68e7e5a0a26b64ea3c7f625559cf",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_pl_public_transport_history.py": {
|
||||
"mtime": 1787282256.679657,
|
||||
"ast_hash": "3ee5e8aae73062ce8a98ba0bb242dfce",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_pl_trailer_cert_rules.py": {
|
||||
"mtime": 1787200408.1128635,
|
||||
"ast_hash": "1cea826045c760885d98f5412bafea49",
|
||||
"semantic_hash": ""
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
# Graph Report - backend (2026-08-21)
|
||||
|
||||
## Corpus Check
|
||||
- 335 files · ~222,563 words
|
||||
- 338 files · ~223,572 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 4612 nodes · 17089 edges · 176 communities (157 shown, 19 thin omitted)
|
||||
- Extraction: 95% EXTRACTED · 5% INFERRED · 0% AMBIGUOUS · INFERRED: 783 edges (avg confidence: 0.62)
|
||||
- 4639 nodes · 16923 edges · 186 communities (170 shown, 16 thin omitted)
|
||||
- Extraction: 97% EXTRACTED · 3% INFERRED · 0% AMBIGUOUS · INFERRED: 553 edges (avg confidence: 0.53)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `88da74d7`
|
||||
- Built from commit: `e9ad26cb`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
@@ -143,17 +143,27 @@
|
||||
- [[_COMMUNITY_build_annotated_result_bytes|build_annotated_result_bytes]]
|
||||
- [[_COMMUNITY_customer_pool.py|customer_pool.py]]
|
||||
- [[_COMMUNITY_web_login_rsa_public_key|web_login_rsa_public_key]]
|
||||
- [[_COMMUNITY_get_client_ip|get_client_ip]]
|
||||
- [[_COMMUNITY_product_allowed|product_allowed]]
|
||||
- [[_COMMUNITY_BaseStorage|BaseStorage]]
|
||||
- [[_COMMUNITY_.to_tenant_user_dict|.to_tenant_user_dict]]
|
||||
- [[_COMMUNITY_list_product_options|list_product_options]]
|
||||
- [[_COMMUNITY_context.py|context.py]]
|
||||
- [[_COMMUNITY_PlPlanChange|PlPlanChange]]
|
||||
- [[_COMMUNITY_product.py|product.py]]
|
||||
- [[_COMMUNITY_test_crm_approval_reedit.py|test_crm_approval_reedit.py]]
|
||||
- [[_COMMUNITY_opportunity_follow.py|opportunity_follow.py]]
|
||||
- [[_COMMUNITY_Community 136|Community 136]]
|
||||
- [[_COMMUNITY_statistics.py|statistics.py]]
|
||||
- [[_COMMUNITY_Community 138|Community 138]]
|
||||
- [[_COMMUNITY_get_current_user_by_token|get_current_user_by_token]]
|
||||
- [[_COMMUNITY_utils.py|utils.py]]
|
||||
- [[_COMMUNITY_customer_follow.py|customer_follow.py]]
|
||||
- [[_COMMUNITY_price_letter_detail|price_letter_detail]]
|
||||
- [[_COMMUNITY_opportunity_export|opportunity_export]]
|
||||
- [[_COMMUNITY_dict_data.py|dict_data.py]]
|
||||
- [[_COMMUNITY_resolve_crm_product|resolve_crm_product]]
|
||||
- [[_COMMUNITY___init__.py|__init__.py]]
|
||||
- [[_COMMUNITY_Community 147|Community 147]]
|
||||
- [[_COMMUNITY_get_db_current_user_optional|get_db_current_user_optional]]
|
||||
- [[_COMMUNITY_Community 151|Community 151]]
|
||||
- [[_COMMUNITY_response.py|response.py]]
|
||||
- [[_COMMUNITY_customer_update|customer_update]]
|
||||
@@ -183,12 +193,12 @@
|
||||
- [[_COMMUNITY_PlanResourceSnapshotMixin|PlanResourceSnapshotMixin]]
|
||||
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `BaseModel` - 461 edges
|
||||
1. `BaseModel` - 463 edges
|
||||
2. `get_tenant_no()` - 353 edges
|
||||
3. `success_response()` - 271 edges
|
||||
3. `success_response()` - 273 edges
|
||||
4. `DbUserContext` - 258 edges
|
||||
5. `error_response()` - 250 edges
|
||||
6. `generate_uuid()` - 196 edges
|
||||
5. `error_response()` - 252 edges
|
||||
6. `generate_uuid()` - 198 edges
|
||||
7. `BxUserContext` - 188 edges
|
||||
8. `crm_user_info()` - 137 edges
|
||||
9. `assert_row_deletable_by_creator()` - 83 edges
|
||||
@@ -209,91 +219,91 @@
|
||||
## Import Cycles
|
||||
- None detected.
|
||||
|
||||
## Communities (176 total, 19 thin omitted)
|
||||
## Communities (186 total, 16 thin omitted)
|
||||
|
||||
### Community 0 - "Community 0"
|
||||
Cohesion: 0.10
|
||||
Nodes (45): register_contract_routes(), batch_assign_owner(), batch_submit_contract_approval(), create_from_opportunity(), create_from_quote(), download_contract_pdf(), execute_change(), finish_contract() (+37 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (20): BxAdvanceApply, BxAdvanceApproval, AdvanceService, Any, Session, 同一节点多次审批时,取 approval_time 最新的一条作为当前节点状态。, 返回全部审批动作,按时间正序排列,用于展示完整审批历史。, filter_current_cycle_approvals() (+12 more)
|
||||
|
||||
### Community 1 - "Community 1"
|
||||
Cohesion: 0.08
|
||||
Nodes (35): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, 接口菜单权限守卫。super_admin 直接放行。, require_menu_code(), ContractApproverSettingSaveBody, ContractApprovalActionBody, ContractBatchAssignBody, ContractBatchSubmitBody, ContractChangeCreateBody (+27 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (34): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, 接口菜单权限守卫。super_admin 直接放行。, require_menu_code(), ContractApproverSettingSaveBody, ContractApprovalActionBody, ContractBatchAssignBody, ContractBatchSubmitBody, ContractChangeCreateBody (+26 more)
|
||||
|
||||
### Community 2 - "Community 2"
|
||||
Cohesion: 0.09
|
||||
Nodes (38): advance_issue_stats(), batch_offset(), export_advance_issues(), issue_advance(), list_advance_issues(), list_advance_offset_records(), list_pending_payments(), list_processed_payments() (+30 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (11): _coerce_id(), OffsetItem, PaymentFinanceStatsOut, 报销单勾选的发票附件(同一发票可勾选多个附件,各占一条)。, ReimburseApplyCreate, ReimburseApprovalOut, ReimburseApproverPendingStatsOut, ReimburseDetailCreate (+3 more)
|
||||
|
||||
### Community 3 - "Community 3"
|
||||
Cohesion: 0.07
|
||||
Nodes (67): attachment_download_url(), attachment_preview_url(), create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_menu_favorite(), create_post() (+59 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (73): attachment_download_url(), attachment_preview_url(), create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_menu_favorite(), create_post() (+65 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.12
|
||||
Nodes (61): _apply_list_filters(), assign_opportunities(), batch_update_expect_date(), batch_update_stage(), change_stage(), create_opportunity(), _decimal_value(), _enrich_user_names() (+53 more)
|
||||
|
||||
### Community 5 - "Community 5"
|
||||
Cohesion: 0.07
|
||||
Nodes (69): archive_plan(), _build_driver_url(), cancel_plan(), cancel_plan_wait_notice(), count_plans_by_contract(), create_from_contract(), create_plan(), create_plan_full() (+61 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (79): archive_plan(), _build_driver_url(), cancel_plan(), cancel_plan_wait_notice(), count_plans_by_contract(), create_from_contract(), create_plan(), create_plan_full() (+71 more)
|
||||
|
||||
### Community 6 - "Community 6"
|
||||
Cohesion: 0.11
|
||||
Nodes (50): follow_by_customer(), follow_detail(), assign_customer(), batch_claim_customers(), check_duplicate_customer(), claim_customer(), create_customer(), deal_customer() (+42 more)
|
||||
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)
|
||||
|
||||
### Community 7 - "Community 7"
|
||||
Cohesion: 0.04
|
||||
Nodes (174): clue_assign(), clue_check_convert(), clue_check_duplicate(), clue_convert(), clue_create(), clue_delete(), clue_export(), clue_follow_create() (+166 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (127): clue_check_convert(), clue_check_duplicate(), clue_detail(), clue_export(), clue_follow_statistics(), clue_import(), clue_list(), clue_mine() (+119 more)
|
||||
|
||||
### Community 8 - "Community 8"
|
||||
Cohesion: 0.09
|
||||
Nodes (70): register_quote_routes(), accept_quote(), assert_quote_editable_for_update(), _build_quote_filters(), calculate_quote_amount(), create_new_version(), create_quote(), _decimal_value() (+62 more)
|
||||
Cohesion: 0.10
|
||||
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)
|
||||
|
||||
### Community 9 - "Community 9"
|
||||
Cohesion: 0.07
|
||||
Nodes (70): download_reimburse_import_template(), build_annotated_result_bytes(), build_applicant_label(), build_expense_path_labels(), build_import_template_bytes(), cell_str(), _ids_visible_in_web_tree(), import_reimburse_workbook() (+62 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (49): download_reimburse_import_template(), build_annotated_result_bytes(), build_applicant_label(), build_expense_path_labels(), build_import_template_bytes(), cell_str(), _ids_visible_in_web_tree(), import_reimburse_workbook() (+41 more)
|
||||
|
||||
### Community 10 - "Community 10"
|
||||
Cohesion: 0.12
|
||||
Nodes (38): _apply_inventory_product_update(), _apply_inventory_update(), _base_query(), create_inventory(), create_link_for_plan(), delete_inventory(), _generate_batch_no(), _get_inventory() (+30 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (24): _apply_inventory_product_update(), _apply_inventory_update(), _base_query(), create_inventory(), create_link_for_plan(), delete_inventory(), _generate_batch_no(), _get_inventory() (+16 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)
|
||||
|
||||
### Community 12 - "Community 12"
|
||||
Cohesion: 0.08
|
||||
Nodes (40): AttachmentUploadResponse, ChangePasswordRequest, Config, LoginRequest, LoginResponse, Pydantic schemas - 用户认证, ResetPasswordRequest, UserCreate (+32 more)
|
||||
Cohesion: 0.05
|
||||
Nodes (68): contact_add(), contact_delete(), contact_update(), customer_create(), customer_update(), customer_name_exists(), BaseModel, AttachmentUploadResponse (+60 more)
|
||||
|
||||
### Community 13 - "Community 13"
|
||||
Cohesion: 0.20
|
||||
Cohesion: 0.19
|
||||
Nodes (13): create_expense_item(), delete_expense_item(), get_expense_item(), get_expense_item_tree(), Session, update_expense_item(), BxExpenseItem, _coerce_id() (+5 more)
|
||||
|
||||
### Community 14 - "Community 14"
|
||||
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.12
|
||||
Nodes (25): bind_biz(), delete_attachment(), download_file(), list_by_biz(), _parse_id_list(), preview_attachment(), Session, UploadFile (+17 more)
|
||||
|
||||
### Community 15 - "Community 15"
|
||||
Cohesion: 0.10
|
||||
Nodes (39): approve_reimburse(), approved_by_me(), _build_details_data(), create_reimburse(), delete_reimburse(), get_approval_history(), get_approvals(), get_generated_title() (+31 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (43): approve_reimburse(), approved_by_me(), _build_details_data(), create_reimburse(), delete_reimburse(), get_approval_history(), get_approvals(), get_generated_title() (+35 more)
|
||||
|
||||
### Community 16 - "Community 16"
|
||||
Cohesion: 0.09
|
||||
Nodes (68): Session, recognize_cert(), RecognizeCertBody, cancel_apply(), create_apply(), create_record(), delete_applies(), delete_records() (+60 more)
|
||||
Nodes (60): cancel_apply(), create_apply(), create_record(), delete_applies(), delete_records(), get_apply(), get_record(), list_applies() (+52 more)
|
||||
|
||||
### Community 17 - "Community 17"
|
||||
Cohesion: 0.10
|
||||
Nodes (33): build_dict_value_from_label(), ensure_dict_data(), format_hhmm(), format_time_label(), grab(), join_work_plans(), normalize_person_name(), _pad_hhmm() (+25 more)
|
||||
Nodes (32): build_dict_value_from_label(), ensure_dict_data(), grab(), join_work_plans(), list_duty_staff_users(), normalize_person_name(), _pad_hhmm(), parse_time_range_input() (+24 more)
|
||||
|
||||
### Community 18 - "Community 18"
|
||||
Cohesion: 0.13
|
||||
Nodes (36): advance_pending_approval_stats(), advance_status_counts(), approve_advance(), approved_by_me(), create_advance(), delete_advance(), _fill_offset_amounts(), get_advance() (+28 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (64): advance_pending_approval_stats(), advance_status_counts(), approve_advance(), approved_by_me(), create_advance(), delete_advance(), _fill_offset_amounts(), get_advance() (+56 more)
|
||||
|
||||
### Community 19 - "Community 19"
|
||||
Cohesion: 0.15
|
||||
Nodes (10): BxAdvanceApply, BxAdvanceApproval, AdvanceService, Any, Session, 同一节点多次审批时,取 approval_time 最新的一条作为当前节点状态。, 返回全部审批动作,按时间正序排列,用于展示完整审批历史。, Any (+2 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 20 - "Community 20"
|
||||
Cohesion: 0.15
|
||||
Nodes (31): approve_settlement_legacy(), cancel_settlement(), create_settlement(), delete_settlement(), disburse_settlement(), _generate_settlement_no(), get_settlement(), get_settlement_approval_flow() (+23 more)
|
||||
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)
|
||||
|
||||
### Community 21 - "Community 21"
|
||||
Cohesion: 0.08
|
||||
@@ -304,52 +314,52 @@ Cohesion: 0.08
|
||||
Nodes (28): parse_admin_request_json(), Any, Request, 运营 Web(/web/admin)JSON 请求体解析。 与 ApiCryptoMiddleware 配合:中间件未改写 body 时,在路由内解密 `{, 读取 JSON body;dict 时走 resolve_request_payload(明文 / 密文 / data 包装)。 Returns:, ApiCryptoError, _b64url_decode(), _b64url_encode() (+20 more)
|
||||
|
||||
### Community 23 - "Community 23"
|
||||
Cohesion: 0.09
|
||||
Nodes (56): update_plan(), PlanArchiveFreightBlock, PlanArchiveProductItem, PlanProductCreate, PlanTransportCreateBlock, all_hazard_products_cert_complete(), apply_archive_freight(), apply_archive_product_quantities() (+48 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (57): update_plan(), PlPlanProduct, 计划产品明细表 pl_plan_product, PlanArchiveFreightBlock, PlanArchiveProductItem, PlanProductCreate, PlanTransportCreateBlock, all_hazard_products_cert_complete() (+49 more)
|
||||
|
||||
### Community 24 - "Community 24"
|
||||
Cohesion: 0.13
|
||||
Nodes (26): 报销模块认证适配:门户 JWT 用户 → bx 业务上下文。, BxReimburseInvoice, BxReimburseOffset, BxWorkflowNode, 报销(bx)模块数据模型 — 对齐 docs/sql/20260606_bx_tables.sql, filter_current_cycle_approvals(), 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, 审批进度仅展示当前轮次;完整历史由 get_approval_history 返回。 (+18 more)
|
||||
Cohesion: 0.14
|
||||
Nodes (20): 数据模型(与 docs/sql/shanxia2.0.sql 全库导出基线对齐的核心系统表), Web 管理端约定角色(由 sys_role.role_name 映射而来,非数据库枚举), UserRole, DictEnsureError, ensure_dict_data(), ensure_remove_dict_data(), Session, 业务页字典 ensure:白名单内按 label 复用或插入 sys_dict_data。 (+12 more)
|
||||
|
||||
### Community 25 - "Community 25"
|
||||
Cohesion: 0.22
|
||||
Nodes (13): list_share_logs(), _parse_user_agent(), Any, Session, CRM 报价单分享访问日志 CRUD — 对照 CrmQuoteShareLogServiceImpl.java, Java: statisticsVisits, 简易 User-Agent 解析(替代 Hutool UserAgentUtil), Java: queryLogsByQuoteId (+5 more)
|
||||
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 26 - "Community 26"
|
||||
Cohesion: 0.18
|
||||
Nodes (33): DutyAssignment, DutyDay, DutySlot, 值班排班模型 — docs/superpowers/specs/2026-08-14-duty-schedule-design.md, assert_user_is_duty_staff(), _assignment_dict(), build_public_url(), _count_active_assignments() (+25 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (31): DutyAssignment, DutyDay, DutySlot, 值班排班模型 — docs/superpowers/specs/2026-08-14-duty-schedule-design.md, assert_user_is_duty_staff(), _assignment_dict(), build_public_url(), _count_active_assignments() (+23 more)
|
||||
|
||||
### Community 27 - "Community 27"
|
||||
Cohesion: 0.06
|
||||
Nodes (61): CRM 报价单 API 路由 — 挂接到 crm.router, RecognizeCertResult, PageResult, ResponseModel, BaseModel, PagedQuery, PagedResponse, CustomerAssignPoolBody (+53 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.08
|
||||
Nodes (73): PlFreightSettlement, PlFreightSettlementApproval, PlFreightSettlementTransport, PlRemittanceVoucher, 运费结算表 pl_freight_settlement, 运费结算审批 pl_freight_settlement_approval, 结算单-运输关联表 pl_freight_settlement_transport, 汇款凭证表 pl_remittance_voucher (+65 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (57): PlFreightSettlement, PlFreightSettlementApproval, 运费结算表 pl_freight_settlement, 运费结算审批 pl_freight_settlement_approval, _advance_after_approval(), _approval_to_dict(), can_user_approve_settlement(), cancel_draft_settlement() (+49 more)
|
||||
|
||||
### Community 29 - "Community 29"
|
||||
Cohesion: 0.10
|
||||
Nodes (64): _apply_contract_entity_fields(), _build_contract_filters(), _build_contract_name_from_parties(), _build_customer_address(), _calc_amount_with_tax(), _change_row_to_dict(), contract_no_exists(), _contract_period_key() (+56 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (65): _apply_contract_entity_fields(), _build_contract_filters(), _build_contract_name_from_parties(), _build_customer_address(), _calc_amount_with_tax(), _change_row_to_dict(), contract_no_exists(), _contract_period_key() (+57 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 31 - "Community 31"
|
||||
Cohesion: 0.10
|
||||
Nodes (32): _build_public_page(), _build_site_product_read(), _format_file_size(), get_public_site(), _get_site_link_by_token(), _parse_feedback_images(), Session, UploadFile (+24 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (27): _as_date(), _build_driver_url(), _build_public_page(), _format_file_size(), _format_plan_date(), get_public_transport(), get_public_transport_history(), _get_transport_by_token() (+19 more)
|
||||
|
||||
### Community 32 - "Community 32"
|
||||
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 (45): check_document_expiry(), document_reminder_stats(), get_inventory_ledger(), get_summary(), list_document_reminders(), list_transactions(), list_warnings(), date (+37 more)
|
||||
|
||||
### Community 33 - "Community 33"
|
||||
Cohesion: 0.12
|
||||
Nodes (37): clue_detail(), contact_by_customer(), contact_detail(), contact_set_primary(), customer_detail(), create_contact(), get_contact(), list_contacts_by_customer() (+29 more)
|
||||
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)
|
||||
|
||||
### Community 34 - "Community 34"
|
||||
Cohesion: 0.17
|
||||
Nodes (26): 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() (+18 more)
|
||||
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)
|
||||
|
||||
### Community 35 - "Community 35"
|
||||
Cohesion: 0.18
|
||||
@@ -360,24 +370,24 @@ Cohesion: 0.15
|
||||
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.34
|
||||
Nodes (32): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, MenuCreateBody (+24 more)
|
||||
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 38 - "Community 38"
|
||||
Cohesion: 0.31
|
||||
Nodes (9): decrypt_login_payload(), ensure_initialized(), extract_login_credentials(), get_public_pem(), Any, 登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。, Base64 密文 -> JSON 对象(须含 username、password、ts 毫秒时间戳)。, 从请求体解析用户名、密码。 返回 (username, password, error_message);error_message 非空时表示失败。 (+1 more)
|
||||
Cohesion: 0.18
|
||||
Nodes (11): Config, decrypt_login_payload(), ensure_initialized(), extract_login_credentials(), get_public_pem(), Any, 登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。, Base64 密文 -> JSON 对象(须含 username、password、ts 毫秒时间戳)。 (+3 more)
|
||||
|
||||
### Community 39 - "Community 39"
|
||||
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 40 - "Community 40"
|
||||
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)
|
||||
Cohesion: 0.15
|
||||
Nodes (39): _apply_plan_product_update(), _apply_plan_update(), AutoGenerateMonthlyResult, _base_query(), create_plan(), delete_plan(), _generate_plan_no(), get_plan() (+31 more)
|
||||
|
||||
### Community 41 - "Community 41"
|
||||
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)
|
||||
Cohesion: 0.08
|
||||
Nodes (54): _generate_notify_message(), _is_rearrange(), 仅计划已正式安排才算「调整运输」。 创建/编辑表单预选车辆会留下 draft 运输单,计划仍为 pending; 若把非 cancelled, PlInboundOrder, PlInboundOrderItem, PlPlan, PlTransport, 运输计划-入库单 pl_inbound_order (+46 more)
|
||||
|
||||
### Community 42 - "Community 42"
|
||||
Cohesion: 0.19
|
||||
@@ -385,23 +395,23 @@ Nodes (32): _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_r
|
||||
|
||||
### 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)
|
||||
Nodes (34): create_invoice(), delete_invoice(), get_mine_wallet_summary(), list_invoice_ledgers(), list_invoices(), Request, Session, 一次上传一条发票:多文件挂同一档案,金额为总额,只写一条额度流水。 使用 request.form().getlist,兼容只传 1 个文件时 Fas (+26 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 (24): 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() (+16 more)
|
||||
|
||||
### Community 45 - "Community 45"
|
||||
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.33
|
||||
Nodes (34): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictEnsureBody, DictEnsureRemoveBody, DictTypeCreateBody (+26 more)
|
||||
|
||||
### Community 46 - "Community 46"
|
||||
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)
|
||||
Cohesion: 0.12
|
||||
Nodes (37): 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() (+29 more)
|
||||
|
||||
### Community 47 - "Community 47"
|
||||
Cohesion: 0.13
|
||||
Nodes (33): put_plan_side_contracts(), PlPlanContract, 运输计划-合同关联(分侧多选) pl_plan_contract, PlanContractGapRead, PlanContractLink, is_internal_customer_name(), 运输计划:内置山峡/云栋客户判定(合同可免), build_plan_contract_gap_read() (+25 more)
|
||||
Nodes (32): PlanContractGapRead, PlanContractLink, PlanProductBase, PlanProductRead, is_internal_customer_name(), 运输计划:内置山峡/云栋客户判定(合同可免), build_plan_contract_gap_read(), compute_contract_gap_sides() (+24 more)
|
||||
|
||||
### Community 48 - "Community 48"
|
||||
Cohesion: 0.21
|
||||
@@ -412,164 +422,168 @@ 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.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 (30): _apply_weighing_product_update(), _apply_weighing_update(), _base_query(), create_weighing(), delete_weighing(), _get_weighing(), get_weighing_related(), list_weighing() (+22 more)
|
||||
|
||||
### Community 51 - "Community 51"
|
||||
Cohesion: 0.26
|
||||
Nodes (18): _address_to_read(), _build_address_query(), create_transport_address(), delete_transport_address(), _get_address(), get_transport_address(), list_all_transport_addresses(), list_transport_addresses() (+10 more)
|
||||
|
||||
### Community 52 - "Community 52"
|
||||
Cohesion: 0.26
|
||||
Nodes (10): _build_workbook(), DictLabelResolver, ExportColumn, load_dict_label_maps(), Any, Session, Excel 导出工具:集中处理字典 code → label(对齐 Java ExcelDictConvert / ExcelDictPreloadConver, 导出列定义,dict_type 非空时自动将字典 value 转为 label。 (+2 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (14): CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _build_workbook(), DictLabelResolver, export_rows_to_xlsx_response(), ExportColumn, load_dict_label_maps(), Any, Session (+6 more)
|
||||
|
||||
### Community 53 - "Community 53"
|
||||
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)
|
||||
|
||||
### Community 54 - "Community 54"
|
||||
Cohesion: 0.24
|
||||
Nodes (25): _get_by_plan(), get_inbound(), get_inbound_by_plan(), _get_order(), get_outbound(), get_outbound_by_plan(), inbound_site_url(), list_inbound() (+17 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (57): _get_by_plan(), get_inbound(), get_inbound_by_plan(), _get_order(), get_outbound(), get_outbound_by_plan(), inbound_site_url(), list_inbound() (+49 more)
|
||||
|
||||
### Community 55 - "Community 55"
|
||||
Cohesion: 0.10
|
||||
Nodes (28): generate_uuid(), get_current_time(), parse_datetime(), datetime, allocate_next_biz_no(), _format_biz_no(), _prefix_for(), datetime (+20 more)
|
||||
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
|
||||
|
||||
### Community 56 - "Community 56"
|
||||
Cohesion: 0.29
|
||||
Nodes (12): build_name_pinyin_abbr(), normalize_name_pinyin_abbr(), 名称拼音首字母缩写:库内存小写,检索时大小写不敏感。, 保存时解析拼音字段。 - submitted_provided=True:用提交值(空则按 name 生成) - 否则:已有非空 existi, resolve_name_pinyin_abbr(), test_chinese_and_alnum(), test_empty_and_whitespace(), test_resolve_not_submitted_empty_existing_generates() (+4 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (28): generate_uuid(), PlPlanProductBrandQty, 计划产品归档品牌数量 pl_plan_product_brand_qty, load_brand_qtys_by_plan_product_ids(), persist_plan_product_brand_qtys(), Any, Decimal, Session (+20 more)
|
||||
|
||||
### Community 57 - "Community 57"
|
||||
Cohesion: 0.15
|
||||
Nodes (22): day_detail(), delete_assignment(), duty_user_options(), _enrich_assign_names(), ensure_duty_dict(), month_summary(), Session, 指定用户时补全 personName(用 nick_name)。 (+14 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (16): API 路由包 — 山峡化工生产一体化门户, create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), Session (+8 more)
|
||||
|
||||
### Community 58 - "Community 58"
|
||||
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)
|
||||
Cohesion: 0.19
|
||||
Nodes (21): allocate_reimburse_title_seq(), format_reimburse_title(), generate_apply_code(), generate_title(), is_auto_reimburse_title(), parse_optional_date(), parse_reimburse_date(), preview_reimburse_title_seq() (+13 more)
|
||||
|
||||
### Community 59 - "Community 59"
|
||||
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.08
|
||||
Nodes (36): 分页查询供方列表 — Java: CrmSupplierInfoController.list, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 新增供方 — Java: CrmSupplierInfoController.add, 修改供方 — Java: CrmSupplierInfoController.edit, 删除供方 — Java: CrmSupplierInfoController.remove, 导出供方列表 — Java: CrmSupplierInfoController.export, supplier_info_add(), supplier_info_delete() (+28 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (16): apply_crm_create_by_scope(), _apply_list_filters(), create_supplier_info(), list_all_supplier_info(), list_supplier_info(), Any, Session, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java (+8 more)
|
||||
|
||||
### Community 61 - "Community 61"
|
||||
Cohesion: 0.11
|
||||
Nodes (47): _generate_notify_message(), PlPlan, PlPlanProduct, PlTransportDbLink, 计划产品明细表 pl_plan_product, 运输-地磅出入库关联 pl_transport_db_link, _apply_plan_quantity_delta(), _create_db_inventory() (+39 more)
|
||||
Cohesion: 0.31
|
||||
Nodes (15): DbInboundOutbound, PlTransportDbLink, 运输-地磅出入库关联 pl_transport_db_link, _apply_plan_quantity_delta(), 再次勾选地磅安排前:软删本运输单此前生成的、仍可作废的出入库单及关联。 - 不删除地磅月计划(可能被其他业务复用) - 若出入库单已完成的/已, _resolve_link_contributed_qty(), revoke_regeneratable_dibang_for_transport(), _subtract_plan_contribution() (+7 more)
|
||||
|
||||
### Community 62 - "Community 62"
|
||||
Cohesion: 0.08
|
||||
Nodes (37): approve_carrier(), create_carrier(), get_carrier(), update_carrier(), PlCarrier, carrier_to_read(), CarrierBase, CarrierCreate (+29 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (28): approve_carrier(), create_carrier(), create_driver(), delete_carrier(), delete_driver(), delete_personnel(), delete_vehicle(), get_carrier() (+20 more)
|
||||
|
||||
### Community 63 - "Community 63"
|
||||
Cohesion: 0.21
|
||||
Nodes (19): _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 (+11 more)
|
||||
Cohesion: 0.38
|
||||
Nodes (14): _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 (+6 more)
|
||||
|
||||
### Community 64 - "Community 64"
|
||||
Cohesion: 0.18
|
||||
Nodes (18): create_workflow(), delete_workflow(), get_workflow(), get_workflow_by_biz_type(), list_workflows(), Session, save_workflow_nodes(), update_workflow() (+10 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (23): create_workflow(), delete_workflow(), get_workflow(), get_workflow_by_biz_type(), list_workflows(), Session, save_workflow_nodes(), update_workflow() (+15 more)
|
||||
|
||||
### Community 65 - "Community 65"
|
||||
Cohesion: 0.10
|
||||
Nodes (58): cancel_apply(), create_apply(), create_process(), delete_applies(), delete_processes(), get_apply(), get_process(), list_applies() (+50 more)
|
||||
Nodes (62): cancel_apply(), create_apply(), create_process(), delete_applies(), delete_processes(), get_apply(), get_process(), list_applies() (+54 more)
|
||||
|
||||
### Community 66 - "Community 66"
|
||||
Cohesion: 0.07
|
||||
Nodes (48): ApiRequestLogMiddleware, _claims_from_auth(), _format_body_bytes(), _persist_log(), Any, Request, 统一记录 API 请求/响应出入参的中间件, _redact_obj() (+40 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (19): ApiRequestLogMiddleware, _claims_from_auth(), _format_body_bytes(), _persist_log(), Any, Request, 统一记录 API 请求/响应出入参的中间件, _redact_obj() (+11 more)
|
||||
|
||||
### Community 67 - "Community 67"
|
||||
Cohesion: 0.08
|
||||
Nodes (54): get_password_hash(), batch_generate_sample_codes(), batch_issue_sample_codes(), batch_revoke_sample_codes(), create_sample_code(), get_sample_code(), list_sample_codes(), _parse_issued_time() (+46 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (36): get_password_hash(), Namespace, build_merged_users(), bx_role_labels(), check_minio(), check_mysql(), check_redis(), _clip() (+28 more)
|
||||
|
||||
### Community 68 - "Community 68"
|
||||
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.14
|
||||
Nodes (25): _append_user_scope_conditions(), apply_data_scope(), _collect_scope_ids(), _get_child_dept_ids(), get_user_dept_id(), Session, 合并多角色数据范围为 dept_ids / user_ids 并集。, 根据用户角色的数据权限过滤查询。 适用于业务单据列表/详情(报销单、客户、运单等)。 以下场景 SHALL NOT 调用本函数(仅租户隔离即 (+17 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (39): _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 (+31 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.23
|
||||
Nodes (8): generate_id(), camel_to_snake(), CRUDBase, get_model_attr(), HistoryCRUD, Any, Session, ModelType
|
||||
Cohesion: 0.24
|
||||
Nodes (7): camel_to_snake(), CRUDBase, get_model_attr(), HistoryCRUD, Any, Session, ModelType
|
||||
|
||||
### Community 72 - "Community 72"
|
||||
Cohesion: 0.16
|
||||
Nodes (16): can_user_approve(), invalidate_all_approvals(), 作废该合同全部有效审批记录(含已通过/已拒绝),用于再编辑或重新提审。, 顺序审批:当前步骤 pending 且 is_current=1。 同一审批人若同时存在历史已处理记录与当前轮 pending,优先取 pending, invalidate_all_approvals(), 作废该报价单全部有效审批记录(含已通过/已拒绝),用于再编辑或重新提审。, _approval(), 再编辑并重新提审后,历史审批记录不得阻塞当前轮审批。 (+8 more)
|
||||
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 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.25
|
||||
Nodes (7): ProcessDefCreateBody, start_instance(), StartInstanceBody, WfNode, Any, Session, WorkflowEngine
|
||||
Cohesion: 0.13
|
||||
Nodes (27): create_vehicle(), update_vehicle(), _vehicle_to_detail(), calc_age_from_chinese_id_card(), date, 从 18 位身份证号计算周岁。号码不完整或出生日期无效时返回 None。, VehicleDetailRead, VehiclePersonnelRow (+19 more)
|
||||
|
||||
### Community 75 - "apply_crm_create_by_scope"
|
||||
Cohesion: 0.21
|
||||
Nodes (21): paste_recognize_commit(), VehiclePersonnelRow, ConflictAction, PasteCommitBody, PasteCommitResult, PastePersonnelIn, PasteVehicleIn, 运输计划 - 三方粘贴识别提交 Schema (+13 more)
|
||||
Cohesion: 0.25
|
||||
Nodes (19): bind_vehicle_driver(), get_vehicle(), paste_recognize_commit(), PlVehicle, ConflictAction, PasteCommitBody, PasteCommitResult, PastePersonnelIn (+11 more)
|
||||
|
||||
### Community 76 - "opportunity_follow.py"
|
||||
Cohesion: 0.21
|
||||
Nodes (14): change_current_user_password(), get_current_user_profile(), get_web_auth_menu_codes(), public_quote_share(), Request, Session, 获取当前用户信息(与 sys_user 字段对应)。, 获取当前用户菜单权限标识(sys_menu.perms,经角色继承)。 (+6 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (23): _avatar_url_field(), _build_user_info_payload(), change_current_user_password(), get_current_user_profile(), get_web_auth_menu_codes(), _jwt_user_payload(), public_quote_share(), Request (+15 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_carrier(), delete_vehicle(), 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 79 - "PlCarrier"
|
||||
Cohesion: 0.15
|
||||
Nodes (27): _as_date(), _build_driver_url(), _build_public_page(), _format_file_size(), _format_plan_date(), get_public_transport(), get_public_transport_history(), _get_transport_by_token() (+19 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (10): _dispatch_local(), Any, 工作流回调服务 —— 流程状态变更时通知业务系统, 注册本地回调函数。当 callback_url 以 path 开头时直接调用 fn。, 尝试本地直调。返回 True 表示已处理,False 表示无匹配的本地回调。, 流程实例状态变更后,向业务系统发送回调通知。 优先级: 1. 如果 callback_url 是内部路径(以 / 开头),优先尝试本地直调, register_local_callback(), trigger_callback() (+2 more)
|
||||
|
||||
### Community 80 - "resolve_crm_product"
|
||||
Cohesion: 0.12
|
||||
Nodes (29): PlInventoryTransaction, PlPlanProductBrandQty, 计划产品归档品牌数量 pl_plan_product_brand_qty, 库存流水表 pl_inventory_transaction, load_brand_qtys_by_plan_product_ids(), persist_plan_product_brand_qtys(), Any, Decimal (+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 81 - "customer_follow.py"
|
||||
Cohesion: 0.07
|
||||
Nodes (53): category_add(), category_delete(), category_tree(), category_update(), customer_create(), customer_update(), invoice_info_add(), invoice_info_by_customer() (+45 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (10): public_grab(), public_page(), Session, Config, format_api_error_message(), PageResult, Exception, 将 HTTP/SQLAlchemy 等异常转为可展示的错误文案(避免 str([]) 空列表)。 (+2 more)
|
||||
|
||||
### Community 82 - "storage.py"
|
||||
Cohesion: 0.12
|
||||
Nodes (21): calc_age_from_chinese_id_card(), date, 从 18 位身份证号计算周岁。号码不完整或出生日期无效时返回 None。, 运输计划 - 安排运输时车辆/人员/证件资源快照 Schema, SnapshotCertRead, SnapshotPersonnelRow, TransportResourceSnapshot, build_personnel_summary() (+13 more)
|
||||
Cohesion: 0.39
|
||||
Nodes (10): create_site(), get_site(), list_sites(), Any, Session, _row_to_dict(), site_code_exists(), soft_delete_site() (+2 more)
|
||||
|
||||
### Community 83 - "Community 83"
|
||||
Cohesion: 0.11
|
||||
Nodes (42): CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), _advance_contract_after_approval(), approve_contract(), approve_contract_by_contract_id(), approve_pass(), approve_reject(), approve_transfer() (+34 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (50): CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), _advance_contract_after_approval(), approve_contract(), approve_contract_by_contract_id(), approve_pass(), approve_reject(), approve_transfer() (+42 more)
|
||||
|
||||
### Community 84 - "Community 84"
|
||||
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 85 - "allocate_next_biz_no"
|
||||
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)
|
||||
|
||||
### Community 86 - "Community 86"
|
||||
Cohesion: 0.23
|
||||
Nodes (15): create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), Session, submit_leave() (+7 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (27): _db_pool_keepalive_loop(), _error_json(), lifespan(), Exception, Request, 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin, 定期 ping MySQL,避免远程库/NAT 回收空闲 TCP 后首请求长时间卡住。 (+19 more)
|
||||
|
||||
### Community 87 - "Community 87"
|
||||
Cohesion: 0.19
|
||||
Nodes (20): approve_quote(), can_user_approve(), create_approval_records(), delete_pending_approvals(), get_quote_approval(), list_quote_approvals(), Any, Session (+12 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (22): approve_quote(), can_user_approve(), create_approval_records(), delete_pending_approvals(), get_quote_approval(), invalidate_all_approvals(), list_quote_approvals(), Any (+14 more)
|
||||
|
||||
### Community 88 - "CrmProduct"
|
||||
Cohesion: 0.20
|
||||
Nodes (12): 流程实例 wf_process_instance, WfProcessInstance, _dispatch_local(), Any, 工作流回调服务 —— 流程状态变更时通知业务系统, 注册本地回调函数。当 callback_url 以 path 开头时直接调用 fn。, 尝试本地直调。返回 True 表示已处理,False 表示无匹配的本地回调。, 流程实例状态变更后,向业务系统发送回调通知。 优先级: 1. 如果 callback_url 是内部路径(以 / 开头),优先尝试本地直调 (+4 more)
|
||||
Cohesion: 0.14
|
||||
Nodes (21): CarrierAuditReject, CarrierBase, DriverBase, DriverCreate, DriverListResponse, DriverUpdate, PersonnelBase, PersonnelCreate (+13 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 90 - "WechatMessageService"
|
||||
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)
|
||||
Cohesion: 0.17
|
||||
Nodes (8): 发送订单状态通知 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_, WechatMessageService
|
||||
|
||||
### Community 91 - "opportunity_product.py"
|
||||
Cohesion: 0.33
|
||||
@@ -579,149 +593,177 @@ Nodes (11): create_leave(), get_leave(), list_leaves(), Any, Session, _row_to_di
|
||||
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 - "api_request_log_middleware.py"
|
||||
Cohesion: 0.13
|
||||
Nodes (6): convert_heic_to_jpeg(), OSSStorage, process_image_content(), 带下载文件名的访问 URL;默认实现为普通访问地址。, 将 HEIC/HEIF 格式转换为 JPEG 格式, 处理图片内容,如果是 HEIC 格式则转换为 JPEG
|
||||
|
||||
### Community 94 - "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 95 - "test_pl_public_link_archived.py"
|
||||
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)
|
||||
Cohesion: 0.11
|
||||
Nodes (34): 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() (+26 more)
|
||||
|
||||
### Community 96 - "minio_url.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.20
|
||||
Nodes (13): ProcessDefCreateBody, ProcessDefUpdateBody, PublishVersionBody, start_instance(), StartInstanceBody, 流程定义版本 wf_process_version, 流程实例 wf_process_instance, WfNode (+5 more)
|
||||
|
||||
### Community 97 - "contact.py"
|
||||
Cohesion: 0.18
|
||||
Nodes (10): contact_add(), contact_delete(), contact_update(), ContactByCustomerBody, ContactCreateBody, ContactDeleteBody, ContactDetailBody, ContactSetPrimaryBody (+2 more)
|
||||
Cohesion: 0.22
|
||||
Nodes (10): invoice_info_by_customer(), _invoice_info_by_customer_impl(), invoice_info_delete(), invoice_info_list(), invoice_info_update(), 按客户ID查询开票信息(与 by-customer 等价), InvoiceInfoByCustomerBody, InvoiceInfoDeleteBody (+2 more)
|
||||
|
||||
### Community 98 - "LocalStorage"
|
||||
Cohesion: 0.35
|
||||
Nodes (11): create_tenant(), get_tenant(), list_tenants(), Any, Session, _row_to_dict(), soft_delete_tenant(), tenant_no_exists() (+3 more)
|
||||
|
||||
### Community 99 - "redis_client.py"
|
||||
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()
|
||||
Cohesion: 0.31
|
||||
Nodes (15): ensure_crm_create_by_row_in_scope(), create_pool_rule(), delete_pool_rules(), execute_pool_rules(), _execute_single_rule(), get_pool_rule(), list_pool_rules(), Any (+7 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)
|
||||
|
||||
### Community 101 - "tenant.py"
|
||||
Cohesion: 0.12
|
||||
Nodes (23): SoftDeleteModel, BizAttachment, PlDocumentReminder, PlDriver, PlInboundOrderItemBrandQty, PlInventory, PlInventoryWarning, PlOutboundOrder (+15 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (35): BizAttachment, 民族码表 sys_ethnic(国标 GB/T 3304,全局), SysEthnic, PlDocumentReminder, PlDriver, PlFreightSettlementTransport, PlInboundOrderItemBrandQty, PlInventory (+27 more)
|
||||
|
||||
### Community 102 - "crm_supplier_hazard.py"
|
||||
Cohesion: 0.60
|
||||
Nodes (5): product_allowed(), test_dual_requires_both(), test_explosive_only_requires_allow_explosive(), test_plain_always_allowed(), test_toxic_only_requires_allow_toxic()
|
||||
Cohesion: 0.19
|
||||
Nodes (21): create_personnel(), get_personnel(), list_personnel(), list_vehicles(), _personnel_to_detail(), _personnel_to_read(), update_personnel(), _vehicle_to_read() (+13 more)
|
||||
|
||||
### Community 103 - "pl_internal_customer.py"
|
||||
Cohesion: 0.36
|
||||
Nodes (7): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), 民族码表 sys_ethnic(国标 GB/T 3304,全局), SysEthnic
|
||||
Cohesion: 0.47
|
||||
Nodes (5): list_ethnics(), Any, Session, 民族码表 CRUD(全局 sys_ethnic), _row_to_dict()
|
||||
|
||||
### Community 104 - "apply_crm_create_by_scope"
|
||||
Cohesion: 0.13
|
||||
Nodes (26): price_letter_add(), price_letter_detail(), price_letter_list(), price_letter_update(), price_letter_void(), create_price_letter(), get_price_letter(), list_price_letters() (+18 more)
|
||||
Cohesion: 0.29
|
||||
Nodes (15): create_price_letter(), get_price_letter(), list_price_letters(), _parse_date(), Any, date, Session, _row_to_dict() (+7 more)
|
||||
|
||||
### Community 105 - "pool_customer_assign"
|
||||
Cohesion: 0.33
|
||||
Nodes (7): clue_import_template(), customer_import_template(), product_import_template(), export_rows_to_xlsx_response(), CRM 列表导出统一入口:表头 + 行数据 + 字典 label 转换 + 文件流响应。, workbook_to_streaming_response(), StreamingResponse
|
||||
Cohesion: 0.29
|
||||
Nodes (12): build_name_pinyin_abbr(), normalize_name_pinyin_abbr(), 名称拼音首字母缩写:库内存小写,检索时大小写不敏感。, 保存时解析拼音字段。 - submitted_provided=True:用提交值(空则按 name 生成) - 否则:已有非空 existi, resolve_name_pinyin_abbr(), test_chinese_and_alnum(), test_empty_and_whitespace(), test_resolve_not_submitted_empty_existing_generates() (+4 more)
|
||||
|
||||
### Community 106 - "site.py"
|
||||
Cohesion: 0.39
|
||||
Nodes (10): create_site(), get_site(), list_sites(), Any, Session, _row_to_dict(), site_code_exists(), soft_delete_site() (+2 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 107 - "apply_pl_scope"
|
||||
Cohesion: 0.15
|
||||
Nodes (33): 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() (+25 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (31): 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() (+23 more)
|
||||
|
||||
### Community 108 - "statistics.py"
|
||||
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 109 - "_ensure_subpack_slip_no"
|
||||
Cohesion: 0.05
|
||||
Nodes (68): clue_import_template(), customer_import_template(), opportunity_add(), opportunity_assign(), opportunity_batch_update_expect_date(), opportunity_batch_update_stage(), opportunity_change_stage(), opportunity_delete() (+60 more)
|
||||
|
||||
### Community 110 - "list_duty_staff_users"
|
||||
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 111 - "Community 111"
|
||||
Cohesion: 0.12
|
||||
Nodes (32): 返回 (作废, 归档)。现场链接实际走入库/出库单公共页。, _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() (+24 more)
|
||||
|
||||
### Community 112 - ".to_tenant_user_dict"
|
||||
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 109 - "_ensure_subpack_slip_no"
|
||||
Cohesion: 0.40
|
||||
Nodes (6): _ensure_subpack_slip_no(), _format_subpack_slip_no(), _normalize_subpack_slip_no(), 将历史分装单号统一为 NO:SXFZYYYYMMDD-###, 分配分装单号 NO:SXFZYYYYMMDD-###(按租户每日递增), _subpack_slip_no_seq()
|
||||
|
||||
### Community 110 - "list_duty_staff_users"
|
||||
Cohesion: 0.33
|
||||
Nodes (6): list_duty_staff_users(), 按固定 id 查找「值班人员」角色;找不到再按角色名兜底。, 本租户启用且绑定「值班人员」角色的用户(公开页 users / 管理端 options)。, resolve_duty_staff_role_id(), test_list_duty_staff_users_empty_when_no_role(), test_resolve_duty_staff_role_id_by_fixed_id()
|
||||
|
||||
### Community 111 - "Community 111"
|
||||
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 - ".to_tenant_user_dict"
|
||||
Cohesion: 0.40
|
||||
Nodes (3): Any, 供 get_tenant_no 等门户工具使用。, 与门户 JWT / apply_data_scope 所需的 user_info 字段对齐。
|
||||
|
||||
### Community 113 - "quote_share_log.py"
|
||||
Cohesion: 0.40
|
||||
Nodes (5): _avatar_url_field(), _build_user_info_payload(), 与 web-admin 静态路由 meta.roles(admin/super_admin)对齐的单元素数组。, 与 web-admin `userInfo` 字段约定一致。, _web_role_list()
|
||||
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)
|
||||
|
||||
### 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.31
|
||||
Nodes (9): format_hhmm(), format_time_label(), parse_hhmm(), test_format_time_label_cross_day(), test_format_time_label_empty(), test_format_time_label_same_day(), test_parse_hhmm(), test_parse_hhmm_invalid_raises() (+1 more)
|
||||
|
||||
### Community 115 - "site.py"
|
||||
Cohesion: 0.10
|
||||
Nodes (54): bind_vehicle_driver(), create_driver(), create_personnel(), create_vehicle(), delete_driver(), delete_personnel(), get_driver(), get_personnel() (+46 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (18): _assert_editable(), _build_public_page(), _format_file_size(), _get_inventory_by_token(), get_public_inventory(), _parse_feedback_images(), Session, UploadFile (+10 more)
|
||||
|
||||
### Community 116 - "Community 116"
|
||||
Cohesion: 0.19
|
||||
Nodes (26): 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() (+18 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 117 - "get_web_auth_menu_codes"
|
||||
Cohesion: 0.17
|
||||
Nodes (15): list_plans(), _plan_plate_match(), _plan_product_name_exists(), 列表展示用:优先 CRM 标准名(详情仍返回库内 product_name,以便编辑反推别名)。, _resolve_list_product_name(), _cert_url_blank(), plan_has_hazard_product_exists(), plan_has_incomplete_hazard_cert_exists() (+7 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (17): parse_resource_snapshot(), Any, 运输计划 - 安排运输时车辆/人员/证件资源快照 Schema, 从 ORM 文本列或 dict 解析快照。, SnapshotCertRead, SnapshotPersonnelRow, TransportResourceSnapshot, build_personnel_summary() (+9 more)
|
||||
|
||||
### Community 118 - "Community 118"
|
||||
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)
|
||||
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)
|
||||
|
||||
### Community 119 - "Community 119"
|
||||
Cohesion: 0.12
|
||||
Nodes (37): CertRow, _cert_row_complete(), collect_required_cert_errors(), _find_cert_for_required(), get_required_personnel_cert_names(), is_huolala_trailer_no(), match_required_cert_name(), _missing_field_labels() (+29 more)
|
||||
Nodes (33): CertRow, _cert_row_complete(), collect_required_cert_errors(), _find_cert_for_required(), get_required_personnel_cert_names(), is_huolala_trailer_no(), match_required_cert_name(), _missing_field_labels() (+25 more)
|
||||
|
||||
### Community 120 - "sqlalchemy_exception_handler"
|
||||
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)
|
||||
Cohesion: 0.07
|
||||
Nodes (32): list_public_vehicle_plates(), Session, 地磅公共只读:免登车牌 options(现场填写页), 免登:按出入库/计划解析 tenant_no,返回 pl_vehicle 车牌(self + carrier)。, _resolve_tenant_no(), get_menu_list(), 运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,14 个一级菜单), operlog_detail() (+24 more)
|
||||
|
||||
### Community 121 - "Session"
|
||||
Cohesion: 0.08
|
||||
Nodes (31): list_public_vehicle_plates(), Session, 地磅公共只读:免登车牌 options(现场填写页), 免登:按出入库/计划解析 tenant_no,返回 pl_vehicle 车牌(self + carrier)。, _resolve_tenant_no(), API 路由包 — 山峡化工生产一体化门户, get_menu_list(), 运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,14 个一级菜单) (+23 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (22): day_detail(), delete_assignment(), duty_user_options(), _enrich_assign_names(), ensure_duty_dict(), month_summary(), Session, 指定用户时补全 personName(用 nick_name)。 (+14 more)
|
||||
|
||||
### Community 122 - "Community 122"
|
||||
Cohesion: 0.39
|
||||
Nodes (10): create_post(), get_post(), list_posts(), post_code_exists(), Any, Session, _row_to_dict(), soft_delete_post() (+2 more)
|
||||
|
||||
### Community 123 - "customer_options"
|
||||
Cohesion: 0.50
|
||||
Nodes (4): customer_options(), 客户下拉选项(租户内只读,不做 owner 数据权限), CustomerOptionsBody, 客户下拉选项请求体(租户内只读搜索,不做 owner 数据权限)
|
||||
Cohesion: 0.25
|
||||
Nodes (10): _cert_url_blank(), plan_has_hazard_product_exists(), plan_has_incomplete_hazard_cert_exists(), 证书 URL 为空(NULL / 空串 / 纯空白)。, 列表筛选:计划下存在 CRM 标识为易制毒/易制爆的产品。, 列表筛选:存在危化产品且至少一张必需证书未上传。, _compile(), 危化品证上传列表筛选:EXISTS 子查询应覆盖 CRM 危化标识与证书缺口。 (+2 more)
|
||||
|
||||
### Community 124 - "datetime_parse.py"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): parse_optional_plan_datetime(), datetime, 运输计划相关日期时间解析:前端 date-picker 仅传 YYYY-MM-DD。
|
||||
|
||||
### Community 125 - "build_annotated_result_bytes"
|
||||
Cohesion: 0.08
|
||||
Nodes (37): _build_history_page(), _build_page(), _get_by_token(), _history_status_label(), _make_handlers(), _models(), _parse_history_date(), date (+29 more)
|
||||
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)
|
||||
|
||||
### Community 126 - "customer_pool.py"
|
||||
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 - "web_login_rsa_public_key"
|
||||
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
|
||||
|
||||
### Community 128 - "product_allowed"
|
||||
Cohesion: 0.14
|
||||
Nodes (19): list_products(), 分页查询产品列表 keyword 默认匹配:名称 / 编号 / 拼音首字母。 选择器场景可关闭编号匹配、开启规格型号匹配(避免短数字误命中产品, assert_products_allowed_for_supplier(), enrich_products_with_hazard_flags(), get_supplier_hazard_flags(), product_allowed(), Any, Session (+11 more)
|
||||
|
||||
### Community 129 - "BaseStorage"
|
||||
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 - ".to_tenant_user_dict"
|
||||
Cohesion: 0.40
|
||||
Nodes (3): Any, 供 get_tenant_no 等门户工具使用。, 与门户 JWT / apply_data_scope 所需的 user_info 字段对齐。
|
||||
|
||||
### Community 131 - "list_product_options"
|
||||
Cohesion: 0.11
|
||||
Nodes (17): 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方详情 — Java: CrmSupplierInfoController.getInfo, 新增供方 — Java: CrmSupplierInfoController.add, 修改供方 — Java: CrmSupplierInfoController.edit, 导出供方列表 — Java: CrmSupplierInfoController.export, supplier_info_add(), supplier_info_detail(), supplier_info_export() (+9 more)
|
||||
|
||||
### Community 132 - "context.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)
|
||||
|
||||
### Community 133 - "product.py"
|
||||
Cohesion: 0.12
|
||||
Nodes (15): category_add(), category_delete(), category_tree(), category_update(), product_delete(), 删除产品(支持单条 body.id 和批量 body.ids), CategoryDeleteBody, ProductAliasItem (+7 more)
|
||||
|
||||
### Community 134 - "test_crm_approval_reedit.py"
|
||||
Cohesion: 0.18
|
||||
Nodes (14): can_user_approve(), invalidate_all_approvals(), 作废该合同全部有效审批记录(含已通过/已拒绝),用于再编辑或重新提审。, 顺序审批:当前步骤 pending 且 is_current=1。 同一审批人若同时存在历史已处理记录与当前轮 pending,优先取 pending, _approval(), 再编辑并重新提审后,历史审批记录不得阻塞当前轮审批。, 再提审后同审批人同时存在历史已通过 + 新 pending 时,应允许审批。, 编辑保存回草稿时须作废全部历史审批(含已通过),不能只删 pending。 (+6 more)
|
||||
|
||||
### Community 135 - "opportunity_follow.py"
|
||||
Cohesion: 0.36
|
||||
Nodes (15): create_opportunity_follow(), _ensure_parent_opportunity(), get_opportunity_follow(), list_follows_by_opportunity(), list_opportunity_follows(), _parse_optional_datetime(), Any, datetime (+7 more)
|
||||
|
||||
### Community 136 - "Community 136"
|
||||
Cohesion: 0.13
|
||||
Nodes (23): 数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤) data_scope 值: 1 = 全部数据 2 = 本部门数据 3, create_role(), get_role(), get_role_data_scope(), get_role_menu_ids(), list_roles(), Any, Session (+15 more)
|
||||
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)
|
||||
|
||||
### Community 137 - "statistics.py"
|
||||
Cohesion: 0.35
|
||||
@@ -732,44 +774,64 @@ Cohesion: 0.33
|
||||
Nodes (19): check_python(), create_venv(), ensure_dirs(), ensure_valid_venv(), ensure_venv_and_runtime(), install_dependencies(), is_running(), log_error() (+11 more)
|
||||
|
||||
### Community 139 - "get_current_user_by_token"
|
||||
Cohesion: 0.25
|
||||
Nodes (13): get_storage(), download_file_bytes(), file_stream(), get_access_url(), get_download_url(), get_preview_url(), normalize_storage_path(), 报销附件存储适配 — 复用门户 app.core.storage,对外保持 bx 协议。 (+5 more)
|
||||
|
||||
### Community 140 - "utils.py"
|
||||
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)
|
||||
Nodes (10): get_current_time(), parse_datetime(), datetime, get_pool_record(), list_pool_records(), Any, Session, _row_to_dict() (+2 more)
|
||||
|
||||
### Community 141 - "customer_follow.py"
|
||||
Cohesion: 0.40
|
||||
Nodes (12): create_follow(), _enrich_follow_dict(), get_follow(), list_follows(), list_follows_by_customer(), Any, Session, _row_to_dict() (+4 more)
|
||||
|
||||
### Community 142 - "price_letter_detail"
|
||||
Cohesion: 0.20
|
||||
Nodes (9): price_letter_add(), price_letter_detail(), price_letter_list(), price_letter_void(), PriceLetterCreateBody, PriceLetterDetailBody, PriceLetterListBody, PriceLetterVoidBody (+1 more)
|
||||
|
||||
### Community 143 - "opportunity_export"
|
||||
Cohesion: 0.48
|
||||
Nodes (7): _opp_list_kwargs(), opportunity_export(), opportunity_kanban(), opportunity_list(), opportunity_mine_list(), OpportunityKanbanBody, OpportunityListBody
|
||||
|
||||
### 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.10
|
||||
Nodes (43): PlInboundOrder, PlInboundOrderItem, PlOutboundOrderItem, 运输计划-入库单 pl_inbound_order, 运输计划-入库单明细 pl_inbound_order_item, 运输计划-出库单明细 pl_outbound_order_item, apply_site_feedback(), build_io_order_site_url() (+35 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 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 148 - "get_db_current_user_optional"
|
||||
Cohesion: 0.67
|
||||
Nodes (3): get_db_current_user_optional(), Session, 有 Bearer 且为 admin/super_admin 时返回上下文,否则 None(供三方 H5 无登录调用)。
|
||||
|
||||
### Community 154 - "response.py"
|
||||
Cohesion: 0.19
|
||||
Nodes (7): _guess_preview_content_type(), MinIOStorage, Any, 从 MINIO_BASE_URL 解析公网 endpoint;未配置或与内网相同时复用 self.client。, 按对象键后缀推断内联预览 Content-Type(纠正上传时未写入 MIME 的情况)。, MinIO 预签名下载 URL,携带原始文件名。, MinIO 预签名内联预览 URL(图片新标签页 / PDF iframe 等)。 上传时 put_object 未写 content_typ
|
||||
|
||||
### Community 159 - "customer_update"
|
||||
Cohesion: 0.24
|
||||
Nodes (14): _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 的角色与菜单权限解析, 角色仅勾选按钮(F)时,补齐祖先 C/M 菜单 id,便于前端匹配 :list 路由。, 用户通过角色关联得到的菜单权限标识(sys_menu.perms,与前端 meta.menuCode 对齐)。 (+6 more)
|
||||
Cohesion: 0.28
|
||||
Nodes (12): _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), Session, Web 管理端登录:基于 V0.3 sys_user / sys_user_role / sys_role 的角色与菜单权限解析, 角色仅勾选按钮(F)时,补齐祖先 C/M 菜单 id,便于前端匹配 :list 路由。, 用户通过角色关联得到的菜单权限标识(sys_menu.perms,与前端 meta.menuCode 对齐)。, 用户是否在 sys_user_role 中绑定了至少一个有效角色。 (+4 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 164 - "get_client_ip"
|
||||
Cohesion: 0.20
|
||||
Nodes (24): _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/shanxia2.0.sql 基线), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。无 Token 或已失效时仍返回成功(幂等)。, Web 端登录:账号为 sys_user.user_no,密码为 sys_user.password(bcrypt)。, refresh_token(), web_login(), create_access_token() (+16 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (25): logout(), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。无 Token 或已失效时仍返回成功(幂等)。, decode_token(), extend_session(), get_client_ip(), get_current_user(), get_current_user_by_token(), get_current_user_simple() (+17 more)
|
||||
|
||||
### Community 170 - "test_quote_approver_setting.py"
|
||||
Cohesion: 0.17
|
||||
Nodes (3): BaseStorage, QiniuStorage, 浏览器内联预览 URL;默认实现为普通访问地址。
|
||||
Cohesion: 0.08
|
||||
Nodes (10): BaseStorage, convert_heic_to_jpeg(), OSSStorage, process_image_content(), QiniuStorage, 文件存储工具模块 支持多种存储方式: 1. 本地存储 (local) - 默认 2. 七牛云存储 (qiniu) - 推荐生产环境使用 3. 阿里云OSS (, 带下载文件名的访问 URL;默认实现为普通访问地址。, 浏览器内联预览 URL;默认实现为普通访问地址。 (+2 more)
|
||||
|
||||
### Community 173 - "resolve_create_time_bounds"
|
||||
Cohesion: 0.08
|
||||
Nodes (69): 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() (+61 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (67): 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() (+59 more)
|
||||
|
||||
### Community 179 - "test_pl_vehicle_personnel_photo_schema.py"
|
||||
Cohesion: 0.27
|
||||
@@ -784,8 +846,8 @@ Cohesion: 0.18
|
||||
Nodes (10): 1. 创建虚拟环境, 2. 安装依赖, 3. 配置环境变量, 4. 启动服务, API 路由分组, shanxia2.0 后端骨架(FastAPI), 开发规范, 快速开始 (+2 more)
|
||||
|
||||
### Community 220 - "api_crypto_middleware.py"
|
||||
Cohesion: 0.23
|
||||
Nodes (14): ApiCryptoMiddleware, _claims_from_auth(), _coerce_post_method_override_to_get(), _get_redis_client(), _is_crypto_api(), _json_error_response(), _mark_nonce_once(), _nonce_key() (+6 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (15): ApiCryptoMiddleware, _claims_from_auth(), _coerce_post_method_override_to_get(), _get_redis_client(), _is_crypto_api(), _json_error_response(), _mark_nonce_once(), _nonce_key() (+7 more)
|
||||
|
||||
### Community 237 - "order_status_compat.py"
|
||||
Cohesion: 0.36
|
||||
@@ -802,22 +864,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.
|
||||
- **19 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
|
||||
- **16 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 `BaseModel` connect `Community 27` to `Community 1`, `Community 2`, `Community 5`, `Community 7`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 18`, `Community 20`, `Community 23`, `Community 32`, `Community 34`, `Community 37`, `Community 40`, `Community 43`, `resolve_create_time_bounds`, `Community 45`, `Community 47`, `Community 50`, `Community 51`, `Community 54`, `Community 57`, `Community 60`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `Community 74`, `apply_crm_create_by_scope`, `customer_follow.py`, `storage.py`, `Community 83`, `Community 86`, `contact.py`, `tenant.py`, `apply_crm_create_by_scope`, `Community 111`, `site.py`, `Community 119`, `Session`, `customer_options`, `build_annotated_result_bytes`?**
|
||||
_High betweenness centrality (0.108) - this node is a cross-community bridge._
|
||||
- **Why does `generate_uuid()` connect `Community 55` to `Community 4`, `Community 5`, `Community 6`, `Community 8`, `statistics.py`, `Community 136`, `Community 11`, `Community 15`, `dict_data.py`, `Community 17`, `resolve_crm_product`, `Community 19`, `Community 16`, `Community 21`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 28`, `Community 29`, `Community 32`, `Community 33`, `get_client_ip`, `Community 36`, `Community 39`, `Community 40`, `Community 41`, `Community 43`, `resolve_create_time_bounds`, `Community 45`, `Community 47`, `Community 50`, `Community 51`, `Community 60`, `Community 61`, `Community 62`, `Community 64`, `Community 65`, `Community 67`, `Community 68`, `apply_crm_create_by_scope`, `resolve_crm_product`, `customer_follow.py`, `storage.py`, `Community 83`, `Community 87`, `pl_ocr_service.py`, `opportunity_product.py`, `Community 92`, `test_pl_public_link_archived.py`, `LocalStorage`, `apply_crm_create_by_scope`, `site.py`, `apply_pl_scope`, `db_models.py`, `site.py`, `Community 116`, `Community 118`, `Community 122`, `customer_pool.py`?**
|
||||
_High betweenness centrality (0.106) - this node is a cross-community bridge._
|
||||
- **Why does `Settings` connect `price_letter_detail` to `Community 35`, `Community 67`, `Community 73`, `Community 42`, `Community 44`, `Community 46`, `Community 48`, `Community 53`, `Community 58`, `Community 59`, `build_annotated_result_bytes`, `Community 30`?**
|
||||
_High betweenness centrality (0.082) - this node is a cross-community bridge._
|
||||
- **Why does `generate_uuid()` connect `Community 56` to `Community 0`, `context.py`, `Community 5`, `Community 6`, `Community 4`, `opportunity_follow.py`, `Community 8`, `statistics.py`, `Community 136`, `utils.py`, `customer_follow.py`, `Community 14`, `Community 15`, `dict_data.py`, `Community 17`, `resolve_crm_product`, `Community 19`, `Community 16`, `Community 21`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 28`, `Community 29`, `Community 32`, `Community 33`, `Community 36`, `Community 39`, `Community 40`, `Community 41`, `Community 43`, `resolve_create_time_bounds`, `Community 47`, `Community 50`, `Community 51`, `Community 55`, `Community 11`, `Community 58`, `Community 60`, `Community 62`, `Community 64`, `Community 65`, `Community 67`, `Community 68`, `Community 72`, `Community 74`, `apply_crm_create_by_scope`, `opportunity_follow.py`, `storage.py`, `Community 83`, `Community 86`, `Community 87`, `pl_ocr_service.py`, `opportunity_product.py`, `Community 92`, `test_pl_public_link_archived.py`, `LocalStorage`, `redis_client.py`, `crm_supplier_hazard.py`, `apply_crm_create_by_scope`, `apply_pl_scope`, `Community 116`, `Community 118`, `Community 122`, `customer_pool.py`, `web_login_rsa_public_key`?**
|
||||
_High betweenness centrality (0.131) - this node is a cross-community bridge._
|
||||
- **Why does `BaseModel` connect `Community 12` to `Community 1`, `Community 2`, `list_product_options`, `product.py`, `Community 5`, `Community 7`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 15`, `opportunity_export`, `price_letter_detail`, `Community 18`, `Community 16`, `Community 20`, `Community 23`, `Community 27`, `Community 32`, `Community 40`, `Community 43`, `Community 44`, `Community 45`, `resolve_create_time_bounds`, `Community 47`, `Community 50`, `Community 51`, `Community 54`, `Community 57`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `Community 74`, `apply_crm_create_by_scope`, `customer_follow.py`, `Community 83`, `CrmProduct`, `minio_url.py`, `contact.py`, `tenant.py`, `site.py`, `_ensure_subpack_slip_no`, `site.py`, `get_web_auth_menu_codes`, `Community 119`, `sqlalchemy_exception_handler`, `Session`?**
|
||||
_High betweenness centrality (0.103) - this node is a cross-community bridge._
|
||||
- **Why does `get_tenant_no()` connect `Community 7` to `Community 0`, `Community 1`, `list_product_options`, `product.py`, `Community 5`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `opportunity_export`, `price_letter_detail`, `Community 18`, `Community 16`, `Community 20`, `Community 23`, `Community 27`, `Community 32`, `Community 39`, `Community 40`, `Community 43`, `resolve_create_time_bounds`, `Community 46`, `Community 49`, `Community 50`, `Community 51`, `Community 54`, `Community 58`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `Community 74`, `apply_crm_create_by_scope`, `Community 83`, `contact.py`, `crm_supplier_hazard.py`, `site.py`, `_ensure_subpack_slip_no`, `quote_share_log.py`, `sqlalchemy_exception_handler`?**
|
||||
_High betweenness centrality (0.091) - 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?**
|
||||
_578 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
_582 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
- **Should `Community 0` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.10017730496453901 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.11980676328502415 - nodes in this community are weakly interconnected._
|
||||
- **Should `Community 1` be split into smaller, more focused modules?**
|
||||
_Cohesion score 0.08076923076923077 - nodes in this community are weakly interconnected._
|
||||
_Cohesion score 0.09009009009009009 - nodes in this community are weakly interconnected._
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_py", "label": "test_bx_reimburse_my_page_size.py", "file_type": "code", "source_file": "tests/test_bx_reimburse_my_page_size.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_test_my_reimburses_page_size_query_bounds", "label": "test_my_reimburses_page_size_query_bounds()", "file_type": "code", "source_file": "tests/test_bx_reimburse_my_page_size.py", "source_location": "L8"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_py", "target": "inspect", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_bx_reimburse_my_page_size.py", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_py", "target": "fastapi_params", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_bx_reimburse_my_page_size.py", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_py", "target": "app_api_bx_reimburse", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_bx_reimburse_my_page_size.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_test_my_reimburses_page_size_query_bounds", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_bx_reimburse_my_page_size.py", "source_location": "L8", "weight": 1.0}], "raw_calls": [{"caller_nid": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_test_my_reimburses_page_size_query_bounds", "callee": "signature", "is_member_call": true, "source_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/tests/test_bx_reimburse_my_page_size.py", "source_location": "L9", "receiver": "inspect"}, {"caller_nid": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_test_my_reimburses_page_size_query_bounds", "callee": "my_reimburses", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/tests/test_bx_reimburse_my_page_size.py", "source_location": "L9"}, {"caller_nid": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_test_my_reimburses_page_size_query_bounds", "callee": "QueryParam", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/tests/test_bx_reimburse_my_page_size.py", "source_location": "L11"}], "callable_nids": ["users_wuzilong_work_00code_shanxia2_0_backend_tests_test_bx_reimburse_my_page_size_test_my_reimburses_page_size_query_bounds"]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "label": "dict_ensure.py", "file_type": "code", "source_file": "app/services/dict_ensure.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_dictensureerror", "label": "DictEnsureError", "file_type": "code", "source_file": "app/services/dict_ensure.py", "source_location": "L20"}, {"id": "valueerror", "label": "ValueError", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_ensure_dict_data", "label": "ensure_dict_data()", "file_type": "code", "source_file": "app/services/dict_ensure.py", "source_location": "L24"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/services/dict_ensure.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_ensure_remove_dict_data", "label": "ensure_remove_dict_data()", "file_type": "code", "source_file": "app/services/dict_ensure.py", "source_location": "L96"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_rationale_1", "label": "\u4e1a\u52a1\u9875\u5b57\u5178 ensure\uff1a\u767d\u540d\u5355\u5185\u6309 label \u590d\u7528\u6216\u63d2\u5165 sys_dict_data\u3002", "file_type": "rationale", "source_file": "app/services/dict_ensure.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "target": "sqlalchemy_orm", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "target": "app_core_utils", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "target": "app_models_models", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L10", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_dictensureerror", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_dictensureerror", "target": "valueerror", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_ensure_dict_data", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_ensure_dict_data", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_ensure_remove_dict_data", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L96", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_ensure_remove_dict_data", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "app/services/dict_ensure.py", "source_location": "L96", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_ensure_dict_data", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_services_dict_ensure_dictensureerror", "relation": "calls", "cLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_py", "label": "crm.py", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_category_tree", "label": "category_tree()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L330"}, {"id": "productcategorytreebody", "label": "ProductCategoryTreeBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_customer_list", "label": "customer_list()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L358"}, {"id": "customerlistbody", "label": "CustomerListBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_customer_detail", "label": "customer_detail()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L392"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_customer_options", "label": "customer_options()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L418"}, {"id": "customeroptionsbody", "label": "CustomerOptionsBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_customer_create", "label": "customer_create()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L442"}, {"id": "customercreatebody", "label": "CustomerCreateBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_customer_update", "label": "customer_update()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L472"}, {"id": "customerupdatebody", "label": "CustomerUpdateBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_customer_delete", "label": "customer_delete()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L499"}, {"id": "customerdeletebody", "label": "CustomerDeleteBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_customer_generate_no", "label": "customer_generate_no()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L527"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_category_add", "label": "category_add()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L543"}, {"id": "productcategorycreatebody", "label": "ProductCategoryCreateBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_category_update", "label": "category_update()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L562"}, {"id": "productcategoryupdatebody", "label": "ProductCategoryUpdateBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_category_delete", "label": "category_delete()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L582"}, {"id": "categorydeletebody", "label": "CategoryDeleteBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_product_list", "label": "product_list()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L602"}, {"id": "productlistbody", "label": "ProductListBody", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/crm.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_crm_product_detail", "label": "product_detail()", "file_type": "code", "source_file": "app/api/crm.py", "source_location": "L641"}, {"id": "productdetailbody", Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_py", "label": "public_io_order.py", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_models", "label": "_models()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L42"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_get_by_token", "label": "_get_by_token()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L48"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_io_order.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_resolve_io_order_link_flags", "label": "_resolve_io_order_link_flags()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L66"}, {"id": "plplan", "label": "PlPlan", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_io_order.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_parse_history_date", "label": "_parse_history_date()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L73"}, {"id": "date", "label": "date", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_io_order.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_history_status_label", "label": "_history_status_label()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L83"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_query_kind_history", "label": "_query_kind_history()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L93"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_build_history_page", "label": "_build_history_page()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L155"}, {"id": "publicioorderhistorypageread", "label": "PublicIoOrderHistoryPageRead", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/pl/public_io_order.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_build_page", "label": "_build_page()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L191"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_format_file_size", "label": "_format_file_size()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L203"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_make_handlers", "label": "_make_handlers()", "file_type": "code", "source_file": "app/api/pl/public_io_order.py", "source_location": "L211"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_rationale_1", "label": "\u8fd0\u8f93\u8ba1\u5212 \u00b7 \u5165\u5e93/\u51fa\u5e93\u5355\u73b0\u573a\u514d\u767b\u5f55\u516c\u5171 API", "file_type": "rationale", "source_file": "app/api/pl/public_io_order.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_rationale_67", "label": "\u8fd4\u56de (\u4f5c\u5e9f, \u5f52\u6863)\u3002\u73b0\u573a\u94fe\u63a5\u5b9e\u9645\u8d70\u5165\u5e93/\u51fa\u5e93\u5355\u516c\u5171\u9875\u3002", "file_type": "rationale", "source_file": "app/api/pl/public_io_order.py", "source_location": "L67"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_rationale_101", "label": "\u8fd4\u56de [(create_time, PublicIoOrderHistoryRecordRead), ...]\u3002", "file_type": "rationale", "source_file": "app/api/pl/public_io_order.py", "source_location": "L101"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/pl/public_io_order.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/api/pl/public_io_order.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_pl_public_io_order_py", "target": "decimal", "relation": "imports_from", "context": "import", "confiLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_py", "label": "test_dict_ensure.py", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_whitelist_contains_crm_types", "label": "test_whitelist_contains_crm_types()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L15"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_rejects_unknown_dict_type", "label": "test_ensure_rejects_unknown_dict_type()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L22"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_rejects_empty_label", "label": "test_ensure_rejects_empty_label()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L30"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_reuses_existing_label", "label": "test_ensure_reuses_existing_label()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L38"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_inserts_new_with_value_equals_label", "label": "test_ensure_inserts_new_with_value_equals_label()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L52"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_reuses_existing_by_preferred_value", "label": "test_ensure_reuses_existing_by_preferred_value()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L75"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_honors_explicit_preferred_value_on_insert", "label": "test_ensure_honors_explicit_preferred_value_on_insert()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L91"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_remove_soft_deletes_own_row", "label": "test_ensure_remove_soft_deletes_own_row()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L110"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_remove_rejects_other_users_row", "label": "test_ensure_remove_rejects_other_users_row()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L136"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_ensure_remove_rejects_unknown_type", "label": "test_ensure_remove_rejects_unknown_type()", "file_type": "code", "source_file": "tests/test_dict_ensure.py", "source_location": "L153"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_rationale_76", "label": "label miss, but preferred value already exists \u2192 reuse, no insert", "file_type": "rationale", "source_file": "tests/test_dict_ensure.py", "source_location": "L76"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_py", "target": "types", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_dict_ensure.py", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_py", "target": "unittest_mock", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_dict_ensure.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_py", "target": "pytest", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_dict_ensure.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_py", "target": "app_models_models", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_dict_ensure.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_py", "target": "app_services_dict_ensure", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_dict_ensure.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_test_whitelist_contains_crm_types", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_dict_ensure.py", "source_location": "L15", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_dict_ensure_py", "target": "users_wuzilong_work_00codeLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_py", "label": "product.py", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productcategorycreatebody", "label": "ProductCategoryCreateBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L12"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productcategoryupdatebody", "label": "ProductCategoryUpdateBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L26"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_categorydeletebody", "label": "CategoryDeleteBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L41"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productcategorytreebody", "label": "ProductCategoryTreeBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L47"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productupdatestatusbody", "label": "ProductUpdateStatusBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L56"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productlistbody", "label": "ProductListBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L66"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productbranditem", "label": "ProductBrandItem", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L93"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productaliasitem", "label": "ProductAliasItem", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L104"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productcreatebody", "label": "ProductCreateBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L114"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productupdatebody", "label": "ProductUpdateBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L151"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productdetailbody", "label": "ProductDetailBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L189"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productdeletebody", "label": "ProductDeleteBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L195"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productoptionsbody", "label": "ProductOptionsBody", "file_type": "code", "source_file": "app/schemas/crm/product.py", "source_location": "L202"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_rationale_1", "label": "CRM \u4ea7\u54c1\u6a21\u5757 Pydantic Schemas", "file_type": "rationale", "source_file": "app/schemas/crm/product.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_rationale_48", "label": "\u4ea7\u54c1\u5206\u7c7b\u6811\u67e5\u8be2\uff08\u5bc6\u6587\u89e3\u5bc6\u540e\u987b\u7528 Pydantic \u7ed1\u5b9a\uff0c\u88f8 dict=None \u5728\u90e8\u5206\u94fe\u8def\u4e0b\u4f1a\u4e22 body\uff09", "file_type": "rationale", "source_file": "app/schemas/crm/product.py", "source_location": "L48"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_py", "target": "decimal", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/crm/product.py", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/crm/product.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_py", "target": "pydantic", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/crm/product.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_crm_product_productcategorycreatebody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/crm/product.Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_py", "label": "reimburse.py", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_tenant", "label": "_tenant()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L41"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/reimburse.py"}, {"id": "bxusercontext", "label": "BxUserContext", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/reimburse.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_build_details_data", "label": "_build_details_data()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L45"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_get_generated_title", "label": "get_generated_title()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L82"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_download_reimburse_import_template", "label": "download_reimburse_import_template()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L99"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_import_reimburses", "label": "import_reimburses()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L131"}, {"id": "uploadfile", "label": "UploadFile", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/reimburse.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_list_reimburses", "label": "list_reimburses()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L147"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_my_reimburses", "label": "my_reimburses()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L193"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_my_reimburse_stats", "label": "my_reimburse_stats()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L238"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_reimburse_status_counts", "label": "reimburse_status_counts()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L248"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_pending_approval", "label": "pending_approval()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L257"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_pending_approval_stats", "label": "pending_approval_stats()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L289"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_approved_by_me", "label": "approved_by_me()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L299"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_get_reimburse", "label": "get_reimburse()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L331"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_get_approvals", "label": "get_approvals()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L345"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_get_approval_history", "label": "get_approval_history()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L358"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_create_reimburse", "label": "create_reimburse()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L371"}, {"id": "reimburseapplycreate", "label": "ReimburseApplyCreate", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/reimburse.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_bx_reimburse_update_reimburse", "label": "update_reimburse()", "file_type": "code", "source_file": "app/api/bx/reimburse.py", "source_location": "L425"}, {"id": "reimburseapplyupdate", "label": "ReimburseApplyUpdate", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/bx/reimburse.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_appLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_py", "label": "product.py", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L33"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_category_row_to_dict", "label": "_category_row_to_dict()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L43"}, {"id": "crmproductcategory", "label": "CrmProductCategory", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/crud/crm/product.py"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/crud/crm/product.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_list_categories", "label": "list_categories()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L59"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/crud/crm/product.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_build_category_tree", "label": "_build_category_tree()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L86"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_collect_category_with_ancestors", "label": "_collect_category_with_ancestors()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L97"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_list_category_tree", "label": "list_category_tree()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L113"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_get_category", "label": "get_category()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L146"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_create_category", "label": "create_category()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L158"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_update_category", "label": "update_category()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L195"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_soft_delete_category", "label": "soft_delete_category()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L234"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_category_code_exists", "label": "category_code_exists()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L274"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_brand_row_to_dict", "label": "_brand_row_to_dict()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L294"}, {"id": "crmproductbrand", "label": "CrmProductBrand", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/crud/crm/product.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_alias_row_to_dict", "label": "_alias_row_to_dict()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L303"}, {"id": "crmproductalias", "label": "CrmProductAlias", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/crud/crm/product.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_load_brands_aliases_maps", "label": "_load_brands_aliases_maps()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L311"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_assert_brand_deletable", "label": "_assert_brand_deletable()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L345"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_replace_product_brands", "label": "_replace_product_brands()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L382"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_crud_crm_product_replace_product_aliases", "label": "_replace_product_aliases()", "file_type": "code", "source_file": "app/crud/crm/product.py", "source_location": "L451"}, {"id": "users_wuzilonLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_py", "label": "io_order.py", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_brandoption", "label": "BrandOption", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L11"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_brandqtyitem", "label": "BrandQtyItem", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L17"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_ioorderitemread", "label": "IoOrderItemRead", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L24"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_ioorderitempatch", "label": "IoOrderItemPatch", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L51"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_ioorderpatch", "label": "IoOrderPatch", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L58"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_ioorderread", "label": "IoOrderRead", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L67"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_ioorderlistresponse", "label": "IoOrderListResponse", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L108"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_publicioorderitemfeedback", "label": "PublicIoOrderItemFeedback", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L113"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_publicioorderfeedback", "label": "PublicIoOrderFeedback", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L120"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_publicioorderhistoryrecordread", "label": "PublicIoOrderHistoryRecordRead", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L128"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_publicioorderhistorypageread", "label": "PublicIoOrderHistoryPageRead", "file_type": "code", "source_file": "app/schemas/pl/io_order.py", "source_location": "L148"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_rationale_1", "label": "\u5165\u5e93\u5355 / \u51fa\u5e93\u5355 Pydantic schemas", "file_type": "rationale", "source_file": "app/schemas/pl/io_order.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/pl/io_order.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_py", "target": "decimal", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/pl/io_order.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/pl/io_order.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_py", "target": "pydantic", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "app/schemas/pl/io_order.py", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_brandoption", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/pl/io_order.py", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_brandoption", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "app/schemas/pl/io_order.py", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_app_schemas_pl_io_order_brandqtyitem", "relation": "contains", "confidence": "EXTRACTED", "source_file": "app/schemas/pl/io_order.py", "source_locatioLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "label": "test_crm_name_pinyin_search.py", "file_type": "code", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_test_list_products_keyword_includes_name_and_pinyin", "label": "test_list_products_keyword_includes_name_and_pinyin()", "file_type": "code", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L10"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_test_list_products_keyword_selector_mode_excludes_product_no_includes_model", "label": "test_list_products_keyword_selector_mode_excludes_product_no_includes_model()", "file_type": "code", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L31"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_test_list_customers_keyword_includes_name_and_pinyin", "label": "test_list_customers_keyword_includes_name_and_pinyin()", "file_type": "code", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L60"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_test_list_customer_options_keyword_includes_name_and_pinyin", "label": "test_list_customer_options_keyword_includes_name_and_pinyin()", "file_type": "code", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L80"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_rationale_1", "label": "\u4ea7\u54c1/\u5ba2\u6237\u5217\u8868 keyword\uff1a\u540d\u79f0/\u7f16\u53f7/\u62fc\u97f3\u9996\u5b57\u6bcd OR \u5339\u914d\u3002", "file_type": "rationale", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_rationale_32", "label": "\u9009\u62e9\u5668\uff1a\u540d\u79f0/\u62fc\u97f3/\u89c4\u683c\u578b\u53f7\uff0c\u4e0d\u5339\u914d\u4ea7\u54c1\u7f16\u53f7\u3002", "file_type": "rationale", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L32"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "target": "unittest_mock", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "target": "app_crud_crm_customer", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "target": "app_crud_crm_product", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_test_list_products_keyword_includes_name_and_pinyin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L10", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_test_list_products_keyword_selector_mode_excludes_product_no_includes_model", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L31", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_test_list_customers_keyword_includes_name_and_pinyin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L60", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "target": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_test_list_customer_options_keyword_includes_name_and_pinyin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/test_crm_name_pinyin_search.py", "source_location": "L80", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_rationale_1", "target": "users_wuzilong_work_00code_shanxia2_0_backend_tests_test_crm_name_pinyin_search_py", "relation": "rationale_for",Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_py", "label": "admin.py", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L1"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_list_roles_for_select", "label": "list_roles_for_select()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L48"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "/Users/wuzilong/work/00code/shanxia2.0/backend/app/api/admin.py"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_list_users_for_select", "label": "list_users_for_select()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L80"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_list_roles_for_designer", "label": "list_roles_for_designer()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L106"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_tenantcreatebody", "label": "TenantCreateBody", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L127"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_tenantupdatebody", "label": "TenantUpdateBody", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L138"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_list_tenants", "label": "list_tenants()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L150"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_create_tenant", "label": "create_tenant()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L171"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_update_tenant", "label": "update_tenant()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L193"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_delete_tenant", "label": "delete_tenant()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L218"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_get_tenant_no", "label": "_get_tenant_no()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L235"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_usercreatebody", "label": "UserCreateBody", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L248"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_userupdatebody", "label": "UserUpdateBody", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L265"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_list_users", "label": "list_users()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L281"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_get_user_by_id", "label": "get_user_by_id()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L339"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_create_user", "label": "create_user()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L359"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_update_user", "label": "update_user()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L392"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_delete_user", "label": "delete_user()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L422"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_reset_user_password", "label": "reset_user_password()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L435"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_dicttypecreatebody", "label": "DictTypeCreateBody", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L452"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_dicttypeupdatebody", "label": "DictTypeUpdateBody", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L461"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_list_dict_types", "label": "list_dict_types()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L471"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_create_dict_type", "label": "create_dict_type()", "file_type": "code", "source_file": "app/api/admin.py", "source_location": "L487"}, {"id": "users_wuzilong_work_00code_shanxia2_0_backend_app_api_admin_update_dict_type", "label": "update_dict_type()", "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
|
||||
@@ -63,12 +63,12 @@
|
||||
</div>
|
||||
<div id="legend"></div>
|
||||
</div>
|
||||
<div id="stats">4612 nodes · 17089 edges · 176 communities</div>
|
||||
<div id="stats">4639 nodes · 16923 edges · 186 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": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 121, "community_name": "Session", "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": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "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": 121, "community_name": "Session", "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.9, "font": {"size": 12, "color": "#ffffff"}, "title": "admin.py", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 121}, {"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.8, "font": {"size": 0, "color": "#ffffff"}, "title": "Session", "community": 3, "community_name": "Community 3", "source_file": "", "file_type": "code", "degree": 58}, {"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": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantCreateBody", "community": 37, "community_name": "Community 37", "source_file": "app/api/admin.py", "file_type": "code", "degree": 11}, {"id": "app_api_admin_tenantupdatebody", "label": "TenantUpdateBody", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantUpdateBody", "community": 37, "community_name": "Community 37", "source_file": "app/api/admin.py", "file_type": "code", "degree": 11}, {"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": "#76B7B2"}}, "size": 10.3, 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": 48}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 40}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 50}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 68}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 79}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 73}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 53}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 178}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 71}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 75}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 42}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 61}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 47}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 24}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 24}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 77}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 76}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 35}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 42}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 39}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 34}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 64}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 43}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 58}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 39}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 15}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 35}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 68}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 77}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 65}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 27}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 36}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 35}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 40}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 27}, {"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": 33}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 10}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 44}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 47}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 26}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 34}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 62}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 33}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 31}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 26}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 36}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 23}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 11}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 29}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 21}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 14}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 29}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 26}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 35}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 14}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 25}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 31}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 30}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 38}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 50}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 45}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 24}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 30}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 62}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 58}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 58}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 14}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 26}, {"cid": 70, "color": "#4E79A7", Line 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": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 57, "community_name": "Community 57", "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": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "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": 57, "community_name": "Community 57", "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": 18.1, "font": {"size": 12, "color": "#ffffff"}, "title": "admin.py", "community": 3, "community_name": "Community 3", "source_file": "app/api/admin.py", "file_type": "code", "degree": 125}, {"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.9, "font": {"size": 0, "color": "#ffffff"}, "title": "Session", "community": 3, "community_name": "Community 3", "source_file": "", "file_type": "code", "degree": 60}, {"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": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantCreateBody", "community": 45, "community_name": "Community 45", "source_file": "app/api/admin.py", "file_type": "code", "degree": 11}, {"id": "app_api_admin_tenantupdatebody", "label": "TenantUpdateBody", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "TenantUpdateBody", "community": 45, "community_name": "Community 45", "source_file": "app/api/admin.py", "file_type": "code", "degree": 11}, {"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": "#76B7B2"}}, "size"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": 46}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 37}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 20}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 75}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 63}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 83}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 33}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 130}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 49}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 52}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 26}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 61}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 81}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 26}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 38}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 86}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 66}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 34}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 72}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 15}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 40}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 64}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 43}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 59}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 24}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 13}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 33}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 35}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 59}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 66}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 27}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 29}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 49}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 18}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 33}, {"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": 31}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 15}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 44}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 42}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 57}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 34}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 64}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 25}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 35}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 37}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 35}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 23}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 11}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 34}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 21}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 20}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 29}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 62}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 9}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 31}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 19}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 24}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 30}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 18}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 16}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 29}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 16}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 41}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 68}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 25}, {"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": 43}, {"cid": 70, "color": "#4E79A7", "Line truncated
|
||||
|
||||
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
||||
function esc(s) {
|
||||
|
||||
+5355
-6954
File diff suppressed because it is too large.
Load diff
@@ -10,8 +10,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/admin.py": {
|
||||
"mtime": 1786164471.3850935,
|
||||
"ast_hash": "d0ec6137607e9dc5f49e049ca72eb798",
|
||||
"mtime": 1787220370.8659623,
|
||||
"ast_hash": "6d88a608b9edf8f2a6e21453fd2a3030",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/__init__.py": {
|
||||
@@ -45,8 +45,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/reimburse.py": {
|
||||
"mtime": 1786953500.862205,
|
||||
"ast_hash": "7f8ab65012210296805864f17dd4a23b",
|
||||
"mtime": 1787292827.7676315,
|
||||
"ast_hash": "c23dec0233165fd1af5f0baae7145391",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/bx/workflow.py": {
|
||||
@@ -55,8 +55,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/crm.py": {
|
||||
"mtime": 1785808418.671982,
|
||||
"ast_hash": "a30d4b2d4cdcf06d2a6f01e28a0c2fcb",
|
||||
"mtime": 1787293703.6985583,
|
||||
"ast_hash": "b525fc2d5ef8de84f27f477ddcd87aad",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/crm_contract_routes.py": {
|
||||
@@ -155,13 +155,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/plan.py": {
|
||||
"mtime": 1786885472.5030537,
|
||||
"ast_hash": "f5020cc3715a0da38ec34ea8298d7cf2",
|
||||
"mtime": 1787278873.7961476,
|
||||
"ast_hash": "ca11b671db9f5d4fd7138a3aed88be11",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/public_io_order.py": {
|
||||
"mtime": 1785969250.5664592,
|
||||
"ast_hash": "7fc4764733f4958838d56664aed4b501",
|
||||
"mtime": 1787286154.3652413,
|
||||
"ast_hash": "424a29d161e9d7a006c38d05aa608b6d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/public_site.py": {
|
||||
@@ -170,8 +170,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/public_transport.py": {
|
||||
"mtime": 1785969005.314447,
|
||||
"ast_hash": "d811e61d7519874f41202bdd7a1c5aa6",
|
||||
"mtime": 1787282688.1905942,
|
||||
"ast_hash": "f4803f3cc1038dd97ade634a90945aa9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/transport.py": {
|
||||
@@ -180,8 +180,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/transport_address.py": {
|
||||
"mtime": 1784993134.0,
|
||||
"ast_hash": "b46673e553d2f4620d39aae6f0c3a128",
|
||||
"mtime": 1787277380.1085398,
|
||||
"ast_hash": "b79eab98f7537a1767138402b9f22c0d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/pl/vehicle_maintenance.py": {
|
||||
@@ -410,8 +410,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract.py": {
|
||||
"mtime": 1786863780.7033699,
|
||||
"ast_hash": "783e2d3c50225588fcde4ede86c577ed",
|
||||
"mtime": 1787132857.3574011,
|
||||
"ast_hash": "bc090013cb5b1fd718f23d07b126b733",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract_approval.py": {
|
||||
@@ -425,8 +425,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/contract_product.py": {
|
||||
"mtime": 1786031232.2085078,
|
||||
"ast_hash": "4f46b853fd6b3c81ec9ac9489d28e9b8",
|
||||
"mtime": 1787130846.1417708,
|
||||
"ast_hash": "4c0a8c790bf09c467cfa778054e44e56",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/customer.py": {
|
||||
@@ -480,8 +480,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/product.py": {
|
||||
"mtime": 1786094315.6811244,
|
||||
"ast_hash": "d6ea0dbcf8ede9c05568b9a9613320db",
|
||||
"mtime": 1787293668.683282,
|
||||
"ast_hash": "da4c7d8530f8cb77739fc96940450df1",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/crud/crm/quote.py": {
|
||||
@@ -620,8 +620,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/crm_models.py": {
|
||||
"mtime": 1786171074.9211452,
|
||||
"ast_hash": "3108b3d96a3377f347456d5b7ad7c3c9",
|
||||
"mtime": 1787130817.7947948,
|
||||
"ast_hash": "5ee9b7791b1c97edbc17014e9aab2f5d",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/db_models.py": {
|
||||
@@ -715,8 +715,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/contract.py": {
|
||||
"mtime": 1786239355.7093923,
|
||||
"ast_hash": "dd33cb6f4ffee2c8f5737182c3c1497a",
|
||||
"mtime": 1787130826.2278907,
|
||||
"ast_hash": "c99bcc40110fac739e82797714a69844",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/contract_approver_setting.py": {
|
||||
@@ -760,8 +760,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/product.py": {
|
||||
"mtime": 1786094283.3140867,
|
||||
"ast_hash": "2113f33131b1fcbc250465b7243029da",
|
||||
"mtime": 1787293668.6831603,
|
||||
"ast_hash": "9766adb75810663ecac94a2933e5fff0",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/crm/quote.py": {
|
||||
@@ -835,13 +835,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/__init__.py": {
|
||||
"mtime": 1786203494.3296576,
|
||||
"ast_hash": "b7920c32ba18bca6b047446059e97d57",
|
||||
"mtime": 1787198187.9137607,
|
||||
"ast_hash": "ad4432fdb117062d34913e058e82fdf1",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/base_data.py": {
|
||||
"mtime": 1785637803.20416,
|
||||
"ast_hash": "8a998a55e4bc7532852a48b77a3397ea",
|
||||
"mtime": 1787200527.8208919,
|
||||
"ast_hash": "fd9abf326ca8d9ef29cf460e9cfbb8ac",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/datetime_parse.py": {
|
||||
@@ -860,8 +860,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/io_order.py": {
|
||||
"mtime": 1785967869.0524,
|
||||
"ast_hash": "fd8021a2c991b1c02237d60ed7ea3af1",
|
||||
"mtime": 1787286144.0774581,
|
||||
"ast_hash": "6e528992d8c401f8e9539ce48e656268",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/menu_badge.py": {
|
||||
@@ -870,13 +870,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/paste_recognize.py": {
|
||||
"mtime": 1785808688.3868103,
|
||||
"ast_hash": "8720817ed0646cd7d00d7ba9f0690bc0",
|
||||
"mtime": 1787201019.8200278,
|
||||
"ast_hash": "88ad005e7557f44dabe2282f00f8f0de",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/plan.py": {
|
||||
"mtime": 1786203421.9045327,
|
||||
"ast_hash": "87763f7d7771e6341ffbcdf911351f5e",
|
||||
"mtime": 1787278860.7404675,
|
||||
"ast_hash": "e2330f1ccaa052f56ef203ea3bc73de3",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/resource_snapshot.py": {
|
||||
@@ -885,8 +885,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/transport.py": {
|
||||
"mtime": 1785968996.0035603,
|
||||
"ast_hash": "219ba1cd026db8463bf987541c865896",
|
||||
"mtime": 1787282296.7963567,
|
||||
"ast_hash": "937f86f8be800138db7cb8092d5ef5c0",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/pl/transport_address.py": {
|
||||
@@ -1040,8 +1040,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_cert_required_service.py": {
|
||||
"mtime": 1785643505.274516,
|
||||
"ast_hash": "b98cd18f818dd489894b663b4e0a811f",
|
||||
"mtime": 1787200437.8182042,
|
||||
"ast_hash": "e7c4f9a292ee90e4284ccda739066601",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_cert_service.py": {
|
||||
@@ -1085,8 +1085,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_menu_badge_service.py": {
|
||||
"mtime": 1783258109.0,
|
||||
"ast_hash": "2819fceaa269a00af0f7983b8be27cdb",
|
||||
"mtime": 1787199006.5479605,
|
||||
"ast_hash": "3857f682b2594f4b42d9390a2a41c56e",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_ocr_service.py": {
|
||||
@@ -1095,18 +1095,18 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_paste_recognize_service.py": {
|
||||
"mtime": 1785808688.436616,
|
||||
"ast_hash": "ad1eb07fcfe0800419e4b80c7493f26d",
|
||||
"mtime": 1787201020.688178,
|
||||
"ast_hash": "7025fdc7f96668db7295824e2beef6a6",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_personnel_service.py": {
|
||||
"mtime": 1783845044.0,
|
||||
"ast_hash": "94f2517f259023b46dfef7f0f74fede3",
|
||||
"mtime": 1787140670.5933692,
|
||||
"ast_hash": "df714dfb82d5d1777499ab6180b761e3",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_plan_service.py": {
|
||||
"mtime": 1786204013.4685726,
|
||||
"ast_hash": "8ee28eee450db2496cb4e5a687655c6d",
|
||||
"mtime": 1787195004.716748,
|
||||
"ast_hash": "1c2e4be0f6ca141d4b8a2ff3d5511fc2",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_product_display.py": {
|
||||
@@ -1160,8 +1160,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/tasks/__init__.py": {
|
||||
"mtime": 1783208067.0,
|
||||
"ast_hash": "65f48f08b50ecea837b57abb9f1e01bb",
|
||||
"mtime": 1787140680.3792932,
|
||||
"ast_hash": "2d651868335e57015c66149887c4b0ce",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/tasks/customer_pool.py": {
|
||||
@@ -1530,8 +1530,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_crm_name_pinyin_search.py": {
|
||||
"mtime": 1786094657.392019,
|
||||
"ast_hash": "cd9d359114a86b80ad39cb19b61be435",
|
||||
"mtime": 1787293720.0864913,
|
||||
"ast_hash": "859c85ee2163c95789eb29e1fdb572c9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_pinyin_abbr.py": {
|
||||
@@ -1540,8 +1540,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/duty.py": {
|
||||
"mtime": 1786962300.7785535,
|
||||
"ast_hash": "373ab9a759e0aa3f4a37bc827afe00f8",
|
||||
"mtime": 1787234033.9137535,
|
||||
"ast_hash": "ccf7e59af0e0404edfd9c131a557ce34",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/api/public_duty.py": {
|
||||
@@ -1555,13 +1555,13 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/models/duty_models.py": {
|
||||
"mtime": 1786968943.7894385,
|
||||
"ast_hash": "ac4ef5228cbf8821ca6abf160b11634e",
|
||||
"mtime": 1787233986.1581693,
|
||||
"ast_hash": "2ef1c6a59c58f94b060fb9d538fa11f7",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/duty.py": {
|
||||
"mtime": 1786968917.036718,
|
||||
"ast_hash": "48a191d6b71d0367844a20c0b58ced32",
|
||||
"mtime": 1787233986.15777,
|
||||
"ast_hash": "9842cdd57c5c37306c052da67ee8fac9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/schemas/menu_favorite.py": {
|
||||
@@ -1575,8 +1575,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/duty_schedule.py": {
|
||||
"mtime": 1786968943.2990172,
|
||||
"ast_hash": "95a2c1fd6c9848f584fbbd5e817d42ea",
|
||||
"mtime": 1787234210.6898406,
|
||||
"ast_hash": "b52deffb5e6a20a98e797c9afc25894f",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_internal_customer.py": {
|
||||
@@ -1584,31 +1584,6 @@
|
||||
"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",
|
||||
@@ -1625,13 +1600,98 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_duty_schedule.py": {
|
||||
"mtime": 1786962525.0293584,
|
||||
"ast_hash": "b4f8930c8641f23bba5a411774fa66bc",
|
||||
"mtime": 1787234218.5751219,
|
||||
"ast_hash": "7539c27a87f0e442b8031b5c7a89c5e8",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_menu_favorite_crud.py": {
|
||||
"mtime": 1786161663.839656,
|
||||
"ast_hash": "4404ae2a3524b330074edb2605990226",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/core/id_card.py": {
|
||||
"mtime": 1787140660.3752768,
|
||||
"ast_hash": "ea14b76f1b299c27e47c02fb4eacf5ea",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/bx/reimburse_import.py": {
|
||||
"mtime": 1787059477.5401058,
|
||||
"ast_hash": "b34213a76b56cf3897f06a207dfb93a1",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/dict_ensure.py": {
|
||||
"mtime": 1787296137.624254,
|
||||
"ast_hash": "3e999cc609a5546b724791ee7e1219a7",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/services/pl_plan_contract_gap.py": {
|
||||
"mtime": 1787202689.374864,
|
||||
"ast_hash": "8cf065f81ee8b548875211cd6ed18b2b",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/tasks/pl_personnel_age.py": {
|
||||
"mtime": 1787140671.7765138,
|
||||
"ast_hash": "6645d9c056aad90f64cdd7fb33eb3daa",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"app/utils/excel_list_validation.py": {
|
||||
"mtime": 1787058157.6880832,
|
||||
"ast_hash": "e17d6c4acc619bd2a3d14800dd3432ee",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260820_duty_shift_dict_time.sql": {
|
||||
"mtime": 1787230059.4213135,
|
||||
"ast_hash": "5442a321ea0d78f90df78d0d1c52fdfb",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260820_duty_time_range_dict.sql": {
|
||||
"mtime": 1787234296.4603348,
|
||||
"ast_hash": "1c0d678eb254feec33e31894c40097be",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260820_pl_plan_contract_complete_menu.sql": {
|
||||
"mtime": 1787235628.9670775,
|
||||
"ast_hash": "686849e28378a8d0c824f89794bfc26a",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"scripts/migrate_20260821_pl_plan_force_follow_status_menu.sql": {
|
||||
"mtime": 1787278886.924597,
|
||||
"ast_hash": "68340d696269746964619abe56d58970",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_bx_reimburse_import.py": {
|
||||
"mtime": 1787059491.7636578,
|
||||
"ast_hash": "b8fa1f5145c190fc2c3cfd384c2af145",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_bx_reimburse_my_page_size.py": {
|
||||
"mtime": 1787292906.6472108,
|
||||
"ast_hash": "f2c2edf993a2bb24e1f9f61a4b7a2d91",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_dict_ensure.py": {
|
||||
"mtime": 1787296131.347678,
|
||||
"ast_hash": "6e2dc0f1608b406a93d23b1094f994e9",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_id_card_age.py": {
|
||||
"mtime": 1787140680.9154348,
|
||||
"ast_hash": "23f28ca2ee80a5522bbc0b254af4d126",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_pl_plan_contract_gap.py": {
|
||||
"mtime": 1787198187.9137385,
|
||||
"ast_hash": "ba5f68e7e5a0a26b64ea3c7f625559cf",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_pl_public_transport_history.py": {
|
||||
"mtime": 1787282256.679657,
|
||||
"ast_hash": "3ee5e8aae73062ce8a98ba0bb242dfce",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"tests/test_pl_trailer_cert_rules.py": {
|
||||
"mtime": 1787200408.1128635,
|
||||
"ast_hash": "1cea826045c760885d98f5412bafea49",
|
||||
"semantic_hash": ""
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,36 @@ def test_list_products_keyword_includes_name_and_pinyin():
|
||||
keyword_expr = " ".join(str(a) for a in q.filter.call_args_list[1][0])
|
||||
assert "product_name" in keyword_expr
|
||||
assert "name_pinyin_abbr" in keyword_expr
|
||||
assert "product_no" in keyword_expr
|
||||
|
||||
|
||||
def test_list_products_keyword_selector_mode_excludes_product_no_includes_model():
|
||||
"""选择器:名称/拼音/规格型号,不匹配产品编号。"""
|
||||
db = MagicMock()
|
||||
q = MagicMock()
|
||||
db.query.return_value = q
|
||||
q.filter.return_value = q
|
||||
q.order_by.return_value = q
|
||||
q.with_entities.return_value = q
|
||||
q.scalar.return_value = 0
|
||||
q.offset.return_value = q
|
||||
q.limit.return_value = q
|
||||
q.all.return_value = []
|
||||
|
||||
list_products(
|
||||
db,
|
||||
"shanxia2.0",
|
||||
keyword="32",
|
||||
match_product_no=False,
|
||||
match_model=True,
|
||||
)
|
||||
|
||||
assert q.filter.call_count >= 2
|
||||
keyword_expr = " ".join(str(a) for a in q.filter.call_args_list[1][0])
|
||||
assert "product_name" in keyword_expr
|
||||
assert "name_pinyin_abbr" in keyword_expr
|
||||
assert "model" in keyword_expr
|
||||
assert "product_no" not in keyword_expr
|
||||
|
||||
|
||||
def test_list_customers_keyword_includes_name_and_pinyin():
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
import pytest
|
||||
|
||||
from app.models.models import SysDictData
|
||||
from app.services.dict_ensure import (
|
||||
DICT_ENSURE_WHITELIST,
|
||||
DictEnsureError,
|
||||
ensure_dict_data,
|
||||
ensure_remove_dict_data,
|
||||
)
|
||||
|
||||
|
||||
def test_whitelist_contains_crm_types():
|
||||
assert "crm_product_gg" in DICT_ENSURE_WHITELIST
|
||||
assert "crm_shfs" in DICT_ENSURE_WHITELIST
|
||||
assert "crm_product_unit" in DICT_ENSURE_WHITELIST
|
||||
assert "crm_customer_park" in DICT_ENSURE_WHITELIST
|
||||
|
||||
|
||||
def test_ensure_rejects_unknown_dict_type():
|
||||
db = MagicMock()
|
||||
with pytest.raises(DictEnsureError, match="不支持"):
|
||||
ensure_dict_data(
|
||||
db, tenant_no="t1", dict_type="sys_user_sex", label="男", user_id="u1"
|
||||
)
|
||||
|
||||
|
||||
def test_ensure_rejects_empty_label():
|
||||
db = MagicMock()
|
||||
with pytest.raises(DictEnsureError, match="不能为空"):
|
||||
ensure_dict_data(
|
||||
db, tenant_no="t1", dict_type="crm_shfs", label=" ", user_id="u1"
|
||||
)
|
||||
|
||||
|
||||
def test_ensure_reuses_existing_label():
|
||||
db = MagicMock()
|
||||
existing = SimpleNamespace(dict_label="自提", dict_value="自提")
|
||||
q = MagicMock()
|
||||
q.filter.return_value.first.return_value = existing
|
||||
db.query.return_value = q
|
||||
|
||||
result = ensure_dict_data(
|
||||
db, tenant_no="t1", dict_type="crm_shfs", label="自提", user_id="u1"
|
||||
)
|
||||
assert result == {"label": "自提", "value": "自提", "created": False}
|
||||
db.add.assert_not_called()
|
||||
|
||||
|
||||
def test_ensure_inserts_new_with_value_equals_label():
|
||||
db = MagicMock()
|
||||
q = MagicMock()
|
||||
# existing by label: None; clash by value: None
|
||||
q.filter.return_value.first.side_effect = [None, None]
|
||||
db.query.return_value = q
|
||||
|
||||
result = ensure_dict_data(
|
||||
db, tenant_no="t1", dict_type="crm_product_gg", label="吨袋装", user_id="u1"
|
||||
)
|
||||
assert result == {"label": "吨袋装", "value": "吨袋装", "created": True}
|
||||
db.add.assert_called_once()
|
||||
db.flush.assert_called_once()
|
||||
db.commit.assert_not_called()
|
||||
added = db.add.call_args[0][0]
|
||||
assert isinstance(added, SysDictData)
|
||||
assert added.dict_type == "crm_product_gg"
|
||||
assert added.dict_label == "吨袋装"
|
||||
assert added.dict_value == "吨袋装"
|
||||
assert added.tenant_no == "t1"
|
||||
assert added.create_by == "u1"
|
||||
|
||||
|
||||
def test_ensure_reuses_existing_by_preferred_value():
|
||||
"""label miss, but preferred value already exists → reuse, no insert"""
|
||||
db = MagicMock()
|
||||
existing = SimpleNamespace(dict_label="旧标签", dict_value="吨袋装")
|
||||
q = MagicMock()
|
||||
# first query by label → None; second by value → existing
|
||||
q.filter.return_value.first.side_effect = [None, existing]
|
||||
db.query.return_value = q
|
||||
|
||||
result = ensure_dict_data(
|
||||
db, tenant_no="t1", dict_type="crm_product_gg", label="吨袋装", user_id="u1"
|
||||
)
|
||||
assert result == {"label": "旧标签", "value": "吨袋装", "created": False}
|
||||
db.add.assert_not_called()
|
||||
|
||||
|
||||
def test_ensure_honors_explicit_preferred_value_on_insert():
|
||||
db = MagicMock()
|
||||
q = MagicMock()
|
||||
q.filter.return_value.first.side_effect = [None, None]
|
||||
db.query.return_value = q
|
||||
|
||||
result = ensure_dict_data(
|
||||
db,
|
||||
tenant_no="t1",
|
||||
dict_type="crm_product_gg",
|
||||
label="吨袋装",
|
||||
user_id="u1",
|
||||
preferred_value="custom_gg",
|
||||
)
|
||||
assert result == {"label": "吨袋装", "value": "custom_gg", "created": True}
|
||||
added = db.add.call_args[0][0]
|
||||
assert added.dict_value == "custom_gg"
|
||||
|
||||
|
||||
def test_ensure_remove_soft_deletes_own_row():
|
||||
db = MagicMock()
|
||||
row = SimpleNamespace(
|
||||
dict_value="吨袋装",
|
||||
create_by="u1",
|
||||
del_flag=0,
|
||||
update_by=None,
|
||||
update_time=None,
|
||||
)
|
||||
q = MagicMock()
|
||||
q.filter.return_value.first.return_value = row
|
||||
db.query.return_value = q
|
||||
|
||||
ensure_remove_dict_data(
|
||||
db,
|
||||
tenant_no="t1",
|
||||
dict_type="crm_product_gg",
|
||||
value="吨袋装",
|
||||
user_id="u1",
|
||||
)
|
||||
assert row.del_flag == 1
|
||||
assert row.update_by == "u1"
|
||||
db.add.assert_called_once_with(row)
|
||||
db.flush.assert_called_once()
|
||||
|
||||
|
||||
def test_ensure_remove_rejects_other_users_row():
|
||||
db = MagicMock()
|
||||
row = SimpleNamespace(dict_value="吨袋装", create_by="other", del_flag=0)
|
||||
q = MagicMock()
|
||||
q.filter.return_value.first.return_value = row
|
||||
db.query.return_value = q
|
||||
|
||||
with pytest.raises(DictEnsureError, match="无权|不能删除|不允许"):
|
||||
ensure_remove_dict_data(
|
||||
db,
|
||||
tenant_no="t1",
|
||||
dict_type="crm_product_gg",
|
||||
value="吨袋装",
|
||||
user_id="u1",
|
||||
)
|
||||
|
||||
|
||||
def test_ensure_remove_rejects_unknown_type():
|
||||
db = MagicMock()
|
||||
with pytest.raises(DictEnsureError, match="不支持"):
|
||||
ensure_remove_dict_data(
|
||||
db,
|
||||
tenant_no="t1",
|
||||
dict_type="sys_user_sex",
|
||||
value="1",
|
||||
user_id="u1",
|
||||
)
|
||||
Reference in new issue
Block a user