提交
This commit is contained in:
1 parent
3520f9ce90
commit
0e60b88cba
104 files changed
+344311
-250708
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
38943
|
||||
24017
|
||||
@@ -44,16 +44,24 @@ def _avatar_url_field(user: SysUser) -> Optional[str]:
|
||||
return s if s else None
|
||||
|
||||
|
||||
def _web_role_list(web_role: str) -> list[str]:
|
||||
"""与 web-admin 静态路由 meta.roles(admin/super_admin)对齐的单元素数组。"""
|
||||
role = (web_role or "").strip() or settings.WEB_AUTH_DEFAULT_ROLE
|
||||
return [role]
|
||||
|
||||
|
||||
def _build_user_info_payload(user: SysUser, web_role: str) -> dict:
|
||||
"""与 web-admin `userInfo` 字段约定一致。"""
|
||||
phone = (getattr(user, "phone_no", None) or "").strip() or None
|
||||
role = (web_role or "").strip() or settings.WEB_AUTH_DEFAULT_ROLE
|
||||
return {
|
||||
"id": user.id,
|
||||
"username": user.user_no,
|
||||
"realName": user.nick_name,
|
||||
"phone": phone,
|
||||
"email": (getattr(user, "email", None) or "").strip() or None,
|
||||
"role": web_role,
|
||||
"role": role,
|
||||
"roles": _web_role_list(role),
|
||||
"regionId": user.dept_id,
|
||||
"regionName": None,
|
||||
"avatarUrl": _avatar_url_field(user),
|
||||
@@ -231,6 +239,7 @@ def get_current_user_profile(request: Request, db: Session = Depends(get_db)):
|
||||
|
||||
au = current_user.get("avatar_url")
|
||||
avatar_url = str(au).strip() if au else None
|
||||
web_role = str(current_user.get("role") or "").strip() or settings.WEB_AUTH_DEFAULT_ROLE
|
||||
return success_response(
|
||||
{
|
||||
"id": current_user.get("user_id"),
|
||||
@@ -238,8 +247,9 @@ def get_current_user_profile(request: Request, db: Session = Depends(get_db)):
|
||||
"realName": current_user.get("real_name"),
|
||||
"phone": current_user.get("phone"),
|
||||
"email": current_user.get("email"),
|
||||
"role": current_user.get("role"),
|
||||
"isSuperAdmin": current_user.get("role") == "super_admin",
|
||||
"role": web_role,
|
||||
"roles": _web_role_list(web_role),
|
||||
"isSuperAdmin": web_role == "super_admin",
|
||||
"regionId": current_user.get("region_id"),
|
||||
"regionName": None,
|
||||
"regionIds": [],
|
||||
|
||||
@@ -68,50 +68,93 @@ def resolve_web_role_for_user(db: Session, user_id: str, tenant_no: Optional[str
|
||||
return "admin"
|
||||
|
||||
|
||||
def _granted_menu_ids_for_user(db: Session, user_id: str, tenant: str) -> Set[str]:
|
||||
rows = (
|
||||
db.query(SysMenu.id)
|
||||
.join(
|
||||
SysRoleMenu,
|
||||
and_(
|
||||
SysRoleMenu.menu_id == SysMenu.id,
|
||||
SysRoleMenu.del_flag == 0,
|
||||
SysRoleMenu.tenant_no == tenant,
|
||||
),
|
||||
)
|
||||
.join(
|
||||
SysUserRole,
|
||||
and_(
|
||||
SysUserRole.role_id == SysRoleMenu.role_id,
|
||||
SysUserRole.user_id == user_id,
|
||||
SysUserRole.del_flag == 0,
|
||||
SysUserRole.tenant_no == tenant,
|
||||
),
|
||||
)
|
||||
.filter(
|
||||
SysMenu.del_flag == 0,
|
||||
SysMenu.tenant_no == tenant,
|
||||
SysMenu.status == "1",
|
||||
SysMenu.visible == "1",
|
||||
)
|
||||
.distinct()
|
||||
.all()
|
||||
)
|
||||
return {str(r[0]).strip() for r in rows if r and r[0]}
|
||||
|
||||
|
||||
def _expand_with_ancestor_menu_ids(db: Session, menu_ids: Set[str], tenant: str) -> Set[str]:
|
||||
"""角色仅勾选按钮(F)时,补齐祖先 C/M 菜单 id,便于前端匹配 :list 路由。"""
|
||||
expanded = set(menu_ids)
|
||||
frontier = list(menu_ids)
|
||||
while frontier:
|
||||
rows = (
|
||||
db.query(SysMenu.parent_id)
|
||||
.filter(
|
||||
SysMenu.id.in_(frontier),
|
||||
SysMenu.del_flag == 0,
|
||||
SysMenu.tenant_no == tenant,
|
||||
)
|
||||
.all()
|
||||
)
|
||||
next_frontier: list[str] = []
|
||||
for (parent_id,) in rows:
|
||||
pid = str(parent_id or "").strip()
|
||||
if pid and pid not in expanded:
|
||||
expanded.add(pid)
|
||||
next_frontier.append(pid)
|
||||
frontier = next_frontier
|
||||
return expanded
|
||||
|
||||
|
||||
def iter_user_menu_perm_codes(
|
||||
db: Session, user_id: str, tenant_no: Optional[str] = None
|
||||
) -> Set[str]:
|
||||
"""用户通过角色关联得到的菜单权限标识(sys_menu.perms,空则退回菜单 id)。"""
|
||||
"""用户通过角色关联得到的菜单权限标识(sys_menu.perms,与前端 meta.menuCode 对齐)。"""
|
||||
if not user_id:
|
||||
return set()
|
||||
if not user_has_bound_roles(db, user_id, tenant_no):
|
||||
return set()
|
||||
tenant = settings.DEFAULT_TENANT_NO
|
||||
tenant = (tenant_no or "").strip() or settings.DEFAULT_TENANT_NO
|
||||
try:
|
||||
q = (
|
||||
db.query(SysMenu.perms, SysMenu.id)
|
||||
.join(
|
||||
SysRoleMenu,
|
||||
and_(
|
||||
SysRoleMenu.menu_id == SysMenu.id,
|
||||
SysRoleMenu.del_flag == 0,
|
||||
SysRoleMenu.tenant_no == tenant,
|
||||
),
|
||||
)
|
||||
.join(
|
||||
SysUserRole,
|
||||
and_(
|
||||
SysUserRole.role_id == SysRoleMenu.role_id,
|
||||
SysUserRole.user_id == user_id,
|
||||
SysUserRole.del_flag == 0,
|
||||
SysUserRole.tenant_no == tenant,
|
||||
),
|
||||
)
|
||||
menu_ids = _granted_menu_ids_for_user(db, user_id, tenant)
|
||||
if not menu_ids and tenant != settings.DEFAULT_TENANT_NO:
|
||||
menu_ids = _granted_menu_ids_for_user(db, user_id, settings.DEFAULT_TENANT_NO)
|
||||
if not menu_ids:
|
||||
return set()
|
||||
all_menu_ids = _expand_with_ancestor_menu_ids(db, menu_ids, tenant)
|
||||
rows = (
|
||||
db.query(SysMenu.perms)
|
||||
.filter(
|
||||
SysMenu.id.in_(all_menu_ids),
|
||||
SysMenu.del_flag == 0,
|
||||
SysMenu.tenant_no == tenant,
|
||||
SysMenu.status == "1",
|
||||
SysMenu.visible == "1",
|
||||
)
|
||||
.distinct()
|
||||
.all()
|
||||
)
|
||||
out: Set[str] = set()
|
||||
for perms, mid in q.all():
|
||||
for (perms,) in rows:
|
||||
p = (perms or "").strip()
|
||||
if p:
|
||||
out.add(p)
|
||||
elif mid:
|
||||
out.add(str(mid).strip())
|
||||
return out
|
||||
except Exception:
|
||||
return set()
|
||||
@@ -166,5 +166,18 @@
|
||||
"164": "Community 164",
|
||||
"165": "Community 165",
|
||||
"166": "Community 166",
|
||||
"167": "Community 167"
|
||||
"167": "Community 167",
|
||||
"168": "Community 168",
|
||||
"169": "Community 169",
|
||||
"170": "Community 170",
|
||||
"171": "Community 171",
|
||||
"172": "Community 172",
|
||||
"173": "Community 173",
|
||||
"174": "Community 174",
|
||||
"175": "Community 175",
|
||||
"176": "Community 176",
|
||||
"177": "Community 177",
|
||||
"178": "Community 178",
|
||||
"179": "Community 179",
|
||||
"180": "Community 180"
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
# Graph Report - backend (2026-07-12)
|
||||
# Graph Report - backend (2026-07-13)
|
||||
|
||||
## Corpus Check
|
||||
- 248 files · ~172,565 words
|
||||
- 261 files · ~186,595 words
|
||||
- Verdict: corpus is large enough that graph structure adds value.
|
||||
|
||||
## Summary
|
||||
- 5520 nodes · 39168 edges · 140 communities (137 shown, 3 thin omitted)
|
||||
- Extraction: 51% EXTRACTED · 49% INFERRED · 0% AMBIGUOUS · INFERRED: 19039 edges (avg confidence: 0.5)
|
||||
- 5750 nodes · 39893 edges · 181 communities (178 shown, 3 thin omitted)
|
||||
- Extraction: 52% EXTRACTED · 48% INFERRED · 0% AMBIGUOUS · INFERRED: 19089 edges (avg confidence: 0.5)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Graph Freshness
|
||||
- Built from commit: `2142b33c`
|
||||
- Built from commit: `3520f9ce`
|
||||
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
|
||||
- Run `graphify update .` after code changes (no API cost).
|
||||
|
||||
@@ -145,188 +145,229 @@
|
||||
- [[_COMMUNITY_Community 127|Community 127]]
|
||||
- [[_COMMUNITY_Community 129|Community 129]]
|
||||
- [[_COMMUNITY_Community 130|Community 130]]
|
||||
- [[_COMMUNITY_Community 140|Community 140]]
|
||||
- [[_COMMUNITY_Community 141|Community 141]]
|
||||
- [[_COMMUNITY_Community 142|Community 142]]
|
||||
- [[_COMMUNITY_Community 143|Community 143]]
|
||||
- [[_COMMUNITY_Community 144|Community 144]]
|
||||
- [[_COMMUNITY_Community 145|Community 145]]
|
||||
- [[_COMMUNITY_Community 146|Community 146]]
|
||||
- [[_COMMUNITY_Community 147|Community 147]]
|
||||
- [[_COMMUNITY_Community 148|Community 148]]
|
||||
- [[_COMMUNITY_Community 149|Community 149]]
|
||||
- [[_COMMUNITY_Community 150|Community 150]]
|
||||
- [[_COMMUNITY_Community 151|Community 151]]
|
||||
- [[_COMMUNITY_Community 152|Community 152]]
|
||||
- [[_COMMUNITY_Community 153|Community 153]]
|
||||
- [[_COMMUNITY_Community 154|Community 154]]
|
||||
- [[_COMMUNITY_Community 155|Community 155]]
|
||||
- [[_COMMUNITY_Community 156|Community 156]]
|
||||
- [[_COMMUNITY_Community 157|Community 157]]
|
||||
- [[_COMMUNITY_Community 158|Community 158]]
|
||||
- [[_COMMUNITY_Community 159|Community 159]]
|
||||
- [[_COMMUNITY_Community 160|Community 160]]
|
||||
- [[_COMMUNITY_Community 161|Community 161]]
|
||||
- [[_COMMUNITY_Community 162|Community 162]]
|
||||
- [[_COMMUNITY_Community 163|Community 163]]
|
||||
- [[_COMMUNITY_Community 164|Community 164]]
|
||||
- [[_COMMUNITY_Community 165|Community 165]]
|
||||
- [[_COMMUNITY_Community 166|Community 166]]
|
||||
- [[_COMMUNITY_Community 167|Community 167]]
|
||||
- [[_COMMUNITY_Community 168|Community 168]]
|
||||
- [[_COMMUNITY_Community 169|Community 169]]
|
||||
- [[_COMMUNITY_Community 170|Community 170]]
|
||||
- [[_COMMUNITY_Community 171|Community 171]]
|
||||
- [[_COMMUNITY_Community 172|Community 172]]
|
||||
- [[_COMMUNITY_Community 173|Community 173]]
|
||||
- [[_COMMUNITY_Community 174|Community 174]]
|
||||
- [[_COMMUNITY_Community 175|Community 175]]
|
||||
- [[_COMMUNITY_Community 176|Community 176]]
|
||||
- [[_COMMUNITY_Community 177|Community 177]]
|
||||
- [[_COMMUNITY_Community 178|Community 178]]
|
||||
- [[_COMMUNITY_Community 179|Community 179]]
|
||||
- [[_COMMUNITY_Community 180|Community 180]]
|
||||
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `str` - 1679 edges
|
||||
2. `Session` - 1551 edges
|
||||
3. `int` - 475 edges
|
||||
4. `BaseModel` - 433 edges
|
||||
5. `bool` - 379 edges
|
||||
6. `Any` - 364 edges
|
||||
7. `get_tenant_no()` - 347 edges
|
||||
8. `DbUserContext` - 322 edges
|
||||
9. `DbUserContext` - 321 edges
|
||||
10. `SysUser` - 306 edges
|
||||
1. `Session` - 1551 edges
|
||||
2. `int` - 475 edges
|
||||
3. `BaseModel` - 433 edges
|
||||
4. `bool` - 379 edges
|
||||
5. `Any` - 364 edges
|
||||
6. `get_tenant_no()` - 347 edges
|
||||
7. `DbUserContext` - 322 edges
|
||||
8. `DbUserContext` - 321 edges
|
||||
9. `SysUser` - 306 edges
|
||||
10. `success_response()` - 260 edges
|
||||
|
||||
## Surprising Connections (you probably didn't know these)
|
||||
- `int` --uses--> `ApiRequestLogMiddleware` [INFERRED]
|
||||
scripts/run_db_auto_generate_plans.py → app/core/api_request_log_middleware.py
|
||||
- `int` --uses--> `ApiCryptoMiddleware` [INFERRED]
|
||||
scripts/run_db_auto_generate_plans.py → app/core/api_crypto_middleware.py
|
||||
- `int` --uses--> `OperLogMeta` [INFERRED]
|
||||
scripts/run_db_auto_generate_plans.py → app/core/oper_log_context.py
|
||||
- `int` --uses--> `SysApiRequestLog` [INFERRED]
|
||||
scripts/run_db_auto_generate_plans.py → app/models/models.py
|
||||
- `int` --uses--> `BxReimburseApply` [INFERRED]
|
||||
scripts/run_db_auto_generate_plans.py → app/models/bx_models.py
|
||||
- `BackfillRule` --uses--> `Settings` [INFERRED]
|
||||
scripts/migrate_crm_sys_oss.py → app/core/config.py
|
||||
- `int` --uses--> `Settings` [INFERRED]
|
||||
scripts/refresh_business_role_menus.py → app/core/config.py
|
||||
- `bool` --uses--> `DbUserContext` [INFERRED]
|
||||
scripts/migrate_dibang_data.py → app/core/db_auth.py
|
||||
- `date` --uses--> `DbUserContext` [INFERRED]
|
||||
scripts/migrate_dibang_data.py → app/core/db_auth.py
|
||||
- `int` --uses--> `DbUserContext` [INFERRED]
|
||||
scripts/run_db_auto_generate_plans.py → app/core/db_auth.py
|
||||
|
||||
## Communities (140 total, 3 thin omitted)
|
||||
## Communities (181 total, 3 thin omitted)
|
||||
|
||||
### Community 0 - "Community 0"
|
||||
Cohesion: 0.35
|
||||
Nodes (220): Any, bool, str, UploadFile, CRM 线索管理 Pydantic Schemas, CRM 客户管理 Pydantic Schemas, CRM 商机管理 Pydantic Schemas, CRM 客户公海池规则 Pydantic Schemas (+212 more)
|
||||
|
||||
### Community 1 - "Community 1"
|
||||
Cohesion: 0.03
|
||||
Nodes (190): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, MenuCreateBody (+182 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (29): BaseModel, AdvanceApplyOut, AdvanceApprovalCreate, AttachmentOut, _coerce_optional_id(), WorkflowDefCreate, WorkflowDefUpdate, WorkflowNodeCreate (+21 more)
|
||||
|
||||
### Community 2 - "Community 2"
|
||||
Cohesion: 0.06
|
||||
Nodes (167): _apply_default_invoice_info_to_customers(), category_add(), category_delete(), category_tree(), category_update(), clue_assign(), clue_check_convert(), clue_check_duplicate() (+159 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (169): _apply_default_invoice_info_to_customers(), category_add(), category_delete(), category_tree(), category_update(), clue_assign(), clue_check_convert(), clue_check_duplicate() (+161 more)
|
||||
|
||||
### Community 3 - "Community 3"
|
||||
Cohesion: 0.05
|
||||
Nodes (152): register_contract_routes(), Any, bool, CRM 合同 CRUD — 对照 CrmContractServiceImpl.java(列表/详情 P1), CrmContract, CrmContractProductPriceTier, date, datetime (+144 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (56): Any, Any, CRM 合同 CRUD — 对照 CrmContractServiceImpl.java(列表/详情 P1), Decimal, _apply_contract_entity_fields(), _apply_contract_scalar_fields(), _build_customer_address(), _calc_amount_with_tax() (+48 more)
|
||||
|
||||
### Community 4 - "Community 4"
|
||||
Cohesion: 0.03
|
||||
Nodes (150): register_quote_routes(), Any, bool, CRM 报价单 CRUD — 对照 CrmQuoteServiceImpl.java(P2 全量), datetime, Decimal, int, Session (+142 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (31): apply_biz_backfill(), BackfillRule, BizRef, build_biz_index(), count_target_rows(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows() (+23 more)
|
||||
|
||||
### Community 5 - "Community 5"
|
||||
Cohesion: 0.06
|
||||
Nodes (140): bool, CertRead, DbUserContext, int, 运输计划管理 - 基础数据 API(承运商、车辆、人员), PlCarrier, PlVehicle, Session (+132 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (28): 运输计划管理 - 基础数据 Schema(承运商、车辆、人员、证书), CarrierAuditReject, CarrierBase, CarrierCreate, CarrierListResponse, CarrierQualificationBase, CarrierRead, CarrierUpdate (+20 more)
|
||||
|
||||
### Community 6 - "Community 6"
|
||||
Cohesion: 0.05
|
||||
Nodes (133): bool, Decimal, int, PlanCreateFull, PlanDriverFeedbackUpdateBody, PlanSiteFeedbackUpdateBody, PlPlan, PlPlanProduct (+125 more)
|
||||
Cohesion: 0.03
|
||||
Nodes (134): Decimal, PlPlanProduct, Session, str, PlPlanChange, 计划变更记录表 pl_plan_change, 计划产品明细表 pl_plan_product, 计划变更记录表 pl_plan_change (+126 more)
|
||||
|
||||
### Community 7 - "Community 7"
|
||||
Cohesion: 0.04
|
||||
Nodes (127): bool, DbInboundOutbound, int, PublicInventoryFeedback, PublicInventoryPageRead, Session, str, UploadFile (+119 more)
|
||||
Nodes (48): PlInventoryTransaction, PlInventoryWarning, 计划-运输关联表 pl_plan_transport, 运费结算表 pl_freight_settlement, 库存流水表 pl_inventory_transaction, 运费结算表 pl_freight_settlement, 结算单-运输关联表 pl_freight_settlement_transport, 结算单-运输关联表 pl_freight_settlement_transport (+40 more)
|
||||
|
||||
### Community 8 - "Community 8"
|
||||
Cohesion: 0.06
|
||||
Nodes (124): DbUserContext, FreightSettlementDisburseBody, FreightSettlementSubmitApprovalBody, FreightSettlementUpdate, int, Session, str, bool (+116 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (124): DbUserContext, FreightSettlementDisburseBody, FreightSettlementSubmitApprovalBody, FreightSettlementUpdate, int, Session, str, datetime (+116 more)
|
||||
|
||||
### Community 9 - "Community 9"
|
||||
Cohesion: 0.08
|
||||
Nodes (101): 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() (+93 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (39): ProcessDefCreateBody, ProcessDefUpdateBody, PublishVersionBody, StartInstanceBody, Any, bool, WfProcessInstance, bool (+31 more)
|
||||
|
||||
### Community 10 - "Community 10"
|
||||
Cohesion: 0.09
|
||||
Nodes (115): date, DbUserContext, int, Session, str, VehicleRechargeApplyCreate, VehicleRechargeApplyRead, VehicleRechargeApplyUpdate (+107 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (109): date, DbUserContext, int, Session, str, VehicleRechargeApplyCreate, VehicleRechargeApplyRead, VehicleRechargeApplyUpdate (+101 more)
|
||||
|
||||
### Community 11 - "Community 11"
|
||||
Cohesion: 0.09
|
||||
Nodes (112): bool, DbUserContext, float, int, PlPlan, PlTransport, Session, str (+104 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (81): bool, DbUserContext, PlPlan, PlTransport, Session, str, Session, str (+73 more)
|
||||
|
||||
### Community 12 - "Community 12"
|
||||
Cohesion: 0.1
|
||||
Nodes (103): date, DbUserContext, int, Session, str, VehicleUreaApplyCreate, VehicleUreaApplyRead, VehicleUreaApplyUpdate (+95 more)
|
||||
Cohesion: 0.22
|
||||
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 13 - "Community 13"
|
||||
Cohesion: 0.11
|
||||
Nodes (104): date, DbUserContext, int, Session, str, VehicleMaintenanceApplyCreate, VehicleMaintenanceApplyRead, VehicleMaintenanceApplyReminder (+96 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (111): date, DbUserContext, int, Session, str, VehicleMaintenanceApplyCreate, VehicleMaintenanceApplyRead, VehicleMaintenanceApplyReminder (+103 more)
|
||||
|
||||
### Community 14 - "Community 14"
|
||||
Cohesion: 0.06
|
||||
Nodes (94): str, Any, Decimal, Session, str, 解析列表查询参数,供 API 与 CRUD 共用。, _add_user_info_kwarg(), patch_file() (+86 more)
|
||||
Nodes (89): Any, bool, Decimal, Session, str, _advance_after_approval(), _approval_to_dict(), can_user_approve_settlement() (+81 more)
|
||||
|
||||
### Community 15 - "Community 15"
|
||||
Cohesion: 0.09
|
||||
Nodes (78): Any, bool, date, int, Session, str, Any, int (+70 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (56): Any, int, Session, str, Any, bool, CRM 客户 CRUD(客户主表 + 转移/成交/公海池操作), CrmCustomer (+48 more)
|
||||
|
||||
### Community 16 - "Community 16"
|
||||
Cohesion: 0.05
|
||||
Nodes (69): 运输计划管理 - 基础数据 Schema(承运商、车辆、人员、证书), Decimal, str, CarrierAuditReject, CarrierBase, CarrierCreate, CarrierListResponse, CarrierQualificationBase (+61 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (33): Any, bool, int, Session, str, Any, Session, str (+25 more)
|
||||
|
||||
### Community 17 - "Community 17"
|
||||
Cohesion: 0.06
|
||||
Nodes (66): Any, bool, bytes, int, Request, str, Any, int (+58 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (20): int, str, Any, bool, int, Session, str, business_type_from_path() (+12 more)
|
||||
|
||||
### Community 18 - "Community 18"
|
||||
Cohesion: 0.09
|
||||
Nodes (74): attachment_download_url(), attachment_preview_url(), create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_post(), create_role_management() (+66 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (100): attachment_download_url(), attachment_preview_url(), AttachmentDownloadUrlBody, create_dept(), create_dict_data(), create_dict_type(), create_menu(), create_post() (+92 more)
|
||||
|
||||
### Community 19 - "Community 19"
|
||||
Cohesion: 0.15
|
||||
Nodes (37): Any, bool, BxUserContext, BxWorkflowNode, float, int, ReimburseApplyOut, Session (+29 more)
|
||||
Nodes (35): Any, bool, BxUserContext, BxWorkflowNode, float, int, ReimburseApplyOut, Session (+27 more)
|
||||
|
||||
### Community 20 - "Community 20"
|
||||
Cohesion: 0.03
|
||||
Nodes (69): PlDocumentReminder, PlInventoryTransaction, PlInventoryWarning, 计划-运输关联表 pl_plan_transport, 运费结算表 pl_freight_settlement, 库存流水表 pl_inventory_transaction, 结算单-运输关联表 pl_freight_settlement_transport, 结算单-运输关联表 pl_freight_settlement_transport (+61 more)
|
||||
Cohesion: 0.24
|
||||
Nodes (82): date, DbUserContext, int, Session, str, float, int, ApprovalRecordRead (+74 more)
|
||||
|
||||
### Community 21 - "Community 21"
|
||||
Cohesion: 0.25
|
||||
Nodes (68): date, DbUserContext, int, PlanCreateFull, PlanDriverFeedbackUpdateBody, PlanSiteFeedbackUpdateBody, PlPlan, Session (+60 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (46): BxUserContext, int, Session, str, BxUserContext, int, Session, str (+38 more)
|
||||
|
||||
### Community 22 - "Community 22"
|
||||
Cohesion: 0.3
|
||||
Nodes (63): date, DbUserContext, int, Session, str, DocumentReminderRead, DocumentReminderUpdate, InventoryLedgerResponse (+55 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (41): AttachmentUploadResponse, ChangePasswordRequest, Config, LoginRequest, LoginResponse, Pydantic schemas - 用户认证, ResetPasswordRequest, UserCreate (+33 more)
|
||||
|
||||
### Community 23 - "Community 23"
|
||||
Cohesion: 0.09
|
||||
Nodes (58): Any, bool, CrmContract, datetime, int, Query, Session, str (+50 more)
|
||||
Nodes (57): Any, bool, CrmContract, datetime, int, Query, Session, str (+49 more)
|
||||
|
||||
### Community 24 - "Community 24"
|
||||
Cohesion: 0.11
|
||||
Nodes (57): Any, bool, int, Session, str, Any, bool, CRM 线索 CRUD(线索主表 + 转化/分配/无效/等级操作) (+49 more)
|
||||
Nodes (58): Any, bool, int, Session, str, Any, bool, CRM 线索 CRUD(线索主表 + 转化/分配/无效/等级操作) (+50 more)
|
||||
|
||||
### Community 25 - "Community 25"
|
||||
Cohesion: 0.09
|
||||
Nodes (55): bool, Session, str, Any, bool, int, Session, str (+47 more)
|
||||
Nodes (46): bool, Session, str, Any, int, Session, str, _append_user_scope_conditions() (+38 more)
|
||||
|
||||
### Community 26 - "Community 26"
|
||||
Cohesion: 0.1
|
||||
Nodes (55): bool, date, DbPurchasePlan, float, PlPlan, PlPlanProduct, PlTransport, Session (+47 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (57): bool, date, DbInboundOutbound, DbPurchasePlan, float, PlPlan, PlPlanProduct, PlTransport (+49 more)
|
||||
|
||||
### Community 27 - "Community 27"
|
||||
Cohesion: 0.09
|
||||
Nodes (21): Exception, bool, bytes, int, str, bytes, BytesIO, BaseStorage (+13 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (42): Exception, bool, bytes, int, Path, str, bytes, int (+34 more)
|
||||
|
||||
### Community 28 - "Community 28"
|
||||
Cohesion: 0.04
|
||||
Nodes (51): invoice_info_list(), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll (+43 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (181): date, DbUserContext, int, PlanCreateFull, PlanDriverFeedbackUpdateBody, PlanSiteFeedbackUpdateBody, PlPlan, Session (+173 more)
|
||||
|
||||
### Community 29 - "Community 29"
|
||||
Cohesion: 0.08
|
||||
Nodes (47): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), CRM 合同 Pydantic Schemas — 对照 CrmContractBo / CrmContractVo, ContractApprovalActionBody, ContractApprovalApproveBody, ContractApprovalByContractBody, ContractApprovalExportBody (+39 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (38): Any, CRM 报价单 CRUD — 对照 CrmQuoteServiceImpl.java(P2 全量), datetime, Decimal, Query, _build_quote_filters(), calculate_quote_amount(), create_quote() (+30 more)
|
||||
|
||||
### Community 30 - "Community 30"
|
||||
Cohesion: 0.18
|
||||
Nodes (49): Any, CRM 商机 CRUD(主表 + 阶段/赢输单/统计/看板/漏斗), CrmOpportunity, date, datetime, Decimal, int, Session (+41 more)
|
||||
Nodes (50): Any, CRM 商机 CRUD(主表 + 阶段/赢输单/统计/看板/漏斗), CrmOpportunity, date, datetime, Decimal, int, Session (+42 more)
|
||||
|
||||
### Community 31 - "Community 31"
|
||||
Cohesion: 0.04
|
||||
Nodes (50): create_plan_full(), _generate_plan_no(), 创建运输计划(完整表单:合同产品 + 可选运输安排), 创建运输计划(完整表单:合同产品 + 可选运输安排), 创建运输计划(完整表单:合同产品 + 可选运输安排), 创建运输计划(完整表单:合同产品 + 可选预选车辆,不自动安排运输), 创建运输计划(完整表单:合同产品 + 可选预选车辆,不自动安排运输), 创建运输计划(完整表单:合同产品 + 可选预选车辆,不自动安排运输) (+42 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (30): Any, bool, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java, int, Session, str, _apply_list_filters(), create_supplier_info() (+22 more)
|
||||
|
||||
### Community 32 - "Community 32"
|
||||
Cohesion: 0.11
|
||||
Nodes (45): bool, str, Any, bool, int, Session, str, SysUser (+37 more)
|
||||
Cohesion: 0.14
|
||||
Nodes (40): Any, bool, int, Session, str, SysUser, change_password(), create_user() (+32 more)
|
||||
|
||||
### Community 33 - "Community 33"
|
||||
Cohesion: 0.12
|
||||
Nodes (42): Any, Any, str, Session, str, Any, bool, CrmOpportunity (+34 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (21): _generate_plan_no(), 生成计划编号 SXDDHYYYYMMDD######, 生成计划编号 SXDDHYYYYMMDD######, 生成计划编号 SXDDHYYYYMMDD######, 生成计划编号 SXDDHYYYYMMDD######, 生成计划编号 SXDDHYYYYMMDD######, 生成计划编号 SXDDHYYYYMMDD######, 生成计划编号 SXDDHYYYYMMDD###### (+13 more)
|
||||
|
||||
### Community 34 - "Community 34"
|
||||
Cohesion: 0.07
|
||||
Nodes (39): datetime, int, str, datetime, int, Session, str, date (+31 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (23): datetime, int, str, datetime, 审批轮次过滤 — 驳回后重新提交时,进度接口仅展示当前轮次。, format_datetime(), generate_random_password(), get_current_time() (+15 more)
|
||||
|
||||
### Community 35 - "Community 35"
|
||||
Cohesion: 0.07
|
||||
Nodes (42): _db_pool_keepalive_loop(), _error_json(), lifespan(), _mask_secret(), Exception, int, Request, str (+34 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (40): _db_pool_keepalive_loop(), _error_json(), lifespan(), _mask_secret(), Exception, int, Request, str (+32 more)
|
||||
|
||||
### Community 36 - "Community 36"
|
||||
Cohesion: 0.12
|
||||
Nodes (42): pool_rule_delete(), pool_rule_update(), Any, bool, CRM 公海池规则 CRUD + 规则执行逻辑, int, Session, str (+34 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (27): CreateFromContractRequest, HazardCertReadyBody, PlanArchiveBody, PlanDeliverySlipTemplateSave, PlanDriverFeedbackUpdateBody, PlanInboundSlipTemplateSave, PlanListResponse, PlanProductCertItem (+19 more)
|
||||
|
||||
### Community 37 - "Community 37"
|
||||
Cohesion: 0.28
|
||||
Nodes (44): InboundOutboundRead, bool, DbPurchasePlan, PurchasePlanRead, PurchasePlanWithFillLink, WeighingSlipRead, bool, date (+36 more)
|
||||
Nodes (45): InboundOutboundRead, bool, DbPurchasePlan, PurchasePlanRead, PurchasePlanWithFillLink, WeighingSlipRead, bool, date (+37 more)
|
||||
|
||||
### Community 38 - "Community 38"
|
||||
Cohesion: 0.11
|
||||
Nodes (44): int, PlPlan, PlTransport, Session, str, UploadFile, Any, PlPlanProduct (+36 more)
|
||||
Cohesion: 0.25
|
||||
Nodes (23): Any, bool, int, Session, str, create_role(), get_role(), get_role_data_scope() (+15 more)
|
||||
|
||||
### Community 39 - "Community 39"
|
||||
Cohesion: 0.04
|
||||
@@ -337,40 +378,40 @@ Cohesion: 0.04
|
||||
Nodes (45): 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list, 分页查询供方列表 — Java: CrmSupplierInfoController.list (+37 more)
|
||||
|
||||
### Community 41 - "Community 41"
|
||||
Cohesion: 0.13
|
||||
Nodes (32): BxUserContext, int, Session, str, Any, str, bool, BxUserContext (+24 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (60): CRM 合同 API 路由 — GET/PUT/DELETE/POST 对齐原 Java CRM, CRM 合同子模块路由 — 变更/模板/审批独立页, register_contract_sub_routes(), CRM 合同 Pydantic Schemas — 对照 CrmContractBo / CrmContractVo, ContractApprovalActionBody, ContractApprovalApproveBody, ContractApprovalByContractBody, ContractApprovalExportBody (+52 more)
|
||||
|
||||
### Community 42 - "Community 42"
|
||||
Cohesion: 0.17
|
||||
Nodes (21): Any, bool, BxUserContext, BxWorkflowNode, float, int, Session, str (+13 more)
|
||||
|
||||
### Community 43 - "Community 43"
|
||||
Cohesion: 0.08
|
||||
Nodes (41): Any, bool, CRM 供方信息 CRUD — 对照 CrmSupplierInfoServiceImpl.java, int, Session, str, generate_contract_no(), Java: generateContractNo — {供方编码}/X-JT + yyyyMMdd + 3位流水 (+33 more)
|
||||
Cohesion: 0.28
|
||||
Nodes (17): DbUserContext, Session, str, int, Session, str, PlMenuBadgeStatsRead, menu_badge_stats() (+9 more)
|
||||
|
||||
### Community 44 - "Community 44"
|
||||
Cohesion: 0.08
|
||||
Nodes (41): _avatar_url_field(), _build_user_info_payload(), change_current_user_password(), get_current_user_profile(), get_web_auth_menu_codes(), _jwt_user_payload(), logout(), public_quote_share() (+33 more)
|
||||
Nodes (26): get_current_user_profile(), get_web_auth_menu_codes(), logout(), public_quote_share(), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。, 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。, 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。, 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。 (+18 more)
|
||||
|
||||
### Community 45 - "Community 45"
|
||||
Cohesion: 0.11
|
||||
Nodes (38): str, T, bool, date, datetime, int, Session, str (+30 more)
|
||||
|
||||
### Community 46 - "Community 46"
|
||||
Cohesion: 0.18
|
||||
Nodes (40): DbInboundOutbound, DbUserContext, Session, str, CreateLinkForPlanPayload, _apply_inventory_product_update(), _apply_inventory_update(), _base_query() (+32 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (37): DbInboundOutbound, DbUserContext, Session, str, CreateLinkForPlanPayload, _apply_inventory_product_update(), _apply_inventory_update(), _base_query() (+29 more)
|
||||
|
||||
### Community 47 - "Community 47"
|
||||
Cohesion: 0.11
|
||||
Nodes (40): DbUserContext, Session, str, Session, str, plan_to_read(), plan_to_read_with_fill_link(), _apply_plan_product_update() (+32 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (27): str, ContactDetailBody, ContactSetPrimaryBody, ContractApprovalPageListBody, ContractChangeSubmitBody, ContractProductPriceTierItem, 全局审批记录分页(approval/index.vue), CustomerCheckDuplicateBody (+19 more)
|
||||
|
||||
### Community 48 - "Community 48"
|
||||
Cohesion: 0.15
|
||||
Nodes (39): bool, CertRow, Session, str, VehiclePersonnelRow, Session, str, VehiclePersonnelRow (+31 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (129): bool, DbUserContext, int, 运输计划管理 - 基础数据 API(承运商、车辆、人员), PlCarrier, PlVehicle, Session, str (+121 more)
|
||||
|
||||
### Community 49 - "Community 49"
|
||||
Cohesion: 0.13
|
||||
Nodes (38): bool, Redis, Request, str, _T, bool, Redis, extend_session() (+30 more)
|
||||
Nodes (40): 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/shanxia2.0.sql 基线), refresh_token(), bool, Redis, Request, Session, str, _T (+32 more)
|
||||
|
||||
### Community 50 - "Community 50"
|
||||
Cohesion: 0.14
|
||||
@@ -381,108 +422,108 @@ Cohesion: 0.13
|
||||
Nodes (37): Any, bool, Decimal, int, Session, str, batch_insert_quote_products(), calculate_subtotal() (+29 more)
|
||||
|
||||
### Community 52 - "Community 52"
|
||||
Cohesion: 0.13
|
||||
Nodes (35): Any, bool, int, Session, str, date, Query, approve_quote() (+27 more)
|
||||
Cohesion: 0.15
|
||||
Nodes (30): Any, bool, int, Session, str, approve_quote(), can_user_approve(), create_approval_records() (+22 more)
|
||||
|
||||
### Community 53 - "Community 53"
|
||||
Cohesion: 0.28
|
||||
Nodes (33): AdvanceIssueRequest, BxUserContext, int, ReimburseApplyOut, Session, str, BatchOffsetRequest, AdvanceFinanceIssueStatsOut (+25 more)
|
||||
Cohesion: 0.30
|
||||
Nodes (32): AdvanceIssueRequest, BxUserContext, int, ReimburseApplyOut, Session, str, BatchOffsetRequest, AdvanceFinanceIssueStatsOut (+24 more)
|
||||
|
||||
### Community 54 - "Community 54"
|
||||
Cohesion: 0.13
|
||||
Nodes (15): Any, bool, int, str, get_wechat_pay_client(), get_wechat_pay_v2(), 微信支付工具模块 支持微信支付 V3 API 文档参考: https://pay.weixin.qq.com/docs/v3/apis/index.html, 统一下单接口 (V3) Args: out_trade_no: 商户订单号 total_amo (+7 more)
|
||||
|
||||
### Community 55 - "Community 55"
|
||||
Cohesion: 0.16
|
||||
Nodes (33): Any, bool, int, Session, str, Any, Session, str (+25 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (28): bool, CRM 产品模块 CRUD(产品分类 + 产品 + 附件), int, Session, str, barcode_exists(), category_code_exists(), create_category() (+20 more)
|
||||
|
||||
### Community 56 - "Community 56"
|
||||
Cohesion: 0.16
|
||||
Nodes (33): Any, bool, CrmContractProductPriceTier, date, Decimal, int, Session, str (+25 more)
|
||||
Nodes (31): Any, bool, CrmContractProductPriceTier, date, Decimal, int, Session, str (+23 more)
|
||||
|
||||
### Community 57 - "Community 57"
|
||||
Cohesion: 0.35
|
||||
Cohesion: 0.36
|
||||
Nodes (31): AdvanceApplyCreate, AdvanceApplyOut, AdvanceApplyUpdate, AdvanceApprovalCreate, BxUserContext, int, Session, str (+23 more)
|
||||
|
||||
### Community 58 - "Community 58"
|
||||
Cohesion: 0.21
|
||||
Nodes (29): Any, bool, int, Session, str, int, Session, str (+21 more)
|
||||
Cohesion: 0.34
|
||||
Nodes (16): Any, bool, int, Session, str, create_tenant(), get_tenant(), list_tenants() (+8 more)
|
||||
|
||||
### Community 59 - "Community 59"
|
||||
Cohesion: 0.06
|
||||
Nodes (31): 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo, 供方详情 — Java: CrmSupplierInfoController.getInfo (+23 more)
|
||||
Cohesion: 0.03
|
||||
Nodes (61): 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll, 供方全量列表(下拉)— Java: CrmSupplierInfoController.listAll (+53 more)
|
||||
|
||||
### Community 60 - "Community 60"
|
||||
Cohesion: 0.35
|
||||
Nodes (30): BxUserContext, int, Session, str, approve_reimburse(), approved_by_me(), _build_details_data(), create_reimburse() (+22 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (27): 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() (+19 more)
|
||||
|
||||
### Community 61 - "Community 61"
|
||||
Cohesion: 0.23
|
||||
Nodes (28): Engine, build_id_maps(), clip_text(), count_rows(), export_mapping(), fetch_rows(), legacy_id_to_str(), main() (+20 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (30): Engine, Path, build_id_maps(), clip_text(), count_rows(), export_mapping(), fetch_rows(), legacy_id_to_str() (+22 more)
|
||||
|
||||
### Community 62 - "Community 62"
|
||||
Cohesion: 0.22
|
||||
Nodes (26): DbUserContext, float, Session, str, Session, str, get_db_current_user(), DashboardCargoStat (+18 more)
|
||||
Cohesion: 0.16
|
||||
Nodes (31): DbUserContext, float, Session, str, Session, _auto_fill_create_dept_id(), get_db(), ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID (+23 more)
|
||||
|
||||
### Community 63 - "Community 63"
|
||||
Cohesion: 0.09
|
||||
Nodes (27): Any, _build_category_tree(), _category_row_to_dict(), _collect_category_with_ancestors(), list_categories(), list_category_tree(), list_oss_by_biz(), list_product_options() (+19 more)
|
||||
Cohesion: 0.40
|
||||
Nodes (4): Any, str, 供 get_tenant_no 等门户工具使用。, 与门户 JWT / apply_data_scope 所需的 user_info 字段对齐。
|
||||
|
||||
### Community 64 - "Community 64"
|
||||
Cohesion: 0.25
|
||||
Nodes (18): BxUserContext, Session, str, bool, BxUserContext, Session, str, create_expense_item() (+10 more)
|
||||
Cohesion: 0.22
|
||||
Nodes (29): Any, int, Session, str, create_instance(), create_process_def(), create_task(), get_all_tasks_for_business() (+21 more)
|
||||
|
||||
### Community 65 - "Community 65"
|
||||
Cohesion: 0.15
|
||||
Nodes (22): API 路由包 — 山峡化工生产一体化门户, create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), submit_leave() (+14 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (23): API 路由包 — 山峡化工生产一体化门户, get_menu_list(), 运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,14 个一级菜单), operlog_detail(), operlog_list(), 操作日志分页列表(基于 API 请求日志适配 RuoYi OperLog 结构), 操作日志分页列表(基于 API 请求日志适配 RuoYi OperLog 结构), _user_info() (+15 more)
|
||||
|
||||
### Community 66 - "Community 66"
|
||||
Cohesion: 0.08
|
||||
Nodes (25): 技术栈, 1. 创建虚拟环境, 项目结构, 1. 创建虚拟环境, 2. 安装依赖, 2. 安装依赖, 3. 配置环境变量, 快速开始 (+17 more)
|
||||
|
||||
### Community 67 - "Community 67"
|
||||
Cohesion: 0.3
|
||||
Nodes (25): DbUserContext, DbWeighingSlip, Session, str, datetime_end_of_day(), parse_datetime_str(), weighing_to_read(), apply_product_snapshot_to_weighing() (+17 more)
|
||||
Cohesion: 0.20
|
||||
Nodes (30): DbUserContext, DbWeighingSlip, Session, str, Session, str, datetime_end_of_day(), parse_datetime_str() (+22 more)
|
||||
|
||||
### Community 68 - "Community 68"
|
||||
Cohesion: 0.08
|
||||
Nodes (25): batch_assign_owner(), download_contract_pdf(), Java: batchAssignOwner, Java: downloadContractPdf — 返回合同文件 URL/路径, Java: batchAssignOwner, Java: batchAssignOwner, Java: batchAssignOwner, Java: batchAssignOwner (+17 more)
|
||||
Cohesion: 0.22
|
||||
Nodes (9): download_contract_pdf(), Java: downloadContractPdf — 返回合同文件 URL/路径, Java: batchAssignOwner, Java: downloadContractPdf — 返回合同文件 URL/路径, Java: downloadContractPdf — 返回合同文件 URL/路径, Java: downloadContractPdf — 返回合同文件 URL/路径, Java: downloadContractPdf — 返回合同文件 URL/路径, Java: downloadContractPdf — 返回合同文件 URL/路径 (+1 more)
|
||||
|
||||
### Community 69 - "Community 69"
|
||||
Cohesion: 0.21
|
||||
Nodes (16): Any, int, str, BusinessException, InvalidStatusTransitionException, log_api_request(), log_delivery_operation(), log_operation() (+8 more)
|
||||
|
||||
### Community 70 - "Community 70"
|
||||
Cohesion: 0.14
|
||||
Nodes (22): Session, str, bool, Session, str, get_user_menu_codes(), 菜单 code 权限守卫(V0.3:通过 sys_user_role → sys_role_menu → sys_menu.perms), 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。 (+14 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (12): generate_product_no(), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001) (+4 more)
|
||||
|
||||
### Community 71 - "Community 71"
|
||||
Cohesion: 0.26
|
||||
Nodes (22): Any, bool, datetime, int, Session, str, BizSampleCode, batch_generate_sample_codes() (+14 more)
|
||||
|
||||
### Community 72 - "Community 72"
|
||||
Cohesion: 0.23
|
||||
Nodes (10): Any, bool, int, Session, str, camel_to_snake(), CRUDBase, get_model_attr() (+2 more)
|
||||
Cohesion: 0.31
|
||||
Nodes (11): bool, BxUserContext, BxWorkflowNode, int, Session, str, 按业务类型获取工作流;已知类型不存在时自动创建空定义(无节点)。, 按业务类型获取工作流;已知类型不存在时自动创建空定义(无节点)。 (+3 more)
|
||||
|
||||
### Community 73 - "Community 73"
|
||||
Cohesion: 0.18
|
||||
Nodes (19): bytes, int, str, download_file_bytes(), file_stream(), get_access_url(), get_download_url(), get_preview_url() (+11 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (26): Any, _build_category_tree(), _category_row_to_dict(), _collect_category_with_ancestors(), list_categories(), list_category_tree(), list_oss_by_biz(), _oss_row_to_dict() (+18 more)
|
||||
|
||||
### Community 74 - "Community 74"
|
||||
Cohesion: 0.19
|
||||
Nodes (18): str, Any, bool, Session, str, CRM 模块 Excel 导出列定义(字段与字典类型对齐 Java *Vo @ExcelDictFormat)。, _yes_no(), _build_workbook() (+10 more)
|
||||
Cohesion: 0.06
|
||||
Nodes (92): bool, DbInboundOutbound, int, PublicInventoryFeedback, PublicInventoryPageRead, Session, str, UploadFile (+84 more)
|
||||
|
||||
### Community 75 - "Community 75"
|
||||
Cohesion: 0.09
|
||||
Nodes (23): generate_barcode(), generate_product_no(), _max_sxwl_product_seq(), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001), 生成产品编号(格式:CP + yyyyMMdd + 3位序号,如 CP20260530001) (+15 more)
|
||||
Nodes (22): cancel_plan(), 作废运输计划:取消跟进状态、作废关联地磅出入库单、取消运输单。, 作废运输计划:取消跟进状态、作废关联地磅出入库单、取消运输单。, 作废运输计划:取消跟进状态、作废关联地磅出入库单、取消运输单。, 作废运输计划:取消跟进状态、作废关联地磅出入库单、取消运输单。, 作废运输计划:取消跟进状态、作废关联地磅出入库单、取消运输单。, 作废运输计划:取消跟进状态、作废关联地磅出入库单、取消运输单。, 作废运输计划:取消跟进状态、作废关联地磅出入库单、取消运输单。 (+14 more)
|
||||
|
||||
### Community 76 - "Community 76"
|
||||
Cohesion: 0.09
|
||||
Nodes (23): product_delete(), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids), 删除产品(支持单条 body.id 和批量 body.ids) (+15 more)
|
||||
|
||||
### Community 77 - "Community 77"
|
||||
Cohesion: 0.28
|
||||
Nodes (22): bool, CRM 产品模块 CRUD(产品分类 + 产品 + 附件), Session, str, barcode_exists(), category_code_exists(), create_category(), create_product() (+14 more)
|
||||
Cohesion: 0.11
|
||||
Nodes (101): date, DbUserContext, int, Session, str, VehicleUreaApplyCreate, VehicleUreaApplyRead, VehicleUreaApplyUpdate (+93 more)
|
||||
|
||||
### Community 78 - "Community 78"
|
||||
Cohesion: 0.32
|
||||
@@ -493,15 +534,15 @@ Cohesion: 0.38
|
||||
Nodes (22): DbUserContext, int, Session, str, PlTransportAddress, 运输通用地址库 pl_transport_address, 运输通用地址库 pl_transport_address, 运输通用地址库 pl_transport_address (+14 more)
|
||||
|
||||
### Community 80 - "Community 80"
|
||||
Cohesion: 0.24
|
||||
Nodes (20): Any, bool, str, _actor_ids(), _actor_names(), assert_row_deletable_by_creator(), assert_rows_deletable_by_creator(), can_delete_by_creator() (+12 more)
|
||||
Cohesion: 0.22
|
||||
Nodes (19): Any, bool, str, _actor_ids(), _actor_names(), assert_rows_deletable_by_creator(), can_delete_by_creator(), is_super_admin() (+11 more)
|
||||
|
||||
### Community 81 - "Community 81"
|
||||
Cohesion: 0.14
|
||||
Nodes (19): Any, bool, str, Decimal, str, decrypt_login_payload(), ensure_initialized(), extract_login_credentials() (+11 more)
|
||||
Cohesion: 0.27
|
||||
Nodes (11): Any, bool, str, decrypt_login_payload(), ensure_initialized(), extract_login_credentials(), get_public_pem(), 登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。 (+3 more)
|
||||
|
||||
### Community 82 - "Community 82"
|
||||
Cohesion: 0.1
|
||||
Cohesion: 0.10
|
||||
Nodes (20): 1. 上传到服务器, 1. 上传到服务器, 2. 服务器首次启动, 2. 服务器首次启动, 3. 日常运维, 3. 日常运维, 4. 配置文件, 4. 配置文件 (+12 more)
|
||||
|
||||
### Community 83 - "Community 83"
|
||||
@@ -509,7 +550,7 @@ Cohesion: 0.18
|
||||
Nodes (11): float, int, str, 发送订单状态通知 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 (+3 more)
|
||||
|
||||
### Community 84 - "Community 84"
|
||||
Cohesion: 0.1
|
||||
Cohesion: 0.10
|
||||
Nodes (20): create_from_quote(), _quote_products_to_contract_products(), Java: createFromQuote — 返回合同 id, Java: renewContract — 基础续签, Java: createFromQuote — 返回合同 id, Java: renewContract — 基础续签, Java: createFromQuote — 返回合同 id, Java: createFromQuote — 返回合同 id (+12 more)
|
||||
|
||||
### Community 85 - "Community 85"
|
||||
@@ -537,8 +578,8 @@ Cohesion: 0.22
|
||||
Nodes (17): Any, bool, Session, str, list_share_logs(), _parse_user_agent(), CRM 报价单分享访问日志 CRUD — 对照 CrmQuoteShareLogServiceImpl.java, Java: statisticsVisits (+9 more)
|
||||
|
||||
### Community 91 - "Community 91"
|
||||
Cohesion: 0.12
|
||||
Nodes (16): get_menu_list(), 运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,14 个一级菜单), Session, Session, get_current_user(), get_current_user_by_token(), 根据 token 获取当前用户(包含 Redis 会话校验;会话滑动续期), 根据 token 获取当前用户(包含 Redis 会话校验;会话滑动续期) (+8 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (16): _avatar_url_field(), _build_user_info_payload(), _jwt_user_payload(), 与 web-admin `userInfo` 字段约定一致。, 与 web-admin `userInfo` 字段约定一致。, 与 web-admin 静态路由 meta.roles(admin/super_admin)对齐的单元素数组。, 与 web-admin `userInfo` 字段约定一致。, Web 端登录:账号为 sys_user.user_no,密码为 sys_user.password(bcrypt)。 (+8 more)
|
||||
|
||||
### Community 92 - "Community 92"
|
||||
Cohesion: 0.37
|
||||
@@ -561,12 +602,12 @@ Cohesion: 0.38
|
||||
Nodes (15): Any, bool, int, Session, str, create_site(), get_site(), list_sites() (+7 more)
|
||||
|
||||
### Community 97 - "Community 97"
|
||||
Cohesion: 0.36
|
||||
Nodes (15): Any, bool, Session, str, ensure_crm_customer_linked_row_in_scope(), 客户子表(开票信息等):先校验关联客户 owner scope,否则校验 create_by。, _clear_default_for_customer(), create_invoice_info() (+7 more)
|
||||
Cohesion: 0.30
|
||||
Nodes (21): Any, bool, CrmOpportunity, datetime, int, Session, str, ensure_crm_create_by_row_in_scope() (+13 more)
|
||||
|
||||
### Community 98 - "Community 98"
|
||||
Cohesion: 0.33
|
||||
Nodes (14): Any, int, Session, str, create_dict_data(), get_dict_data(), list_dict_data(), list_dict_data_options() (+6 more)
|
||||
Cohesion: 0.22
|
||||
Nodes (28): register_quote_routes(), bool, int, Session, str, accept_quote(), _ensure_quote_in_scope(), generate_pdf() (+20 more)
|
||||
|
||||
### Community 99 - "Community 99"
|
||||
Cohesion: 0.29
|
||||
@@ -577,59 +618,59 @@ Cohesion: 0.28
|
||||
Nodes (13): int, Session, str, _allocate_inbound_outbound_id(), _ensure_sequence_row(), max_numeric_inbound_outbound_id(), next_inbound_outbound_id(), 出入库单 id 生成 — 租户内纯数字自增,并发安全。 (+5 more)
|
||||
|
||||
### Community 101 - "Community 101"
|
||||
Cohesion: 0.3
|
||||
Nodes (13): Any, bool, bytes, int, str, ApiCryptoError, _b64url_decode(), _b64url_encode() (+5 more)
|
||||
Cohesion: 0.21
|
||||
Nodes (26): CrmContract, CrmContractProductPriceTier, date, datetime, int, Query, _parse_letter_oss_ids_from_tier(), Java: validateFrameworkContractForSubmitApproval (+18 more)
|
||||
|
||||
### Community 102 - "Community 102"
|
||||
Cohesion: 0.19
|
||||
Nodes (11): DbUserContext, Session, str, _auto_fill_create_dept_id(), get_db(), ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID, ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID, ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID (+3 more)
|
||||
Cohesion: 0.33
|
||||
Nodes (3): 地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。, 地磅(db)Pydantic schemas — 对齐原 simple-dibang-xiaoshou 契约。, 地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。
|
||||
|
||||
### Community 103 - "Community 103"
|
||||
Cohesion: 0.41
|
||||
Nodes (13): BxUserContext, Session, str, UploadFile, bind_biz(), delete_attachment(), download_file(), list_by_biz() (+5 more)
|
||||
Nodes (11): Any, str, build_quote_html(), _default_value(), _format_date(), _format_discount(), _format_money(), generate_quote_pdf() (+3 more)
|
||||
|
||||
### Community 104 - "Community 104"
|
||||
Cohesion: 0.44
|
||||
Nodes (13): bool, date, PlCarrier, str, PlCarrier, assert_carrier_eligible_for_transport(), carrier_agreement_expired(), carrier_audit_approved() (+5 more)
|
||||
Cohesion: 0.29
|
||||
Nodes (10): datetime, int, Session, str, BizNoKind, allocate_next_biz_no(), _format_biz_no(), _prefix_for() (+2 more)
|
||||
|
||||
### Community 105 - "Community 105"
|
||||
Cohesion: 0.22
|
||||
Nodes (12): Any, bool, str, WfProcessInstance, _LocalCallbackFn, _dispatch_local(), 工作流回调服务 —— 流程状态变更时通知业务系统, 注册本地回调函数。当 callback_url 以 path 开头时直接调用 fn。 (+4 more)
|
||||
Cohesion: 0.10
|
||||
Nodes (21): invoice_info_list(), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价), 按客户ID查询开票信息(与 by-customer 等价) (+13 more)
|
||||
|
||||
### Community 106 - "Community 106"
|
||||
Cohesion: 0.24
|
||||
Nodes (8): Path, Path, _inject_user_info_after_tenant(), patch_contract_routes(), patch_quote_routes(), patch_route_file(), Path, str
|
||||
Cohesion: 0.39
|
||||
Nodes (6): _inject_user_info_after_tenant(), patch_contract_routes(), patch_quote_routes(), patch_route_file(), Path, str
|
||||
|
||||
### Community 107 - "Community 107"
|
||||
Cohesion: 0.17
|
||||
Nodes (12): generate_auto_product_no(), Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符 (+4 more)
|
||||
Cohesion: 0.19
|
||||
Nodes (23): load_runtime_settings(), load_settings_env(), main(), int, str, verify_user_menu_codes(), assign_user_roles(), collect_subtree_menu_ids() (+15 more)
|
||||
|
||||
### Community 108 - "Community 108"
|
||||
Cohesion: 0.17
|
||||
Nodes (12): _get_quote_item_field(), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配) (+4 more)
|
||||
Cohesion: 0.33
|
||||
Nodes (8): Decimal, str, derive_legacy_status_from_three(), derive_three_status_from_legacy(), 阶段A兼容:从旧 status 推导三字段。 约束:旧 status 本身混合了支付/配送/订单生命周期,因此只能尽力推断; 若业务侧已有更精确, 阶段A兼容:从三字段反推旧 status(用于旧前端/旧筛选参数兼容)。, ThreeStatus, _to_decimal()
|
||||
|
||||
### Community 109 - "Community 109"
|
||||
Cohesion: 0.18
|
||||
Nodes (10): Any, Request, str, str, parse_admin_request_json(), 运营 Web(/web/admin)JSON 请求体解析。 与 ApiCryptoMiddleware 配合:中间件未改写 body 时,在路由内解密 `{, 读取 JSON body;dict 时走 resolve_request_payload(明文 / 密文 / data 包装)。 Returns:, 统一解析接口请求载荷(明文 / 密文信封)。 (+2 more)
|
||||
|
||||
### Community 110 - "Community 110"
|
||||
Cohesion: 0.33
|
||||
Nodes (10): Any, int, Session, str, list_ethnics(), 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), 民族码表 sys_ethnic(国标 GB/T 3304,全局) (+2 more)
|
||||
Cohesion: 0.28
|
||||
Nodes (12): 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`` → 门户相对路径。 (+4 more)
|
||||
|
||||
### Community 111 - "Community 111"
|
||||
Cohesion: 0.18
|
||||
Nodes (11): generate_contract_name(), Java: generateContractName, Java: generateContractName, Java: generateContractName, Java: generateContractName, Java: generateContractName, Java: generateContractName, Java: generateContractName (+3 more)
|
||||
|
||||
### Community 112 - "Community 112"
|
||||
Cohesion: 0.4
|
||||
Nodes (10): SysOss, int, Session, str, SysOss, create_oss(), create_oss(), get_oss_by_url() (+2 more)
|
||||
Cohesion: 0.17
|
||||
Nodes (20): Any, int, str, get_oper_log_meta(), OperLogMeta, 请求级操作日志元数据(ContextVar), 供异步落库线程使用,避免 ContextVar 跨线程丢失。, set_oper_log_meta() (+12 more)
|
||||
|
||||
### Community 113 - "Community 113"
|
||||
Cohesion: 0.18
|
||||
Nodes (9): 报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。, 报销(bx)Pydantic 模型 — 响应协议与 bx 原系统保持一致, bx_health(), 报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。, P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。 (+1 more)
|
||||
|
||||
### Community 114 - "Community 114"
|
||||
Cohesion: 0.6
|
||||
Cohesion: 0.60
|
||||
Nodes (10): Any, Session, str, _apply_create_range(), _base_query(), get_clue_level_statistics(), get_clue_overview_statistics(), get_clue_owner_statistics() (+2 more)
|
||||
|
||||
### Community 115 - "Community 115"
|
||||
@@ -637,16 +678,16 @@ Cohesion: 0.36
|
||||
Nodes (10): add_scope_before_order(), ensure_import(), patch_base_data(), patch_get_helper(), patch_inventory(), patch_plan(), patch_transport(), str (+2 more)
|
||||
|
||||
### Community 116 - "Community 116"
|
||||
Cohesion: 0.2
|
||||
Nodes (10): export_contracts(), Java: queryList for export, Java: queryList for export, Java: queryList for export, Java: queryList for export, Java: queryList for export, Java: queryList for export, Java: queryList for export (+2 more)
|
||||
Cohesion: 0.07
|
||||
Nodes (28): _build_contract_filters(), export_contracts(), ORM → camelCase(单点真相), ORM → camelCase(单点真相), ORM → camelCase(单点真相), ORM → camelCase(单点真相), ORM → camelCase(单点真相), Java: queryList for export (+20 more)
|
||||
|
||||
### Community 117 - "Community 117"
|
||||
Cohesion: 0.2
|
||||
Nodes (10): create_from_opportunity(), _opportunity_products_to_contract_products(), Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id (+2 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (40): Any, bool, date, int, Session, str, Session, str (+32 more)
|
||||
|
||||
### Community 118 - "Community 118"
|
||||
Cohesion: 0.2
|
||||
Nodes (10): int, list_products(), _product_row_to_dict(), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名) (+2 more)
|
||||
Cohesion: 0.38
|
||||
Nodes (5): TransportAddressBase, TransportAddressCreate, TransportAddressListResponse, TransportAddressRead, TransportAddressUpdate
|
||||
|
||||
### Community 119 - "Community 119"
|
||||
Cohesion: 0.29
|
||||
@@ -657,8 +698,8 @@ Cohesion: 0.22
|
||||
Nodes (9): generate_template_no(), Java: generateTemplateNo — TMPL{yyyyMMdd}{4位序号}, Java: generateTemplateNo — TMPL{yyyyMMdd}{4位序号}, Java: generateTemplateNo — TMPL{yyyyMMdd}{4位序号}, Java: generateTemplateNo — TMPL{yyyyMMdd}{4位序号}, Java: generateTemplateNo — TMPL{yyyyMMdd}{4位序号}, Java: generateTemplateNo — TMPL{yyyyMMdd}{4位序号}, Java: generateTemplateNo — TMPL{yyyyMMdd}{4位序号} (+1 more)
|
||||
|
||||
### Community 121 - "Community 121"
|
||||
Cohesion: 0.22
|
||||
Nodes (9): batch_submit_contract_approval(), Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval (+1 more)
|
||||
Cohesion: 0.12
|
||||
Nodes (31): CRM 报价单 API 路由 — 挂接到 crm.router, CRM 报价单 Pydantic Schemas, QuoteAcceptBody, QuoteApprovalApproveBody, QuoteApprovalListBody, QuoteApprovalRefreshNamesBody, QuoteApprovalWithdrawBody, QuoteCreateBody (+23 more)
|
||||
|
||||
### Community 122 - "Community 122"
|
||||
Cohesion: 0.32
|
||||
@@ -669,36 +710,200 @@ Cohesion: 0.38
|
||||
Nodes (4): str, _coerce_id(), ExpenseItemCreate, ExpenseItemUpdate
|
||||
|
||||
### Community 124 - "Community 124"
|
||||
Cohesion: 0.33
|
||||
Nodes (3): 地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。, 地磅(db)Pydantic schemas — 对齐原 simple-dibang-xiaoshou 契约。, 地磅 API 路由聚合 — REST 风格,协议对齐原 simple-dibang-xiaoshou。
|
||||
Cohesion: 0.16
|
||||
Nodes (26): Any, bool, bytes, int, Request, str, bool, int (+18 more)
|
||||
|
||||
### Community 125 - "Community 125"
|
||||
Cohesion: 0.4
|
||||
Nodes (3): BaseSettings, Config, Settings
|
||||
Cohesion: 0.15
|
||||
Nodes (37): build_merged_users(), bx_role_labels(), check_minio(), check_mysql(), check_redis(), _clip(), crm_role_labels(), derive_source_url() (+29 more)
|
||||
|
||||
### Community 126 - "Community 126"
|
||||
Cohesion: 0.17
|
||||
Nodes (12): generate_auto_product_no(), Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符, Java: generateAutoProductNo — SXWL + 8位随机大写字符 (+4 more)
|
||||
|
||||
### Community 127 - "Community 127"
|
||||
Cohesion: 0.4
|
||||
Nodes (5): Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), web_login_rsa_public_key()
|
||||
Cohesion: 0.20
|
||||
Nodes (10): Decimal, VehicleUreaApplyCreate, VehicleUreaApplyListResponse, VehicleUreaApplyRead, VehicleUreaApplyUpdate, VehicleUreaDisburseBoardListResponse, VehicleUreaDisburseCreate, VehicleUreaDisburseListResponse (+2 more)
|
||||
|
||||
### Community 129 - "Community 129"
|
||||
Cohesion: 0.18
|
||||
Nodes (11): Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配), Java: resolveProductIdForQuoteItem(CrmProduct 无 tax_rate,跳过税率匹配) (+3 more)
|
||||
|
||||
### Community 140 - "Community 140"
|
||||
Cohesion: 0.18
|
||||
Nodes (28): compute_level(), count_target_rows(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_runtime_settings(), load_settings_env() (+20 more)
|
||||
|
||||
### Community 141 - "Community 141"
|
||||
Cohesion: 0.40
|
||||
Nodes (10): SysOss, int, Session, str, SysOss, create_oss(), create_oss(), get_oss_by_url() (+2 more)
|
||||
|
||||
### Community 142 - "Community 142"
|
||||
Cohesion: 0.14
|
||||
Nodes (35): BxUserContext, Session, str, UploadFile, BxUserContext, Session, str, bool (+27 more)
|
||||
|
||||
### Community 143 - "Community 143"
|
||||
Cohesion: 0.06
|
||||
Nodes (92): CertRead, Any, bool, CertRow, Session, str, VehiclePersonnelRow, CertRead (+84 more)
|
||||
|
||||
### Community 144 - "Community 144"
|
||||
Cohesion: 0.18
|
||||
Nodes (21): BaseSettings, Config, Settings, Namespace, apply_renumber(), build_mapping(), fetch_products(), format_new_product_no() (+13 more)
|
||||
|
||||
### Community 145 - "Community 145"
|
||||
Cohesion: 0.24
|
||||
Nodes (24): count_target_rows(), _dec(), derive_source_url(), fetch_portal_admin_id(), fetch_source_rows(), legacy_id_to_str(), load_runtime_settings(), load_settings_env() (+16 more)
|
||||
|
||||
### Community 146 - "Community 146"
|
||||
Cohesion: 0.18
|
||||
Nodes (11): generate_contract_no(), Java: generateContractNo — {供方编码}/X-JT + yyyyMMdd + 3位流水, Java: generateContractNo — {供方编码}/X-JT + yyyyMMdd + 3位流水, Java: generateContractNo — {供方编码}/X-JT{yyyyMMdd}{3位序号}, Java: generateContractNo — {供方编码}/X-JT{yyyyMMdd}{3位序号}, Java: generateContractNo — {供方编码}/X-JT{yyyyMMdd}{3位序号}, Java: generateContractNo — {供方编码}/X-JT{yyyyMMdd}{3位序号}, Java: generateContractNo — {供方编码}/X-JT{yyyyMMdd}{3位序号} (+3 more)
|
||||
|
||||
### Community 147 - "Community 147"
|
||||
Cohesion: 0.29
|
||||
Nodes (7): _product_row_to_dict(), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名), 产品 ORM 对象转 dict(camelCase 键名)
|
||||
|
||||
### Community 148 - "Community 148"
|
||||
Cohesion: 0.09
|
||||
Nodes (63): register_contract_routes(), bool, Session, str, bool, batch_assign_owner(), batch_submit_approval(), _enrich_owner_names() (+55 more)
|
||||
|
||||
### Community 149 - "Community 149"
|
||||
Cohesion: 0.16
|
||||
Nodes (12): Decimal, str, VehicleRechargeApplyCreate, VehicleRechargeApplyListResponse, VehicleRechargeApplyOption, VehicleRechargeApplyRead, VehicleRechargeApplyUpdate, VehicleRechargeDisburseBoardListResponse (+4 more)
|
||||
|
||||
### Community 150 - "Community 150"
|
||||
Cohesion: 0.23
|
||||
Nodes (10): Any, bool, int, Session, str, camel_to_snake(), CRUDBase, get_model_attr() (+2 more)
|
||||
|
||||
### Community 151 - "Community 151"
|
||||
Cohesion: 0.28
|
||||
Nodes (8): date, datetime, str, _date_to_str(), _dt_to_str(), PagedQuery, PagedResponse, bx 原系统 API 响应包装(code=0 / msg / data.rows),与门户 success_response 分离。
|
||||
|
||||
### Community 152 - "Community 152"
|
||||
Cohesion: 0.12
|
||||
Nodes (37): DbUserContext, Session, str, Session, str, plan_to_read(), plan_to_read_with_fill_link(), _apply_plan_product_update() (+29 more)
|
||||
|
||||
### Community 153 - "Community 153"
|
||||
Cohesion: 0.10
|
||||
Nodes (21): Java: createNewVersion — 返回新报价单 id, Java: CrmQuoteServiceImpl.withdrawApproval(校验创建人), Java: CrmQuoteServiceImpl.withdrawApproval(校验创建人), Java: CrmQuoteServiceImpl.withdrawApproval(校验创建人), Java: CrmQuoteServiceImpl.withdrawApproval(校验创建人), Java: CrmQuoteServiceImpl.withdrawApproval(校验创建人), Java: CrmQuoteServiceImpl.withdrawApproval(校验创建人), Java: statisticsOverview (+13 more)
|
||||
|
||||
### Community 154 - "Community 154"
|
||||
Cohesion: 0.20
|
||||
Nodes (19): bool, Session, str, _expand_with_ancestor_menu_ids(), _granted_menu_ids_for_user(), iter_user_menu_perm_codes(), _map_role_name_to_web(), Web 管理端登录:基于 V0.3 sys_user / sys_user_role / sys_role 的角色与菜单权限解析 (+11 more)
|
||||
|
||||
### Community 155 - "Community 155"
|
||||
Cohesion: 0.27
|
||||
Nodes (17): create_leave(), delete_leave(), get_leave(), _leave_local_callback(), leave_workflow_callback(), list_leaves(), submit_leave(), update_leave() (+9 more)
|
||||
|
||||
### Community 156 - "Community 156"
|
||||
Cohesion: 0.35
|
||||
Nodes (5): Any, str, WfProcessInstance, WorkflowEngine, WfProcessInstance
|
||||
|
||||
### Community 157 - "Community 157"
|
||||
Cohesion: 0.33
|
||||
Nodes (6): Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致), web_login_rsa_public_key()
|
||||
|
||||
### Community 158 - "Community 158"
|
||||
Cohesion: 0.13
|
||||
Nodes (15): date, generate_quote_no(), Java: toContract — 返回 contractId, Java: toContract — 返回 contractId, Java: toContract — 返回 contractId, Java: generateQuoteNo — {供方编码}DD-yyyyMMdd + 3位序号, Java: generateQuoteNo — {供方编码}DD-yyyyMMdd + 3位序号, Java: generateQuoteNo — {供方编码}DD-yyyyMMdd + 3位序号 (+7 more)
|
||||
|
||||
### Community 159 - "Community 159"
|
||||
Cohesion: 0.14
|
||||
Nodes (39): pool_rule_toggle(), Any, bool, CRM 公海池规则 CRUD + 规则执行逻辑, int, Session, str, create_pool_rule() (+31 more)
|
||||
|
||||
### Community 160 - "Community 160"
|
||||
Cohesion: 0.30
|
||||
Nodes (13): Any, bool, bytes, int, str, ApiCryptoError, _b64url_decode(), _b64url_encode() (+5 more)
|
||||
|
||||
### Community 161 - "Community 161"
|
||||
Cohesion: 0.22
|
||||
Nodes (12): Any, bool, str, WfProcessInstance, _LocalCallbackFn, _dispatch_local(), 工作流回调服务 —— 流程状态变更时通知业务系统, 注册本地回调函数。当 callback_url 以 path 开头时直接调用 fn。 (+4 more)
|
||||
|
||||
### Community 162 - "Community 162"
|
||||
Cohesion: 0.15
|
||||
Nodes (13): ORM → camelCase(单点真相), ORM → camelCase(单点真相), ORM → camelCase(单点真相), ORM → camelCase(单点真相), Java: viewByShareCode, Java: viewByShareCode, Java: viewByShareCode, Java: viewByShareCode (+5 more)
|
||||
|
||||
### Community 163 - "Community 163"
|
||||
Cohesion: 0.33
|
||||
Nodes (10): bool, Redis, get_redis_client(), get_sync_redis_client(), 共享 Redis 客户端(同步:会话鉴权;异步:API 加密 nonce)。, 同步 Redis(auth 会话等,在线程池中调用)。, 异步 Redis(API 加密 nonce 等中间件)。, _redis_common_kwargs() (+2 more)
|
||||
|
||||
### Community 164 - "Community 164"
|
||||
Cohesion: 0.33
|
||||
Nodes (10): Any, int, Session, str, list_ethnics(), 民族码表 CRUD(全局 sys_ethnic), _row_to_dict(), 民族码表 sys_ethnic(国标 GB/T 3304,全局) (+2 more)
|
||||
|
||||
### Community 165 - "Community 165"
|
||||
Cohesion: 0.18
|
||||
Nodes (11): Java: statisticsStatus, Java: statisticsStatus, Java: statisticsStatus, Java: statisticsStatus, Java: statisticsStatus, Java: statisticsStatus, Java: statisticsStatus, Java: statisticsStatus (+3 more)
|
||||
|
||||
### Community 166 - "Community 166"
|
||||
Cohesion: 0.18
|
||||
Nodes (11): Java: statisticsTrend, Java: statisticsTrend, Java: statisticsTrend, Java: statisticsTrend, Java: statisticsTrend, Java: statisticsTrend, Java: statisticsTrend, Java: statisticsTrend (+3 more)
|
||||
|
||||
### Community 167 - "Community 167"
|
||||
Cohesion: 0.49
|
||||
Nodes (9): compare_data(), item_key(), load_portal_dicts(), load_sx_dicts(), main(), parse_insert_values(), Path, str (+1 more)
|
||||
|
||||
### Community 168 - "Community 168"
|
||||
Cohesion: 0.20
|
||||
Nodes (10): create_from_opportunity(), _opportunity_products_to_contract_products(), Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id, Java: createFromOpportunity — 返回合同 id (+2 more)
|
||||
|
||||
### Community 169 - "Community 169"
|
||||
Cohesion: 0.20
|
||||
Nodes (10): generate_barcode(), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 取当前租户下 SXWL 前缀且后缀为纯数字的产品编号最大流水值, 生成唯一条码(纯数字:yyyyMMdd + 6位序号,如 20260606000001), 生成产品编号(格式:SXWL + 6位递增流水号,如 SXWL000001) (+2 more)
|
||||
|
||||
### Community 170 - "Community 170"
|
||||
Cohesion: 0.22
|
||||
Nodes (9): batch_submit_contract_approval(), Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval, Java: batchSubmitApproval (+1 more)
|
||||
|
||||
### Community 171 - "Community 171"
|
||||
Cohesion: 0.22
|
||||
Nodes (9): create_new_version(), Java: createNewVersion — 返回新报价单 id, Java: createNewVersion — 返回新报价单 id, Java: createNewVersion — 返回新报价单 id, Java: createNewVersion — 返回新报价单 id, Java: createNewVersion — 返回新报价单 id, Java: createNewVersion — 返回新报价单 id, Java: createNewVersion — 返回新报价单 id (+1 more)
|
||||
|
||||
### Community 172 - "Community 172"
|
||||
Cohesion: 0.40
|
||||
Nodes (5): bool, str, get_password_hash(), 验证密码(哈希非 bcrypt 或损坏时返回 False,避免抛错), verify_password()
|
||||
|
||||
### Community 173 - "Community 173"
|
||||
Cohesion: 0.20
|
||||
Nodes (7): _coerce_id(), OffsetItem, ReimburseApplyCreate, ReimburseApplyOut, ReimburseApplyUpdate, ReimburseApprovalCreate, ReimburseDetailCreate
|
||||
|
||||
### Community 174 - "Community 174"
|
||||
Cohesion: 0.33
|
||||
Nodes (6): _fill_contract_linked_count(), Java: fillContractLinkedCount, Java: fillContractLinkedCount, Java: fillContractLinkedCount, Java: fillContractLinkedCount, Java: fillContractLinkedCount
|
||||
|
||||
### Community 175 - "Community 175"
|
||||
Cohesion: 0.50
|
||||
Nodes (3): Any, str, 与门户 JWT / apply_data_scope 所需的 user_info 字段对齐。
|
||||
|
||||
### Community 177 - "Community 177"
|
||||
Cohesion: 0.40
|
||||
Nodes (4): str, Config, format_api_error_message(), 将 HTTP/SQLAlchemy 等异常转为可展示的错误文案(避免 str([]) 空列表)。
|
||||
|
||||
### Community 178 - "Community 178"
|
||||
Cohesion: 0.40
|
||||
Nodes (3): AdvanceApplyCreate, AdvanceApplyUpdate, _coerce_optional_id()
|
||||
|
||||
### Community 179 - "Community 179"
|
||||
Cohesion: 0.83
|
||||
Nodes (3): _add_user_info_kwarg(), patch_file(), str
|
||||
|
||||
## Knowledge Gaps
|
||||
- **1529 isolated node(s):** `定期 ping MySQL,避免远程库/NAT 回收空闲 TCP 后首请求长时间卡住。`, `数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误`, `未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin`, `每月 1 日凌晨执行:按上月计划模板生成本月计划。`, `每天凌晨1点:检查保护期到期客户,跟进次数不足则退回公海` (+1524 more)
|
||||
- **77 isolated node(s):** `Session`, `Request`, `bool`, `bool`, `Config` (+72 more)
|
||||
These have ≤1 connection - possible missing edges or undocumented components.
|
||||
- **3 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 `str` connect `Community 14` to `Community 0`, `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 15`, `Community 16`, `Community 17`, `Community 18`, `Community 19`, `Community 20`, `Community 21`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 27`, `Community 30`, `Community 31`, `Community 32`, `Community 33`, `Community 34`, `Community 35`, `Community 36`, `Community 37`, `Community 38`, `Community 39`, `Community 41`, `Community 42`, `Community 43`, `Community 44`, `Community 45`, `Community 46`, `Community 47`, `Community 48`, `Community 49`, `Community 50`, `Community 51`, `Community 52`, `Community 53`, `Community 54`, `Community 55`, `Community 56`, `Community 57`, `Community 58`, `Community 60`, `Community 61`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `Community 67`, `Community 68`, `Community 69`, `Community 70`, `Community 71`, `Community 72`, `Community 73`, `Community 74`, `Community 75`, `Community 77`, `Community 78`, `Community 79`, `Community 80`, `Community 81`, `Community 83`, `Community 84`, `Community 86`, `Community 87`, `Community 88`, `Community 89`, `Community 90`, `Community 91`, `Community 93`, `Community 94`, `Community 95`, `Community 96`, `Community 97`, `Community 98`, `Community 100`, `Community 101`, `Community 102`, `Community 103`, `Community 104`, `Community 105`, `Community 106`, `Community 107`, `Community 108`, `Community 109`, `Community 110`, `Community 111`, `Community 112`, `Community 114`, `Community 115`, `Community 116`, `Community 117`, `Community 118`, `Community 120`, `Community 121`, `Community 122`, `Community 123`?**
|
||||
_High betweenness centrality (0.344) - this node is a cross-community bridge._
|
||||
- **Why does `Session` connect `Community 18` to `Community 0`, `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 17`, `Community 19`, `Community 20`, `Community 21`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 28`, `Community 30`, `Community 31`, `Community 32`, `Community 33`, `Community 34`, `Community 36`, `Community 37`, `Community 38`, `Community 39`, `Community 40`, `Community 41`, `Community 42`, `Community 43`, `Community 44`, `Community 45`, `Community 46`, `Community 47`, `Community 48`, `Community 50`, `Community 51`, `Community 52`, `Community 53`, `Community 55`, `Community 56`, `Community 57`, `Community 58`, `Community 59`, `Community 60`, `Community 62`, `Community 63`, `Community 64`, `Community 65`, `Community 67`, `Community 68`, `Community 70`, `Community 71`, `Community 72`, `Community 74`, `Community 75`, `Community 76`, `Community 77`, `Community 78`, `Community 79`, `Community 84`, `Community 86`, `Community 87`, `Community 89`, `Community 90`, `Community 91`, `Community 93`, `Community 94`, `Community 95`, `Community 96`, `Community 97`, `Community 98`, `Community 100`, `Community 102`, `Community 103`, `Community 107`, `Community 108`, `Community 110`, `Community 112`, `Community 114`, `Community 116`, `Community 117`, `Community 118`, `Community 120`, `Community 121`?**
|
||||
_High betweenness centrality (0.270) - this node is a cross-community bridge._
|
||||
- **Why does `BaseModel` connect `Community 1` to `Community 0`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 16`, `Community 19`, `Community 21`, `Community 22`, `Community 29`, `Community 37`, `Community 38`, `Community 46`, `Community 48`, `Community 53`, `Community 57`, `Community 60`, `Community 62`, `Community 64`, `Community 65`, `Community 67`, `Community 102`, `Community 123`, `Community 126`?**
|
||||
_High betweenness centrality (0.059) - this node is a cross-community bridge._
|
||||
- **Are the 341 inferred relationships involving `str` (e.g. with `ApiRequestLogMiddleware` and `ApiCryptoMiddleware`) actually correct?**
|
||||
- **Why does `Session` connect `Community 2` to `Community 0`, `Community 1`, `Community 3`, `Community 6`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 17`, `Community 18`, `Community 19`, `Community 20`, `Community 21`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 32`, `Community 33`, `Community 37`, `Community 38`, `Community 39`, `Community 40`, `Community 41`, `Community 42`, `Community 43`, `Community 44`, `Community 45`, `Community 46`, `Community 48`, `Community 49`, `Community 50`, `Community 51`, `Community 52`, `Community 53`, `Community 55`, `Community 56`, `Community 57`, `Community 58`, `Community 59`, `Community 60`, `Community 62`, `Community 64`, `Community 65`, `Community 67`, `Community 68`, `Community 70`, `Community 71`, `Community 72`, `Community 73`, `Community 74`, `Community 75`, `Community 76`, `Community 77`, `Community 78`, `Community 79`, `Community 84`, `Community 86`, `Community 87`, `Community 89`, `Community 90`, `Community 91`, `Community 93`, `Community 94`, `Community 95`, `Community 96`, `Community 97`, `Community 98`, `Community 100`, `Community 101`, `Community 104`, `Community 105`, `Community 114`, `Community 116`, `Community 117`, `Community 120`, `Community 124`, `Community 126`, `Community 129`, `Community 141`, `Community 142`, `Community 143`, `Community 146`, `Community 148`, `Community 150`, `Community 152`, `Community 153`, `Community 154`, `Community 155`, `Community 156`, `Community 158`, `Community 159`, `Community 162`, `Community 164`, `Community 165`, `Community 166`, `Community 168`, `Community 169`, `Community 170`, `Community 171`, `Community 174`?**
|
||||
_High betweenness centrality (0.257) - this node is a cross-community bridge._
|
||||
- **Why does `datetime` connect `Community 34` to `Community 0`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 6`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 17`, `Community 19`, `Community 20`, `Community 22`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 27`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 32`, `Community 35`, `Community 36`, `Community 37`, `Community 38`, `Community 41`, `Community 45`, `Community 46`, `Community 47`, `Community 48`, `Community 49`, `Community 51`, `Community 52`, `Community 53`, `Community 54`, `Community 55`, `Community 56`, `Community 58`, `Community 61`, `Community 62`, `Community 64`, `Community 67`, `Community 69`, `Community 71`, `Community 74`, `Community 77`, `Community 78`, `Community 86`, `Community 87`, `Community 89`, `Community 90`, `Community 93`, `Community 94`, `Community 95`, `Community 96`, `Community 97`, `Community 101`, `Community 103`, `Community 104`, `Community 107`, `Community 114`, `Community 117`, `Community 118`, `Community 121`, `Community 124`, `Community 125`, `Community 127`, `Community 140`, `Community 143`, `Community 144`, `Community 145`, `Community 149`, `Community 151`, `Community 152`, `Community 159`, `Community 176`?**
|
||||
_High betweenness centrality (0.061) - this node is a cross-community bridge._
|
||||
- **Why does `BaseModel` connect `Community 47` to `Community 0`, `Community 1`, `Community 5`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 13`, `Community 142`, `Community 143`, `Community 18`, `Community 19`, `Community 20`, `Community 21`, `Community 149`, `Community 151`, `Community 22`, `Community 155`, `Community 28`, `Community 36`, `Community 37`, `Community 41`, `Community 43`, `Community 173`, `Community 46`, `Community 176`, `Community 178`, `Community 53`, `Community 57`, `Community 60`, `Community 62`, `Community 65`, `Community 74`, `Community 77`, `Community 118`, `Community 121`, `Community 123`, `Community 127`?**
|
||||
_High betweenness centrality (0.048) - this node is a cross-community bridge._
|
||||
- **Are the 341 inferred relationships involving `str` (e.g. with `AdvanceApplyCreate` and `AdvanceApplyOut`) actually correct?**
|
||||
_`str` has 341 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **Are the 337 inferred relationships involving `Session` (e.g. with `CrmCustomer` and `CrmCustomerPool`) actually correct?**
|
||||
- **Are the 337 inferred relationships involving `Session` (e.g. with `AdvanceApplyCreate` and `AdvanceApplyOut`) actually correct?**
|
||||
_`Session` has 337 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **Are the 225 inferred relationships involving `int` (e.g. with `ApiRequestLogMiddleware` and `ApiCryptoMiddleware`) actually correct?**
|
||||
- **Are the 225 inferred relationships involving `int` (e.g. with `AdvanceApplyCreate` and `AdvanceApplyOut`) actually correct?**
|
||||
_`int` has 225 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **What connects `定期 ping MySQL,避免远程库/NAT 回收空闲 TCP 后首请求长时间卡住。`, `数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误`, `未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin` to the rest of the system?**
|
||||
_1529 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
_1551 weakly-connected nodes found - possible documentation gaps or missing edges._
|
||||
backend/graphify-out/cache/ast/04c2cd67a7ec8190aa7a9db717a722cd347a52279ac3ef5bd284777f0698a904.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "label": "web_auth_roles.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L1"}, {"id": "services_web_auth_roles_map_role_name_to_web", "label": "_map_role_name_to_web()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13"}, {"id": "services_web_auth_roles_role_rows_for_user", "label": "_role_rows_for_user()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25"}, {"id": "services_web_auth_roles_user_has_bound_roles", "label": "user_has_bound_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42"}, {"id": "services_web_auth_roles_resolve_web_role_for_user", "label": "resolve_web_role_for_user()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L53"}, {"id": "services_web_auth_roles_granted_menu_ids_for_user", "label": "_granted_menu_ids_for_user()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L71"}, {"id": "services_web_auth_roles_expand_with_ancestor_menu_ids", "label": "_expand_with_ancestor_menu_ids()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L103"}, {"id": "services_web_auth_roles_iter_user_menu_perm_codes", "label": "iter_user_menu_perm_codes()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L127"}, {"id": "services_web_auth_roles_rationale_1", "label": "Web \u7ba1\u7406\u7aef\u767b\u5f55\uff1a\u57fa\u4e8e V0.3 sys_user / sys_user_role / sys_role \u7684\u89d2\u8272\u4e0e\u83dc\u5355\u6743\u9650\u89e3\u6790", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L1"}, {"id": "services_web_auth_roles_rationale_14", "label": "\u5c06 sys_role.role_name \u6620\u5c04\u4e3a web-admin \u4f7f\u7528\u7684 role \u5b57\u7b26\u4e32\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L14"}, {"id": "services_web_auth_roles_rationale_43", "label": "\u7528\u6237\u662f\u5426\u5728 sys_user_role \u4e2d\u7ed1\u5b9a\u4e86\u81f3\u5c11\u4e00\u4e2a\u6709\u6548\u89d2\u8272\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L43"}, {"id": "services_web_auth_roles_rationale_54", "label": "\u6839\u636e\u7528\u6237\u5173\u8054\u89d2\u8272\u89e3\u6790 Web \u7aef role\uff08admin / super_admin\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L54"}, {"id": "services_web_auth_roles_rationale_104", "label": "\u89d2\u8272\u4ec5\u52fe\u9009\u6309\u94ae\uff08F\uff09\u65f6\uff0c\u8865\u9f50\u7956\u5148 C/M \u83dc\u5355 id\uff0c\u4fbf\u4e8e\u524d\u7aef\u5339\u914d :list \u8def\u7531\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L104"}, {"id": "services_web_auth_roles_rationale_130", "label": "\u7528\u6237\u901a\u8fc7\u89d2\u8272\u5173\u8054\u5f97\u5230\u7684\u83dc\u5355\u6743\u9650\u6807\u8bc6\uff08sys_menu.perms\uff0c\u4e0e\u524d\u7aef meta.menuCode \u5bf9\u9f50\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L130"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L4", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "sqlalchemy", "relation": "imports_from", "cLine truncated
|
||||
backend/graphify-out/cache/ast/16c9c072b5b80fb309d56823963ebd0dd1f437a3f74d7f82711dd8a7c2de86d2.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_verify_web_menu_codes_py", "label": "verify_web_menu_codes.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L1"}, {"id": "scripts_verify_web_menu_codes_main", "label": "main()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L30"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L30"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_verify_web_menu_codes_py", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_verify_web_menu_codes_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L6", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_verify_web_menu_codes_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L7", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_verify_web_menu_codes_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L8", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_verify_web_menu_codes_py", "target": "sqlalchemy", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L10", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_verify_web_menu_codes_py", "target": "sqlalchemy_orm", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L11", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_verify_web_menu_codes_py", "target": "scripts_verify_web_menu_codes_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L30", "weight": 1.0}, {"source": "scripts_verify_web_menu_codes_main", "target": "int", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L30", "weight": 1.0}], "raw_calls": [{"caller_nid": "scripts_verify_web_menu_codes_main", "callee": "ArgumentParser", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L31"}, {"caller_nid": "scripts_verify_web_menu_codes_main", "callee": "add_argument", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L32"}, {"caller_nid": "scripts_verify_web_menu_codes_main", "callee": "add_argument", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L33"}, {"caller_nid": "scripts_verify_web_menu_codes_main", "callee": "parse_args", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L34"}, {"caller_nid": "scripts_verify_web_menu_codes_main", "callee": "Path", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L40"}, {"caller_nid": "scripts_verify_web_menu_codes_main", "callee": "is_absolute", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L41"}, {"caller_nid": "scripts_verify_web_menu_codes_main", "callee": "is_file", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L43"}, {"caller_nid": "scripts_verify_web_menu_codes_main", "callee": "load_dotenv", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/verify_web_menu_codes.py", "source_location": "L44"}, {"caller_nid": "scriptLine truncated
|
||||
backend/graphify-out/cache/ast/20f59e7e19a0c4415bdf17cef32a31db63220346688b3dbe06bc2c52a42d475c.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migrate_crm_sys_oss_py", "label": "migrate_crm_sys_oss.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L1"}, {"id": "scripts_migrate_crm_sys_oss_backfillrule", "label": "BackfillRule", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L53"}, {"id": "scripts_migrate_crm_sys_oss_bizref", "label": "BizRef", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L93"}, {"id": "scripts_migrate_crm_sys_oss_migrationstats", "label": "MigrationStats", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L102"}, {"id": "scripts_migrate_crm_sys_oss_legacy_id_to_str", "label": "legacy_id_to_str()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L113"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L113"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L113"}, {"id": "scripts_migrate_crm_sys_oss_derive_source_url", "label": "derive_source_url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L122"}, {"id": "scripts_migrate_crm_sys_oss_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L126"}, {"id": "scripts_migrate_crm_sys_oss_load_runtime_settings", "label": "load_runtime_settings()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L142"}, {"id": "scripts_migrate_crm_sys_oss_load_user_mapping", "label": "load_user_mapping()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L148"}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L148"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L148"}, {"id": "scripts_migrate_crm_sys_oss_fetch_portal_admin_id", "label": "fetch_portal_admin_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L166"}, {"id": "engine", "label": "Engine", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L166"}, {"id": "scripts_migrate_crm_sys_oss_resolve_portal_user_id", "label": "resolve_portal_user_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L174"}, {"id": "scripts_migrate_crm_sys_oss_fetch_source_rows", "label": "fetch_source_rows()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L196"}, {"id": "scripts_migrate_crm_sys_oss_count_target_rows", "label": "count_target_rows()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L202"}, {"id": "scripts_migrate_crm_sys_oss_transform_row", "label": "transform_row()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L212"}, {"id": "scripts_migrate_crm_sys_oss_target_row_exists", "label": "target_row_exists()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L288"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L288"}, {"id": "scripts_migrate_crm_sys_oss_parse_oss_id_tokens", "label": "parse_oss_id_tokens()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L295"}, {"id": "scripts_migrate_crm_sys_oss_normalize_oss_token", "label": "_normalize_oss_token()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_sys_oss.py", "source_location": "L323"}, {"id": "scripts_migrate_crm_sys_oss_table_exists", "Line truncated
|
||||
backend/graphify-out/cache/ast/320c63801100ea8e9fb62abfb44b3487139377e293310593a877ab2d06e9d2e3.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_renumber_crm_product_no_py", "label": "renumber_crm_product_no.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L1"}, {"id": "scripts_renumber_crm_product_no_renumberstats", "label": "RenumberStats", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L40"}, {"id": "scripts_renumber_crm_product_no_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L48"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L48"}, {"id": "scripts_renumber_crm_product_no_product_id_sort_key", "label": "product_id_sort_key()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L64"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L64"}, {"id": "scripts_renumber_crm_product_no_format_new_product_no", "label": "format_new_product_no()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L71"}, {"id": "scripts_renumber_crm_product_no_fetch_products", "label": "fetch_products()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L77"}, {"id": "engine", "label": "Engine", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L77"}, {"id": "scripts_renumber_crm_product_no_build_mapping", "label": "build_mapping()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L91"}, {"id": "scripts_renumber_crm_product_no_validate_mapping", "label": "validate_mapping()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L111"}, {"id": "scripts_renumber_crm_product_no_write_mapping_csv", "label": "write_mapping_csv()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L123"}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L123"}, {"id": "scripts_renumber_crm_product_no_apply_renumber", "label": "apply_renumber()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L143"}, {"id": "scripts_renumber_crm_product_no_main", "label": "main()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L185"}, {"id": "scripts_renumber_crm_product_no_rationale_144", "label": "\u4e24\u9636\u6bb5 UPDATE\uff0c\u907f\u514d uk_product_no \u4e2d\u95f4\u6001\u51b2\u7a81\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L144"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_renumber_crm_product_no_py", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L15", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_renumber_crm_product_no_py", "target": "csv", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L16", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_renumber_crm_product_no_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L17", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_renumber_crm_product_no_py", "target": "re", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/renumber_crm_product_no.py", "source_location": "L18", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_renumber_crm_product_no_py", "target": Line truncated
|
||||
backend/graphify-out/cache/ast/3e5dd462f2ad6218d2547b66db741132d0179037e6dd3ac24ddaa02a5b970d4b.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migrate_crm_product_py", "label": "migrate_crm_product.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L1"}, {"id": "scripts_migrate_crm_product_migrationstats", "label": "MigrationStats", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L42"}, {"id": "scripts_migrate_crm_product_legacy_id_to_str", "label": "legacy_id_to_str()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L50"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L50"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L50"}, {"id": "scripts_migrate_crm_product_derive_source_url", "label": "derive_source_url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L59"}, {"id": "scripts_migrate_crm_product_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L63"}, {"id": "scripts_migrate_crm_product_load_runtime_settings", "label": "load_runtime_settings()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L79"}, {"id": "scripts_migrate_crm_product_load_user_mapping", "label": "load_user_mapping()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L85"}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L85"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L85"}, {"id": "scripts_migrate_crm_product_fetch_portal_admin_id", "label": "fetch_portal_admin_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L103"}, {"id": "engine", "label": "Engine", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L103"}, {"id": "scripts_migrate_crm_product_resolve_portal_user_id", "label": "resolve_portal_user_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L111"}, {"id": "scripts_migrate_crm_product_fetch_source_rows", "label": "fetch_source_rows()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L133"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L133"}, {"id": "scripts_migrate_crm_product_count_target_rows", "label": "count_target_rows()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L140"}, {"id": "scripts_migrate_crm_product_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L153"}, {"id": "decimal", "label": "Decimal", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L153"}, {"id": "scripts_migrate_crm_product_transform_row", "label": "transform_row()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L159"}, {"id": "scripts_migrate_crm_product_target_row_exists", "label": "target_row_exists()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L241"}, {"id": "scripts_migrate_crm_product_write_mapping_csv", "label": "write_mapping_csv()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L247"}, {"id": "scripts_migrate_crm_product_print_report", "label": "print_report()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product.py", "source_location": "L270"}, {"id": "scripts_migrate_crm_product_run_migration", "label": "run_migration()", "file_type": "code", "source_file": "/UsLine truncated
|
||||
backend/graphify-out/cache/ast/40c5d0f797cf197707f77570260781bc12745f0e5ea69fbef634560a153463b0.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_setup_business_roles_py", "label": "setup_business_roles.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L1"}, {"id": "scripts_setup_business_roles_load_runtime_settings", "label": "load_runtime_settings()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L56"}, {"id": "scripts_setup_business_roles_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L62"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L62"}, {"id": "scripts_setup_business_roles_collect_subtree_menu_ids", "label": "collect_subtree_menu_ids()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L74"}, {"id": "scripts_setup_business_roles_leaf_menu_ids", "label": "leaf_menu_ids()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L100"}, {"id": "scripts_setup_business_roles_fetch_user_id_map", "label": "fetch_user_id_map()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L126"}, {"id": "scripts_setup_business_roles_purge_non_super_roles", "label": "purge_non_super_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L139"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L139"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L139"}, {"id": "scripts_setup_business_roles_ensure_new_roles", "label": "ensure_new_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L204"}, {"id": "scripts_setup_business_roles_grant_module_menus", "label": "grant_module_menus()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L245"}, {"id": "scripts_setup_business_roles_assign_user_roles", "label": "assign_user_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L278"}, {"id": "scripts_setup_business_roles_main", "label": "main()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L331"}, {"id": "scripts_setup_business_roles_rationale_75", "label": "BFS \u6536\u96c6\u6a21\u5757\u6839\u4e0b\u5168\u90e8\u83dc\u5355\uff08\u542b\u4e2d\u95f4\u76ee\u5f55\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L75"}, {"id": "scripts_setup_business_roles_rationale_101", "label": "\u4e0e\u89d2\u8272\u7ba1\u7406\u9875\u4e00\u81f4\uff1a\u4ec5\u6301\u4e45\u5316\u53f6\u5b50\u83dc\u5355\uff08\u65e0\u5b50\u8282\u70b9\u7684\u83dc\u5355\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L101"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_setup_business_roles_py", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L10", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_setup_business_roles_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L11", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_setup_business_roles_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L12", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_setup_business_roles_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_rolLine truncated
|
||||
backend/graphify-out/cache/ast/44006c0b2bc0f0ff8804facca212468e7db4c73915c31142c82b57823aa119b1.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "label": "web_auth_roles.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L1"}, {"id": "services_web_auth_roles_map_role_name_to_web", "label": "_map_role_name_to_web()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13"}, {"id": "services_web_auth_roles_role_rows_for_user", "label": "_role_rows_for_user()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25"}, {"id": "services_web_auth_roles_user_has_bound_roles", "label": "user_has_bound_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42"}, {"id": "services_web_auth_roles_resolve_web_role_for_user", "label": "resolve_web_role_for_user()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L53"}, {"id": "services_web_auth_roles_granted_menu_ids_for_user", "label": "_granted_menu_ids_for_user()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L71"}, {"id": "services_web_auth_roles_expand_with_ancestor_menu_ids", "label": "_expand_with_ancestor_menu_ids()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L103"}, {"id": "services_web_auth_roles_iter_user_menu_perm_codes", "label": "iter_user_menu_perm_codes()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L127"}, {"id": "services_web_auth_roles_rationale_1", "label": "Web \u7ba1\u7406\u7aef\u767b\u5f55\uff1a\u57fa\u4e8e V0.3 sys_user / sys_user_role / sys_role \u7684\u89d2\u8272\u4e0e\u83dc\u5355\u6743\u9650\u89e3\u6790", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L1"}, {"id": "services_web_auth_roles_rationale_14", "label": "\u5c06 sys_role.role_name \u6620\u5c04\u4e3a web-admin \u4f7f\u7528\u7684 role \u5b57\u7b26\u4e32\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L14"}, {"id": "services_web_auth_roles_rationale_43", "label": "\u7528\u6237\u662f\u5426\u5728 sys_user_role \u4e2d\u7ed1\u5b9a\u4e86\u81f3\u5c11\u4e00\u4e2a\u6709\u6548\u89d2\u8272\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L43"}, {"id": "services_web_auth_roles_rationale_54", "label": "\u6839\u636e\u7528\u6237\u5173\u8054\u89d2\u8272\u89e3\u6790 Web \u7aef role\uff08admin / super_admin\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L54"}, {"id": "services_web_auth_roles_rationale_104", "label": "\u89d2\u8272\u4ec5\u52fe\u9009\u6309\u94ae\uff08F\uff09\u65f6\uff0c\u8865\u9f50\u7956\u5148 C/M \u83dc\u5355 id\uff0c\u4fbf\u4e8e\u524d\u7aef\u5339\u914d :list \u8def\u7531\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L104"}, {"id": "services_web_auth_roles_rationale_130", "label": "\u7528\u6237\u901a\u8fc7\u89d2\u8272\u5173\u8054\u5f97\u5230\u7684\u83dc\u5355\u6743\u9650\u6807\u8bc6\uff08sys_menu.perms\uff0c\u7a7a\u5219\u9000\u56de\u83dc\u5355 id\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L130"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L4", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "sqlalchemy", "relation": "imports_from", "contextLine truncated
|
||||
backend/graphify-out/cache/ast/54a1bf95512c0a8b5feeb518ea3af76983bb1b0a3ba645898b07debdb2cc52e9.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migration_minio_url_py", "label": "minio_url.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L1"}, {"id": "migration_minio_url_strip_url_query", "label": "strip_url_query()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L39"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L39"}, {"id": "migration_minio_url_strip_legacy_prefix", "label": "_strip_legacy_prefix()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L47"}, {"id": "migration_minio_url_extract_minio_object_key", "label": "extract_minio_object_key()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L55"}, {"id": "migration_minio_url_normalize_oss_storage_url", "label": "normalize_oss_storage_url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L83"}, {"id": "migration_minio_url_join_relative_urls", "label": "join_relative_urls()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L96"}, {"id": "migration_minio_url_resolve_oss_id_csv", "label": "resolve_oss_id_csv()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L109"}, {"id": "migration_minio_url_rationale_1", "label": "MinIO \u9644\u4ef6 URL \u89c4\u8303\u5316\uff08\u6570\u636e\u8fc1\u79fb\u5171\u7528\uff09\u3002 \u80cc\u666f ---- CRM / \u5730\u78c5 / \u62a5\u9500\u4e0e shanxia2.0 \u5171\u7528\u540c\u4e00 MinIO\uff08bucket \u9ed8", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L1"}, {"id": "migration_minio_url_rationale_40", "label": "\u53bb\u6389\u9884\u7b7e\u540d query\uff08``?X-Amz-...``\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L40"}, {"id": "migration_minio_url_rationale_61", "label": "\u5c06\u7edd\u5bf9/\u76f8\u5bf9 URL \u89c4\u8303\u4e3a MinIO object key\uff08\u4e0d\u542b bucket\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L61"}, {"id": "migration_minio_url_rationale_89", "label": "\u8fc1\u79fb CRM ``sys_oss`` \u884c\uff1a``url`` + ``file_name`` \u2192 \u95e8\u6237\u76f8\u5bf9\u8def\u5f84\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L89"}, {"id": "migration_minio_url_rationale_113", "label": "\u4e1a\u52a1\u8868 OSS ID \u4e32 \u2192 \u76f8\u5bf9 URL \u4e32\uff08\u7528\u4e8e\u5ba2\u6237\u8bc1\u7167\u3001\u8ddf\u8fdb\u9644\u4ef6\u7b49\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L113"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migration_minio_url_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L18", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migration_minio_url_py", "target": "urllib_parse", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L19", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migration_minio_url_py", "target": "migration_minio_url_strip_url_query", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L39", "weight": 1.0}, {"source": "migration_minio_url_strip_url_query", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L39", "weight": 1.0}, {"source": "migration_minio_url_strip_url_query", "target": "str", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migration/minio_url.py", "source_location": "L39", "weight": 1.0}, {"source": "usersLine truncated
|
||||
backend/graphify-out/cache/ast/9cbdfdf3335a366aebd0a605431b3952ea9aab26bd564d075d501479ae0b20f7.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migrate_crm_product_category_py", "label": "migrate_crm_product_category.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L1"}, {"id": "scripts_migrate_crm_product_category_migrationstats", "label": "MigrationStats", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L46"}, {"id": "scripts_migrate_crm_product_category_legacy_id_to_str", "label": "legacy_id_to_str()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L54"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L54"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L54"}, {"id": "scripts_migrate_crm_product_category_derive_source_url", "label": "derive_source_url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L64"}, {"id": "scripts_migrate_crm_product_category_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L69"}, {"id": "scripts_migrate_crm_product_category_load_runtime_settings", "label": "load_runtime_settings()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L85"}, {"id": "scripts_migrate_crm_product_category_load_user_mapping", "label": "load_user_mapping()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L91"}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L91"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L91"}, {"id": "scripts_migrate_crm_product_category_fetch_portal_admin_id", "label": "fetch_portal_admin_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L116"}, {"id": "engine", "label": "Engine", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L116"}, {"id": "scripts_migrate_crm_product_category_resolve_portal_user_id", "label": "resolve_portal_user_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L127"}, {"id": "scripts_migrate_crm_product_category_fetch_source_rows", "label": "fetch_source_rows()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L152"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L152"}, {"id": "scripts_migrate_crm_product_category_count_target_rows", "label": "count_target_rows()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L159"}, {"id": "scripts_migrate_crm_product_category_topo_sort_categories", "label": "topo_sort_categories()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L172"}, {"id": "scripts_migrate_crm_product_category_compute_level", "label": "compute_level()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L206"}, {"id": "scripts_migrate_crm_product_category_transform_row", "label": "transform_row()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L213"}, {"id": "scripts_migrate_crm_product_category_target_row_exists", "label": "target_row_exists()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_product_category.py", "source_location": "L255"}, {"id": "scripts_migrate_crm_product_category_write_mapping_csv", "label": "write_mapping_csv()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shLine truncated
|
||||
backend/graphify-out/cache/ast/ac12df2cf75826931c85f4deb3ae28614e31ea825d0beb3cf351a8d4f5cb1071.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_setup_business_roles_py", "label": "setup_business_roles.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L1"}, {"id": "scripts_setup_business_roles_load_runtime_settings", "label": "load_runtime_settings()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L56"}, {"id": "scripts_setup_business_roles_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L62"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L62"}, {"id": "scripts_setup_business_roles_collect_subtree_menu_ids", "label": "collect_subtree_menu_ids()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L74"}, {"id": "scripts_setup_business_roles_perm_menu_ids", "label": "perm_menu_ids()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L100"}, {"id": "scripts_setup_business_roles_leaf_menu_ids", "label": "leaf_menu_ids()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L121"}, {"id": "scripts_setup_business_roles_fetch_user_id_map", "label": "fetch_user_id_map()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L147"}, {"id": "scripts_setup_business_roles_purge_non_super_roles", "label": "purge_non_super_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L160"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L160"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L160"}, {"id": "scripts_setup_business_roles_ensure_new_roles", "label": "ensure_new_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L225"}, {"id": "scripts_setup_business_roles_grant_module_menus", "label": "grant_module_menus()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L266"}, {"id": "scripts_setup_business_roles_assign_user_roles", "label": "assign_user_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L299"}, {"id": "scripts_setup_business_roles_main", "label": "main()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L352"}, {"id": "scripts_setup_business_roles_rationale_75", "label": "BFS \u6536\u96c6\u6a21\u5757\u6839\u4e0b\u5168\u90e8\u83dc\u5355\uff08\u542b\u4e2d\u95f4\u76ee\u5f55\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L75"}, {"id": "scripts_setup_business_roles_rationale_101", "label": "\u6301\u4e45\u5316\u6240\u6709\u5e26 perms \u7684\u83dc\u5355\uff08C \u9875\u9762 :list + F \u6309\u94ae\uff09\uff0c\u4e0e\u524d\u7aef menuCode \u8fc7\u6ee4\u5bf9\u9f50\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L101"}, {"id": "scripts_setup_business_roles_rationale_122", "label": "\u4e0e\u89d2\u8272\u7ba1\u7406\u9875\u4e00\u81f4\uff1a\u4ec5\u6301\u4e45\u5316\u53f6\u5b50\u83dc\u5355\uff08\u65e0\u5b50\u8282\u70b9\u7684\u83dc\u5355\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L122"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_setup_business_roles_py", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "source_location": "L10", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_setup_business_roles_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/setup_business_roles.py", "soLine truncated
|
||||
backend/graphify-out/cache/ast/b2c76109936791e1f624e239b24832237fa0256b38b98578e39825ac215fb166.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "label": "refresh_business_role_menus.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L1"}, {"id": "scripts_refresh_business_role_menus_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L34"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L34"}, {"id": "scripts_refresh_business_role_menus_load_runtime_settings", "label": "load_runtime_settings()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L46"}, {"id": "scripts_refresh_business_role_menus_verify_user_menu_codes", "label": "verify_user_menu_codes()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L52"}, {"id": "scripts_refresh_business_role_menus_main", "label": "main()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L81"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L81"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L12", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L13", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L14", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L15", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L16", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "sqlalchemy", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L18", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "scripts_setup_business_roles", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L24", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "scripts_refresh_business_role_menus_load_settings_env", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L34", "weight": 1.0}, {"source": "scripts_refresh_business_role_menus_load_settings_env", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L34", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_refresh_business_role_menus_py", "target": "scripts_refresh_business_role_menus_load_runtime_settings", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/refresh_business_role_menus.py", "source_location": "L46", "weight": 1.0}, {"source"Line truncated
|
||||
backend/graphify-out/cache/ast/b98ac3f3bc95c2b42c481ac9ae9137528e55845d425e5d2184827dc424304e42.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_app_api_public_py", "label": "public.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L1"}, {"id": "api_public_avatar_url_field", "label": "_avatar_url_field()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L39"}, {"id": "sysuser", "label": "SysUser", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L39"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L39"}, {"id": "api_public_web_role_list", "label": "_web_role_list()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L47"}, {"id": "api_public_build_user_info_payload", "label": "_build_user_info_payload()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L53"}, {"id": "api_public_jwt_user_payload", "label": "_jwt_user_payload()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L71"}, {"id": "api_public_web_login_rsa_public_key", "label": "web_login_rsa_public_key()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L84"}, {"id": "api_public_web_login", "label": "web_login()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L91"}, {"id": "request", "label": "Request", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L91"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L91"}, {"id": "api_public_refresh_token", "label": "refresh_token()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L149"}, {"id": "api_public_logout", "label": "logout()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L211"}, {"id": "api_public_get_current_user_profile", "label": "get_current_user_profile()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L230"}, {"id": "api_public_get_web_auth_menu_codes", "label": "get_web_auth_menu_codes()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L265"}, {"id": "api_public_change_current_user_password", "label": "change_current_user_password()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L314"}, {"id": "api_public_public_quote_share", "label": "public_quote_share()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L347"}, {"id": "api_public_rationale_1", "label": "\u516c\u5171\u63a5\u53e3\uff08Web \u767b\u5f55\u3001\u5237\u65b0 Token\u3001\u767b\u51fa\uff1b\u7528\u6237\u6a21\u578b\u5bf9\u9f50 docs/sql/shanxia2.0.sql \u57fa\u7ebf\uff09", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L1"}, {"id": "api_public_rationale_48", "label": "\u4e0e web-admin \u9759\u6001\u8def\u7531 meta.roles\uff08admin/super_admin\uff09\u5bf9\u9f50\u7684\u5355\u5143\u7d20\u6570\u7ec4\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L48"}, {"id": "api_public_rationale_54", "label": "\u4e0e web-admin `userInfo` \u5b57\u6bb5\u7ea6\u5b9a\u4e00\u81f4\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L54"}, {"id": "api_public_rationale_85", "label": "Web \u7aef\u767b\u5f55\u7528 RSA \u516c\u94a5\uff08PKCS#1 v1.5\uff0c\u4e0e JSEncrypt \u4e00\u81f4\uff09", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L85"}, {"id": "api_public_rationale_96", "label": "Web \u7aef\u767b\u5f55\uff1a\u8d26\u53f7\u4e3a sys_user.user_no\uff0c\u5bc6\u7801\u4e3a sys_user.password\uff08bcrypt\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/api/public.py", "source_location": "L96"}, {"id": "api_public_rationale_212", "label": "\u767b\u51fa\uff1a\u540a\u9500 Redis \u4f1a\u8bdd\uff08\u82e5\u5df2\u914d\u7f6e REDIS_HOST\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00Line truncated
|
||||
backend/graphify-out/cache/ast/cfc98cc72c5e387317cfa0a7670c47067fffe8f2e540d5cd580ee459e173e4ef.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_compare_dict_snapshots_py", "label": "compare_dict_snapshots.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L1"}, {"id": "scripts_compare_dict_snapshots_parse_insert_values", "label": "parse_insert_values()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L15"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L15"}, {"id": "scripts_compare_dict_snapshots_unquote", "label": "unquote()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L47"}, {"id": "scripts_compare_dict_snapshots_load_sx_dicts", "label": "load_sx_dicts()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L56"}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L56"}, {"id": "scripts_compare_dict_snapshots_load_portal_dicts", "label": "load_portal_dicts()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L89"}, {"id": "scripts_compare_dict_snapshots_item_key", "label": "item_key()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L121"}, {"id": "scripts_compare_dict_snapshots_compare_data", "label": "compare_data()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L125"}, {"id": "scripts_compare_dict_snapshots_main", "label": "main()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L139"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_compare_dict_snapshots_py", "target": "re", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_compare_dict_snapshots_py", "target": "collections", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L6", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_compare_dict_snapshots_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L7", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_compare_dict_snapshots_py", "target": "scripts_compare_dict_snapshots_parse_insert_values", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L15", "weight": 1.0}, {"source": "scripts_compare_dict_snapshots_parse_insert_values", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L15", "weight": 1.0}, {"source": "scripts_compare_dict_snapshots_parse_insert_values", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L15", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_scripts_compare_dict_snapshots_py", "target": "scripts_compare_dict_snapshots_unquote", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L47", "weight": 1.0}, {"source": "scripts_compare_dict_snapshots_unquote", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L47", "weight": 1.0}, {"source": "scripts_compare_dict_snapshots_unquote", "target": "str", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/compare_dict_snapshots.py", "source_location": "L47", "weightLine truncated
|
||||
backend/graphify-out/cache/ast/f30d5a50a28a1130325a9d9db88586bcae9e2a39434f077ded25f847af2ed66f.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migrate_crm_customer_py", "label": "migrate_crm_customer.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L1"}, {"id": "scripts_migrate_crm_customer_stepstats", "label": "StepStats", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L79"}, {"id": "scripts_migrate_crm_customer_migrationstats", "label": "MigrationStats", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L87"}, {"id": "scripts_migrate_crm_customer_migrationstats_step", "label": ".step()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L91"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L91"}, {"id": "scripts_migrate_crm_customer_legacy_id_to_str", "label": "legacy_id_to_str()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L97"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L97"}, {"id": "scripts_migrate_crm_customer_derive_source_url", "label": "derive_source_url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L106"}, {"id": "scripts_migrate_crm_customer_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L110"}, {"id": "scripts_migrate_crm_customer_load_runtime_settings", "label": "load_runtime_settings()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L126"}, {"id": "scripts_migrate_crm_customer_load_user_mapping", "label": "load_user_mapping()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L132"}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L132"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L132"}, {"id": "scripts_migrate_crm_customer_fetch_portal_admin_id", "label": "fetch_portal_admin_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L150"}, {"id": "engine", "label": "Engine", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L150"}, {"id": "scripts_migrate_crm_customer_resolve_portal_user_id", "label": "resolve_portal_user_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L158"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L158"}, {"id": "scripts_migrate_crm_customer_load_oss_id_to_url", "label": "load_oss_id_to_url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L184"}, {"id": "scripts_migrate_crm_customer_normalize_customer_type", "label": "normalize_customer_type()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L193"}, {"id": "scripts_migrate_crm_customer_normalize_follow_type", "label": "normalize_follow_type()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L210"}, {"id": "scripts_migrate_crm_customer_dec", "label": "_dec()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L215"}, {"id": "decimal", "label": "Decimal", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L215"}, {"id": "scripts_migrate_crm_customer_str_or_none", "label": "_str_or_none()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_crm_customer.py", "source_location": "L221"}, {"id": "scripts_migrate_crm_customer_fetch_source_rows", "label": "fetch_soLine truncated
|
||||
backend/graphify-out/cache/ast/f5626fd3ca8bbc16275862080365c3ea2a27fd0f608e2243a284493762a8f735.json
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_scripts_migrate_users_py", "label": "migrate_users.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L1"}, {"id": "scripts_migrate_users_sourceuser", "label": "SourceUser", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L97"}, {"id": "scripts_migrate_users_migrationstats", "label": "MigrationStats", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L112"}, {"id": "scripts_migrate_users_has_chinese", "label": "_has_chinese()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L121"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L121"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L121"}, {"id": "scripts_migrate_users_clip", "label": "_clip()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L125"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L125"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L125"}, {"id": "scripts_migrate_users_normalize_phone", "label": "_normalize_phone()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L130"}, {"id": "scripts_migrate_users_generate_initial_password", "label": "generate_initial_password()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L135"}, {"id": "scripts_migrate_users_bx_role_labels", "label": "bx_role_labels()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L145"}, {"id": "scripts_migrate_users_crm_role_labels", "label": "crm_role_labels()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L149"}, {"id": "scripts_migrate_users_load_dept_mapping_csv", "label": "load_dept_mapping_csv()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L153"}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L153"}, {"id": "scripts_migrate_users_derive_source_url", "label": "derive_source_url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L177"}, {"id": "scripts_migrate_users_load_runtime_settings", "label": "load_runtime_settings()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L184"}, {"id": "scripts_migrate_users_load_settings_env", "label": "load_settings_env()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L191"}, {"id": "scripts_migrate_users_check_mysql", "label": "check_mysql()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L209"}, {"id": "engine", "label": "Engine", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L209"}, {"id": "scripts_migrate_users_check_redis", "label": "check_redis()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L214"}, {"id": "scripts_migrate_users_check_minio", "label": "check_minio()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L232"}, {"id": "scripts_migrate_users_fetch_bx_users", "label": "fetch_bx_users()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L250"}, {"id": "scripts_migrate_users_fetch_crm_users", "label": "fetch_crm_users()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/scripts/migrate_users.py", "source_location": "L262"}, {"id": "scripts_migrate_users_fetch_bx_role_users", "label": "fetch_bx_role_users()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/sLine 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":6716,"mtime_ns":1783761682571576393,"hash":"bbe64081c9790941eb2fa8f9c18ee39daf151068b3503f1fdb74c2cb9f7b5b45"},"/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":6716,"mtime_ns":1783761682571576393,"hash":"bbe64081c9790941eb2fa8f9c18ee39daf151068b3503f1fdb74c2cb9f7b5b45"},"/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
|
||||
+253965
-244149
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,283 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compare sys_dict_type / sys_dict_data across SQL snapshots."""
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
from collections import defaultdict
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
SX_SQL = ROOT / "docs/sql/sx.sql"
|
||||
PORTAL_SQL = ROOT / "docs/sql/shanxia2.0.sql"
|
||||
DIBANG_SQL = ROOT / "docs/sql/dibang.sql"
|
||||
|
||||
|
||||
def parse_insert_values(line: str) -> list[str] | None:
|
||||
m = re.search(r"VALUES\s*\((.*)\)\s*;?\s*$", line, re.I)
|
||||
if not m:
|
||||
return None
|
||||
inner = m.group(1)
|
||||
parts: list[str] = []
|
||||
cur: list[str] = []
|
||||
in_str = False
|
||||
esc = False
|
||||
for ch in inner:
|
||||
if esc:
|
||||
cur.append(ch)
|
||||
esc = False
|
||||
continue
|
||||
if ch == "\\":
|
||||
esc = True
|
||||
cur.append(ch)
|
||||
continue
|
||||
if ch == "'":
|
||||
in_str = not in_str
|
||||
cur.append(ch)
|
||||
continue
|
||||
if ch == "," and not in_str:
|
||||
parts.append("".join(cur).strip())
|
||||
cur = []
|
||||
continue
|
||||
cur.append(ch)
|
||||
if cur:
|
||||
parts.append("".join(cur).strip())
|
||||
return parts
|
||||
|
||||
|
||||
def unquote(v: str) -> str:
|
||||
v = v.strip()
|
||||
if v.upper() == "NULL":
|
||||
return ""
|
||||
if v.startswith("'") and v.endswith("'"):
|
||||
return v[1:-1].replace("''", "'").replace("\\'", "'")
|
||||
return v
|
||||
|
||||
|
||||
def load_sx_dicts(path: Path) -> tuple[dict[str, dict], dict[str, list[dict]]]:
|
||||
types: dict[str, dict] = {}
|
||||
data_by_type: dict[str, list[dict]] = defaultdict(list)
|
||||
for line in path.read_text(encoding="utf-8", errors="ignore").splitlines():
|
||||
if "INSERT INTO `sys_dict_type`" in line:
|
||||
vals = parse_insert_values(line)
|
||||
if not vals or len(vals) < 4:
|
||||
continue
|
||||
# dict_id, tenant_id, dict_name, dict_type, ...
|
||||
dict_type = unquote(vals[3])
|
||||
types[dict_type] = {
|
||||
"dict_name": unquote(vals[2]),
|
||||
"tenant_id": unquote(vals[1]),
|
||||
"remark": unquote(vals[9]) if len(vals) > 9 else "",
|
||||
}
|
||||
elif "INSERT INTO `sys_dict_data`" in line:
|
||||
vals = parse_insert_values(line)
|
||||
if not vals or len(vals) < 6:
|
||||
continue
|
||||
# dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, ...
|
||||
dict_type = unquote(vals[5])
|
||||
data_by_type[dict_type].append(
|
||||
{
|
||||
"label": unquote(vals[3]),
|
||||
"value": unquote(vals[4]),
|
||||
"sort": unquote(vals[2]),
|
||||
"css_class": unquote(vals[6]) if len(vals) > 6 else "",
|
||||
"list_class": unquote(vals[7]) if len(vals) > 7 else "",
|
||||
}
|
||||
)
|
||||
return types, data_by_type
|
||||
|
||||
|
||||
def load_portal_dicts(path: Path) -> tuple[dict[str, dict], dict[str, list[dict]]]:
|
||||
types: dict[str, dict] = {}
|
||||
data_by_type: dict[str, list[dict]] = defaultdict(list)
|
||||
for line in path.read_text(encoding="utf-8", errors="ignore").splitlines():
|
||||
if "INSERT INTO `sys_dict_type`" in line:
|
||||
vals = parse_insert_values(line)
|
||||
if not vals or len(vals) < 3:
|
||||
continue
|
||||
# id, dict_name, dict_type, tenant_no, ...
|
||||
dict_type = unquote(vals[2])
|
||||
types[dict_type] = {
|
||||
"dict_name": unquote(vals[1]),
|
||||
"tenant_no": unquote(vals[3]),
|
||||
"remark": unquote(vals[5]) if len(vals) > 5 else "",
|
||||
}
|
||||
elif "INSERT INTO `sys_dict_data`" in line:
|
||||
vals = parse_insert_values(line)
|
||||
if not vals or len(vals) < 5:
|
||||
continue
|
||||
# id, dict_label, dict_value, tag_type, dict_type, tenant_no, ...
|
||||
dict_type = unquote(vals[4])
|
||||
data_by_type[dict_type].append(
|
||||
{
|
||||
"label": unquote(vals[1]),
|
||||
"value": unquote(vals[2]),
|
||||
"tag_type": unquote(vals[3]),
|
||||
"sort": unquote(vals[6]) if len(vals) > 6 else "",
|
||||
}
|
||||
)
|
||||
return types, data_by_type
|
||||
|
||||
|
||||
def item_key(item: dict) -> str:
|
||||
return f"{item['value']}|{item['label']}"
|
||||
|
||||
|
||||
def compare_data(sx_items: list[dict], portal_items: list[dict]) -> dict:
|
||||
sx_map = {item_key(i): i for i in sx_items}
|
||||
portal_map = {item_key(i): i for i in portal_items}
|
||||
sx_keys = set(sx_map)
|
||||
portal_keys = set(portal_map)
|
||||
return {
|
||||
"only_sx": sorted(sx_keys - portal_keys),
|
||||
"only_portal": sorted(portal_keys - sx_keys),
|
||||
"common": sorted(sx_keys & portal_keys),
|
||||
"sx_count": len(sx_items),
|
||||
"portal_count": len(portal_items),
|
||||
}
|
||||
|
||||
|
||||
def main() -> None:
|
||||
sx_types, sx_data = load_sx_dicts(SX_SQL)
|
||||
portal_types, portal_data = load_portal_dicts(PORTAL_SQL)
|
||||
|
||||
sx_type_keys = set(sx_types)
|
||||
portal_type_keys = set(portal_types)
|
||||
|
||||
only_sx_types = sorted(sx_type_keys - portal_type_keys)
|
||||
only_portal_types = sorted(portal_type_keys - sx_type_keys)
|
||||
common_types = sorted(sx_type_keys & portal_type_keys)
|
||||
|
||||
def count_by_prefix(types: set[str], prefix: str) -> int:
|
||||
return sum(1 for t in types if t.startswith(prefix))
|
||||
|
||||
sx_data_total = sum(len(v) for v in sx_data.values())
|
||||
portal_data_total = sum(len(v) for v in portal_data.values())
|
||||
portal_active = sum(
|
||||
1 for items in portal_data.values() for i in items
|
||||
) # placeholder
|
||||
|
||||
print("=" * 72)
|
||||
print("字典对比总览(基于 docs/sql 快照)")
|
||||
print("=" * 72)
|
||||
print(f"{'':28} {'sx.sql':>12} {'shanxia2.0':>12}")
|
||||
print(f"{'字典类型数':28} {len(sx_type_keys):>12} {len(portal_type_keys):>12}")
|
||||
print(f"{'字典项数':28} {sx_data_total:>12} {portal_data_total:>12}")
|
||||
print(f"{'crm_* 类型数':28} {count_by_prefix(sx_type_keys,'crm_'):>12} {count_by_prefix(portal_type_keys,'crm_'):>12}")
|
||||
print(f"{'xg_* 类型数(学工)':28} {count_by_prefix(sx_type_keys,'xg_'):>12} {count_by_prefix(portal_type_keys,'xg_'):>12}")
|
||||
print(f"{'sys_* 类型数':28} {count_by_prefix(sx_type_keys,'sys_'):>12} {count_by_prefix(portal_type_keys,'sys_'):>12}")
|
||||
print(f"{'pl_* 类型数(运输)':28} {count_by_prefix(sx_type_keys,'pl_'):>12} {count_by_prefix(portal_type_keys,'pl_'):>12}")
|
||||
print()
|
||||
|
||||
# semantic alias pairs
|
||||
alias_pairs = [
|
||||
("sys_user_sex", "sys_sex"),
|
||||
("sys_show_hide", "sys_visible"),
|
||||
("sys_normal_disable", "sys_status"),
|
||||
]
|
||||
print("--- 语义相近但类型码不同的「别名」---")
|
||||
for sx_t, portal_t in alias_pairs:
|
||||
in_sx = sx_t in sx_types or portal_t in sx_types
|
||||
in_portal = sx_t in portal_types or portal_t in portal_types
|
||||
if in_sx or in_portal:
|
||||
print(
|
||||
f" sx: {sx_t} ({len(sx_data.get(sx_t,[]))}项) "
|
||||
f"| portal: {portal_t} ({len(portal_data.get(portal_t,[]))}项) "
|
||||
f"+ portal {sx_t} ({len(portal_data.get(sx_t,[]))}项)"
|
||||
)
|
||||
print()
|
||||
|
||||
crm_prefixes = ("crm_", "xs_", "bx_")
|
||||
crm_only_sx = [t for t in only_sx_types if t.startswith(crm_prefixes) or "crm" in t or t.startswith("xs_")]
|
||||
other_only_sx = [t for t in only_sx_types if t not in crm_only_sx]
|
||||
|
||||
print("=" * 72)
|
||||
print("字典类型 (sys_dict_type) 差异明细")
|
||||
print("=" * 72)
|
||||
print(f"类型码相同(两边都有): {len(common_types)}")
|
||||
print(f"仅 sx 有(门户缺失): {len(only_sx_types)}")
|
||||
print(f"仅门户有(sx 无,多为 2.0 新增): {len(only_portal_types)}")
|
||||
print()
|
||||
|
||||
print("--- 仅门户有的字典类型(shanxia2.0 新增能力)---")
|
||||
for t in only_portal_types:
|
||||
print(f" {t:40} {portal_types[t]['dict_name']}")
|
||||
print()
|
||||
|
||||
print("--- 仅 sx 有 · CRM/业务相关(建议评估是否迁入)---")
|
||||
for t in crm_only_sx:
|
||||
print(f" {t:40} {sx_types[t]['dict_name']} (data:{len(sx_data.get(t, []))})")
|
||||
print()
|
||||
|
||||
print("--- 仅 sx 有 · 学工/校园 xg_*(门户一般不需要)---")
|
||||
xg_only = [t for t in only_sx_types if t.startswith("xg_")]
|
||||
for t in xg_only[:20]:
|
||||
print(f" {t:40} {sx_types[t]['dict_name']} (data:{len(sx_data.get(t, []))})")
|
||||
if len(xg_only) > 20:
|
||||
print(f" ... 共 {len(xg_only)} 个 xg_* 类型")
|
||||
print()
|
||||
|
||||
print("--- 仅 sx 有 · 若依框架 sys_*(可能与门户同名不同义)---")
|
||||
sys_overlap_missing = [t for t in only_sx_types if t.startswith("sys_")]
|
||||
for t in sys_overlap_missing:
|
||||
print(f" {t:40} {sx_types[t]['dict_name']} (data:{len(sx_data.get(t, []))})")
|
||||
print()
|
||||
|
||||
print("--- 仅 sx 有 · 其他 ---")
|
||||
for t in other_only_sx:
|
||||
if not t.startswith("xg_"):
|
||||
print(f" {t:40} {sx_types[t]['dict_name']} (data:{len(sx_data.get(t, []))})")
|
||||
print()
|
||||
|
||||
print("=" * 72)
|
||||
print("同名类型下字典项 (sys_dict_data) 差异(sx ∩ 门户)")
|
||||
print("=" * 72)
|
||||
diff_types = []
|
||||
for t in common_types:
|
||||
cmp = compare_data(sx_data.get(t, []), portal_data.get(t, []))
|
||||
if cmp["only_sx"] or cmp["only_portal"] or cmp["sx_count"] != cmp["portal_count"]:
|
||||
diff_types.append((t, cmp))
|
||||
print(f"类型码相同但字典项不完全一致: {len(diff_types)} / {len(common_types)}")
|
||||
print()
|
||||
for t, cmp in sorted(diff_types, key=lambda x: x[0]):
|
||||
sx_name = sx_types[t]["dict_name"]
|
||||
portal_name = portal_types[t]["dict_name"]
|
||||
print(f"[{t}] sx:{sx_name} | portal:{portal_name}")
|
||||
print(f" sx项数={cmp['sx_count']} portal项数={cmp['portal_count']}")
|
||||
if cmp["only_sx"]:
|
||||
print(f" 仅sx有 ({len(cmp['only_sx'])}):")
|
||||
for k in cmp["only_sx"][:8]:
|
||||
print(f" - {k}")
|
||||
if len(cmp["only_sx"]) > 8:
|
||||
print(f" ... +{len(cmp['only_sx']) - 8}")
|
||||
if cmp["only_portal"]:
|
||||
print(f" 仅门户有 ({len(cmp['only_portal'])}):")
|
||||
for k in cmp["only_portal"][:8]:
|
||||
print(f" - {k}")
|
||||
if len(cmp["only_portal"]) > 8:
|
||||
print(f" ... +{len(cmp['only_portal']) - 8}")
|
||||
print()
|
||||
|
||||
print("=" * 72)
|
||||
print("CRM 业务字典(sx 有、门户无)明细")
|
||||
print("=" * 72)
|
||||
crm_types = sorted(
|
||||
t
|
||||
for t in only_sx_types
|
||||
if t.startswith("crm_") or t.startswith("xs_") or t in ("contract_type", "contract_nature")
|
||||
)
|
||||
for t in crm_types:
|
||||
print(f"\n## {t} — {sx_types[t]['dict_name']}")
|
||||
for item in sorted(sx_data.get(t, []), key=lambda x: (x.get("sort") or "", x["value"])):
|
||||
print(f" {item['value']:20} {item['label']}")
|
||||
|
||||
print()
|
||||
print("=" * 72)
|
||||
print("地磅系统 dibang.sql")
|
||||
print("=" * 72)
|
||||
dibang_text = DIBANG_SQL.read_text(encoding="utf-8", errors="ignore")
|
||||
has_dict = "sys_dict" in dibang_text
|
||||
print("含 sys_dict 表/数据:", "是" if has_dict else "否(地磅无独立字典表,枚举多在业务字段或前端硬编码)")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,827 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库报销(bx_*)数据迁入 shanxia2.0。
|
||||
|
||||
阶段:
|
||||
base — 费用项目 + 工作流定义/节点(替换门户预置工作流)
|
||||
advance — 备用金申请 + 审批
|
||||
reimburse — 报销单 + 明细 + 审批 + 冲抵
|
||||
attachment— 附件(依赖业务单 biz_id)
|
||||
all — 按依赖顺序全部执行
|
||||
|
||||
用户外键:docs/data-migration/mappings/user_mapping_result.csv(bx_user_id);
|
||||
bx_user_id=1(原系统管理员)→ 门户 admin。
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_bx_data.py --dry-run --phase base --env-file .env.production
|
||||
venv/bin/python scripts/migrate_bx_data.py --phase all --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import date, datetime
|
||||
from decimal import Decimal
|
||||
from pathlib import Path
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
BX_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
PHASE_STEPS: Dict[str, Tuple[str, ...]] = {
|
||||
"base": ("bx_expense_item", "bx_workflow_def", "bx_workflow_node"),
|
||||
"advance": ("bx_advance_apply", "bx_advance_approval"),
|
||||
"reimburse": (
|
||||
"bx_reimburse_apply",
|
||||
"bx_reimburse_detail",
|
||||
"bx_reimburse_approval",
|
||||
"bx_reimburse_offset",
|
||||
),
|
||||
"attachment": ("bx_attachment",),
|
||||
}
|
||||
|
||||
ALL_STEPS = PHASE_STEPS["base"] + PHASE_STEPS["advance"] + PHASE_STEPS["reimburse"] + PHASE_STEPS["attachment"]
|
||||
|
||||
APPLY_CODE_RE = re.compile(r"^BX(\d{8})(\d{3})$")
|
||||
|
||||
|
||||
@dataclass
|
||||
class StepStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
skipped: int = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
steps: Dict[str, StepStats] = field(default_factory=dict)
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
def step(self, name: str) -> StepStats:
|
||||
if name not in self.steps:
|
||||
self.steps[name] = StepStats()
|
||||
return self.steps[name]
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_bx_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
bx_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
bx_raw = (row.get("bx_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if bx_raw and new_id:
|
||||
try:
|
||||
bx_map[int(bx_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return bx_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def map_bx_user_id(
|
||||
raw: Any,
|
||||
bx_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
*,
|
||||
required: bool = False,
|
||||
) -> Optional[str]:
|
||||
if raw is None or str(raw).strip() == "":
|
||||
return None
|
||||
text_val = str(raw).strip()
|
||||
if len(text_val) >= 32 and not text_val.isdigit():
|
||||
return text_val
|
||||
try:
|
||||
uid = int(text_val)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户引用 {raw!r}")
|
||||
return admin_id if required else None
|
||||
if uid == BX_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = bx_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: bx_user_id={uid} 无映射")
|
||||
return admin_id if required else None
|
||||
return mapped
|
||||
|
||||
|
||||
def _str_or_none(value: Any, max_len: int = 0) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
s = str(value).strip()
|
||||
if not s:
|
||||
return None
|
||||
return s[:max_len] if max_len else s
|
||||
|
||||
|
||||
def _dec(value: Any) -> Optional[Decimal]:
|
||||
if value is None or value == "":
|
||||
return None
|
||||
return Decimal(str(value))
|
||||
|
||||
|
||||
def parse_reimburse_meta(apply_code: str) -> Tuple[date, int]:
|
||||
m = APPLY_CODE_RE.match(apply_code or "")
|
||||
if not m:
|
||||
raise ValueError(f"无法解析报销单号: {apply_code!r}")
|
||||
ymd, seq = m.group(1), int(m.group(2))
|
||||
d = date(int(ymd[0:4]), int(ymd[4:6]), int(ymd[6:8]))
|
||||
return d, seq
|
||||
|
||||
|
||||
def fetch_source_rows(
|
||||
engine: Engine, table: str, *, include_deleted: bool, no_del_flag: bool = False
|
||||
) -> List[dict]:
|
||||
if no_del_flag:
|
||||
where = ""
|
||||
elif include_deleted:
|
||||
where = ""
|
||||
else:
|
||||
where = "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{table}` {where} ORDER BY id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def target_row_exists(conn, table: str, row_id: str) -> bool:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}` WHERE id=:id"), {"id": row_id}).scalar_one()) > 0
|
||||
|
||||
|
||||
def clear_portal_workflow(conn) -> None:
|
||||
conn.execute(text("DELETE FROM bx_workflow_node"))
|
||||
conn.execute(text("DELETE FROM bx_workflow_def"))
|
||||
|
||||
|
||||
def transform_expense_item(
|
||||
row: dict, tenant_no: str, bx_user_map: Dict[int, str], admin_id: Optional[str], stats: MigrationStats
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"expense#{rid}"
|
||||
return {
|
||||
"id": rid,
|
||||
"parent_id": legacy_id_to_str(row.get("parent_id")) or "0",
|
||||
"item_name": (row.get("item_name") or "")[:128],
|
||||
"item_code": _str_or_none(row.get("item_code"), 64),
|
||||
"level": int(row.get("level") or 1),
|
||||
"sort_order": int(row.get("sort_order") or 0),
|
||||
"status": int(row.get("status") or 1),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": map_bx_user_id(row.get("create_by"), bx_user_map, admin_id, stats, label),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_bx_user_id(row.get("update_by"), bx_user_map, admin_id, stats, label),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_workflow_def(row: dict, tenant_no: str, stats: MigrationStats) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
return {
|
||||
"id": rid,
|
||||
"biz_type": (row.get("biz_type") or "")[:32],
|
||||
"wf_name": (row.get("wf_name") or "")[:128],
|
||||
"status": int(row.get("status") or 1),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": None,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": None,
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_workflow_node(
|
||||
row: dict, tenant_no: str, bx_user_map: Dict[int, str], admin_id: Optional[str], stats: MigrationStats
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"wf_node#{rid}"
|
||||
return {
|
||||
"id": rid,
|
||||
"wf_id": legacy_id_to_str(row.get("wf_id")),
|
||||
"node_name": (row.get("node_name") or "")[:128],
|
||||
"node_order": int(row.get("node_order") or 0),
|
||||
"approver_id": map_bx_user_id(
|
||||
row.get("approver_id"), bx_user_map, admin_id, stats, label, required=True
|
||||
),
|
||||
"approver_name": (row.get("approver_name") or "")[:64],
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": None,
|
||||
"create_by": None,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": None,
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": 0,
|
||||
}
|
||||
|
||||
|
||||
def transform_advance_apply(
|
||||
row: dict, tenant_no: str, bx_user_map: Dict[int, str], admin_id: Optional[str], stats: MigrationStats
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"advance#{rid}"
|
||||
expense_item_id = legacy_id_to_str(row.get("expense_item_id"))
|
||||
return {
|
||||
"id": rid,
|
||||
"apply_code": (row.get("apply_code") or "")[:32],
|
||||
"applicant_id": map_bx_user_id(
|
||||
row.get("applicant_id"), bx_user_map, admin_id, stats, label, required=True
|
||||
),
|
||||
"applicant_name": (row.get("applicant_name") or "")[:64],
|
||||
"reason": (row.get("reason") or "")[:1024],
|
||||
"purpose": _str_or_none(row.get("purpose"), 1024),
|
||||
"expense_item_id": expense_item_id,
|
||||
"amount": _dec(row.get("amount")) or Decimal("0"),
|
||||
"status": (row.get("status") or "draft")[:32],
|
||||
"current_node": _str_or_none(row.get("current_node"), 128),
|
||||
"wf_id": legacy_id_to_str(row.get("wf_id")),
|
||||
"issue_status": _str_or_none(row.get("issue_status"), 32),
|
||||
"issue_time": row.get("issue_time"),
|
||||
"issue_user_id": map_bx_user_id(row.get("issue_user_id"), bx_user_map, admin_id, stats, label),
|
||||
"issue_user_name": _str_or_none(row.get("issue_user_name"), 64),
|
||||
"issue_remark": _str_or_none(row.get("issue_remark"), 512),
|
||||
"actual_amount": _dec(row.get("actual_amount")),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": map_bx_user_id(row.get("create_by"), bx_user_map, admin_id, stats, label),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_bx_user_id(row.get("update_by"), bx_user_map, admin_id, stats, label),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_advance_approval(
|
||||
row: dict, tenant_no: str, bx_user_map: Dict[int, str], admin_id: Optional[str], stats: MigrationStats
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"advance_approval#{rid}"
|
||||
now = datetime.now()
|
||||
return {
|
||||
"id": rid,
|
||||
"apply_id": legacy_id_to_str(row.get("apply_id")),
|
||||
"node_order": int(row.get("node_order") or 0),
|
||||
"node_name": (row.get("node_name") or "")[:128],
|
||||
"approver_id": map_bx_user_id(
|
||||
row.get("approver_id"), bx_user_map, admin_id, stats, label, required=True
|
||||
),
|
||||
"approver_name": (row.get("approver_name") or "")[:64],
|
||||
"approval_status": (row.get("approval_status") or "")[:32],
|
||||
"approval_opinion": _str_or_none(row.get("approval_opinion"), 1024),
|
||||
"approval_time": row.get("approval_time") or now,
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": None,
|
||||
"create_by": None,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("approval_time") or now,
|
||||
"update_by": None,
|
||||
"update_time": row.get("approval_time") or now,
|
||||
"del_flag": 0,
|
||||
}
|
||||
|
||||
|
||||
def transform_reimburse_apply(
|
||||
row: dict, tenant_no: str, bx_user_map: Dict[int, str], admin_id: Optional[str], stats: MigrationStats
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"reimburse#{rid}"
|
||||
apply_code = (row.get("apply_code") or "")[:32]
|
||||
try:
|
||||
reimburse_date, title_seq = parse_reimburse_meta(apply_code)
|
||||
except ValueError as exc:
|
||||
stats.warnings.append(f"{label}: {exc}")
|
||||
reimburse_date = (row.get("create_time") or datetime.now()).date()
|
||||
title_seq = int(rid or 0) % 1000 or 1
|
||||
return {
|
||||
"id": rid,
|
||||
"apply_code": apply_code,
|
||||
"title": (row.get("title") or "")[:256],
|
||||
"reimburse_date": reimburse_date,
|
||||
"title_seq": title_seq,
|
||||
"applicant_id": map_bx_user_id(
|
||||
row.get("applicant_id"), bx_user_map, admin_id, stats, label, required=True
|
||||
),
|
||||
"applicant_name": (row.get("applicant_name") or "")[:64],
|
||||
"expense_id": legacy_id_to_str(row.get("expense_id")),
|
||||
"expense_name": (row.get("expense_name") or "")[:128],
|
||||
"amount": _dec(row.get("amount")) or Decimal("0"),
|
||||
"invoice_count": int(row.get("invoice_count") or 0),
|
||||
"attach_count": int(row.get("attach_count") or 0),
|
||||
"status": (row.get("status") or "draft")[:32],
|
||||
"current_node": _str_or_none(row.get("current_node"), 128),
|
||||
"wf_id": legacy_id_to_str(row.get("wf_id")),
|
||||
"pay_status": _str_or_none(row.get("pay_status"), 32),
|
||||
"pay_time": row.get("pay_time"),
|
||||
"pay_user_id": map_bx_user_id(row.get("pay_user_id"), bx_user_map, admin_id, stats, label),
|
||||
"pay_user_name": _str_or_none(row.get("pay_user_name"), 64),
|
||||
"actual_amount": _dec(row.get("actual_amount")),
|
||||
"offset_advance_id": legacy_id_to_str(row.get("offset_advance_id")),
|
||||
"offset_amount": _dec(row.get("offset_amount")),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": map_bx_user_id(row.get("create_by"), bx_user_map, admin_id, stats, label),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_bx_user_id(row.get("update_by"), bx_user_map, admin_id, stats, label),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_reimburse_detail(row: dict, tenant_no: str, stats: MigrationStats) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
now = row.get("create_time") or datetime.now()
|
||||
return {
|
||||
"id": rid,
|
||||
"reimburse_id": legacy_id_to_str(row.get("reimburse_id")),
|
||||
"expense_id": legacy_id_to_str(row.get("expense_id")),
|
||||
"expense_name": (row.get("expense_name") or "")[:128],
|
||||
"amount": _dec(row.get("amount")) or Decimal("0"),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": None,
|
||||
"create_dept_id": "",
|
||||
"create_time": now,
|
||||
"update_by": None,
|
||||
"update_time": row.get("update_time") or now,
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_reimburse_approval(
|
||||
row: dict, tenant_no: str, bx_user_map: Dict[int, str], admin_id: Optional[str], stats: MigrationStats
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"reimburse_approval#{rid}"
|
||||
now = datetime.now()
|
||||
return {
|
||||
"id": rid,
|
||||
"apply_id": legacy_id_to_str(row.get("apply_id")),
|
||||
"node_order": int(row.get("node_order") or 0),
|
||||
"node_name": (row.get("node_name") or "")[:128],
|
||||
"approver_id": map_bx_user_id(
|
||||
row.get("approver_id"), bx_user_map, admin_id, stats, label, required=True
|
||||
),
|
||||
"approver_name": (row.get("approver_name") or "")[:64],
|
||||
"approval_status": (row.get("approval_status") or "")[:32],
|
||||
"approval_opinion": _str_or_none(row.get("approval_opinion"), 1024),
|
||||
"approval_time": row.get("approval_time") or now,
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": None,
|
||||
"create_by": None,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("approval_time") or now,
|
||||
"update_by": None,
|
||||
"update_time": row.get("approval_time") or now,
|
||||
"del_flag": 0,
|
||||
}
|
||||
|
||||
|
||||
def transform_reimburse_offset(row: dict, tenant_no: str, stats: MigrationStats) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
now = row.get("create_time") or datetime.now()
|
||||
return {
|
||||
"id": rid,
|
||||
"reimburse_id": legacy_id_to_str(row.get("reimburse_id")),
|
||||
"advance_id": legacy_id_to_str(row.get("advance_id")),
|
||||
"offset_amount": _dec(row.get("offset_amount")) or Decimal("0"),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": None,
|
||||
"create_dept_id": "",
|
||||
"create_time": now,
|
||||
"update_by": None,
|
||||
"update_time": now,
|
||||
"del_flag": 0,
|
||||
}
|
||||
|
||||
|
||||
def transform_attachment(
|
||||
row: dict, tenant_no: str, bx_user_map: Dict[int, str], admin_id: Optional[str], stats: MigrationStats
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"attachment#{rid}"
|
||||
biz_id = legacy_id_to_str(row.get("biz_id")) or "0"
|
||||
return {
|
||||
"id": rid,
|
||||
"biz_type": (row.get("biz_type") or "")[:32],
|
||||
"biz_id": biz_id,
|
||||
"file_name": (row.get("file_name") or "")[:256],
|
||||
"file_path": (row.get("file_path") or "")[:512],
|
||||
"file_type": _str_or_none(row.get("file_type"), 128),
|
||||
"file_size": row.get("file_size"),
|
||||
"attach_type": (row.get("attach_type") or "attachment")[:32],
|
||||
"sort_order": int(row.get("sort_order") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": None,
|
||||
"create_by": map_bx_user_id(row.get("create_by"), bx_user_map, admin_id, stats, label),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": None,
|
||||
"update_time": row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
INSERT_SQL = {
|
||||
"bx_expense_item": text(
|
||||
"""
|
||||
INSERT INTO bx_expense_item (
|
||||
id, parent_id, item_name, item_code, level, sort_order, status,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :parent_id, :item_name, :item_code, :level, :sort_order, :status,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_workflow_def": text(
|
||||
"""
|
||||
INSERT INTO bx_workflow_def (
|
||||
id, biz_type, wf_name, status, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :biz_type, :wf_name, :status, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_workflow_node": text(
|
||||
"""
|
||||
INSERT INTO bx_workflow_node (
|
||||
id, wf_id, node_name, node_order, approver_id, approver_name,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :wf_id, :node_name, :node_order, :approver_id, :approver_name,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_advance_apply": text(
|
||||
"""
|
||||
INSERT INTO bx_advance_apply (
|
||||
id, apply_code, applicant_id, applicant_name, reason, purpose, expense_item_id,
|
||||
amount, status, current_node, wf_id, issue_status, issue_time, issue_user_id,
|
||||
issue_user_name, issue_remark, actual_amount, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :apply_code, :applicant_id, :applicant_name, :reason, :purpose, :expense_item_id,
|
||||
:amount, :status, :current_node, :wf_id, :issue_status, :issue_time, :issue_user_id,
|
||||
:issue_user_name, :issue_remark, :actual_amount, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_advance_approval": text(
|
||||
"""
|
||||
INSERT INTO bx_advance_approval (
|
||||
id, apply_id, node_order, node_name, approver_id, approver_name,
|
||||
approval_status, approval_opinion, approval_time, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :apply_id, :node_order, :node_name, :approver_id, :approver_name,
|
||||
:approval_status, :approval_opinion, :approval_time, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_reimburse_apply": text(
|
||||
"""
|
||||
INSERT INTO bx_reimburse_apply (
|
||||
id, apply_code, title, reimburse_date, title_seq, applicant_id, applicant_name,
|
||||
expense_id, expense_name, amount, invoice_count, attach_count, status, current_node,
|
||||
wf_id, pay_status, pay_time, pay_user_id, pay_user_name, actual_amount,
|
||||
offset_advance_id, offset_amount, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :apply_code, :title, :reimburse_date, :title_seq, :applicant_id, :applicant_name,
|
||||
:expense_id, :expense_name, :amount, :invoice_count, :attach_count, :status, :current_node,
|
||||
:wf_id, :pay_status, :pay_time, :pay_user_id, :pay_user_name, :actual_amount,
|
||||
:offset_advance_id, :offset_amount, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_reimburse_detail": text(
|
||||
"""
|
||||
INSERT INTO bx_reimburse_detail (
|
||||
id, reimburse_id, expense_id, expense_name, amount, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :reimburse_id, :expense_id, :expense_name, :amount, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_reimburse_approval": text(
|
||||
"""
|
||||
INSERT INTO bx_reimburse_approval (
|
||||
id, apply_id, node_order, node_name, approver_id, approver_name,
|
||||
approval_status, approval_opinion, approval_time, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :apply_id, :node_order, :node_name, :approver_id, :approver_name,
|
||||
:approval_status, :approval_opinion, :approval_time, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_reimburse_offset": text(
|
||||
"""
|
||||
INSERT INTO bx_reimburse_offset (
|
||||
id, reimburse_id, advance_id, offset_amount, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :reimburse_id, :advance_id, :offset_amount, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
"bx_attachment": text(
|
||||
"""
|
||||
INSERT INTO bx_attachment (
|
||||
id, biz_type, biz_id, file_name, file_path, file_type, file_size, attach_type,
|
||||
sort_order, tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :biz_type, :biz_id, :file_name, :file_path, :file_type, :file_size, :attach_type,
|
||||
:sort_order, :tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
TABLE_OPTIONS: Dict[str, Dict[str, Any]] = {
|
||||
"bx_expense_item": {"include_deleted": True},
|
||||
"bx_workflow_def": {"include_deleted": False},
|
||||
"bx_workflow_node": {"include_deleted": False, "no_del_flag": True},
|
||||
"bx_advance_apply": {"include_deleted": False},
|
||||
"bx_advance_approval": {"include_deleted": False, "no_del_flag": True},
|
||||
"bx_reimburse_apply": {"include_deleted": False},
|
||||
"bx_reimburse_detail": {"include_deleted": False},
|
||||
"bx_reimburse_approval": {"include_deleted": False, "no_del_flag": True},
|
||||
"bx_reimburse_offset": {"include_deleted": False, "no_del_flag": True},
|
||||
"bx_attachment": {"include_deleted": False},
|
||||
}
|
||||
|
||||
|
||||
def write_mapping_csv(table: str, rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(f, fieldnames=["source_id", "new_id", "migrated_at"])
|
||||
w.writeheader()
|
||||
for row in rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
w.writerow({"source_id": sid, "new_id": sid, "migrated_at": migrated_at})
|
||||
|
||||
|
||||
def migrate_table(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
table: str,
|
||||
*,
|
||||
tenant_no: str,
|
||||
bx_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
dry_run: bool,
|
||||
replace_workflow: bool,
|
||||
) -> List[dict]:
|
||||
step = stats.step(table)
|
||||
opts = TABLE_OPTIONS.get(table, {})
|
||||
source_rows = fetch_source_rows(
|
||||
source_engine,
|
||||
table,
|
||||
include_deleted=bool(opts.get("include_deleted")),
|
||||
no_del_flag=bool(opts.get("no_del_flag")),
|
||||
)
|
||||
step.source_count = len(source_rows)
|
||||
|
||||
transformers: Dict[str, Callable[..., dict]] = {
|
||||
"bx_expense_item": lambda r: transform_expense_item(r, tenant_no, bx_user_map, admin_id, stats),
|
||||
"bx_workflow_def": lambda r: transform_workflow_def(r, tenant_no, stats),
|
||||
"bx_workflow_node": lambda r: transform_workflow_node(r, tenant_no, bx_user_map, admin_id, stats),
|
||||
"bx_advance_apply": lambda r: transform_advance_apply(r, tenant_no, bx_user_map, admin_id, stats),
|
||||
"bx_advance_approval": lambda r: transform_advance_approval(r, tenant_no, bx_user_map, admin_id, stats),
|
||||
"bx_reimburse_apply": lambda r: transform_reimburse_apply(r, tenant_no, bx_user_map, admin_id, stats),
|
||||
"bx_reimburse_detail": lambda r: transform_reimburse_detail(r, tenant_no, stats),
|
||||
"bx_reimburse_approval": lambda r: transform_reimburse_approval(r, tenant_no, bx_user_map, admin_id, stats),
|
||||
"bx_reimburse_offset": lambda r: transform_reimburse_offset(r, tenant_no, stats),
|
||||
"bx_attachment": lambda r: transform_attachment(r, tenant_no, bx_user_map, admin_id, stats),
|
||||
}
|
||||
payloads = [transformers[table](r) for r in source_rows]
|
||||
|
||||
if dry_run:
|
||||
step.inserted = len(payloads)
|
||||
return source_rows
|
||||
|
||||
with target_engine.begin() as conn:
|
||||
if replace_workflow and table == "bx_workflow_def":
|
||||
clear_portal_workflow(conn)
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, table, rid):
|
||||
step.skipped += 1
|
||||
else:
|
||||
conn.execute(INSERT_SQL[table], payload)
|
||||
step.inserted += 1
|
||||
return source_rows
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool, phase: str) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== 报销数据迁移 [{phase}] [{mode}] ===")
|
||||
for table in ALL_STEPS:
|
||||
s = stats.step(table)
|
||||
if s.source_count or s.inserted or s.skipped:
|
||||
print(f"{table}: 源={s.source_count} 插入={s.inserted} 跳过={s.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:25]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 25:
|
||||
print(f" ... 另有 {len(stats.warnings) - 25} 条")
|
||||
|
||||
|
||||
def resolve_steps(phase: str, only_tables: Optional[List[str]]) -> List[str]:
|
||||
if phase == "all":
|
||||
steps = list(ALL_STEPS)
|
||||
else:
|
||||
steps = list(PHASE_STEPS.get(phase, ()))
|
||||
if not steps:
|
||||
raise SystemExit(f"未知 phase: {phase}")
|
||||
if only_tables:
|
||||
unknown = [t for t in only_tables if t not in ALL_STEPS]
|
||||
if unknown:
|
||||
raise SystemExit(f"未知表: {unknown}")
|
||||
steps = [t for t in steps if t in only_tables]
|
||||
return steps
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_dir: Path,
|
||||
dry_run: bool,
|
||||
phase: str,
|
||||
only_tables: Optional[List[str]],
|
||||
replace_workflow: bool,
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
bx_user_map, admin_id = load_bx_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
print(f"bx 用户映射: {len(bx_user_map)} 条; admin={admin_id or '未找到'}")
|
||||
|
||||
steps = resolve_steps(phase, only_tables)
|
||||
for table in steps:
|
||||
print(f"\n>> 迁移 {table} ...")
|
||||
source_rows = migrate_table(
|
||||
source_engine,
|
||||
target_engine,
|
||||
table,
|
||||
tenant_no=tenant_no,
|
||||
bx_user_map=bx_user_map,
|
||||
admin_id=admin_id,
|
||||
stats=stats,
|
||||
dry_run=dry_run,
|
||||
replace_workflow=replace_workflow,
|
||||
)
|
||||
if not dry_run and source_rows:
|
||||
write_mapping_csv(table, source_rows, mapping_dir / f"bx_{table.replace('bx_', '')}_id_mapping.csv")
|
||||
|
||||
print_report(stats, dry_run, phase)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate bx reimbursement data from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--phase", default="all", choices=["base", "advance", "reimburse", "attachment", "all"])
|
||||
parser.add_argument("--tables", default="", help="逗号分隔,限定当前 phase 内的表")
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument(
|
||||
"--no-replace-workflow",
|
||||
action="store_true",
|
||||
help="不清理门户预置工作流(默认 base/all 时会清理并写入源库 id=1/2)",
|
||||
)
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
only_tables = [t.strip() for t in args.tables.split(",") if t.strip()] or None
|
||||
replace_workflow = not args.no_replace_workflow
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
print(f"阶段: {args.phase}")
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_dir=BACKEND_ROOT.parent / "docs/data-migration/mappings",
|
||||
dry_run=args.dry_run,
|
||||
phase=args.phase,
|
||||
only_tables=only_tables,
|
||||
replace_workflow=replace_workflow,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,513 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM 线索相关表迁入 shanxia2.0。
|
||||
|
||||
顺序:crm_clue → crm_clue_follow
|
||||
用户外键经 user_mapping 转换;附件 OSS ID → 目标 sys_oss 相对 URL。
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_crm_clue.py --dry-run --env-file .env.production
|
||||
venv/bin/python scripts/migrate_crm_clue.py --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
MIGRATION_DIR = BACKEND_ROOT / "scripts" / "migration"
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
if str(MIGRATION_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(MIGRATION_DIR))
|
||||
|
||||
from minio_url import resolve_oss_id_csv # noqa: E402
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
CUSTOMER_TYPE_MAP = {
|
||||
"company": "company",
|
||||
"person": "person",
|
||||
"未分类": None,
|
||||
"a类国央企单位": "A类国央企业",
|
||||
"A类国央企单位": "A类国央企业",
|
||||
"A类国央企业": "A类国央企业",
|
||||
"b类股份制企业": "B类股份制企业",
|
||||
"B类股份制企业": "B类股份制企业",
|
||||
"c类私营单位": "C类私营企业",
|
||||
"C类私营企业": "C类私营企业",
|
||||
"d外商投资企业": "D外商投资企业",
|
||||
"D外商投资企业": "D外商投资企业",
|
||||
"e类国资委企业": "5",
|
||||
"5": "5",
|
||||
}
|
||||
|
||||
FOLLOW_TYPE_MAP = {
|
||||
"电话": "phone",
|
||||
"phone": "phone",
|
||||
"微信": "wechat",
|
||||
"wechat": "wechat",
|
||||
"邮件": "email",
|
||||
"email": "email",
|
||||
"拜访": "visit",
|
||||
"visit": "visit",
|
||||
"其他": "other",
|
||||
"other": "other",
|
||||
}
|
||||
|
||||
MIGRATION_STEPS = (
|
||||
("crm_clue", "clue"),
|
||||
("crm_clue_follow", "clue_follow"),
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class StepStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
updated: int = 0
|
||||
skipped: int = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
steps: Dict[str, StepStats] = field(default_factory=dict)
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
def step(self, name: str) -> StepStats:
|
||||
if name not in self.steps:
|
||||
self.steps[name] = StepStats()
|
||||
return self.steps[name]
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if crm_raw and new_id:
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: crm_user_id={uid} 无映射")
|
||||
return mapped
|
||||
|
||||
|
||||
def load_oss_id_to_url(target_engine: Engine, tenant_no: str) -> Dict[str, str]:
|
||||
with target_engine.connect() as conn:
|
||||
rows = conn.execute(
|
||||
text("SELECT id, url FROM sys_oss WHERE tenant_no=:t AND del_flag=0"),
|
||||
{"t": tenant_no},
|
||||
).mappings().all()
|
||||
return {str(r["id"]): (r["url"] or "").strip() for r in rows if r["id"]}
|
||||
|
||||
|
||||
def normalize_customer_type(raw: Any, stats: MigrationStats, label: str) -> Optional[str]:
|
||||
value = (str(raw).strip() if raw is not None else "") or ""
|
||||
if not value:
|
||||
return None
|
||||
if value in CUSTOMER_TYPE_MAP:
|
||||
mapped = CUSTOMER_TYPE_MAP[value]
|
||||
if mapped is None:
|
||||
stats.warnings.append(f"{label}: customer_type={value!r} 已置空")
|
||||
return mapped
|
||||
lowered = value.lower()
|
||||
for key, mapped in CUSTOMER_TYPE_MAP.items():
|
||||
if key.lower() == lowered:
|
||||
return mapped
|
||||
stats.warnings.append(f"{label}: customer_type={value!r} 未识别,已置空")
|
||||
return None
|
||||
|
||||
|
||||
def normalize_follow_type(raw: Any) -> str:
|
||||
value = (str(raw).strip() if raw is not None else "") or "other"
|
||||
return FOLLOW_TYPE_MAP.get(value, FOLLOW_TYPE_MAP.get(value.lower(), "other"))
|
||||
|
||||
|
||||
def _str_or_none(value: Any, max_len: int = 0) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
s = str(value).strip()
|
||||
if not s:
|
||||
return None
|
||||
return s[:max_len] if max_len else s
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine, table: str, include_deleted: bool) -> List[dict]:
|
||||
where = "" if include_deleted else "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{table}` {where} ORDER BY id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def target_row_exists(conn, table: str, row_id: str) -> bool:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}` WHERE id=:id"), {"id": row_id}).scalar_one()) > 0
|
||||
|
||||
|
||||
def transform_clue(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"clue#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"clue_name": (row.get("clue_name") or "")[:100],
|
||||
"mobile": (row.get("mobile") or "")[:20],
|
||||
"company": _str_or_none(row.get("company"), 200),
|
||||
"customer_type": normalize_customer_type(row.get("customer_type"), stats, label),
|
||||
"telephone": _str_or_none(row.get("telephone"), 30),
|
||||
"email": _str_or_none(row.get("email"), 100),
|
||||
"title": _str_or_none(row.get("title"), 10),
|
||||
"position": _str_or_none(row.get("position"), 50),
|
||||
"source": (row.get("source") or "")[:20],
|
||||
"level": (row.get("level") or "unrated")[:10],
|
||||
"industry": _str_or_none(row.get("industry"), 50),
|
||||
"park_area": _str_or_none(row.get("park_area"), 100),
|
||||
"province": _str_or_none(row.get("province"), 50),
|
||||
"city": _str_or_none(row.get("city"), 50),
|
||||
"district": _str_or_none(row.get("district"), 50),
|
||||
"address": _str_or_none(row.get("address"), 255),
|
||||
"website": _str_or_none(row.get("website"), 500),
|
||||
"intent_products": _str_or_none(row.get("intent_products"), 500),
|
||||
"expect_time": row.get("expect_time"),
|
||||
"budget": _str_or_none(row.get("budget"), 20),
|
||||
"requirement": row.get("requirement"),
|
||||
"status": (row.get("status") or "new")[:20],
|
||||
"owner_user_id": map_user(row.get("owner_user_id")),
|
||||
"owner_user_name": _str_or_none(row.get("owner_user_name"), 50),
|
||||
"last_time": row.get("last_time"),
|
||||
"next_time": row.get("next_time"),
|
||||
"follow_count": int(row.get("follow_count") or 0),
|
||||
"is_converted": int(row.get("is_converted") or 0),
|
||||
"converted_time": row.get("converted_time"),
|
||||
"customer_id": legacy_id_to_str(row.get("customer_id")),
|
||||
"converted_by": map_user(row.get("converted_by")),
|
||||
"assign_time": row.get("assign_time"),
|
||||
"assign_by": map_user(row.get("assign_by")),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_clue_follow(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"clue_follow#{rid}"
|
||||
owner_id = resolve_portal_user_id(row.get("create_by"), crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"clue_id": legacy_id_to_str(row.get("clue_id")),
|
||||
"clue_name": _str_or_none(row.get("clue_name"), 100),
|
||||
"follow_type": normalize_follow_type(row.get("follow_type")),
|
||||
"follow_content": row.get("follow_content") or "",
|
||||
"next_time": row.get("next_time"),
|
||||
"attachments": resolve_oss_id_csv(row.get("attachments"), oss_map) or None,
|
||||
"create_by_name": _str_or_none(row.get("create_by_name"), 50),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": owner_id,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": resolve_portal_user_id(row.get("update_by"), crm_user_map, admin_id, stats, label),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
INSERT_CLUE_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_clue (
|
||||
id, clue_name, mobile, company, customer_type, telephone, email, title, position,
|
||||
source, level, industry, park_area, province, city, district, address, website,
|
||||
intent_products, expect_time, budget, requirement, status, owner_user_id, owner_user_name,
|
||||
last_time, next_time, follow_count, is_converted, converted_time, customer_id,
|
||||
converted_by, assign_time, assign_by, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :clue_name, :mobile, :company, :customer_type, :telephone, :email, :title, :position,
|
||||
:source, :level, :industry, :park_area, :province, :city, :district, :address, :website,
|
||||
:intent_products, :expect_time, :budget, :requirement, :status, :owner_user_id, :owner_user_name,
|
||||
:last_time, :next_time, :follow_count, :is_converted, :converted_time, :customer_id,
|
||||
:converted_by, :assign_time, :assign_by, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_CLUE_FOLLOW_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_clue_follow (
|
||||
id, clue_id, clue_name, follow_type, follow_content, next_time, attachments,
|
||||
create_by_name, tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :clue_id, :clue_name, :follow_type, :follow_content, :next_time, :attachments,
|
||||
:create_by_name, :tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
STEP_INSERT_SQL = {
|
||||
"crm_clue": INSERT_CLUE_SQL,
|
||||
"crm_clue_follow": INSERT_CLUE_FOLLOW_SQL,
|
||||
}
|
||||
|
||||
|
||||
def write_mapping_csv(source_rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(f, fieldnames=["source_id", "new_id", "migrated_at"])
|
||||
w.writeheader()
|
||||
for row in source_rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
w.writerow({"source_id": sid, "new_id": sid, "migrated_at": migrated_at})
|
||||
|
||||
|
||||
def migrate_table(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
table: str,
|
||||
*,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
) -> List[dict]:
|
||||
step = stats.step(table)
|
||||
source_rows = fetch_source_rows(source_engine, table, include_deleted)
|
||||
step.source_count = len(source_rows)
|
||||
|
||||
transformers = {
|
||||
"crm_clue": lambda r: transform_clue(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
"crm_clue_follow": lambda r: transform_clue_follow(
|
||||
r, tenant_no, crm_user_map, admin_id, oss_map, stats
|
||||
),
|
||||
}
|
||||
payloads = [transformers[table](r) for r in source_rows]
|
||||
|
||||
if dry_run:
|
||||
step.inserted = len(payloads)
|
||||
return source_rows
|
||||
|
||||
insert_sql = STEP_INSERT_SQL[table]
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, table, rid):
|
||||
if update_existing:
|
||||
step.skipped += 1
|
||||
else:
|
||||
step.skipped += 1
|
||||
else:
|
||||
conn.execute(insert_sql, payload)
|
||||
step.inserted += 1
|
||||
return source_rows
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM 线索表迁移 [{mode}] ===")
|
||||
for table, _ in MIGRATION_STEPS:
|
||||
s = stats.step(table)
|
||||
print(f"{table}: 源={s.source_count} 插入={s.inserted} 跳过={s.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:20]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 20:
|
||||
print(f" ... 另有 {len(stats.warnings) - 20} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_dir: Path,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
only_tables: Optional[List[str]],
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
oss_map = load_oss_id_to_url(target_engine, tenant_no)
|
||||
print(f"sys_oss 映射条数: {len(oss_map)}")
|
||||
|
||||
selected = [t for t, _ in MIGRATION_STEPS if not only_tables or t in only_tables]
|
||||
for table in selected:
|
||||
print(f"\n>> 迁移 {table} ...")
|
||||
source_rows = migrate_table(
|
||||
source_engine,
|
||||
target_engine,
|
||||
table,
|
||||
tenant_no=tenant_no,
|
||||
crm_user_map=crm_user_map,
|
||||
admin_id=admin_id,
|
||||
oss_map=oss_map,
|
||||
stats=stats,
|
||||
dry_run=dry_run,
|
||||
update_existing=update_existing,
|
||||
include_deleted=include_deleted,
|
||||
)
|
||||
if table == "crm_clue" and not dry_run:
|
||||
write_mapping_csv(source_rows, mapping_dir / "crm_clue_id_mapping.csv")
|
||||
|
||||
print_report(stats, dry_run)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM clue tables from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--update", action="store_true")
|
||||
parser.add_argument("--include-deleted", action="store_true")
|
||||
parser.add_argument("--tables", default="", help="逗号分隔,默认全部两表")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
only_tables = [t.strip() for t in args.tables.split(",") if t.strip()] or None
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_dir=BACKEND_ROOT.parent / "docs/data-migration/mappings",
|
||||
dry_run=args.dry_run,
|
||||
update_existing=args.update,
|
||||
include_deleted=args.include_deleted,
|
||||
only_tables=only_tables,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,840 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM 合同相关表迁入 shanxia2.0。
|
||||
|
||||
顺序:crm_contract_template → crm_contract → crm_contract_product →
|
||||
crm_contract_product_price_tier → crm_contract_approval → crm_contract_change
|
||||
用户外键经 user_mapping;附件 OSS ID / URL 规范化;attachment_files JSON 保留 ossId。
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_crm_contract.py --dry-run --env-file .env.production
|
||||
venv/bin/python scripts/migrate_crm_contract.py --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
MIGRATION_DIR = BACKEND_ROOT / "scripts" / "migration"
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
if str(MIGRATION_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(MIGRATION_DIR))
|
||||
|
||||
from minio_url import extract_minio_object_key, join_relative_urls, resolve_oss_id_csv # noqa: E402
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
MIGRATION_STEPS = (
|
||||
("crm_contract_template", "contract_template"),
|
||||
("crm_contract", "contract"),
|
||||
("crm_contract_product", "contract_product"),
|
||||
("crm_contract_product_price_tier", "contract_product_price_tier"),
|
||||
("crm_contract_approval", "contract_approval"),
|
||||
("crm_contract_change", "contract_change"),
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class StepStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
updated: int = 0
|
||||
skipped: int = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
steps: Dict[str, StepStats] = field(default_factory=dict)
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
def step(self, name: str) -> StepStats:
|
||||
if name not in self.steps:
|
||||
self.steps[name] = StepStats()
|
||||
return self.steps[name]
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if crm_raw and new_id:
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
*,
|
||||
required: bool = False,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return admin_id if required else None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return admin_id if required else None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: crm_user_id={uid} 无映射")
|
||||
return admin_id if required else None
|
||||
return mapped
|
||||
|
||||
|
||||
def load_oss_id_to_url(target_engine: Engine, tenant_no: str) -> Dict[str, str]:
|
||||
with target_engine.connect() as conn:
|
||||
rows = conn.execute(
|
||||
text("SELECT id, url FROM sys_oss WHERE tenant_no=:t AND del_flag=0"),
|
||||
{"t": tenant_no},
|
||||
).mappings().all()
|
||||
return {str(r["id"]): (r["url"] or "").strip() for r in rows if r["id"]}
|
||||
|
||||
|
||||
def normalize_attachment_csv(raw: Any, oss_map: Dict[str, str]) -> Optional[str]:
|
||||
if raw is None or str(raw).strip() == "":
|
||||
return None
|
||||
oss_resolved = resolve_oss_id_csv(raw, oss_map)
|
||||
if oss_resolved:
|
||||
return oss_resolved
|
||||
parts: List[str] = []
|
||||
for token in str(raw).split(","):
|
||||
token = token.strip()
|
||||
if not token:
|
||||
continue
|
||||
if token.isdigit() and token in oss_map:
|
||||
parts.append(oss_map[token])
|
||||
else:
|
||||
key = extract_minio_object_key(token)
|
||||
if key:
|
||||
parts.append(key)
|
||||
joined = join_relative_urls(parts)
|
||||
return joined or None
|
||||
|
||||
|
||||
def normalize_contract_attachment_files(raw: Any, oss_map: Dict[str, str]) -> Optional[str]:
|
||||
if raw is None or str(raw).strip() == "":
|
||||
return None
|
||||
value = str(raw).strip()
|
||||
if value.startswith("["):
|
||||
try:
|
||||
parsed = json.loads(value)
|
||||
if isinstance(parsed, list):
|
||||
out: List[dict] = []
|
||||
for item in parsed:
|
||||
if not isinstance(item, dict):
|
||||
continue
|
||||
oss_id = legacy_id_to_str(item.get("ossId") or item.get("oss_id"))
|
||||
if not oss_id:
|
||||
continue
|
||||
out.append({"ossId": oss_id, "category": item.get("category") or "other"})
|
||||
if out:
|
||||
return json.dumps(out, ensure_ascii=False)
|
||||
except json.JSONDecodeError:
|
||||
pass
|
||||
return normalize_attachment_csv(raw, oss_map)
|
||||
|
||||
|
||||
def normalize_file_path(raw: Any, oss_map: Dict[str, str]) -> Optional[str]:
|
||||
if raw is None or str(raw).strip() == "":
|
||||
return None
|
||||
value = str(raw).strip()
|
||||
if value.isdigit() and value in oss_map:
|
||||
return oss_map[value]
|
||||
key = extract_minio_object_key(value)
|
||||
return key or None
|
||||
|
||||
|
||||
def _dec(value: Any, default: Optional[Decimal] = None) -> Optional[Decimal]:
|
||||
if value is None or value == "":
|
||||
return default
|
||||
return Decimal(str(value))
|
||||
|
||||
|
||||
def _str_or_none(value: Any, max_len: int = 0) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
s = str(value).strip()
|
||||
if not s:
|
||||
return None
|
||||
return s[:max_len] if max_len else s
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine, table: str, include_deleted: bool) -> List[dict]:
|
||||
where = "" if include_deleted else "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{table}` {where} ORDER BY id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def target_row_exists(conn, table: str, row_id: str) -> bool:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}` WHERE id=:id"), {"id": row_id}).scalar_one()) > 0
|
||||
|
||||
|
||||
def transform_contract_template(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"contract_template#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"template_no": (row.get("template_no") or "")[:50],
|
||||
"template_name": (row.get("template_name") or "")[:200],
|
||||
"contract_type": _str_or_none(row.get("contract_type"), 20),
|
||||
"template_content": row.get("template_content"),
|
||||
"payment_terms": row.get("payment_terms"),
|
||||
"delivery_terms": row.get("delivery_terms"),
|
||||
"contract_terms": row.get("contract_terms"),
|
||||
"party_b": _str_or_none(row.get("party_b"), 200),
|
||||
"party_b_address": _str_or_none(row.get("party_b_address"), 255),
|
||||
"party_b_contact": _str_or_none(row.get("party_b_contact"), 50),
|
||||
"party_b_mobile": _str_or_none(row.get("party_b_mobile"), 20),
|
||||
"default_currency": (row.get("default_currency") or "CNY")[:10],
|
||||
"default_tax_rate": _dec(row.get("default_tax_rate"), Decimal("6.00")),
|
||||
"default_period": int(row.get("default_period") or 12),
|
||||
"is_active": int(row.get("is_active") if row.get("is_active") is not None else 1),
|
||||
"usage_count": int(row.get("usage_count") or 0),
|
||||
"sort": int(row.get("sort") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_contract(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"contract#{rid}"
|
||||
|
||||
def map_user(field_val: Any, *, required: bool = False) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label, required=required)
|
||||
|
||||
owner_id = map_user(row.get("owner_user_id"), required=True)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"contract_no": (row.get("contract_no") or "")[:50],
|
||||
"contract_name": (row.get("contract_name") or "")[:200],
|
||||
"customer_id": legacy_id_to_str(row.get("customer_id")) or "",
|
||||
"customer_name": _str_or_none(row.get("customer_name"), 200),
|
||||
"opportunity_id": legacy_id_to_str(row.get("opportunity_id")),
|
||||
"quote_id": legacy_id_to_str(row.get("quote_id")),
|
||||
"parent_contract_id": legacy_id_to_str(row.get("parent_contract_id")),
|
||||
"renewal_count": int(row.get("renewal_count") or 0),
|
||||
"template_id": legacy_id_to_str(row.get("template_id")),
|
||||
"contract_template": (row.get("contract_template") or "shanxia")[:50],
|
||||
"contact_id": legacy_id_to_str(row.get("contact_id")),
|
||||
"contact_name": _str_or_none(row.get("contact_name"), 50),
|
||||
"contact_mobile": _str_or_none(row.get("contact_mobile"), 20),
|
||||
"contract_type": (row.get("contract_type") or "sale")[:20],
|
||||
"contract_nature": (row.get("contract_nature") or "new")[:20],
|
||||
"amount": _dec(row.get("amount"), Decimal("0.00")),
|
||||
"currency": (row.get("currency") or "CNY")[:10],
|
||||
"tax_rate": _dec(row.get("tax_rate"), Decimal("6.00")),
|
||||
"amount_with_tax": _dec(row.get("amount_with_tax"), Decimal("0.00")),
|
||||
"status": (row.get("status") or "draft")[:20],
|
||||
"performance_status": (row.get("performance_status") or "normal")[:20],
|
||||
"performance_rate": _dec(row.get("performance_rate"), Decimal("0.00")),
|
||||
"customer_satisfaction": int(row["customer_satisfaction"]) if row.get("customer_satisfaction") is not None else None,
|
||||
"approval_status": _str_or_none(row.get("approval_status"), 20),
|
||||
"approval_flow_id": legacy_id_to_str(row.get("approval_flow_id")),
|
||||
"contract_file": normalize_file_path(row.get("contract_file"), oss_map),
|
||||
"attachment_files": normalize_contract_attachment_files(row.get("attachment_files"), oss_map),
|
||||
"sign_date": row.get("sign_date"),
|
||||
"actual_sign_date": row.get("actual_sign_date"),
|
||||
"start_date": row.get("start_date"),
|
||||
"end_date": row.get("end_date"),
|
||||
"contract_period": int(row["contract_period"]) if row.get("contract_period") is not None else None,
|
||||
"owner_user_id": owner_id or "",
|
||||
"owner_user_name": _str_or_none(row.get("owner_user_name"), 50),
|
||||
"received_amount": _dec(row.get("received_amount"), Decimal("0.00")),
|
||||
"unreceived_amount": _dec(row.get("unreceived_amount"), Decimal("0.00")),
|
||||
"invoice_amount": _dec(row.get("invoice_amount"), Decimal("0.00")),
|
||||
"uninvoice_amount": _dec(row.get("uninvoice_amount"), Decimal("0.00")),
|
||||
"party_a": _str_or_none(row.get("party_a"), 200),
|
||||
"party_a_address": _str_or_none(row.get("party_a_address"), 255),
|
||||
"party_a_contact": _str_or_none(row.get("party_a_contact"), 50),
|
||||
"party_a_mobile": _str_or_none(row.get("party_a_mobile"), 20),
|
||||
"party_a_legal_person": _str_or_none(row.get("party_a_legal_person"), 50),
|
||||
"party_a_agent": _str_or_none(row.get("party_a_agent"), 50),
|
||||
"party_a_phone_fax": _str_or_none(row.get("party_a_phone_fax"), 50),
|
||||
"party_a_bank": _str_or_none(row.get("party_a_bank"), 100),
|
||||
"party_a_account": _str_or_none(row.get("party_a_account"), 50),
|
||||
"party_b": _str_or_none(row.get("party_b"), 200),
|
||||
"party_b_address": _str_or_none(row.get("party_b_address"), 255),
|
||||
"party_b_contact": _str_or_none(row.get("party_b_contact"), 50),
|
||||
"party_b_mobile": _str_or_none(row.get("party_b_mobile"), 20),
|
||||
"party_b_legal_person": _str_or_none(row.get("party_b_legal_person"), 100),
|
||||
"party_b_agent": _str_or_none(row.get("party_b_agent"), 100),
|
||||
"party_b_phone_fax": _str_or_none(row.get("party_b_phone_fax"), 100),
|
||||
"party_b_bank": _str_or_none(row.get("party_b_bank"), 200),
|
||||
"party_b_account": _str_or_none(row.get("party_b_account"), 100),
|
||||
"payment_terms": row.get("payment_terms"),
|
||||
"delivery_terms": row.get("delivery_terms"),
|
||||
"contract_terms": row.get("contract_terms"),
|
||||
"settlement_method": _str_or_none(row.get("settlement_method"), 50),
|
||||
"template_content": row.get("template_content"),
|
||||
"settlement_clause_drafts": row.get("settlement_clause_drafts"),
|
||||
"invalid_reason": _str_or_none(row.get("invalid_reason"), 500),
|
||||
"invalid_time": row.get("invalid_time"),
|
||||
"version_no": int(row.get("version_no") if row.get("version_no") is not None else row.get("version") or 0),
|
||||
"supplier_id": legacy_id_to_str(row.get("supplier_id")),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_contract_product(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"contract_product#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"contract_id": legacy_id_to_str(row.get("contract_id")) or "",
|
||||
"product_id": legacy_id_to_str(row.get("product_id")) or "",
|
||||
"product_name": (row.get("product_name") or "")[:200],
|
||||
"product_no": _str_or_none(row.get("product_no"), 50),
|
||||
"category_id": legacy_id_to_str(row.get("category_id")),
|
||||
"category_name": _str_or_none(row.get("category_name"), 100),
|
||||
"model": _str_or_none(row.get("model"), 100),
|
||||
"unit": (row.get("unit") or "件")[:20],
|
||||
"quantity": _dec(row.get("quantity"), Decimal("0")),
|
||||
"price": _dec(row.get("price"), Decimal("0.00")),
|
||||
"discount": _dec(row.get("discount"), Decimal("0.00")),
|
||||
"tax_rate": _dec(row.get("tax_rate"), Decimal("6.00")),
|
||||
"tax_amount": _dec(row.get("tax_amount"), Decimal("0.00")),
|
||||
"subtotal": _dec(row.get("subtotal"), Decimal("0.00")),
|
||||
"delivery_date": row.get("delivery_date"),
|
||||
"delivery_status": (row.get("delivery_status") or "pending")[:20],
|
||||
"delivered_quantity": _dec(row.get("delivered_quantity"), Decimal("0")),
|
||||
"description": _str_or_none(row.get("description"), 1000),
|
||||
"package_spec": _str_or_none(row.get("package_spec"), 200),
|
||||
"delivery_method": _str_or_none(row.get("delivery_method"), 100),
|
||||
"sort": int(row.get("sort") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_contract_price_tier(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"contract_price_tier#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
letter_oss_ids = row.get("letter_oss_ids")
|
||||
letter_oss_id = legacy_id_to_str(row.get("letter_oss_id"))
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"contract_id": legacy_id_to_str(row.get("contract_id")) or "",
|
||||
"contract_product_id": legacy_id_to_str(row.get("contract_product_id")) or "",
|
||||
"start_date": row.get("start_date"),
|
||||
"end_date": row.get("end_date"),
|
||||
"price": _dec(row.get("price"), Decimal("0")),
|
||||
"letter_oss_ids": letter_oss_ids if letter_oss_ids else None,
|
||||
"letter_oss_id": letter_oss_id,
|
||||
"sort": int(row.get("sort") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_contract_approval(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"contract_approval#{rid}"
|
||||
|
||||
def map_user(field_val: Any, *, required: bool = False) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label, required=required)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"contract_id": legacy_id_to_str(row.get("contract_id")) or "",
|
||||
"flow_id": legacy_id_to_str(row.get("flow_id")),
|
||||
"step": int(row.get("step") or 1),
|
||||
"step_name": _str_or_none(row.get("step_name"), 100),
|
||||
"approver_id": map_user(row.get("approver_id"), required=True) or "",
|
||||
"approver_name": _str_or_none(row.get("approver_name"), 50),
|
||||
"approver_dept": _str_or_none(row.get("approver_dept"), 100),
|
||||
"approval_result": (row.get("approval_result") or "pending")[:20],
|
||||
"approval_opinion": row.get("approval_opinion"),
|
||||
"approval_time": row.get("approval_time"),
|
||||
"approval_duration": int(row["approval_duration"]) if row.get("approval_duration") is not None else None,
|
||||
"attachments": normalize_attachment_csv(row.get("attachments"), oss_map),
|
||||
"is_current": int(row.get("is_current") if row.get("is_current") is not None else 1),
|
||||
"sort": int(row.get("sort") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_contract_change(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"contract_change#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"contract_id": legacy_id_to_str(row.get("contract_id")) or "",
|
||||
"contract_no": _str_or_none(row.get("contract_no"), 50),
|
||||
"change_type": (row.get("change_type") or "")[:50],
|
||||
"change_reason": (row.get("change_reason") or "")[:500],
|
||||
"change_content": row.get("change_content"),
|
||||
"old_value": row.get("old_value"),
|
||||
"new_value": row.get("new_value"),
|
||||
"change_amount": _dec(row.get("change_amount")),
|
||||
"approval_status": (row.get("approval_status") or "pending")[:20],
|
||||
"approver_id": map_user(row.get("approver_id")),
|
||||
"approver_name": _str_or_none(row.get("approver_name"), 50),
|
||||
"approval_time": row.get("approval_time"),
|
||||
"approval_opinion": _str_or_none(row.get("approval_opinion"), 500),
|
||||
"attachment_files": normalize_contract_attachment_files(row.get("attachment_files"), oss_map),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
INSERT_CONTRACT_TEMPLATE_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_contract_template (
|
||||
id, template_no, template_name, contract_type, template_content, payment_terms,
|
||||
delivery_terms, contract_terms, party_b, party_b_address, party_b_contact, party_b_mobile,
|
||||
default_currency, default_tax_rate, default_period, is_active, usage_count, sort,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :template_no, :template_name, :contract_type, :template_content, :payment_terms,
|
||||
:delivery_terms, :contract_terms, :party_b, :party_b_address, :party_b_contact, :party_b_mobile,
|
||||
:default_currency, :default_tax_rate, :default_period, :is_active, :usage_count, :sort,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_CONTRACT_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_contract (
|
||||
id, contract_no, contract_name, customer_id, customer_name, opportunity_id, quote_id,
|
||||
parent_contract_id, renewal_count, template_id, contract_template, contact_id, contact_name,
|
||||
contact_mobile, contract_type, contract_nature, amount, currency, tax_rate, amount_with_tax,
|
||||
status, performance_status, performance_rate, customer_satisfaction, approval_status,
|
||||
approval_flow_id, contract_file, attachment_files, sign_date, actual_sign_date, start_date,
|
||||
end_date, contract_period, owner_user_id, owner_user_name, received_amount, unreceived_amount,
|
||||
invoice_amount, uninvoice_amount, party_a, party_a_address, party_a_contact, party_a_mobile,
|
||||
party_a_legal_person, party_a_agent, party_a_phone_fax, party_a_bank, party_a_account,
|
||||
party_b, party_b_address, party_b_contact, party_b_mobile, party_b_legal_person, party_b_agent,
|
||||
party_b_phone_fax, party_b_bank, party_b_account, payment_terms, delivery_terms, contract_terms,
|
||||
settlement_method, template_content, settlement_clause_drafts, invalid_reason, invalid_time,
|
||||
version_no, supplier_id, tenant_no, order_num, remark, create_by, create_dept_id, create_time,
|
||||
update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :contract_no, :contract_name, :customer_id, :customer_name, :opportunity_id, :quote_id,
|
||||
:parent_contract_id, :renewal_count, :template_id, :contract_template, :contact_id, :contact_name,
|
||||
:contact_mobile, :contract_type, :contract_nature, :amount, :currency, :tax_rate, :amount_with_tax,
|
||||
:status, :performance_status, :performance_rate, :customer_satisfaction, :approval_status,
|
||||
:approval_flow_id, :contract_file, :attachment_files, :sign_date, :actual_sign_date, :start_date,
|
||||
:end_date, :contract_period, :owner_user_id, :owner_user_name, :received_amount, :unreceived_amount,
|
||||
:invoice_amount, :uninvoice_amount, :party_a, :party_a_address, :party_a_contact, :party_a_mobile,
|
||||
:party_a_legal_person, :party_a_agent, :party_a_phone_fax, :party_a_bank, :party_a_account,
|
||||
:party_b, :party_b_address, :party_b_contact, :party_b_mobile, :party_b_legal_person, :party_b_agent,
|
||||
:party_b_phone_fax, :party_b_bank, :party_b_account, :payment_terms, :delivery_terms, :contract_terms,
|
||||
:settlement_method, :template_content, :settlement_clause_drafts, :invalid_reason, :invalid_time,
|
||||
:version_no, :supplier_id, :tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time,
|
||||
:update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_CONTRACT_PRODUCT_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_contract_product (
|
||||
id, contract_id, product_id, product_name, product_no, category_id, category_name,
|
||||
model, unit, quantity, price, discount, tax_rate, tax_amount, subtotal,
|
||||
delivery_date, delivery_status, delivered_quantity, description, package_spec,
|
||||
delivery_method, sort, tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :contract_id, :product_id, :product_name, :product_no, :category_id, :category_name,
|
||||
:model, :unit, :quantity, :price, :discount, :tax_rate, :tax_amount, :subtotal,
|
||||
:delivery_date, :delivery_status, :delivered_quantity, :description, :package_spec,
|
||||
:delivery_method, :sort, :tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_CONTRACT_PRICE_TIER_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_contract_product_price_tier (
|
||||
id, contract_id, contract_product_id, start_date, end_date, price,
|
||||
letter_oss_ids, letter_oss_id, sort, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :contract_id, :contract_product_id, :start_date, :end_date, :price,
|
||||
:letter_oss_ids, :letter_oss_id, :sort, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_CONTRACT_APPROVAL_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_contract_approval (
|
||||
id, contract_id, flow_id, step, step_name, approver_id, approver_name, approver_dept,
|
||||
approval_result, approval_opinion, approval_time, approval_duration, attachments,
|
||||
is_current, sort, tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :contract_id, :flow_id, :step, :step_name, :approver_id, :approver_name, :approver_dept,
|
||||
:approval_result, :approval_opinion, :approval_time, :approval_duration, :attachments,
|
||||
:is_current, :sort, :tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_CONTRACT_CHANGE_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_contract_change (
|
||||
id, contract_id, contract_no, change_type, change_reason, change_content, old_value,
|
||||
new_value, change_amount, approval_status, approver_id, approver_name, approval_time,
|
||||
approval_opinion, attachment_files, tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :contract_id, :contract_no, :change_type, :change_reason, :change_content, :old_value,
|
||||
:new_value, :change_amount, :approval_status, :approver_id, :approver_name, :approval_time,
|
||||
:approval_opinion, :attachment_files, :tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
STEP_INSERT_SQL = {
|
||||
"crm_contract_template": INSERT_CONTRACT_TEMPLATE_SQL,
|
||||
"crm_contract": INSERT_CONTRACT_SQL,
|
||||
"crm_contract_product": INSERT_CONTRACT_PRODUCT_SQL,
|
||||
"crm_contract_product_price_tier": INSERT_CONTRACT_PRICE_TIER_SQL,
|
||||
"crm_contract_approval": INSERT_CONTRACT_APPROVAL_SQL,
|
||||
"crm_contract_change": INSERT_CONTRACT_CHANGE_SQL,
|
||||
}
|
||||
|
||||
|
||||
def write_mapping_csv(source_rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(f, fieldnames=["source_id", "new_id", "migrated_at"])
|
||||
w.writeheader()
|
||||
for row in source_rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
w.writerow({"source_id": sid, "new_id": sid, "migrated_at": migrated_at})
|
||||
|
||||
|
||||
def migrate_table(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
table: str,
|
||||
*,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
) -> List[dict]:
|
||||
step = stats.step(table)
|
||||
source_rows = fetch_source_rows(source_engine, table, include_deleted)
|
||||
step.source_count = len(source_rows)
|
||||
|
||||
transformers = {
|
||||
"crm_contract_template": lambda r: transform_contract_template(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
"crm_contract": lambda r: transform_contract(r, tenant_no, crm_user_map, admin_id, oss_map, stats),
|
||||
"crm_contract_product": lambda r: transform_contract_product(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
"crm_contract_product_price_tier": lambda r: transform_contract_price_tier(
|
||||
r, tenant_no, crm_user_map, admin_id, stats
|
||||
),
|
||||
"crm_contract_approval": lambda r: transform_contract_approval(
|
||||
r, tenant_no, crm_user_map, admin_id, oss_map, stats
|
||||
),
|
||||
"crm_contract_change": lambda r: transform_contract_change(
|
||||
r, tenant_no, crm_user_map, admin_id, oss_map, stats
|
||||
),
|
||||
}
|
||||
payloads = [transformers[table](r) for r in source_rows]
|
||||
|
||||
if dry_run:
|
||||
step.inserted = len(payloads)
|
||||
return source_rows
|
||||
|
||||
insert_sql = STEP_INSERT_SQL[table]
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, table, rid):
|
||||
if update_existing:
|
||||
step.skipped += 1
|
||||
else:
|
||||
step.skipped += 1
|
||||
else:
|
||||
conn.execute(insert_sql, payload)
|
||||
step.inserted += 1
|
||||
return source_rows
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM 合同迁移 [{mode}] ===")
|
||||
for table, _ in MIGRATION_STEPS:
|
||||
s = stats.step(table)
|
||||
print(f"{table}: 源={s.source_count} 插入={s.inserted} 跳过={s.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:20]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 20:
|
||||
print(f" ... 另有 {len(stats.warnings) - 20} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_dir: Path,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
only_tables: Optional[List[str]],
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
oss_map = load_oss_id_to_url(target_engine, tenant_no)
|
||||
print(f"sys_oss 映射条数: {len(oss_map)}")
|
||||
|
||||
selected = [t for t, _ in MIGRATION_STEPS if not only_tables or t in only_tables]
|
||||
for table in selected:
|
||||
print(f"\n>> 迁移 {table} ...")
|
||||
source_rows = migrate_table(
|
||||
source_engine,
|
||||
target_engine,
|
||||
table,
|
||||
tenant_no=tenant_no,
|
||||
crm_user_map=crm_user_map,
|
||||
admin_id=admin_id,
|
||||
oss_map=oss_map,
|
||||
stats=stats,
|
||||
dry_run=dry_run,
|
||||
update_existing=update_existing,
|
||||
include_deleted=include_deleted,
|
||||
)
|
||||
if table == "crm_contract" and not dry_run:
|
||||
write_mapping_csv(source_rows, mapping_dir / "crm_contract_id_mapping.csv")
|
||||
|
||||
print_report(stats, dry_run)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM contract tables from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--update", action="store_true")
|
||||
parser.add_argument("--include-deleted", action="store_true")
|
||||
parser.add_argument("--tables", default="", help="逗号分隔,默认全部六表")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
only_tables = [t.strip() for t in args.tables.split(",") if t.strip()] or None
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_dir=BACKEND_ROOT.parent / "docs/data-migration/mappings",
|
||||
dry_run=args.dry_run,
|
||||
update_existing=args.update,
|
||||
include_deleted=args.include_deleted,
|
||||
only_tables=only_tables,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,655 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM 客户相关表迁入 shanxia2.0。
|
||||
|
||||
顺序:crm_customer → crm_contact → crm_customer_follow → crm_customer_pool
|
||||
证照字段 OSS ID → 目标 sys_oss 相对 URL;用户外键经 user_mapping 转换。
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_crm_customer.py --dry-run --env-file .env.production
|
||||
venv/bin/python scripts/migrate_crm_customer.py --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
MIGRATION_DIR = BACKEND_ROOT / "scripts" / "migration"
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
if str(MIGRATION_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(MIGRATION_DIR))
|
||||
|
||||
from minio_url import resolve_oss_id_csv # noqa: E402
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
CUSTOMER_TYPE_MAP = {
|
||||
"company": "company",
|
||||
"person": "person",
|
||||
"未分类": None,
|
||||
"a类国央企单位": "A类国央企业",
|
||||
"A类国央企单位": "A类国央企业",
|
||||
"A类国央企业": "A类国央企业",
|
||||
"b类股份制企业": "B类股份制企业",
|
||||
"B类股份制企业": "B类股份制企业",
|
||||
"c类私营单位": "C类私营企业",
|
||||
"C类私营企业": "C类私营企业",
|
||||
"d外商投资企业": "D外商投资企业",
|
||||
"D外商投资企业": "D外商投资企业",
|
||||
"e类国资委企业": "5",
|
||||
"5": "5",
|
||||
}
|
||||
|
||||
FOLLOW_TYPE_MAP = {
|
||||
"电话": "phone",
|
||||
"phone": "phone",
|
||||
"微信": "wechat",
|
||||
"wechat": "wechat",
|
||||
"邮件": "email",
|
||||
"email": "email",
|
||||
"拜访": "visit",
|
||||
"visit": "visit",
|
||||
"其他": "other",
|
||||
"other": "other",
|
||||
}
|
||||
|
||||
MIGRATION_STEPS = (
|
||||
("crm_customer", "customer"),
|
||||
("crm_contact", "contact"),
|
||||
("crm_customer_follow", "follow"),
|
||||
("crm_customer_pool", "pool"),
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class StepStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
updated: int = 0
|
||||
skipped: int = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
steps: Dict[str, StepStats] = field(default_factory=dict)
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
def step(self, name: str) -> StepStats:
|
||||
if name not in self.steps:
|
||||
self.steps[name] = StepStats()
|
||||
return self.steps[name]
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if crm_raw and new_id:
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
*,
|
||||
required: bool = False,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
msg = f"{label}: crm_user_id={uid} 无映射"
|
||||
if required:
|
||||
stats.warnings.append(msg)
|
||||
return mapped
|
||||
|
||||
|
||||
def load_oss_id_to_url(target_engine: Engine, tenant_no: str) -> Dict[str, str]:
|
||||
with target_engine.connect() as conn:
|
||||
rows = conn.execute(
|
||||
text("SELECT id, url FROM sys_oss WHERE tenant_no=:t AND del_flag=0"),
|
||||
{"t": tenant_no},
|
||||
).mappings().all()
|
||||
return {str(r["id"]): (r["url"] or "").strip() for r in rows if r["id"]}
|
||||
|
||||
|
||||
def normalize_customer_type(raw: Any, stats: MigrationStats, label: str) -> Optional[str]:
|
||||
value = (str(raw).strip() if raw is not None else "") or ""
|
||||
if not value:
|
||||
return None
|
||||
if value in CUSTOMER_TYPE_MAP:
|
||||
mapped = CUSTOMER_TYPE_MAP[value]
|
||||
if mapped is None:
|
||||
stats.warnings.append(f"{label}: customer_type={value!r} 已置空")
|
||||
return mapped
|
||||
lowered = value.lower()
|
||||
for key, mapped in CUSTOMER_TYPE_MAP.items():
|
||||
if key.lower() == lowered:
|
||||
return mapped
|
||||
stats.warnings.append(f"{label}: customer_type={value!r} 未识别,已置空")
|
||||
return None
|
||||
|
||||
|
||||
def normalize_follow_type(raw: Any) -> str:
|
||||
value = (str(raw).strip() if raw is not None else "") or "other"
|
||||
return FOLLOW_TYPE_MAP.get(value, FOLLOW_TYPE_MAP.get(value.lower(), "other"))
|
||||
|
||||
|
||||
def _dec(value: Any) -> Optional[Decimal]:
|
||||
if value is None or value == "":
|
||||
return None
|
||||
return Decimal(str(value))
|
||||
|
||||
|
||||
def _str_or_none(value: Any, max_len: int = 0) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
s = str(value).strip()
|
||||
if not s:
|
||||
return None
|
||||
return s[:max_len] if max_len else s
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine, table: str, include_deleted: bool) -> List[dict]:
|
||||
where = "" if include_deleted else "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{table}` {where} ORDER BY id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def target_row_exists(conn, table: str, row_id: str) -> bool:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}` WHERE id=:id"), {"id": row_id}).scalar_one()) > 0
|
||||
|
||||
|
||||
def transform_customer(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"customer#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, f"{label} {field_val}")
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"customer_no": (row.get("customer_no") or "")[:50],
|
||||
"customer_name": (row.get("customer_name") or "")[:200],
|
||||
"short_name": _str_or_none(row.get("short_name"), 100),
|
||||
"customer_type": normalize_customer_type(row.get("customer_type"), stats, label),
|
||||
"mobile": _str_or_none(row.get("mobile"), 20),
|
||||
"telephone": _str_or_none(row.get("telephone"), 30),
|
||||
"email": _str_or_none(row.get("email"), 100),
|
||||
"website": _str_or_none(row.get("website"), 500),
|
||||
"level": (row.get("level") or "normal")[:20],
|
||||
"source": _str_or_none(row.get("source"), 20),
|
||||
"industry": _str_or_none(row.get("industry"), 50),
|
||||
"park_area": _str_or_none(row.get("park_area"), 100),
|
||||
"payment_terms": _str_or_none(row.get("payment_terms"), 500),
|
||||
"scale": _str_or_none(row.get("scale"), 20),
|
||||
"province": _str_or_none(row.get("province"), 50),
|
||||
"city": _str_or_none(row.get("city"), 50),
|
||||
"district": _str_or_none(row.get("district"), 50),
|
||||
"address": _str_or_none(row.get("address"), 255),
|
||||
"status": (row.get("status") or "normal")[:20],
|
||||
"deal_status": (row.get("deal_status") or "not_deal")[:20],
|
||||
"owner_user_id": map_user(row.get("owner_user_id")),
|
||||
"owner_user_name": _str_or_none(row.get("owner_user_name"), 50),
|
||||
"last_time": row.get("last_time"),
|
||||
"next_time": row.get("next_time"),
|
||||
"follow_count": int(row.get("follow_count") or 0),
|
||||
"deal_time": row.get("deal_time"),
|
||||
"deal_amount": _dec(row.get("deal_amount")) or Decimal("0.00"),
|
||||
"contact_count": int(row.get("contact_count") or 0),
|
||||
"opportunity_count": int(row.get("opportunity_count") or 0),
|
||||
"contract_count": int(row.get("contract_count") or 0),
|
||||
"into_pool_time": row.get("into_pool_time"),
|
||||
"into_pool_by": map_user(row.get("into_pool_by")),
|
||||
"into_pool_reason": _str_or_none(row.get("into_pool_reason"), 500),
|
||||
"claim_time": row.get("claim_time"),
|
||||
"assign_time": row.get("assign_time"),
|
||||
"assign_by": map_user(row.get("assign_by")),
|
||||
"protect_time": row.get("protect_time"),
|
||||
"business_license_img": resolve_oss_id_csv(row.get("business_license_images"), oss_map) or None,
|
||||
"business_permit_images": resolve_oss_id_csv(row.get("business_permit_images"), oss_map) or None,
|
||||
"other_cert_images": resolve_oss_id_csv(row.get("other_cert_images"), oss_map) or None,
|
||||
"clue_id": legacy_id_to_str(row.get("clue_id")),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_contact(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"contact#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"customer_id": legacy_id_to_str(row.get("customer_id")),
|
||||
"customer_name": _str_or_none(row.get("customer_name"), 200),
|
||||
"contact_name": (row.get("contact_name") or "")[:100],
|
||||
"gender": _str_or_none(row.get("gender"), 10),
|
||||
"mobile": _str_or_none(row.get("mobile"), 20),
|
||||
"telephone": _str_or_none(row.get("telephone"), 30),
|
||||
"email": _str_or_none(row.get("email"), 100),
|
||||
"wechat": _str_or_none(row.get("wechat"), 100),
|
||||
"qq": _str_or_none(row.get("qq"), 20),
|
||||
"department": _str_or_none(row.get("department"), 100),
|
||||
"position": _str_or_none(row.get("position"), 50),
|
||||
"role": _str_or_none(row.get("role"), 20),
|
||||
"birthday": row.get("birthday"),
|
||||
"address": _str_or_none(row.get("address"), 255),
|
||||
"is_key": int(row.get("is_key") or 0),
|
||||
"is_primary": int(row.get("is_primary") or 0),
|
||||
"status": (row.get("status") or "active")[:20],
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_follow(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"follow#{rid}"
|
||||
owner_id = resolve_portal_user_id(row.get("create_by"), crm_user_map, admin_id, stats, label)
|
||||
attachment = resolve_oss_id_csv(row.get("attachments"), oss_map) or None
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"customer_id": legacy_id_to_str(row.get("customer_id")),
|
||||
"customer_name": _str_or_none(row.get("customer_name"), 200),
|
||||
"contact_id": legacy_id_to_str(row.get("contact_id")),
|
||||
"contact_name": _str_or_none(row.get("contact_name"), 100),
|
||||
"follow_type": normalize_follow_type(row.get("follow_type")),
|
||||
"follow_content": row.get("follow_content") or "",
|
||||
"follow_time": row.get("create_time"),
|
||||
"next_time": row.get("next_time"),
|
||||
"attachment": attachment,
|
||||
"owner_user_id": owner_id,
|
||||
"owner_user_name": _str_or_none(row.get("create_by_name"), 50),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": owner_id,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": resolve_portal_user_id(row.get("update_by"), crm_user_map, admin_id, stats, label),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_pool(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"pool#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
create_by = map_user(row.get("create_by"))
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"customer_id": legacy_id_to_str(row.get("customer_id")),
|
||||
"customer_name": _str_or_none(row.get("customer_name"), 200),
|
||||
"operation_type": (row.get("operation_type") or "")[:20],
|
||||
"from_user_id": map_user(row.get("from_user_id")),
|
||||
"from_user_name": _str_or_none(row.get("from_user_name"), 50),
|
||||
"to_user_id": map_user(row.get("to_user_id")),
|
||||
"to_user_name": _str_or_none(row.get("to_user_name"), 50),
|
||||
"reason": _str_or_none(row.get("reason"), 500),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": create_by,
|
||||
"create_by_name": _str_or_none(row.get("create_by_name"), 50),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
INSERT_CUSTOMER_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_customer (
|
||||
id, customer_no, customer_name, short_name, customer_type, mobile, telephone, email, website,
|
||||
level, source, industry, park_area, payment_terms, scale, province, city, district, address,
|
||||
status, deal_status, owner_user_id, owner_user_name, last_time, next_time, follow_count,
|
||||
deal_time, deal_amount, contact_count, opportunity_count, contract_count, into_pool_time,
|
||||
into_pool_by, into_pool_reason, claim_time, assign_time, assign_by, protect_time,
|
||||
business_license_img, business_permit_images, other_cert_images, clue_id,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :customer_no, :customer_name, :short_name, :customer_type, :mobile, :telephone, :email, :website,
|
||||
:level, :source, :industry, :park_area, :payment_terms, :scale, :province, :city, :district, :address,
|
||||
:status, :deal_status, :owner_user_id, :owner_user_name, :last_time, :next_time, :follow_count,
|
||||
:deal_time, :deal_amount, :contact_count, :opportunity_count, :contract_count, :into_pool_time,
|
||||
:into_pool_by, :into_pool_reason, :claim_time, :assign_time, :assign_by, :protect_time,
|
||||
:business_license_img, :business_permit_images, :other_cert_images, :clue_id,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_CONTACT_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_contact (
|
||||
id, customer_id, customer_name, contact_name, gender, mobile, telephone, email, wechat, qq,
|
||||
department, position, role, birthday, address, is_key, is_primary, status,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :customer_id, :customer_name, :contact_name, :gender, :mobile, :telephone, :email, :wechat, :qq,
|
||||
:department, :position, :role, :birthday, :address, :is_key, :is_primary, :status,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_FOLLOW_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_customer_follow (
|
||||
id, customer_id, customer_name, contact_id, contact_name, follow_type, follow_content,
|
||||
follow_time, next_time, attachment, owner_user_id, owner_user_name,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :customer_id, :customer_name, :contact_id, :contact_name, :follow_type, :follow_content,
|
||||
:follow_time, :next_time, :attachment, :owner_user_id, :owner_user_name,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_POOL_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_customer_pool (
|
||||
id, customer_id, customer_name, operation_type, from_user_id, from_user_name, to_user_id, to_user_name,
|
||||
reason, tenant_no, order_num, remark, create_by, create_by_name, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :customer_id, :customer_name, :operation_type, :from_user_id, :from_user_name, :to_user_id, :to_user_name,
|
||||
:reason, :tenant_no, :order_num, :remark, :create_by, :create_by_name, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
STEP_INSERT_SQL = {
|
||||
"crm_customer": INSERT_CUSTOMER_SQL,
|
||||
"crm_contact": INSERT_CONTACT_SQL,
|
||||
"crm_customer_follow": INSERT_FOLLOW_SQL,
|
||||
"crm_customer_pool": INSERT_POOL_SQL,
|
||||
}
|
||||
|
||||
|
||||
def write_mapping_csv(table_key: str, rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(f, fieldnames=["source_id", "new_id", "migrated_at"])
|
||||
w.writeheader()
|
||||
for row in rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
w.writerow({"source_id": sid, "new_id": sid, "migrated_at": migrated_at})
|
||||
|
||||
|
||||
def migrate_table(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
table: str,
|
||||
*,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
) -> List[dict]:
|
||||
step = stats.step(table)
|
||||
source_rows = fetch_source_rows(source_engine, table, include_deleted)
|
||||
step.source_count = len(source_rows)
|
||||
|
||||
transformers = {
|
||||
"crm_customer": lambda r: transform_customer(r, tenant_no, crm_user_map, admin_id, oss_map, stats),
|
||||
"crm_contact": lambda r: transform_contact(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
"crm_customer_follow": lambda r: transform_follow(r, tenant_no, crm_user_map, admin_id, oss_map, stats),
|
||||
"crm_customer_pool": lambda r: transform_pool(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
}
|
||||
payloads = [transformers[table](r) for r in source_rows]
|
||||
|
||||
if dry_run:
|
||||
step.inserted = len(payloads)
|
||||
return source_rows
|
||||
|
||||
insert_sql = STEP_INSERT_SQL[table]
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, table, rid):
|
||||
if update_existing:
|
||||
# 简化:仅支持首次灌库;更新逻辑后续按需补充
|
||||
step.skipped += 1
|
||||
else:
|
||||
step.skipped += 1
|
||||
else:
|
||||
conn.execute(insert_sql, payload)
|
||||
step.inserted += 1
|
||||
return source_rows
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM 客户四表迁移 [{mode}] ===")
|
||||
for table, _ in MIGRATION_STEPS:
|
||||
s = stats.step(table)
|
||||
print(f"{table}: 源={s.source_count} 插入={s.inserted} 跳过={s.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:20]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 20:
|
||||
print(f" ... 另有 {len(stats.warnings) - 20} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_dir: Path,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
only_tables: Optional[List[str]],
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
oss_map = load_oss_id_to_url(target_engine, tenant_no)
|
||||
print(f"sys_oss 映射条数: {len(oss_map)}")
|
||||
|
||||
selected = [t for t, _ in MIGRATION_STEPS if not only_tables or t in only_tables]
|
||||
for table in selected:
|
||||
print(f"\n>> 迁移 {table} ...")
|
||||
source_rows = migrate_table(
|
||||
source_engine,
|
||||
target_engine,
|
||||
table,
|
||||
tenant_no=tenant_no,
|
||||
crm_user_map=crm_user_map,
|
||||
admin_id=admin_id,
|
||||
oss_map=oss_map,
|
||||
stats=stats,
|
||||
dry_run=dry_run,
|
||||
update_existing=update_existing,
|
||||
include_deleted=include_deleted,
|
||||
)
|
||||
if table == "crm_customer" and not dry_run:
|
||||
write_mapping_csv("customer", source_rows, mapping_dir / "crm_customer_id_mapping.csv")
|
||||
|
||||
print_report(stats, dry_run)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM customer bundle from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--update", action="store_true")
|
||||
parser.add_argument("--include-deleted", action="store_true")
|
||||
parser.add_argument("--tables", default="", help="逗号分隔,默认全部四表")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
only_tables = [t.strip() for t in args.tables.split(",") if t.strip()] or None
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_dir=BACKEND_ROOT.parent / "docs/data-migration/mappings",
|
||||
dry_run=args.dry_run,
|
||||
update_existing=args.update,
|
||||
include_deleted=args.include_deleted,
|
||||
only_tables=only_tables,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,606 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM 商机相关表迁入 shanxia2.0。
|
||||
|
||||
顺序:crm_opportunity → crm_opportunity_follow → crm_opportunity_product → crm_opportunity_stage_log
|
||||
用户外键经 user_mapping 转换;附件 OSS ID → 目标 sys_oss 相对 URL;业务 ID 原样 str(id)。
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_crm_opportunity.py --dry-run --env-file .env.production
|
||||
venv/bin/python scripts/migrate_crm_opportunity.py --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
MIGRATION_DIR = BACKEND_ROOT / "scripts" / "migration"
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
if str(MIGRATION_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(MIGRATION_DIR))
|
||||
|
||||
from minio_url import resolve_oss_id_csv # noqa: E402
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
FOLLOW_TYPE_MAP = {
|
||||
"电话": "phone",
|
||||
"phone": "phone",
|
||||
"微信": "wechat",
|
||||
"wechat": "wechat",
|
||||
"邮件": "email",
|
||||
"email": "email",
|
||||
"拜访": "visit",
|
||||
"visit": "visit",
|
||||
"会议": "meeting",
|
||||
"meeting": "meeting",
|
||||
"其他": "other",
|
||||
"other": "other",
|
||||
}
|
||||
|
||||
MIGRATION_STEPS = (
|
||||
("crm_opportunity", "opportunity"),
|
||||
("crm_opportunity_follow", "opportunity_follow"),
|
||||
("crm_opportunity_product", "opportunity_product"),
|
||||
("crm_opportunity_stage_log", "opportunity_stage_log"),
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class StepStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
updated: int = 0
|
||||
skipped: int = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
steps: Dict[str, StepStats] = field(default_factory=dict)
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
def step(self, name: str) -> StepStats:
|
||||
if name not in self.steps:
|
||||
self.steps[name] = StepStats()
|
||||
return self.steps[name]
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if crm_raw and new_id:
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: crm_user_id={uid} 无映射")
|
||||
return mapped
|
||||
|
||||
|
||||
def load_oss_id_to_url(target_engine: Engine, tenant_no: str) -> Dict[str, str]:
|
||||
with target_engine.connect() as conn:
|
||||
rows = conn.execute(
|
||||
text("SELECT id, url FROM sys_oss WHERE tenant_no=:t AND del_flag=0"),
|
||||
{"t": tenant_no},
|
||||
).mappings().all()
|
||||
return {str(r["id"]): (r["url"] or "").strip() for r in rows if r["id"]}
|
||||
|
||||
|
||||
def normalize_follow_type(raw: Any) -> str:
|
||||
value = (str(raw).strip() if raw is not None else "") or "other"
|
||||
return FOLLOW_TYPE_MAP.get(value, FOLLOW_TYPE_MAP.get(value.lower(), "other"))
|
||||
|
||||
|
||||
def _dec(value: Any, default: Optional[Decimal] = None) -> Optional[Decimal]:
|
||||
if value is None or value == "":
|
||||
return default
|
||||
return Decimal(str(value))
|
||||
|
||||
|
||||
def _str_or_none(value: Any, max_len: int = 0) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
s = str(value).strip()
|
||||
if not s:
|
||||
return None
|
||||
return s[:max_len] if max_len else s
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine, table: str, include_deleted: bool) -> List[dict]:
|
||||
where = "" if include_deleted else "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{table}` {where} ORDER BY id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def target_row_exists(conn, table: str, row_id: str) -> bool:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}` WHERE id=:id"), {"id": row_id}).scalar_one()) > 0
|
||||
|
||||
|
||||
def transform_opportunity(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"opportunity#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"opportunity_no": (row.get("opportunity_no") or "")[:50],
|
||||
"opportunity_name": (row.get("opportunity_name") or "")[:200],
|
||||
"customer_id": legacy_id_to_str(row.get("customer_id")) or "",
|
||||
"customer_name": _str_or_none(row.get("customer_name"), 200),
|
||||
"contact_id": legacy_id_to_str(row.get("contact_id")),
|
||||
"contact_name": _str_or_none(row.get("contact_name"), 50),
|
||||
"stage": (row.get("stage") or "initial")[:20],
|
||||
"stage_percent": int(row.get("stage_percent") or 10),
|
||||
"status": (row.get("status") or "following")[:20],
|
||||
"win_rate": _dec(row.get("win_rate"), Decimal("50.00")),
|
||||
"amount": _dec(row.get("amount"), Decimal("0.00")),
|
||||
"expect_deal_date": row.get("expect_deal_date"),
|
||||
"actual_deal_date": row.get("actual_deal_date"),
|
||||
"lost_reason": _str_or_none(row.get("lost_reason"), 500),
|
||||
"owner_user_id": map_user(row.get("owner_user_id")),
|
||||
"owner_user_name": _str_or_none(row.get("owner_user_name"), 50),
|
||||
"product_count": int(row.get("product_count") or 0),
|
||||
"last_time": row.get("last_time"),
|
||||
"next_time": row.get("next_time"),
|
||||
"follow_count": int(row.get("follow_count") or 0),
|
||||
"contract_id": legacy_id_to_str(row.get("contract_id")),
|
||||
"source": _str_or_none(row.get("source"), 20),
|
||||
"type": _str_or_none(row.get("type"), 20),
|
||||
"description": row.get("description"),
|
||||
"competitors": _str_or_none(row.get("competitors"), 500),
|
||||
"key_factors": _str_or_none(row.get("key_factors"), 500),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_opportunity_follow(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"opportunity_follow#{rid}"
|
||||
owner_id = resolve_portal_user_id(row.get("create_by"), crm_user_map, admin_id, stats, label)
|
||||
follow_by = resolve_portal_user_id(row.get("follow_by"), crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"opportunity_id": legacy_id_to_str(row.get("opportunity_id")) or "",
|
||||
"follow_type": normalize_follow_type(row.get("follow_type")),
|
||||
"follow_content": row.get("follow_content") or "",
|
||||
"follow_time": row.get("follow_time") or row.get("create_time"),
|
||||
"stage": _str_or_none(row.get("stage"), 20),
|
||||
"stage_percent": int(row["stage_percent"]) if row.get("stage_percent") is not None else None,
|
||||
"next_time": row.get("next_time"),
|
||||
"next_content": _str_or_none(row.get("next_content"), 500),
|
||||
"attachments": resolve_oss_id_csv(row.get("attachments"), oss_map) or None,
|
||||
"contact_id": legacy_id_to_str(row.get("contact_id")),
|
||||
"contact_name": _str_or_none(row.get("contact_name"), 50),
|
||||
"location": _str_or_none(row.get("location"), 200),
|
||||
"duration": int(row["duration"]) if row.get("duration") is not None else None,
|
||||
"follow_by": follow_by or owner_id,
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": owner_id,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": resolve_portal_user_id(row.get("update_by"), crm_user_map, admin_id, stats, label),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_opportunity_product(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"opportunity_product#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"opportunity_id": legacy_id_to_str(row.get("opportunity_id")) or "",
|
||||
"product_id": legacy_id_to_str(row.get("product_id")) or "",
|
||||
"product_name": _str_or_none(row.get("product_name"), 200),
|
||||
"product_no": _str_or_none(row.get("product_no"), 50),
|
||||
"category_id": legacy_id_to_str(row.get("category_id")),
|
||||
"category_name": _str_or_none(row.get("category_name"), 100),
|
||||
"model": _str_or_none(row.get("model"), 100),
|
||||
"unit": (row.get("unit") or "件")[:20],
|
||||
"quantity": _dec(row.get("quantity"), Decimal("0")),
|
||||
"price": _dec(row.get("price"), Decimal("0.00")),
|
||||
"discount": _dec(row.get("discount"), Decimal("0.00")),
|
||||
"subtotal": _dec(row.get("subtotal"), Decimal("0.00")),
|
||||
"sort": int(row.get("sort") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_opportunity_stage_log(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"opportunity_stage_log#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"opportunity_id": legacy_id_to_str(row.get("opportunity_id")) or "",
|
||||
"from_stage": _str_or_none(row.get("from_stage"), 20),
|
||||
"from_stage_name": _str_or_none(row.get("from_stage_name"), 50),
|
||||
"from_percent": int(row["from_percent"]) if row.get("from_percent") is not None else None,
|
||||
"to_stage": (row.get("to_stage") or "")[:20],
|
||||
"to_stage_name": _str_or_none(row.get("to_stage_name"), 50),
|
||||
"to_percent": int(row["to_percent"]) if row.get("to_percent") is not None else None,
|
||||
"change_type": (row.get("change_type") or "forward")[:20],
|
||||
"change_reason": _str_or_none(row.get("change_reason"), 500),
|
||||
"change_amount": _dec(row.get("change_amount")),
|
||||
"lost_detail": _str_or_none(row.get("lost_detail"), 2000),
|
||||
"competitor_info": _str_or_none(row.get("competitor_info"), 1000),
|
||||
"improvement": _str_or_none(row.get("improvement"), 1000),
|
||||
"won_remark": _str_or_none(row.get("won_remark"), 2000),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
INSERT_OPPORTUNITY_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_opportunity (
|
||||
id, opportunity_no, opportunity_name, customer_id, customer_name, contact_id, contact_name,
|
||||
stage, stage_percent, status, win_rate, amount, expect_deal_date, actual_deal_date, lost_reason,
|
||||
owner_user_id, owner_user_name, product_count, last_time, next_time, follow_count, contract_id,
|
||||
source, type, description, competitors, key_factors,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :opportunity_no, :opportunity_name, :customer_id, :customer_name, :contact_id, :contact_name,
|
||||
:stage, :stage_percent, :status, :win_rate, :amount, :expect_deal_date, :actual_deal_date, :lost_reason,
|
||||
:owner_user_id, :owner_user_name, :product_count, :last_time, :next_time, :follow_count, :contract_id,
|
||||
:source, :type, :description, :competitors, :key_factors,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_OPPORTUNITY_FOLLOW_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_opportunity_follow (
|
||||
id, opportunity_id, follow_type, follow_content, follow_time, stage, stage_percent,
|
||||
next_time, next_content, attachments, contact_id, contact_name, location, duration, follow_by,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :opportunity_id, :follow_type, :follow_content, :follow_time, :stage, :stage_percent,
|
||||
:next_time, :next_content, :attachments, :contact_id, :contact_name, :location, :duration, :follow_by,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_OPPORTUNITY_PRODUCT_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_opportunity_product (
|
||||
id, opportunity_id, product_id, product_name, product_no, category_id, category_name,
|
||||
model, unit, quantity, price, discount, subtotal, sort,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :opportunity_id, :product_id, :product_name, :product_no, :category_id, :category_name,
|
||||
:model, :unit, :quantity, :price, :discount, :subtotal, :sort,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_OPPORTUNITY_STAGE_LOG_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_opportunity_stage_log (
|
||||
id, opportunity_id, from_stage, from_stage_name, from_percent, to_stage, to_stage_name, to_percent,
|
||||
change_type, change_reason, change_amount, lost_detail, competitor_info, improvement, won_remark,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :opportunity_id, :from_stage, :from_stage_name, :from_percent, :to_stage, :to_stage_name, :to_percent,
|
||||
:change_type, :change_reason, :change_amount, :lost_detail, :competitor_info, :improvement, :won_remark,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
STEP_INSERT_SQL = {
|
||||
"crm_opportunity": INSERT_OPPORTUNITY_SQL,
|
||||
"crm_opportunity_follow": INSERT_OPPORTUNITY_FOLLOW_SQL,
|
||||
"crm_opportunity_product": INSERT_OPPORTUNITY_PRODUCT_SQL,
|
||||
"crm_opportunity_stage_log": INSERT_OPPORTUNITY_STAGE_LOG_SQL,
|
||||
}
|
||||
|
||||
|
||||
def write_mapping_csv(source_rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(f, fieldnames=["source_id", "new_id", "migrated_at"])
|
||||
w.writeheader()
|
||||
for row in source_rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
w.writerow({"source_id": sid, "new_id": sid, "migrated_at": migrated_at})
|
||||
|
||||
|
||||
def migrate_table(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
table: str,
|
||||
*,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
) -> List[dict]:
|
||||
step = stats.step(table)
|
||||
source_rows = fetch_source_rows(source_engine, table, include_deleted)
|
||||
step.source_count = len(source_rows)
|
||||
|
||||
transformers = {
|
||||
"crm_opportunity": lambda r: transform_opportunity(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
"crm_opportunity_follow": lambda r: transform_opportunity_follow(
|
||||
r, tenant_no, crm_user_map, admin_id, oss_map, stats
|
||||
),
|
||||
"crm_opportunity_product": lambda r: transform_opportunity_product(
|
||||
r, tenant_no, crm_user_map, admin_id, stats
|
||||
),
|
||||
"crm_opportunity_stage_log": lambda r: transform_opportunity_stage_log(
|
||||
r, tenant_no, crm_user_map, admin_id, stats
|
||||
),
|
||||
}
|
||||
payloads = [transformers[table](r) for r in source_rows]
|
||||
|
||||
if dry_run:
|
||||
step.inserted = len(payloads)
|
||||
return source_rows
|
||||
|
||||
insert_sql = STEP_INSERT_SQL[table]
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, table, rid):
|
||||
if update_existing:
|
||||
step.skipped += 1
|
||||
else:
|
||||
step.skipped += 1
|
||||
else:
|
||||
conn.execute(insert_sql, payload)
|
||||
step.inserted += 1
|
||||
return source_rows
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM 商机四表迁移 [{mode}] ===")
|
||||
for table, _ in MIGRATION_STEPS:
|
||||
s = stats.step(table)
|
||||
print(f"{table}: 源={s.source_count} 插入={s.inserted} 跳过={s.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:20]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 20:
|
||||
print(f" ... 另有 {len(stats.warnings) - 20} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_dir: Path,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
only_tables: Optional[List[str]],
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
oss_map = load_oss_id_to_url(target_engine, tenant_no)
|
||||
print(f"sys_oss 映射条数: {len(oss_map)}")
|
||||
|
||||
selected = [t for t, _ in MIGRATION_STEPS if not only_tables or t in only_tables]
|
||||
for table in selected:
|
||||
print(f"\n>> 迁移 {table} ...")
|
||||
source_rows = migrate_table(
|
||||
source_engine,
|
||||
target_engine,
|
||||
table,
|
||||
tenant_no=tenant_no,
|
||||
crm_user_map=crm_user_map,
|
||||
admin_id=admin_id,
|
||||
oss_map=oss_map,
|
||||
stats=stats,
|
||||
dry_run=dry_run,
|
||||
update_existing=update_existing,
|
||||
include_deleted=include_deleted,
|
||||
)
|
||||
if table == "crm_opportunity" and not dry_run:
|
||||
write_mapping_csv(source_rows, mapping_dir / "crm_opportunity_id_mapping.csv")
|
||||
|
||||
print_report(stats, dry_run)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM opportunity tables from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--update", action="store_true")
|
||||
parser.add_argument("--include-deleted", action="store_true")
|
||||
parser.add_argument("--tables", default="", help="逗号分隔,默认全部四表")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
only_tables = [t.strip() for t in args.tables.split(",") if t.strip()] or None
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_dir=BACKEND_ROOT.parent / "docs/data-migration/mappings",
|
||||
dry_run=args.dry_run,
|
||||
update_existing=args.update,
|
||||
include_deleted=args.include_deleted,
|
||||
only_tables=only_tables,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,393 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM 回款/开票相关表迁入 shanxia2.0。
|
||||
|
||||
门户侧当前仅有 crm_invoice_info 表;源库回款/发票主表及明细均为空,跳过。
|
||||
实际迁移:crm_invoice_info(客户开票信息子表)。
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_crm_payment_invoice.py --dry-run --env-file .env.production
|
||||
venv/bin/python scripts/migrate_crm_payment_invoice.py --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
# 源库存在但门户暂无对应业务表,或源库无数据
|
||||
SKIPPED_TABLES = (
|
||||
"crm_payment",
|
||||
"crm_payment_plan",
|
||||
"crm_payment_collection",
|
||||
"crm_invoice",
|
||||
"crm_invoice_item",
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class StepStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
skipped: int = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
steps: Dict[str, StepStats] = field(default_factory=dict)
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
def step(self, name: str) -> StepStats:
|
||||
if name not in self.steps:
|
||||
self.steps[name] = StepStats()
|
||||
return self.steps[name]
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if crm_raw and new_id:
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: crm_user_id={uid} 无映射")
|
||||
return mapped
|
||||
|
||||
|
||||
def _str_or_none(value: Any, max_len: int = 0) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
s = str(value).strip()
|
||||
if not s:
|
||||
return None
|
||||
return s[:max_len] if max_len else s
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine, table: str, include_deleted: bool) -> List[dict]:
|
||||
where = "" if include_deleted else "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{table}` {where} ORDER BY id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def count_source_rows(engine: Engine, table: str) -> int:
|
||||
with engine.connect() as conn:
|
||||
try:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}` WHERE del_flag=0")).scalar_one())
|
||||
except Exception:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}`")).scalar_one())
|
||||
|
||||
|
||||
def target_table_exists(engine: Engine, table: str) -> bool:
|
||||
with engine.connect() as conn:
|
||||
row = conn.execute(text("SHOW TABLES LIKE :t"), {"t": table}).first()
|
||||
return row is not None
|
||||
|
||||
|
||||
def target_row_exists(conn, table: str, row_id: str) -> bool:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}` WHERE id=:id"), {"id": row_id}).scalar_one()) > 0
|
||||
|
||||
|
||||
def transform_invoice_info(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> Optional[dict]:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"invoice_info#{rid}"
|
||||
customer_id = legacy_id_to_str(row.get("customer_id"))
|
||||
if not customer_id:
|
||||
stats.warnings.append(f"{label}: 缺少 customer_id,已跳过")
|
||||
return None
|
||||
|
||||
company_name = _str_or_none(row.get("company_name"), 200)
|
||||
if not company_name:
|
||||
stats.warnings.append(f"{label}: company_name 为空,已跳过")
|
||||
return None
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
is_default = (str(row.get("is_default") or "0").strip() or "0")[:1]
|
||||
if is_default not in ("0", "1"):
|
||||
is_default = "1" if is_default in ("true", "True", "Y", "y") else "0"
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"customer_id": customer_id,
|
||||
"company_name": company_name,
|
||||
"tax_no": None,
|
||||
"company_address": _str_or_none(row.get("company_address"), 500),
|
||||
"legal_representative": _str_or_none(row.get("legal_representative"), 100),
|
||||
"agent": _str_or_none(row.get("agent"), 100),
|
||||
"phone_fax": _str_or_none(row.get("phone_fax"), 100),
|
||||
"bank_name": _str_or_none(row.get("bank_name"), 200),
|
||||
"bank_account": _str_or_none(row.get("bank_account"), 100),
|
||||
"is_default": is_default,
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 512),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
INSERT_INVOICE_INFO_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_invoice_info (
|
||||
id, customer_id, company_name, tax_no, company_address, legal_representative,
|
||||
agent, phone_fax, bank_name, bank_account, is_default,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :customer_id, :company_name, :tax_no, :company_address, :legal_representative,
|
||||
:agent, :phone_fax, :bank_name, :bank_account, :is_default,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
def write_mapping_csv(rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(f, fieldnames=["source_id", "new_id", "migrated_at"])
|
||||
w.writeheader()
|
||||
for row in rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
w.writerow({"source_id": sid, "new_id": sid, "migrated_at": migrated_at})
|
||||
|
||||
|
||||
def report_skipped_tables(source_engine: Engine, target_engine: Engine, stats: MigrationStats) -> None:
|
||||
print("\n>> 跳过表(门户无表或源库无数据):")
|
||||
for table in SKIPPED_TABLES:
|
||||
source_count = count_source_rows(source_engine, table)
|
||||
target_exists = target_table_exists(target_engine, table)
|
||||
step = stats.step(table)
|
||||
step.source_count = source_count
|
||||
if source_count == 0:
|
||||
print(f" {table}: 源库 0 行,跳过")
|
||||
elif not target_exists:
|
||||
print(f" {table}: 源库 {source_count} 行,门户无对应表,跳过")
|
||||
stats.warnings.append(f"{table}: 源库有 {source_count} 行但门户无表,未迁移")
|
||||
else:
|
||||
print(f" {table}: 源={source_count} 目标表存在(本脚本未实现,需单独处理)")
|
||||
|
||||
|
||||
def migrate_invoice_info(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
dry_run: bool,
|
||||
mapping_dir: Path,
|
||||
) -> None:
|
||||
table = "crm_invoice_info"
|
||||
step = stats.step(table)
|
||||
source_rows = fetch_source_rows(source_engine, table, include_deleted=False)
|
||||
step.source_count = len(source_rows)
|
||||
|
||||
payloads: List[dict] = []
|
||||
for row in source_rows:
|
||||
payload = transform_invoice_info(row, tenant_no, crm_user_map, admin_id, stats)
|
||||
if payload:
|
||||
payloads.append(payload)
|
||||
else:
|
||||
step.skipped += 1
|
||||
|
||||
if dry_run:
|
||||
step.inserted = len(payloads)
|
||||
print(f"{table}: 源={step.source_count} 可插入={step.inserted} 跳过={step.skipped}")
|
||||
return
|
||||
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, table, rid):
|
||||
step.skipped += 1
|
||||
else:
|
||||
conn.execute(INSERT_INVOICE_INFO_SQL, payload)
|
||||
step.inserted += 1
|
||||
|
||||
write_mapping_csv(source_rows, mapping_dir / "crm_invoice_info_id_mapping.csv")
|
||||
print(f"{table}: 源={step.source_count} 插入={step.inserted} 跳过={step.skipped}")
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM 回款/开票迁移 [{mode}] ===")
|
||||
for name in (*SKIPPED_TABLES, "crm_invoice_info"):
|
||||
s = stats.step(name)
|
||||
if s.source_count or s.inserted or s.skipped:
|
||||
print(f"{name}: 源={s.source_count} 插入={s.inserted} 跳过={s.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:20]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 20:
|
||||
print(f" ... 另有 {len(stats.warnings) - 20} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_dir: Path,
|
||||
dry_run: bool,
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
|
||||
report_skipped_tables(source_engine, target_engine, stats)
|
||||
print("\n>> 迁移 crm_invoice_info ...")
|
||||
migrate_invoice_info(
|
||||
source_engine,
|
||||
target_engine,
|
||||
tenant_no=tenant_no,
|
||||
crm_user_map=crm_user_map,
|
||||
admin_id=admin_id,
|
||||
stats=stats,
|
||||
dry_run=dry_run,
|
||||
mapping_dir=mapping_dir,
|
||||
)
|
||||
print_report(stats, dry_run)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM payment/invoice bundle from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_dir=BACKEND_ROOT.parent / "docs/data-migration/mappings",
|
||||
dry_run=args.dry_run,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,372 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM 产品主表迁入 shanxia2.0 crm_product。
|
||||
|
||||
数据源:仅 sx 库 crm_product(原 CRM 系统),不含地磅 cargos、报销 bx_*。
|
||||
策略见 docs/data-migration/05-id-preservation-policy.md:id/category_id 原样 str(bigint)。
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_crm_product.py --dry-run --env-file .env.production
|
||||
|
||||
venv/bin/python scripts/migrate_crm_product.py --env-file .env.production \\
|
||||
--user-mapping ../docs/data-migration/mappings/user_mapping_result.csv \\
|
||||
--mapping-out ../docs/data-migration/mappings/crm_product_id_mapping.csv
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
SOURCE_TABLE = "crm_product"
|
||||
TARGET_TABLE = "crm_product"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
updated: int = 0
|
||||
skipped: int = 0
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if crm_raw and new_id:
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: crm_user_id={uid} 无映射")
|
||||
return mapped
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine, include_deleted: bool) -> List[dict]:
|
||||
where = "" if include_deleted else "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{SOURCE_TABLE}` {where} ORDER BY id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def count_target_rows(engine: Engine, tenant_no: str) -> int:
|
||||
with engine.connect() as conn:
|
||||
return int(
|
||||
conn.execute(
|
||||
text(
|
||||
f"SELECT COUNT(*) FROM `{TARGET_TABLE}` "
|
||||
"WHERE tenant_no=:t AND del_flag=0"
|
||||
),
|
||||
{"t": tenant_no},
|
||||
).scalar_one()
|
||||
)
|
||||
|
||||
|
||||
def _dec(value: Any) -> Optional[Decimal]:
|
||||
if value is None or value == "":
|
||||
return None
|
||||
return Decimal(str(value))
|
||||
|
||||
|
||||
def transform_row(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
new_id = legacy_id_to_str(row["id"])
|
||||
cat_id = legacy_id_to_str(row.get("category_id"))
|
||||
|
||||
status = str(row.get("status") or "on").strip()
|
||||
if status not in ("on", "off"):
|
||||
status = "on"
|
||||
|
||||
unit = (row.get("unit") or "").strip() or None
|
||||
|
||||
return {
|
||||
"id": new_id,
|
||||
"product_no": (row.get("product_no") or "")[:50],
|
||||
"product_name": (row.get("product_name") or "")[:200],
|
||||
"category_id": cat_id,
|
||||
"category_name": (row.get("category_name") or "")[:100] or None,
|
||||
"model": (row.get("model") or "")[:100] or None,
|
||||
"unit": (unit[:20] if unit else None),
|
||||
"barcode": (row.get("barcode") or "")[:100] or None,
|
||||
"price": _dec(row.get("price")),
|
||||
"cost_price": _dec(row.get("cost")),
|
||||
"stock": int(row.get("stock") or 0),
|
||||
"low_stock": int(row.get("low_stock") or 10),
|
||||
"tax_rate": _dec(row.get("tax_rate")) or Decimal("13.00"),
|
||||
"is_toxic": 0,
|
||||
"is_explosive": 0,
|
||||
"status": status[:3],
|
||||
"description": row.get("description"),
|
||||
"images": (row.get("images") or "")[:1000] or None,
|
||||
"sale_count": int(row.get("sale_count") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": (row.get("remark") or "")[:512] or None,
|
||||
"create_by": resolve_portal_user_id(
|
||||
row.get("create_by"), crm_user_map, admin_id, stats, f"product#{new_id} create_by"
|
||||
),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": resolve_portal_user_id(
|
||||
row.get("update_by"), crm_user_map, admin_id, stats, f"product#{new_id} update_by"
|
||||
),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
INSERT_SQL = text(
|
||||
f"""
|
||||
INSERT INTO `{TARGET_TABLE}` (
|
||||
id, product_no, product_name, category_id, category_name, model, unit, barcode,
|
||||
price, cost_price, stock, low_stock, tax_rate, is_toxic, is_explosive, status,
|
||||
description, images, sale_count, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :product_no, :product_name, :category_id, :category_name, :model, :unit, :barcode,
|
||||
:price, :cost_price, :stock, :low_stock, :tax_rate, :is_toxic, :is_explosive, :status,
|
||||
:description, :images, :sale_count, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
UPDATE_SQL = text(
|
||||
f"""
|
||||
UPDATE `{TARGET_TABLE}` SET
|
||||
product_no=:product_no, product_name=:product_name, category_id=:category_id,
|
||||
category_name=:category_name, model=:model, unit=:unit, barcode=:barcode,
|
||||
price=:price, cost_price=:cost_price, stock=:stock, low_stock=:low_stock,
|
||||
tax_rate=:tax_rate, status=:status, description=:description, images=:images,
|
||||
sale_count=:sale_count, tenant_no=:tenant_no, order_num=:order_num, remark=:remark,
|
||||
create_by=:create_by, update_by=:update_by, update_time=:update_time, del_flag=:del_flag
|
||||
WHERE id=:id
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
def target_row_exists(conn, row_id: str) -> bool:
|
||||
return int(
|
||||
conn.execute(text(f"SELECT COUNT(*) FROM `{TARGET_TABLE}` WHERE id=:id"), {"id": row_id}).scalar_one()
|
||||
) > 0
|
||||
|
||||
|
||||
def write_mapping_csv(rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(
|
||||
f,
|
||||
fieldnames=["source_id", "new_id", "product_no", "product_name", "category_id", "migrated_at"],
|
||||
)
|
||||
w.writeheader()
|
||||
for row in rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
w.writerow(
|
||||
{
|
||||
"source_id": sid,
|
||||
"new_id": sid,
|
||||
"product_no": row.get("product_no") or "",
|
||||
"product_name": row.get("product_name") or "",
|
||||
"category_id": legacy_id_to_str(row.get("category_id")) or "",
|
||||
"migrated_at": migrated_at,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM 产品迁移 [{mode}] ===")
|
||||
print(f"源表行数: {stats.source_count}")
|
||||
print(f"插入: {stats.inserted} 更新: {stats.updated} 跳过: {stats.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:15]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 15:
|
||||
print(f" ... 另有 {len(stats.warnings) - 15} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_out: Optional[Path],
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
|
||||
source_rows = fetch_source_rows(source_engine, include_deleted)
|
||||
stats.source_count = len(source_rows)
|
||||
payloads = [transform_row(r, tenant_no, crm_user_map, admin_id, stats) for r in source_rows]
|
||||
|
||||
if dry_run:
|
||||
print("\n预览(前 5 条):")
|
||||
for p in payloads[:5]:
|
||||
print(f" id={p['id']} no={p['product_no']} name={p['product_name']!r} cat={p['category_id']}")
|
||||
stats.inserted = len(payloads)
|
||||
print_report(stats, dry_run=True)
|
||||
return stats
|
||||
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, rid):
|
||||
if update_existing:
|
||||
conn.execute(UPDATE_SQL, payload)
|
||||
stats.updated += 1
|
||||
else:
|
||||
stats.skipped += 1
|
||||
else:
|
||||
conn.execute(INSERT_SQL, payload)
|
||||
stats.inserted += 1
|
||||
|
||||
if mapping_out:
|
||||
write_mapping_csv(source_rows, mapping_out)
|
||||
print(f"\nID 映射已写入: {mapping_out}")
|
||||
|
||||
print_report(stats, dry_run=False)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM products from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--update", action="store_true")
|
||||
parser.add_argument("--include-deleted", action="store_true")
|
||||
parser.add_argument("--mapping-out", default="")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
print("数据源: sx.crm_product(原 CRM,不含地磅 cargos)")
|
||||
print(f"目标表现有产品: {count_target_rows(create_engine(target_url), args.tenant_no)}")
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_out=Path(args.mapping_out) if args.mapping_out else None,
|
||||
dry_run=args.dry_run,
|
||||
update_existing=args.update,
|
||||
include_deleted=args.include_deleted,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,457 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM 产品分类迁入 shanxia2.0 crm_product_category。
|
||||
|
||||
策略(2026-07-12 确认,全局见 docs/data-migration/05-id-preservation-policy.md):
|
||||
- 主键 **原样保留**:源 bigint id → 目标 VARCHAR 同值字符串(如 1975766404158746625)
|
||||
- parent_id 同理:0 → '0',非 0 → str(parent_id)
|
||||
- 便于后续 crm_product、报价/合同行项目等直接引用 category_id,无需二次查 mapping
|
||||
- create_by/update_by 经 user_mapping_result.csv 的 crm_user_id 转换;源 1 → 门户 admin
|
||||
|
||||
用法:
|
||||
cd backend && source venv/bin/activate
|
||||
ENV_FILE=.env.production python scripts/migrate_crm_product_category.py --dry-run
|
||||
|
||||
ENV_FILE=.env.production python scripts/migrate_crm_product_category.py \\
|
||||
--source-url mysql+pymysql://root:***@host:3306/sx \\
|
||||
--user-mapping ../docs/data-migration/mappings/user_mapping_result.csv \\
|
||||
--mapping-out ../docs/data-migration/mappings/crm_product_category_id_mapping.csv
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import sys
|
||||
from collections import defaultdict, deque
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Set, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
SOURCE_TABLE = "crm_product_category"
|
||||
TARGET_TABLE = "crm_product_category"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
updated: int = 0
|
||||
skipped: int = 0
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> str:
|
||||
"""CRM bigint 主键原样保留为字符串(对齐地磅 migrate_dibang_data 策略)。"""
|
||||
if legacy_id is None:
|
||||
return "0"
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
parsed = urlparse(target_url)
|
||||
return urlunparse(parsed._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
"""crm_user_id -> new_user_id;并解析门户 admin id(用于源 create_by=1)。"""
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
if not path.is_file():
|
||||
raise FileNotFoundError(f"用户映射文件不存在: {path}")
|
||||
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
reader = csv.DictReader(f)
|
||||
for row in reader:
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if not crm_raw or not new_id:
|
||||
continue
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
continue
|
||||
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
"""映射表无 admin 时,从目标库 sys_user 查询。"""
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text(
|
||||
"SELECT id FROM sys_user WHERE user_no = 'admin' AND del_flag = 0 LIMIT 1"
|
||||
)
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
if admin_id:
|
||||
return admin_id
|
||||
stats.warnings.append(f"{label}: 源用户 id=1 但门户 admin 未在映射表中找到")
|
||||
return None
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: crm_user_id={uid} 无映射,置 NULL")
|
||||
return mapped
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine, include_deleted: bool) -> List[dict]:
|
||||
where = "" if include_deleted else "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{SOURCE_TABLE}` {where} ORDER BY sort ASC, id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def count_target_rows(engine: Engine, tenant_no: str) -> int:
|
||||
with engine.connect() as conn:
|
||||
return int(
|
||||
conn.execute(
|
||||
text(
|
||||
f"SELECT COUNT(*) FROM `{TARGET_TABLE}` "
|
||||
"WHERE tenant_no = :tenant AND del_flag = 0"
|
||||
),
|
||||
{"tenant": tenant_no},
|
||||
).scalar_one()
|
||||
)
|
||||
|
||||
|
||||
def topo_sort_categories(rows: List[dict]) -> List[dict]:
|
||||
"""父节点先于子节点;仅顶级时保持 sort 顺序。"""
|
||||
by_id = {int(r["id"]): r for r in rows}
|
||||
children: Dict[int, List[int]] = defaultdict(list)
|
||||
roots: List[int] = []
|
||||
for row in rows:
|
||||
pid = int(row.get("parent_id") or 0)
|
||||
cid = int(row["id"])
|
||||
if pid == 0 or pid not in by_id:
|
||||
roots.append(cid)
|
||||
else:
|
||||
children[pid].append(cid)
|
||||
|
||||
roots.sort(key=lambda i: (int(by_id[i].get("sort") or 0), i))
|
||||
for pid in children:
|
||||
children[pid].sort(key=lambda i: (int(by_id[i].get("sort") or 0), i))
|
||||
|
||||
ordered: List[dict] = []
|
||||
seen: Set[int] = set()
|
||||
queue: deque[int] = deque(roots)
|
||||
while queue:
|
||||
cid = queue.popleft()
|
||||
if cid in seen:
|
||||
continue
|
||||
seen.add(cid)
|
||||
ordered.append(by_id[cid])
|
||||
queue.extend(children.get(cid, []))
|
||||
|
||||
if len(ordered) != len(rows):
|
||||
missing = set(by_id) - seen
|
||||
raise RuntimeError(f"分类树存在环或孤儿节点: {missing}")
|
||||
return ordered
|
||||
|
||||
|
||||
def compute_level(parent_id_str: str, level_cache: Dict[str, int]) -> int:
|
||||
if parent_id_str == "0":
|
||||
return 1
|
||||
parent_level = level_cache.get(parent_id_str, 0)
|
||||
return parent_level + 1 if parent_level else 1
|
||||
|
||||
|
||||
def transform_row(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
level_cache: Dict[str, int],
|
||||
) -> dict:
|
||||
new_id = legacy_id_to_str(row["id"])
|
||||
parent_id_str = legacy_id_to_str(row.get("parent_id") or 0)
|
||||
if int(row.get("parent_id") or 0) == 0:
|
||||
parent_id_str = "0"
|
||||
|
||||
level = compute_level(parent_id_str, level_cache)
|
||||
level_cache[new_id] = level
|
||||
|
||||
create_by = resolve_portal_user_id(
|
||||
row.get("create_by"), crm_user_map, admin_id, stats, f"category#{new_id} create_by"
|
||||
)
|
||||
update_by = resolve_portal_user_id(
|
||||
row.get("update_by"), crm_user_map, admin_id, stats, f"category#{new_id} update_by"
|
||||
)
|
||||
|
||||
return {
|
||||
"id": new_id,
|
||||
"parent_id": parent_id_str,
|
||||
"category_name": (row.get("category_name") or "")[:128],
|
||||
"category_code": None,
|
||||
"level": level,
|
||||
"status": str(row.get("status") if row.get("status") is not None else "0").strip()[:1] or "0",
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": int(row.get("sort") or 0),
|
||||
"remark": (row.get("remark") or "")[:512] or None,
|
||||
"create_by": create_by,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": update_by,
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def target_row_exists(conn, row_id: str) -> bool:
|
||||
n = conn.execute(
|
||||
text(f"SELECT COUNT(*) FROM `{TARGET_TABLE}` WHERE id = :id"),
|
||||
{"id": row_id},
|
||||
).scalar_one()
|
||||
return int(n) > 0
|
||||
|
||||
|
||||
INSERT_SQL = text(
|
||||
f"""
|
||||
INSERT INTO `{TARGET_TABLE}` (
|
||||
id, parent_id, category_name, category_code, level, status,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id,
|
||||
create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :parent_id, :category_name, :category_code, :level, :status,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id,
|
||||
:create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
UPDATE_SQL = text(
|
||||
f"""
|
||||
UPDATE `{TARGET_TABLE}` SET
|
||||
parent_id = :parent_id,
|
||||
category_name = :category_name,
|
||||
level = :level,
|
||||
status = :status,
|
||||
tenant_no = :tenant_no,
|
||||
order_num = :order_num,
|
||||
remark = :remark,
|
||||
create_by = :create_by,
|
||||
update_by = :update_by,
|
||||
update_time = :update_time,
|
||||
del_flag = :del_flag
|
||||
WHERE id = :id
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
def write_mapping_csv(rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
writer = csv.DictWriter(
|
||||
f,
|
||||
fieldnames=[
|
||||
"source_id",
|
||||
"source_parent_id",
|
||||
"new_id",
|
||||
"new_parent_id",
|
||||
"category_name",
|
||||
"migrated_at",
|
||||
],
|
||||
)
|
||||
writer.writeheader()
|
||||
for row in rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
spid = legacy_id_to_str(row.get("parent_id") or 0)
|
||||
if int(row.get("parent_id") or 0) == 0:
|
||||
spid = "0"
|
||||
writer.writerow(
|
||||
{
|
||||
"source_id": sid,
|
||||
"source_parent_id": spid,
|
||||
"new_id": sid,
|
||||
"new_parent_id": spid,
|
||||
"category_name": row.get("category_name") or "",
|
||||
"migrated_at": migrated_at,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM 产品分类迁移 [{mode}] ===")
|
||||
print(f"源表有效行数: {stats.source_count}")
|
||||
print(f"插入: {stats.inserted} 更新: {stats.updated} 跳过: {stats.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:20]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 20:
|
||||
print(f" ... 另有 {len(stats.warnings) - 20} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_out: Optional[Path],
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
if admin_id:
|
||||
print(f"门户 admin id(目标库): {admin_id}")
|
||||
|
||||
source_rows = fetch_source_rows(source_engine, include_deleted)
|
||||
stats.source_count = len(source_rows)
|
||||
ordered = topo_sort_categories(source_rows)
|
||||
|
||||
level_cache: Dict[str, int] = {"0": 0}
|
||||
payloads: List[dict] = []
|
||||
for row in ordered:
|
||||
payloads.append(
|
||||
transform_row(row, tenant_no, crm_user_map, admin_id, stats, level_cache)
|
||||
)
|
||||
|
||||
if dry_run:
|
||||
print("\n预览(前 10 条,id 原样保留):")
|
||||
for p in payloads[:10]:
|
||||
print(
|
||||
f" id={p['id']} parent={p['parent_id']} "
|
||||
f"name={p['category_name']!r} status={p['status']} level={p['level']}"
|
||||
)
|
||||
stats.inserted = len(payloads)
|
||||
print_report(stats, dry_run=True)
|
||||
return stats
|
||||
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, rid):
|
||||
if update_existing:
|
||||
conn.execute(UPDATE_SQL, payload)
|
||||
stats.updated += 1
|
||||
else:
|
||||
stats.skipped += 1
|
||||
else:
|
||||
conn.execute(INSERT_SQL, payload)
|
||||
stats.inserted += 1
|
||||
|
||||
if mapping_out:
|
||||
write_mapping_csv(ordered, mapping_out)
|
||||
print(f"\nID 映射已写入: {mapping_out}(source_id = new_id,恒等映射)")
|
||||
|
||||
print_report(stats, dry_run=False)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM product categories (preserve source IDs)")
|
||||
parser.add_argument("--source-url", default="", help="Source sx DB URL")
|
||||
parser.add_argument("--target-url", default="", help="Target portal DB URL")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
help="user_mapping_result.csv path",
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--update", action="store_true", help="Update existing rows with same id")
|
||||
parser.add_argument("--include-deleted", action="store_true")
|
||||
parser.add_argument("--mapping-out", default="", help="Write identity id mapping CSV")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = (
|
||||
args.source_url
|
||||
or os.environ.get("SX_SOURCE_DATABASE_URL")
|
||||
or derive_source_url(target_url)
|
||||
)
|
||||
|
||||
user_mapping_path = Path(args.user_mapping)
|
||||
mapping_out = Path(args.mapping_out) if args.mapping_out else None
|
||||
|
||||
print(f"源库: {urlparse(source_url).path or source_url}")
|
||||
print(f"目标库: {urlparse(target_url).path or target_url}")
|
||||
print(f"租户: {args.tenant_no}")
|
||||
print(f"ID 策略: 原样保留(bigint → 同值字符串)")
|
||||
|
||||
source_engine = create_engine(source_url, pool_pre_ping=True)
|
||||
target_engine = create_engine(target_url, pool_pre_ping=True)
|
||||
|
||||
before = count_target_rows(target_engine, args.tenant_no)
|
||||
print(f"目标表现有分类(del_flag=0): {before}")
|
||||
|
||||
run_migration(
|
||||
source_engine,
|
||||
target_engine,
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=user_mapping_path,
|
||||
mapping_out=mapping_out,
|
||||
dry_run=args.dry_run,
|
||||
update_existing=args.update,
|
||||
include_deleted=args.include_deleted,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,703 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM 报价单相关表迁入 shanxia2.0。
|
||||
|
||||
顺序:crm_supplier_info(依赖)→ crm_quote → crm_quote_product → crm_quote_approval → crm_quote_share_log
|
||||
用户外键经 user_mapping;附件/pdf OSS ID 或绝对 URL → 相对路径。
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_crm_quote.py --dry-run --env-file .env.production
|
||||
venv/bin/python scripts/migrate_crm_quote.py --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
MIGRATION_DIR = BACKEND_ROOT / "scripts" / "migration"
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
if str(MIGRATION_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(MIGRATION_DIR))
|
||||
|
||||
from minio_url import extract_minio_object_key, join_relative_urls, resolve_oss_id_csv # noqa: E402
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
MIGRATION_STEPS = (
|
||||
("crm_supplier_info", "supplier_info"),
|
||||
("crm_quote", "quote"),
|
||||
("crm_quote_product", "quote_product"),
|
||||
("crm_quote_approval", "quote_approval"),
|
||||
("crm_quote_share_log", "quote_share_log"),
|
||||
)
|
||||
|
||||
TABLES_WITHOUT_DEL_FLAG = frozenset({"crm_quote_share_log"})
|
||||
|
||||
|
||||
@dataclass
|
||||
class StepStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
updated: int = 0
|
||||
skipped: int = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
steps: Dict[str, StepStats] = field(default_factory=dict)
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
def step(self, name: str) -> StepStats:
|
||||
if name not in self.steps:
|
||||
self.steps[name] = StepStats()
|
||||
return self.steps[name]
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def legacy_parent_id(raw: Any) -> str:
|
||||
if raw is None:
|
||||
return "0"
|
||||
try:
|
||||
val = int(raw)
|
||||
return "0" if val == 0 else str(val)
|
||||
except (TypeError, ValueError):
|
||||
s = str(raw).strip()
|
||||
return s if s else "0"
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if crm_raw and new_id:
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
*,
|
||||
required: bool = False,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return admin_id if required else None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return admin_id if required else None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: crm_user_id={uid} 无映射")
|
||||
return admin_id if required else None
|
||||
return mapped
|
||||
|
||||
|
||||
def load_oss_id_to_url(target_engine: Engine, tenant_no: str) -> Dict[str, str]:
|
||||
with target_engine.connect() as conn:
|
||||
rows = conn.execute(
|
||||
text("SELECT id, url FROM sys_oss WHERE tenant_no=:t AND del_flag=0"),
|
||||
{"t": tenant_no},
|
||||
).mappings().all()
|
||||
return {str(r["id"]): (r["url"] or "").strip() for r in rows if r["id"]}
|
||||
|
||||
|
||||
def normalize_attachment_csv(raw: Any, oss_map: Dict[str, str]) -> Optional[str]:
|
||||
if raw is None or str(raw).strip() == "":
|
||||
return None
|
||||
oss_resolved = resolve_oss_id_csv(raw, oss_map)
|
||||
if oss_resolved:
|
||||
return oss_resolved or None
|
||||
parts: List[str] = []
|
||||
for token in str(raw).split(","):
|
||||
token = token.strip()
|
||||
if not token:
|
||||
continue
|
||||
if token.isdigit() and token in oss_map:
|
||||
parts.append(oss_map[token])
|
||||
else:
|
||||
key = extract_minio_object_key(token)
|
||||
if key:
|
||||
parts.append(key)
|
||||
joined = join_relative_urls(parts)
|
||||
return joined or None
|
||||
|
||||
|
||||
def normalize_pdf_url(raw: Any, oss_map: Dict[str, str]) -> Optional[str]:
|
||||
if raw is None or str(raw).strip() == "":
|
||||
return None
|
||||
value = str(raw).strip()
|
||||
if value.isdigit() and value in oss_map:
|
||||
return oss_map[value]
|
||||
key = extract_minio_object_key(value)
|
||||
return key or None
|
||||
|
||||
|
||||
def _dec(value: Any, default: Optional[Decimal] = None) -> Optional[Decimal]:
|
||||
if value is None or value == "":
|
||||
return default
|
||||
return Decimal(str(value))
|
||||
|
||||
|
||||
def _str_or_none(value: Any, max_len: int = 0) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
s = str(value).strip()
|
||||
if not s:
|
||||
return None
|
||||
return s[:max_len] if max_len else s
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine, table: str, include_deleted: bool) -> List[dict]:
|
||||
if table in TABLES_WITHOUT_DEL_FLAG:
|
||||
where = ""
|
||||
else:
|
||||
where = "" if include_deleted else "WHERE del_flag = 0"
|
||||
sql = f"SELECT * FROM `{table}` {where} ORDER BY id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def target_row_exists(conn, table: str, row_id: str) -> bool:
|
||||
return int(conn.execute(text(f"SELECT COUNT(*) FROM `{table}` WHERE id=:id"), {"id": row_id}).scalar_one()) > 0
|
||||
|
||||
|
||||
def transform_supplier_info(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"supplier_info#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"supplier_name": (row.get("supplier_name") or "")[:200],
|
||||
"short_name": _str_or_none(row.get("short_name"), 100),
|
||||
"supplier_code": _str_or_none(row.get("supplier_code"), 50),
|
||||
"supplier_address": _str_or_none(row.get("supplier_address"), 500),
|
||||
"legal_person": _str_or_none(row.get("legal_person"), 100),
|
||||
"agent": _str_or_none(row.get("agent"), 100),
|
||||
"phone_fax": _str_or_none(row.get("phone_fax"), 100),
|
||||
"bank_name": _str_or_none(row.get("bank_name"), 200),
|
||||
"bank_account": _str_or_none(row.get("bank_account"), 100),
|
||||
"status": (row.get("status") or "0")[:1],
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_quote(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"quote#{rid}"
|
||||
|
||||
def map_user(field_val: Any, *, required: bool = False) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label, required=required)
|
||||
|
||||
owner_id = map_user(row.get("owner_user_id"), required=True)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"quote_no": (row.get("quote_no") or "")[:50],
|
||||
"quote_title": (row.get("quote_title") or "")[:200],
|
||||
"quote_type": (row.get("quote_type") or "sales")[:20],
|
||||
"customer_id": legacy_id_to_str(row.get("customer_id")) or "",
|
||||
"customer_name": _str_or_none(row.get("customer_name"), 200),
|
||||
"opportunity_id": legacy_id_to_str(row.get("opportunity_id")),
|
||||
"contact_id": legacy_id_to_str(row.get("contact_id")),
|
||||
"contact_name": _str_or_none(row.get("contact_name"), 50),
|
||||
"contact_mobile": _str_or_none(row.get("contact_mobile"), 20),
|
||||
"contact_email": _str_or_none(row.get("contact_email"), 100),
|
||||
"version": (row.get("version") or "V1.0")[:20],
|
||||
"parent_id": legacy_parent_id(row.get("parent_id")),
|
||||
"is_latest": int(row.get("is_latest") if row.get("is_latest") is not None else 1),
|
||||
"total_amount": _dec(row.get("total_amount"), Decimal("0.00")),
|
||||
"discount_rate": _dec(row.get("discount_rate"), Decimal("0.00")),
|
||||
"discount_amount": _dec(row.get("discount_amount"), Decimal("0.00")),
|
||||
"final_amount": _dec(row.get("final_amount"), Decimal("0.00")),
|
||||
"validity_days": int(row.get("validity_days") or 30),
|
||||
"quote_date": row.get("quote_date"),
|
||||
"expire_date": row.get("expire_date"),
|
||||
"status": (row.get("status") or "draft")[:20],
|
||||
"reject_reason": _str_or_none(row.get("reject_reason"), 500),
|
||||
"pdf_url": normalize_pdf_url(row.get("pdf_url"), oss_map),
|
||||
"pdf_generated": int(row.get("pdf_generated") or 0),
|
||||
"share_link": _str_or_none(row.get("share_link"), 500),
|
||||
"share_code": _str_or_none(row.get("share_code"), 50),
|
||||
"share_password": _str_or_none(row.get("share_password"), 100),
|
||||
"share_expire_time": row.get("share_expire_time"),
|
||||
"view_count": int(row.get("view_count") or 0),
|
||||
"last_view_time": row.get("last_view_time"),
|
||||
"owner_user_id": owner_id or "",
|
||||
"owner_user_name": _str_or_none(row.get("owner_user_name"), 50),
|
||||
"supplier_id": legacy_id_to_str(row.get("supplier_id")),
|
||||
"supplier_name": _str_or_none(row.get("supplier_name"), 200),
|
||||
"contract_id": legacy_id_to_str(row.get("contract_id")),
|
||||
"payment_terms": _str_or_none(row.get("payment_terms"), 500),
|
||||
"delivery_terms": _str_or_none(row.get("delivery_terms"), 500),
|
||||
"freight": _dec(row.get("freight"), Decimal("0.00")),
|
||||
"attachments": normalize_attachment_csv(row.get("attachments"), oss_map),
|
||||
"template_content": row.get("template_content"),
|
||||
"version_no": int(row.get("version_no") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_quote_product(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"quote_product#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"quote_id": legacy_id_to_str(row.get("quote_id")) or "",
|
||||
"product_id": legacy_id_to_str(row.get("product_id")) or "",
|
||||
"product_name": (row.get("product_name") or "")[:200],
|
||||
"product_no": _str_or_none(row.get("product_no"), 50),
|
||||
"category_id": legacy_id_to_str(row.get("category_id")),
|
||||
"category_name": _str_or_none(row.get("category_name"), 100),
|
||||
"model": _str_or_none(row.get("model"), 100),
|
||||
"unit": (row.get("unit") or "件")[:20],
|
||||
"quantity": _dec(row.get("quantity"), Decimal("0")),
|
||||
"price": _dec(row.get("price"), Decimal("0.00")),
|
||||
"discount": _dec(row.get("discount"), Decimal("0.00")),
|
||||
"subtotal": _dec(row.get("subtotal"), Decimal("0.00")),
|
||||
"tax_amount": _dec(row.get("tax_amount"), Decimal("0.00")),
|
||||
"tax_rate": _dec(row.get("tax_rate"), Decimal("13.00")),
|
||||
"package_spec": _str_or_none(row.get("package_spec"), 200),
|
||||
"delivery_method": _str_or_none(row.get("delivery_method"), 200),
|
||||
"description": _str_or_none(row.get("description"), 1000),
|
||||
"sort": int(row.get("sort") or 0),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_quote_approval(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
label = f"quote_approval#{rid}"
|
||||
|
||||
def map_user(field_val: Any) -> Optional[str]:
|
||||
return resolve_portal_user_id(field_val, crm_user_map, admin_id, stats, label)
|
||||
|
||||
return {
|
||||
"id": rid,
|
||||
"quote_id": legacy_id_to_str(row.get("quote_id")) or "",
|
||||
"quote_no": _str_or_none(row.get("quote_no"), 50),
|
||||
"step": int(row.get("step") or 1),
|
||||
"approver_id": map_user(row.get("approver_id")) or "",
|
||||
"approver_name": _str_or_none(row.get("approver_name"), 50),
|
||||
"approval_result": (row.get("approval_result") or "pending")[:20],
|
||||
"approval_opinion": row.get("approval_opinion"),
|
||||
"approval_time": row.get("approval_time"),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": _str_or_none(row.get("remark"), 500),
|
||||
"create_by": map_user(row.get("create_by")),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": map_user(row.get("update_by")),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": int(row.get("del_flag") or 0),
|
||||
}
|
||||
|
||||
|
||||
def transform_quote_share_log(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
rid = legacy_id_to_str(row["id"])
|
||||
return {
|
||||
"id": rid,
|
||||
"quote_id": legacy_id_to_str(row.get("quote_id")) or "",
|
||||
"share_code": (row.get("share_code") or "")[:50],
|
||||
"visit_time": row.get("visit_time") or row.get("create_time") or datetime.now(),
|
||||
"ip_address": _str_or_none(row.get("ip_address"), 50),
|
||||
"location": _str_or_none(row.get("location"), 200),
|
||||
"device_type": _str_or_none(row.get("device_type"), 50),
|
||||
"browser": _str_or_none(row.get("browser"), 100),
|
||||
"stay_duration": int(row.get("stay_duration") or 0),
|
||||
"page_views": int(row.get("page_views") or 1),
|
||||
"tenant_no": tenant_no,
|
||||
"order_num": 0,
|
||||
"remark": None,
|
||||
"create_by": None,
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or row.get("visit_time") or datetime.now(),
|
||||
"update_by": None,
|
||||
"update_time": row.get("create_time") or row.get("visit_time") or datetime.now(),
|
||||
"del_flag": 0,
|
||||
}
|
||||
|
||||
|
||||
INSERT_SUPPLIER_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_supplier_info (
|
||||
id, supplier_name, short_name, supplier_code, supplier_address, legal_person, agent,
|
||||
phone_fax, bank_name, bank_account, status, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :supplier_name, :short_name, :supplier_code, :supplier_address, :legal_person, :agent,
|
||||
:phone_fax, :bank_name, :bank_account, :status, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_QUOTE_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_quote (
|
||||
id, quote_no, quote_title, quote_type, customer_id, customer_name, opportunity_id,
|
||||
contact_id, contact_name, contact_mobile, contact_email, version, parent_id, is_latest,
|
||||
total_amount, discount_rate, discount_amount, final_amount, validity_days, quote_date,
|
||||
expire_date, status, reject_reason, pdf_url, pdf_generated, share_link, share_code,
|
||||
share_password, share_expire_time, view_count, last_view_time, owner_user_id, owner_user_name,
|
||||
supplier_id, supplier_name, contract_id, payment_terms, delivery_terms, freight,
|
||||
attachments, template_content, version_no, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :quote_no, :quote_title, :quote_type, :customer_id, :customer_name, :opportunity_id,
|
||||
:contact_id, :contact_name, :contact_mobile, :contact_email, :version, :parent_id, :is_latest,
|
||||
:total_amount, :discount_rate, :discount_amount, :final_amount, :validity_days, :quote_date,
|
||||
:expire_date, :status, :reject_reason, :pdf_url, :pdf_generated, :share_link, :share_code,
|
||||
:share_password, :share_expire_time, :view_count, :last_view_time, :owner_user_id, :owner_user_name,
|
||||
:supplier_id, :supplier_name, :contract_id, :payment_terms, :delivery_terms, :freight,
|
||||
:attachments, :template_content, :version_no, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_QUOTE_PRODUCT_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_quote_product (
|
||||
id, quote_id, product_id, product_name, product_no, category_id, category_name,
|
||||
model, unit, quantity, price, discount, subtotal, tax_amount, tax_rate,
|
||||
package_spec, delivery_method, description, sort,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :quote_id, :product_id, :product_name, :product_no, :category_id, :category_name,
|
||||
:model, :unit, :quantity, :price, :discount, :subtotal, :tax_amount, :tax_rate,
|
||||
:package_spec, :delivery_method, :description, :sort,
|
||||
:tenant_no, :order_num, :remark, :create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_QUOTE_APPROVAL_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_quote_approval (
|
||||
id, quote_id, quote_no, step, approver_id, approver_name, approval_result,
|
||||
approval_opinion, approval_time, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :quote_id, :quote_no, :step, :approver_id, :approver_name, :approval_result,
|
||||
:approval_opinion, :approval_time, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
INSERT_QUOTE_SHARE_LOG_SQL = text(
|
||||
"""
|
||||
INSERT INTO crm_quote_share_log (
|
||||
id, quote_id, share_code, visit_time, ip_address, location, device_type, browser,
|
||||
stay_duration, page_views, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :quote_id, :share_code, :visit_time, :ip_address, :location, :device_type, :browser,
|
||||
:stay_duration, :page_views, :tenant_no, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
STEP_INSERT_SQL = {
|
||||
"crm_supplier_info": INSERT_SUPPLIER_SQL,
|
||||
"crm_quote": INSERT_QUOTE_SQL,
|
||||
"crm_quote_product": INSERT_QUOTE_PRODUCT_SQL,
|
||||
"crm_quote_approval": INSERT_QUOTE_APPROVAL_SQL,
|
||||
"crm_quote_share_log": INSERT_QUOTE_SHARE_LOG_SQL,
|
||||
}
|
||||
|
||||
|
||||
def write_mapping_csv(source_rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(f, fieldnames=["source_id", "new_id", "migrated_at"])
|
||||
w.writeheader()
|
||||
for row in source_rows:
|
||||
sid = legacy_id_to_str(row["id"])
|
||||
w.writerow({"source_id": sid, "new_id": sid, "migrated_at": migrated_at})
|
||||
|
||||
|
||||
def migrate_table(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
table: str,
|
||||
*,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
oss_map: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
) -> List[dict]:
|
||||
step = stats.step(table)
|
||||
source_rows = fetch_source_rows(source_engine, table, include_deleted)
|
||||
step.source_count = len(source_rows)
|
||||
|
||||
transformers = {
|
||||
"crm_supplier_info": lambda r: transform_supplier_info(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
"crm_quote": lambda r: transform_quote(r, tenant_no, crm_user_map, admin_id, oss_map, stats),
|
||||
"crm_quote_product": lambda r: transform_quote_product(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
"crm_quote_approval": lambda r: transform_quote_approval(r, tenant_no, crm_user_map, admin_id, stats),
|
||||
"crm_quote_share_log": lambda r: transform_quote_share_log(r, tenant_no, stats),
|
||||
}
|
||||
payloads = [transformers[table](r) for r in source_rows]
|
||||
|
||||
if dry_run:
|
||||
step.inserted = len(payloads)
|
||||
return source_rows
|
||||
|
||||
insert_sql = STEP_INSERT_SQL[table]
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, table, rid):
|
||||
if update_existing:
|
||||
step.skipped += 1
|
||||
else:
|
||||
step.skipped += 1
|
||||
else:
|
||||
conn.execute(insert_sql, payload)
|
||||
step.inserted += 1
|
||||
return source_rows
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM 报价单迁移 [{mode}] ===")
|
||||
for table, _ in MIGRATION_STEPS:
|
||||
s = stats.step(table)
|
||||
print(f"{table}: 源={s.source_count} 插入={s.inserted} 跳过={s.skipped}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:20]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 20:
|
||||
print(f" ... 另有 {len(stats.warnings) - 20} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_dir: Path,
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
include_deleted: bool,
|
||||
only_tables: Optional[List[str]],
|
||||
skip_supplier: bool,
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
oss_map = load_oss_id_to_url(target_engine, tenant_no)
|
||||
print(f"sys_oss 映射条数: {len(oss_map)}")
|
||||
|
||||
selected = [t for t, _ in MIGRATION_STEPS if not only_tables or t in only_tables]
|
||||
if skip_supplier and "crm_supplier_info" in selected:
|
||||
selected = [t for t in selected if t != "crm_supplier_info"]
|
||||
|
||||
for table in selected:
|
||||
print(f"\n>> 迁移 {table} ...")
|
||||
source_rows = migrate_table(
|
||||
source_engine,
|
||||
target_engine,
|
||||
table,
|
||||
tenant_no=tenant_no,
|
||||
crm_user_map=crm_user_map,
|
||||
admin_id=admin_id,
|
||||
oss_map=oss_map,
|
||||
stats=stats,
|
||||
dry_run=dry_run,
|
||||
update_existing=update_existing,
|
||||
include_deleted=include_deleted,
|
||||
)
|
||||
if table == "crm_quote" and not dry_run:
|
||||
write_mapping_csv(source_rows, mapping_dir / "crm_quote_id_mapping.csv")
|
||||
|
||||
print_report(stats, dry_run)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM quote tables from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--update", action="store_true")
|
||||
parser.add_argument("--include-deleted", action="store_true")
|
||||
parser.add_argument("--skip-supplier", action="store_true", help="跳过 crm_supplier_info 前置迁移")
|
||||
parser.add_argument("--tables", default="", help="逗号分隔,默认全部表")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
only_tables = [t.strip() for t in args.tables.split(",") if t.strip()] or None
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_dir=BACKEND_ROOT.parent / "docs/data-migration/mappings",
|
||||
dry_run=args.dry_run,
|
||||
update_existing=args.update,
|
||||
include_deleted=args.include_deleted,
|
||||
only_tables=only_tables,
|
||||
skip_supplier=args.skip_supplier,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,638 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库 CRM sys_oss 迁入 shanxia2.0,并反查业务表回填 biz_type/biz_id。
|
||||
|
||||
旧 CRM ``sys_oss`` 无 ``biz_type``/``biz_id``;门户新增这两列。迁移分两步:
|
||||
1. 整表 INSERT(id=str(oss_id),url 绝对路径→相对 object key)
|
||||
2. 扫描业务表 OSS ID 引用,UPDATE 回填 biz;反查不到则保持 NULL(不用 sys_oper_log)
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/migrate_crm_sys_oss.py --dry-run --env-file .env.production
|
||||
|
||||
venv/bin/python scripts/migrate_crm_sys_oss.py --env-file .env.production \\
|
||||
--user-mapping ../docs/data-migration/mappings/user_mapping_result.csv \\
|
||||
--mapping-out ../docs/data-migration/mappings/crm_oss_id_mapping.csv \\
|
||||
--backfill-out ../docs/data-migration/mappings/crm_oss_biz_backfill.csv \\
|
||||
--unresolved-out ../docs/data-migration/mappings/crm_oss_unresolved.csv
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
MIGRATION_DIR = BACKEND_ROOT / "scripts" / "migration"
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
if str(MIGRATION_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(MIGRATION_DIR))
|
||||
|
||||
from minio_url import normalize_oss_storage_url # noqa: E402
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
SOURCE_TABLE = "sys_oss"
|
||||
TARGET_TABLE = "sys_oss"
|
||||
CRM_ADMIN_SOURCE_USER_ID = 1
|
||||
|
||||
OSS_ID_RE = re.compile(r"^\d{1,20}$")
|
||||
|
||||
|
||||
@dataclass
|
||||
class BackfillRule:
|
||||
table: str
|
||||
id_column: str
|
||||
field: str
|
||||
biz_type: str
|
||||
attach_type: Optional[str] = None
|
||||
value_kind: str = "csv" # csv | json_array | bigint
|
||||
|
||||
|
||||
BACKFILL_RULES: List[BackfillRule] = [
|
||||
BackfillRule("crm_customer", "id", "business_license_images", "crm_customer", "business_license"),
|
||||
BackfillRule("crm_customer", "id", "business_permit_images", "crm_customer", "business_permit"),
|
||||
BackfillRule("crm_customer", "id", "other_cert_images", "crm_customer", "other_cert"),
|
||||
BackfillRule("crm_customer_follow", "id", "attachments", "crm_customer_follow"),
|
||||
BackfillRule("crm_clue_follow", "id", "attachments", "crm_clue_follow"),
|
||||
BackfillRule("crm_opportunity_follow", "id", "attachments", "crm_opportunity_follow"),
|
||||
BackfillRule("crm_quote", "id", "attachments", "crm_quote"),
|
||||
BackfillRule("crm_contract", "id", "attachment_files", "crm_contract"),
|
||||
BackfillRule("crm_contract", "id", "contract_file", "crm_contract", "contract_file"),
|
||||
BackfillRule("crm_product", "id", "images", "crm_product", "image"),
|
||||
BackfillRule(
|
||||
"crm_contract_product_price_tier",
|
||||
"id",
|
||||
"letter_oss_id",
|
||||
"crm_contract_product_price_tier",
|
||||
"letter",
|
||||
value_kind="bigint",
|
||||
),
|
||||
BackfillRule(
|
||||
"crm_contract_product_price_tier",
|
||||
"id",
|
||||
"letter_oss_ids",
|
||||
"crm_contract_product_price_tier",
|
||||
"letter",
|
||||
value_kind="json_array",
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@dataclass
|
||||
class BizRef:
|
||||
biz_type: str
|
||||
biz_id: str
|
||||
source_table: str
|
||||
source_field: str
|
||||
attach_type: Optional[str] = None
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
source_count: int = 0
|
||||
inserted: int = 0
|
||||
updated: int = 0
|
||||
skipped: int = 0
|
||||
backfilled: int = 0
|
||||
unresolved: int = 0
|
||||
conflicts: int = 0
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
|
||||
def legacy_id_to_str(legacy_id: Any) -> Optional[str]:
|
||||
if legacy_id is None or str(legacy_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
return str(int(legacy_id))
|
||||
except (TypeError, ValueError):
|
||||
return str(legacy_id).strip()
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
return urlunparse(urlparse(target_url)._replace(path=f"/{source_db}"))
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_user_mapping(path: Path) -> Tuple[Dict[int, str], Optional[str]]:
|
||||
crm_map: Dict[int, str] = {}
|
||||
admin_id: Optional[str] = None
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
for row in csv.DictReader(f):
|
||||
new_id = (row.get("new_user_id") or "").strip()
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
crm_raw = (row.get("crm_user_id") or "").strip()
|
||||
if user_no == "admin" and new_id:
|
||||
admin_id = new_id
|
||||
if crm_raw and new_id:
|
||||
try:
|
||||
crm_map[int(crm_raw)] = new_id
|
||||
except ValueError:
|
||||
pass
|
||||
return crm_map, admin_id
|
||||
|
||||
|
||||
def fetch_portal_admin_id(target_engine: Engine) -> Optional[str]:
|
||||
with target_engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no='admin' AND del_flag=0 LIMIT 1")
|
||||
).first()
|
||||
return str(row[0]) if row and row[0] else None
|
||||
|
||||
|
||||
def resolve_portal_user_id(
|
||||
source_user_id: Any,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
label: str,
|
||||
) -> Optional[str]:
|
||||
if source_user_id is None or str(source_user_id).strip() == "":
|
||||
return None
|
||||
try:
|
||||
uid = int(source_user_id)
|
||||
except (TypeError, ValueError):
|
||||
stats.warnings.append(f"{label}: 非法用户 id {source_user_id!r}")
|
||||
return None
|
||||
if uid == CRM_ADMIN_SOURCE_USER_ID:
|
||||
return admin_id
|
||||
mapped = crm_user_map.get(uid)
|
||||
if not mapped:
|
||||
stats.warnings.append(f"{label}: crm_user_id={uid} 无映射")
|
||||
return mapped
|
||||
|
||||
|
||||
def fetch_source_rows(engine: Engine) -> List[dict]:
|
||||
sql = f"SELECT * FROM `{SOURCE_TABLE}` ORDER BY oss_id ASC"
|
||||
with engine.connect() as conn:
|
||||
return [dict(r._mapping) for r in conn.execute(text(sql))]
|
||||
|
||||
|
||||
def count_target_rows(engine: Engine, tenant_no: str) -> int:
|
||||
with engine.connect() as conn:
|
||||
return int(
|
||||
conn.execute(
|
||||
text(f"SELECT COUNT(*) FROM `{TARGET_TABLE}` WHERE tenant_no=:t"),
|
||||
{"t": tenant_no},
|
||||
).scalar_one()
|
||||
)
|
||||
|
||||
|
||||
def transform_row(
|
||||
row: dict,
|
||||
tenant_no: str,
|
||||
crm_user_map: Dict[int, str],
|
||||
admin_id: Optional[str],
|
||||
stats: MigrationStats,
|
||||
) -> dict:
|
||||
oss_id = legacy_id_to_str(row["oss_id"])
|
||||
relative_url = normalize_oss_storage_url(row.get("url"), row.get("file_name"))
|
||||
if not relative_url:
|
||||
stats.warnings.append(f"oss#{oss_id}: url 无法规范化为相对路径")
|
||||
|
||||
return {
|
||||
"id": oss_id,
|
||||
"tenant_no": tenant_no,
|
||||
"biz_type": None,
|
||||
"biz_id": None,
|
||||
"file_name": (row.get("file_name") or "")[:255],
|
||||
"original_name": (row.get("original_name") or "")[:255],
|
||||
"file_suffix": (row.get("file_suffix") or "")[:10],
|
||||
"url": (relative_url or (row.get("file_name") or ""))[:500],
|
||||
"file_size": None,
|
||||
"file_type": None,
|
||||
"attach_type": "attachment",
|
||||
"sort_order": 0,
|
||||
"service": (row.get("service") or "minio")[:20],
|
||||
"ext1": row.get("ext1"),
|
||||
"order_num": 0,
|
||||
"remark": None,
|
||||
"create_by": resolve_portal_user_id(
|
||||
row.get("create_by"), crm_user_map, admin_id, stats, f"oss#{oss_id} create_by"
|
||||
),
|
||||
"create_dept_id": "",
|
||||
"create_time": row.get("create_time") or datetime.now(),
|
||||
"update_by": resolve_portal_user_id(
|
||||
row.get("update_by"), crm_user_map, admin_id, stats, f"oss#{oss_id} update_by"
|
||||
),
|
||||
"update_time": row.get("update_time") or row.get("create_time") or datetime.now(),
|
||||
"del_flag": 0,
|
||||
}
|
||||
|
||||
|
||||
INSERT_SQL = text(
|
||||
f"""
|
||||
INSERT INTO `{TARGET_TABLE}` (
|
||||
id, tenant_no, biz_type, biz_id, file_name, original_name, file_suffix, url,
|
||||
file_size, file_type, attach_type, sort_order, service, ext1, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :tenant_no, :biz_type, :biz_id, :file_name, :original_name, :file_suffix, :url,
|
||||
:file_size, :file_type, :attach_type, :sort_order, :service, :ext1, :order_num, :remark,
|
||||
:create_by, :create_dept_id, :create_time, :update_by, :update_time, :del_flag
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
UPDATE_SQL = text(
|
||||
f"""
|
||||
UPDATE `{TARGET_TABLE}` SET
|
||||
file_name=:file_name, original_name=:original_name, file_suffix=:file_suffix, url=:url,
|
||||
service=:service, ext1=:ext1, tenant_no=:tenant_no,
|
||||
create_by=:create_by, update_by=:update_by, update_time=:update_time
|
||||
WHERE id=:id
|
||||
"""
|
||||
)
|
||||
|
||||
UPDATE_BIZ_SQL = text(
|
||||
f"""
|
||||
UPDATE `{TARGET_TABLE}` SET
|
||||
biz_type=:biz_type, biz_id=:biz_id, attach_type=:attach_type, update_time=:update_time
|
||||
WHERE id=:id AND tenant_no=:tenant_no
|
||||
AND (biz_type IS NULL OR biz_type = '')
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
def target_row_exists(conn, row_id: str) -> bool:
|
||||
return (
|
||||
int(conn.execute(text(f"SELECT COUNT(*) FROM `{TARGET_TABLE}` WHERE id=:id"), {"id": row_id}).scalar_one())
|
||||
> 0
|
||||
)
|
||||
|
||||
|
||||
def parse_oss_id_tokens(raw: Any, *, value_kind: str = "csv") -> List[str]:
|
||||
if raw is None:
|
||||
return []
|
||||
if value_kind == "bigint":
|
||||
sid = legacy_id_to_str(raw)
|
||||
return [sid] if sid and OSS_ID_RE.match(sid) else []
|
||||
|
||||
text_val = str(raw).strip()
|
||||
if not text_val:
|
||||
return []
|
||||
|
||||
if value_kind == "json_array":
|
||||
try:
|
||||
parsed = json.loads(text_val)
|
||||
if isinstance(parsed, list):
|
||||
return [t for item in parsed if (t := _normalize_oss_token(str(item)))]
|
||||
except json.JSONDecodeError:
|
||||
pass
|
||||
return []
|
||||
|
||||
tokens: List[str] = []
|
||||
for part in text_val.split(","):
|
||||
token = _normalize_oss_token(part)
|
||||
if token:
|
||||
tokens.append(token)
|
||||
return tokens
|
||||
|
||||
|
||||
def _normalize_oss_token(part: str) -> Optional[str]:
|
||||
token = (part or "").strip().strip('"').strip("'")
|
||||
if not token:
|
||||
return None
|
||||
if token.startswith("http://") or token.startswith("https://"):
|
||||
return None
|
||||
if "/" in token or "\\" in token:
|
||||
return None
|
||||
if not OSS_ID_RE.match(token):
|
||||
return None
|
||||
return token
|
||||
|
||||
|
||||
def table_exists(engine: Engine, table_name: str) -> bool:
|
||||
with engine.connect() as conn:
|
||||
row = conn.execute(
|
||||
text(
|
||||
"SELECT COUNT(*) FROM information_schema.tables "
|
||||
"WHERE table_schema = DATABASE() AND table_name = :t"
|
||||
),
|
||||
{"t": table_name},
|
||||
).scalar_one()
|
||||
return int(row) > 0
|
||||
|
||||
|
||||
def build_biz_index(
|
||||
source_engine: Engine,
|
||||
known_oss_ids: Set[str],
|
||||
stats: MigrationStats,
|
||||
) -> Tuple[Dict[str, BizRef], List[dict]]:
|
||||
index: Dict[str, BizRef] = {}
|
||||
conflicts: List[dict] = []
|
||||
|
||||
for rule in BACKFILL_RULES:
|
||||
if not table_exists(source_engine, rule.table):
|
||||
stats.warnings.append(f"回填跳过:源库无表 {rule.table}")
|
||||
continue
|
||||
sql = f"SELECT `{rule.id_column}` AS biz_row_id, `{rule.field}` AS field_value FROM `{rule.table}`"
|
||||
with source_engine.connect() as conn:
|
||||
rows = conn.execute(text(sql)).mappings().all()
|
||||
for row in rows:
|
||||
biz_id = legacy_id_to_str(row["biz_row_id"])
|
||||
if not biz_id:
|
||||
continue
|
||||
for oss_id in parse_oss_id_tokens(row["field_value"], value_kind=rule.value_kind):
|
||||
if oss_id not in known_oss_ids:
|
||||
continue
|
||||
ref = BizRef(
|
||||
biz_type=rule.biz_type,
|
||||
biz_id=biz_id,
|
||||
source_table=rule.table,
|
||||
source_field=rule.field,
|
||||
attach_type=rule.attach_type,
|
||||
)
|
||||
existing = index.get(oss_id)
|
||||
if existing is None:
|
||||
index[oss_id] = ref
|
||||
continue
|
||||
if (
|
||||
existing.biz_type == ref.biz_type
|
||||
and existing.biz_id == ref.biz_id
|
||||
and existing.attach_type == ref.attach_type
|
||||
):
|
||||
continue
|
||||
conflicts.append(
|
||||
{
|
||||
"oss_id": oss_id,
|
||||
"kept_biz_type": existing.biz_type,
|
||||
"kept_biz_id": existing.biz_id,
|
||||
"kept_source": f"{existing.source_table}.{existing.source_field}",
|
||||
"ignored_biz_type": ref.biz_type,
|
||||
"ignored_biz_id": ref.biz_id,
|
||||
"ignored_source": f"{ref.source_table}.{ref.field}",
|
||||
}
|
||||
)
|
||||
stats.conflicts += 1
|
||||
|
||||
return index, conflicts
|
||||
|
||||
|
||||
def apply_biz_backfill(
|
||||
target_engine: Engine,
|
||||
biz_index: Dict[str, BizRef],
|
||||
tenant_no: str,
|
||||
*,
|
||||
dry_run: bool,
|
||||
) -> int:
|
||||
if dry_run or not biz_index:
|
||||
return len(biz_index)
|
||||
|
||||
now = datetime.now()
|
||||
updated = 0
|
||||
with target_engine.begin() as conn:
|
||||
for oss_id, ref in biz_index.items():
|
||||
result = conn.execute(
|
||||
UPDATE_BIZ_SQL,
|
||||
{
|
||||
"id": oss_id,
|
||||
"tenant_no": tenant_no,
|
||||
"biz_type": ref.biz_type,
|
||||
"biz_id": ref.biz_id,
|
||||
"attach_type": ref.attach_type or "attachment",
|
||||
"update_time": now,
|
||||
},
|
||||
)
|
||||
if result.rowcount:
|
||||
updated += 1
|
||||
return updated
|
||||
|
||||
|
||||
def write_mapping_csv(rows: List[dict], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
migrated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(
|
||||
f,
|
||||
fieldnames=[
|
||||
"source_oss_id",
|
||||
"new_id",
|
||||
"file_name",
|
||||
"original_name",
|
||||
"url_relative",
|
||||
"migrated_at",
|
||||
],
|
||||
)
|
||||
w.writeheader()
|
||||
for row in rows:
|
||||
sid = legacy_id_to_str(row["oss_id"])
|
||||
w.writerow(
|
||||
{
|
||||
"source_oss_id": sid,
|
||||
"new_id": sid,
|
||||
"file_name": row.get("file_name") or "",
|
||||
"original_name": row.get("original_name") or "",
|
||||
"url_relative": normalize_oss_storage_url(row.get("url"), row.get("file_name")),
|
||||
"migrated_at": migrated_at,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def write_backfill_csv(biz_index: Dict[str, BizRef], path: Path) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(
|
||||
f,
|
||||
fieldnames=["oss_id", "biz_type", "biz_id", "attach_type", "source_table", "source_field"],
|
||||
)
|
||||
w.writeheader()
|
||||
for oss_id in sorted(biz_index.keys(), key=lambda x: int(x)):
|
||||
ref = biz_index[oss_id]
|
||||
w.writerow(
|
||||
{
|
||||
"oss_id": oss_id,
|
||||
"biz_type": ref.biz_type,
|
||||
"biz_id": ref.biz_id,
|
||||
"attach_type": ref.attach_type or "",
|
||||
"source_table": ref.source_table,
|
||||
"source_field": ref.source_field,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def write_unresolved_csv(
|
||||
all_oss_ids: Iterable[str],
|
||||
biz_index: Dict[str, BizRef],
|
||||
path: Path,
|
||||
) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
unresolved = sorted(set(all_oss_ids) - set(biz_index.keys()), key=lambda x: int(x))
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
w = csv.DictWriter(f, fieldnames=["oss_id", "reason"])
|
||||
w.writeheader()
|
||||
for oss_id in unresolved:
|
||||
w.writerow({"oss_id": oss_id, "reason": "no_business_reference"})
|
||||
|
||||
|
||||
def print_report(stats: MigrationStats, dry_run: bool) -> None:
|
||||
mode = "DRY-RUN" if dry_run else "COMMITTED"
|
||||
print(f"\n=== CRM sys_oss 迁移 [{mode}] ===")
|
||||
print(f"源表行数: {stats.source_count}")
|
||||
print(f"插入: {stats.inserted} 更新: {stats.updated} 跳过: {stats.skipped}")
|
||||
print(f"biz 回填: {stats.backfilled} 未解析 biz: {stats.unresolved} 冲突(保留首条): {stats.conflicts}")
|
||||
if stats.warnings:
|
||||
print(f"警告 ({len(stats.warnings)}):")
|
||||
for w in stats.warnings[:15]:
|
||||
print(f" - {w}")
|
||||
if len(stats.warnings) > 15:
|
||||
print(f" ... 另有 {len(stats.warnings) - 15} 条")
|
||||
|
||||
|
||||
def run_migration(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
user_mapping_path: Path,
|
||||
mapping_out: Optional[Path],
|
||||
backfill_out: Optional[Path],
|
||||
unresolved_out: Optional[Path],
|
||||
dry_run: bool,
|
||||
update_existing: bool,
|
||||
skip_insert: bool,
|
||||
skip_backfill: bool,
|
||||
) -> MigrationStats:
|
||||
stats = MigrationStats()
|
||||
crm_user_map, admin_id = load_user_mapping(user_mapping_path)
|
||||
if not admin_id:
|
||||
admin_id = fetch_portal_admin_id(target_engine)
|
||||
|
||||
source_rows = fetch_source_rows(source_engine)
|
||||
stats.source_count = len(source_rows)
|
||||
known_oss_ids = {legacy_id_to_str(r["oss_id"]) for r in source_rows if legacy_id_to_str(r["oss_id"])}
|
||||
|
||||
payloads = [transform_row(r, tenant_no, crm_user_map, admin_id, stats) for r in source_rows]
|
||||
|
||||
if not skip_insert:
|
||||
if dry_run:
|
||||
print("\n预览(前 5 条):")
|
||||
for p in payloads[:5]:
|
||||
print(
|
||||
f" id={p['id']} url={p['url']!r} file={p['file_name']!r} "
|
||||
f"biz=({p['biz_type']},{p['biz_id']})"
|
||||
)
|
||||
stats.inserted = len(payloads)
|
||||
else:
|
||||
with target_engine.begin() as conn:
|
||||
for payload in payloads:
|
||||
rid = payload["id"]
|
||||
if target_row_exists(conn, rid):
|
||||
if update_existing:
|
||||
conn.execute(UPDATE_SQL, payload)
|
||||
stats.updated += 1
|
||||
else:
|
||||
stats.skipped += 1
|
||||
else:
|
||||
conn.execute(INSERT_SQL, payload)
|
||||
stats.inserted += 1
|
||||
|
||||
biz_index: Dict[str, BizRef] = {}
|
||||
if not skip_backfill:
|
||||
biz_index, conflicts = build_biz_index(source_engine, known_oss_ids, stats)
|
||||
if conflicts and dry_run:
|
||||
print(f"\n回填冲突预览(前 3 条,共 {len(conflicts)}):")
|
||||
for item in conflicts[:3]:
|
||||
print(f" oss={item['oss_id']} kept={item['kept_source']} ignored={item['ignored_source']}")
|
||||
stats.backfilled = apply_biz_backfill(target_engine, biz_index, tenant_no, dry_run=dry_run)
|
||||
stats.unresolved = len(known_oss_ids) - len(biz_index)
|
||||
|
||||
if mapping_out and not dry_run:
|
||||
write_mapping_csv(source_rows, mapping_out)
|
||||
print(f"\nID 映射已写入: {mapping_out}")
|
||||
if backfill_out:
|
||||
write_backfill_csv(biz_index, backfill_out)
|
||||
print(f"biz 回填映射已写入: {backfill_out}")
|
||||
if unresolved_out:
|
||||
write_unresolved_csv(known_oss_ids, biz_index, unresolved_out)
|
||||
print(f"未回填 oss 列表已写入: {unresolved_out}")
|
||||
|
||||
print_report(stats, dry_run)
|
||||
return stats
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="Migrate CRM sys_oss from sx to portal")
|
||||
parser.add_argument("--source-url", default="")
|
||||
parser.add_argument("--target-url", default="")
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
parser.add_argument(
|
||||
"--user-mapping",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
)
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--update", action="store_true", help="目标已存在同 id 时更新元数据(不含 biz 覆盖)")
|
||||
parser.add_argument("--skip-insert", action="store_true", help="仅执行 biz 回填")
|
||||
parser.add_argument("--skip-backfill", action="store_true", help="仅 INSERT,不回填 biz_type/biz_id")
|
||||
parser.add_argument("--mapping-out", default="")
|
||||
parser.add_argument("--backfill-out", default="")
|
||||
parser.add_argument("--unresolved-out", default="")
|
||||
parser.add_argument("--env-file", default=os.environ.get("ENV_FILE", ""))
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file or None)
|
||||
settings = load_runtime_settings()
|
||||
target_url = args.target_url or settings.DATABASE_URL
|
||||
source_url = args.source_url or os.environ.get("SX_SOURCE_DATABASE_URL") or derive_source_url(target_url)
|
||||
|
||||
print(f"源库: {urlparse(source_url).path}")
|
||||
print(f"目标库: {urlparse(target_url).path}")
|
||||
print("数据源: sx.sys_oss(旧 CRM 附件元数据,共用 MinIO)")
|
||||
print(f"目标表现有 sys_oss: {count_target_rows(create_engine(target_url), args.tenant_no)}")
|
||||
|
||||
default_mapping_dir = BACKEND_ROOT.parent / "docs/data-migration/mappings"
|
||||
mapping_out = Path(args.mapping_out) if args.mapping_out else default_mapping_dir / "crm_oss_id_mapping.csv"
|
||||
backfill_out = Path(args.backfill_out) if args.backfill_out else default_mapping_dir / "crm_oss_biz_backfill.csv"
|
||||
unresolved_out = (
|
||||
Path(args.unresolved_out) if args.unresolved_out else default_mapping_dir / "crm_oss_unresolved.csv"
|
||||
)
|
||||
|
||||
run_migration(
|
||||
create_engine(source_url, pool_pre_ping=True),
|
||||
create_engine(target_url, pool_pre_ping=True),
|
||||
tenant_no=args.tenant_no,
|
||||
user_mapping_path=Path(args.user_mapping),
|
||||
mapping_out=mapping_out if not args.dry_run else None,
|
||||
backfill_out=backfill_out if not args.skip_backfill else None,
|
||||
unresolved_out=unresolved_out if not args.skip_backfill else None,
|
||||
dry_run=args.dry_run,
|
||||
update_existing=args.update,
|
||||
skip_insert=args.skip_insert,
|
||||
skip_backfill=args.skip_backfill,
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,844 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将 sx 库报销/CRM 用户迁入 shanxia2.0 门户 sys_user。
|
||||
|
||||
规则(2026-07-12 确认):
|
||||
- 跳过 admin(门户已存在)
|
||||
- 不迁移地磅 users
|
||||
- 登录账号 user_no 使用中文姓名
|
||||
- 初始密码:每人随机 4 位数字,bcrypt 加密(与门户 get_password_hash 一致)
|
||||
- 支持 --dept-mapping-csv 按人指定部门
|
||||
- 可选同步角色到 sys_role / sys_user_role
|
||||
|
||||
用法:
|
||||
cd backend && source venv/bin/activate
|
||||
ENV_FILE=.env.production python scripts/migrate_users.py --dry-run --check-infra
|
||||
|
||||
ENV_FILE=.env.production python scripts/migrate_users.py \\
|
||||
--source-url mysql+pymysql://root:***@121.43.228.102:3306/sx \\
|
||||
--mapping-out ../docs/data-migration/mappings/user_mapping_result.json
|
||||
|
||||
环境变量:
|
||||
ENV_FILE 目标库配置(默认 backend/.env,生产用 .env.production)
|
||||
DATABASE_URL 目标库 shanxia2.0(由 Settings 读取)
|
||||
SX_SOURCE_DATABASE_URL 源库 sx(未传 --source-url 时优先使用)
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import secrets
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Set, Tuple
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
from app.core.security import get_password_hash
|
||||
from app.core.utils import generate_uuid
|
||||
|
||||
# 门户默认部门(销售部,见 migration_20260712_reset_sys_dept.sql)
|
||||
DEFAULT_DEPT_ID = "D65CAAE057914CCCAE2A81BE627A43EE"
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
ADMIN_USER_NO = "admin"
|
||||
|
||||
# 可选部门(供 --dept-mapping-csv 填写 dept_id 或 dept_name)
|
||||
DEPT_BY_ID = {
|
||||
"b13c2be2-4e71-11f1-9f47-00163e3bdd96": "安庆市山峡化工有限公司",
|
||||
"E65CAAE057914CCCAE2A81BE627A43EA": "销售部",
|
||||
"F65CAAE057914CCCAE2A81BE627A43EF": "财务部门",
|
||||
"C65CAAE057914CCCAE2A81BE627A43ED": "人力资源部",
|
||||
"D65CAAE057914CCCAE2A81BE627A43EE": "生产现场部",
|
||||
}
|
||||
DEPT_BY_NAME = {
|
||||
"安庆市山峡化工有限公司": "b13c2be2-4e71-11f1-9f47-00163e3bdd96",
|
||||
"销售部": "E65CAAE057914CCCAE2A81BE627A43EA",
|
||||
"销售部门": "E65CAAE057914CCCAE2A81BE627A43EA",
|
||||
"财务部门": "F65CAAE057914CCCAE2A81BE627A43EF",
|
||||
"财务部": "F65CAAE057914CCCAE2A81BE627A43EF",
|
||||
"人力资源部": "C65CAAE057914CCCAE2A81BE627A43ED",
|
||||
"人力资源部门": "C65CAAE057914CCCAE2A81BE627A43ED",
|
||||
"生产现场部": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
}
|
||||
|
||||
|
||||
# 业务确认的手机号覆盖(中文名 -> 手机)
|
||||
PHONE_OVERRIDES: Dict[str, str] = {
|
||||
"吴九华": "18656008189",
|
||||
}
|
||||
|
||||
# bx 角色 -> 门户角色名
|
||||
BX_ROLE_MAP = {
|
||||
1: "管理员",
|
||||
2: "员工",
|
||||
3: "财务人员",
|
||||
4: "总经理",
|
||||
}
|
||||
|
||||
# CRM 角色 ID -> 门户角色名(sx.sql 生产快照)
|
||||
CRM_ROLE_MAP = {
|
||||
1975370859695071234: "销售人员",
|
||||
1979711425949528066: "销售主管",
|
||||
1984885915415953409: "行政",
|
||||
}
|
||||
|
||||
|
||||
@dataclass
|
||||
class SourceUser:
|
||||
user_no: str
|
||||
nick_name: str
|
||||
phone_no: str
|
||||
email: str
|
||||
sex: str
|
||||
bx_user_id: Optional[int] = None
|
||||
crm_user_id: Optional[int] = None
|
||||
bx_role_ids: Set[int] = field(default_factory=set)
|
||||
crm_role_ids: Set[int] = field(default_factory=set)
|
||||
sources: List[str] = field(default_factory=list)
|
||||
dept_id: str = DEFAULT_DEPT_ID
|
||||
|
||||
|
||||
@dataclass
|
||||
class MigrationStats:
|
||||
inserted_users: int = 0
|
||||
skipped_users: int = 0
|
||||
updated_mapping: int = 0
|
||||
roles_created: int = 0
|
||||
user_roles_inserted: int = 0
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
|
||||
def _has_chinese(text_value: str) -> bool:
|
||||
return bool(re.search(r"[\u4e00-\u9fff]", text_value or ""))
|
||||
|
||||
|
||||
def _clip(value: Any, max_len: int) -> str:
|
||||
s = (value or "").strip() if value is not None else ""
|
||||
return s[:max_len]
|
||||
|
||||
|
||||
def _normalize_phone(value: Any) -> str:
|
||||
s = re.sub(r"\D", "", str(value or ""))
|
||||
return s[:11] if s else ""
|
||||
|
||||
|
||||
def generate_initial_password(used: Set[str]) -> str:
|
||||
"""生成不重复的 4 位数字初始密码(0000–9999)。"""
|
||||
for _ in range(200):
|
||||
plain = f"{secrets.randbelow(10000):04d}"
|
||||
if plain not in used:
|
||||
used.add(plain)
|
||||
return plain
|
||||
raise RuntimeError("无法生成唯一 4 位初始密码,请扩大位数或手动指定")
|
||||
|
||||
|
||||
def bx_role_labels(role_ids: Set[int]) -> str:
|
||||
return "、".join(BX_ROLE_MAP[r] for r in sorted(role_ids) if r in BX_ROLE_MAP)
|
||||
|
||||
|
||||
def crm_role_labels(role_ids: Set[int]) -> str:
|
||||
return "、".join(CRM_ROLE_MAP[r] for r in sorted(role_ids) if r in CRM_ROLE_MAP)
|
||||
|
||||
|
||||
def load_dept_mapping_csv(path: Path, default_dept_id: str) -> Dict[str, str]:
|
||||
"""读取 user_import_roster 填好的部门:user_no -> dept_id。"""
|
||||
if not path.is_file():
|
||||
return {}
|
||||
mapping: Dict[str, str] = {}
|
||||
with path.open(encoding="utf-8-sig", newline="") as f:
|
||||
reader = csv.DictReader(f)
|
||||
for row in reader:
|
||||
user_no = (row.get("user_no") or "").strip()
|
||||
if not user_no:
|
||||
continue
|
||||
dept_id = (row.get("dept_id") or "").strip()
|
||||
dept_name = (row.get("dept_name") or "").strip()
|
||||
if not dept_id and dept_name:
|
||||
dept_id = DEPT_BY_NAME.get(dept_name, "")
|
||||
if dept_id:
|
||||
if dept_id not in DEPT_BY_ID:
|
||||
raise ValueError(f"用户「{user_no}」部门 ID 无效: {dept_id}")
|
||||
mapping[user_no] = dept_id
|
||||
else:
|
||||
mapping[user_no] = default_dept_id
|
||||
return mapping
|
||||
|
||||
|
||||
def derive_source_url(target_url: str, source_db: str = "sx") -> str:
|
||||
parsed = urlparse(target_url)
|
||||
# /shanxia2.0 -> /sx
|
||||
new_path = f"/{source_db}"
|
||||
return urlunparse(parsed._replace(path=new_path))
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
"""在 load_dotenv 之后实例化,确保读到 ENV_FILE / .env.production。"""
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.append(BACKEND_ROOT / ".env.production")
|
||||
candidates.append(BACKEND_ROOT / ".env")
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def check_mysql(engine: Engine, label: str) -> None:
|
||||
with engine.connect() as conn:
|
||||
conn.execute(text("SELECT 1"))
|
||||
|
||||
|
||||
def check_redis(runtime_settings) -> Tuple[bool, str]:
|
||||
try:
|
||||
import redis
|
||||
|
||||
client = redis.Redis(
|
||||
host=runtime_settings.REDIS_HOST or "localhost",
|
||||
port=runtime_settings.REDIS_PORT,
|
||||
db=runtime_settings.REDIS_DB,
|
||||
password=runtime_settings.REDIS_PASSWORD or None,
|
||||
socket_connect_timeout=runtime_settings.REDIS_CONNECT_TIMEOUT_SEC,
|
||||
socket_timeout=runtime_settings.REDIS_OP_TIMEOUT_SEC,
|
||||
)
|
||||
client.ping()
|
||||
return True, f"{runtime_settings.REDIS_HOST}:{runtime_settings.REDIS_PORT}/{runtime_settings.REDIS_DB}"
|
||||
except Exception as exc:
|
||||
return False, str(exc)
|
||||
|
||||
|
||||
def check_minio(runtime_settings) -> Tuple[bool, str]:
|
||||
try:
|
||||
from minio import Minio
|
||||
|
||||
if not runtime_settings.MINIO_ENDPOINT:
|
||||
return False, "MINIO_ENDPOINT 未配置"
|
||||
client = Minio(
|
||||
runtime_settings.MINIO_ENDPOINT,
|
||||
access_key=runtime_settings.MINIO_ACCESS_KEY,
|
||||
secret_key=runtime_settings.MINIO_SECRET_KEY,
|
||||
secure=runtime_settings.MINIO_SECURE,
|
||||
)
|
||||
client.bucket_exists(runtime_settings.MINIO_BUCKET)
|
||||
return True, f"{runtime_settings.MINIO_ENDPOINT} bucket={runtime_settings.MINIO_BUCKET}"
|
||||
except Exception as exc:
|
||||
return False, str(exc)
|
||||
|
||||
|
||||
def fetch_bx_users(engine: Engine) -> List[dict]:
|
||||
sql = """
|
||||
SELECT id, username, password, real_name, phone, email, status, del_flag
|
||||
FROM bx_user
|
||||
WHERE del_flag = 0 AND username <> :admin
|
||||
ORDER BY id
|
||||
"""
|
||||
with engine.connect() as conn:
|
||||
rows = conn.execute(text(sql), {"admin": ADMIN_USER_NO}).mappings().all()
|
||||
return [dict(r) for r in rows]
|
||||
|
||||
|
||||
def fetch_crm_users(engine: Engine) -> List[dict]:
|
||||
sql = """
|
||||
SELECT user_id, user_name, nick_name, phonenumber, email, password,
|
||||
sex, status, del_flag
|
||||
FROM sys_user
|
||||
WHERE del_flag = '0' AND status = '0' AND user_name <> :admin
|
||||
ORDER BY user_id
|
||||
"""
|
||||
with engine.connect() as conn:
|
||||
rows = conn.execute(text(sql), {"admin": ADMIN_USER_NO}).mappings().all()
|
||||
return [dict(r) for r in rows]
|
||||
|
||||
|
||||
def fetch_bx_role_users(engine: Engine) -> Dict[int, Set[int]]:
|
||||
sql = "SELECT user_id, role_id FROM bx_role_user"
|
||||
out: Dict[int, Set[int]] = {}
|
||||
with engine.connect() as conn:
|
||||
for row in conn.execute(text(sql)).mappings():
|
||||
uid = int(row["user_id"])
|
||||
out.setdefault(uid, set()).add(int(row["role_id"]))
|
||||
return out
|
||||
|
||||
|
||||
def fetch_crm_user_roles(engine: Engine) -> Dict[int, Set[int]]:
|
||||
sql = "SELECT user_id, role_id FROM sys_user_role"
|
||||
out: Dict[int, Set[int]] = {}
|
||||
with engine.connect() as conn:
|
||||
for row in conn.execute(text(sql)).mappings():
|
||||
uid = int(row["user_id"])
|
||||
out.setdefault(uid, set()).add(int(row["role_id"]))
|
||||
return out
|
||||
|
||||
|
||||
def build_merged_users(
|
||||
source_engine: Engine,
|
||||
stats: MigrationStats,
|
||||
dept_mapping: Optional[Dict[str, str]] = None,
|
||||
default_dept_id: str = DEFAULT_DEPT_ID,
|
||||
) -> List[SourceUser]:
|
||||
bx_rows = fetch_bx_users(source_engine)
|
||||
crm_rows = fetch_crm_users(source_engine)
|
||||
bx_roles = fetch_bx_role_users(source_engine)
|
||||
crm_roles = fetch_crm_user_roles(source_engine)
|
||||
|
||||
merged: Dict[str, SourceUser] = {}
|
||||
|
||||
def upsert(key: str, **kwargs: Any) -> SourceUser:
|
||||
key = key.strip()
|
||||
if key not in merged:
|
||||
merged[key] = SourceUser(
|
||||
user_no=key,
|
||||
nick_name=key,
|
||||
phone_no="",
|
||||
email="",
|
||||
sex="0",
|
||||
)
|
||||
item = merged[key]
|
||||
for k, v in kwargs.items():
|
||||
if v is None:
|
||||
continue
|
||||
if k == "sources":
|
||||
values = v if isinstance(v, (list, tuple, set)) else [v]
|
||||
for s in values:
|
||||
if s and s not in item.sources:
|
||||
item.sources.append(s)
|
||||
elif k == "bx_role_ids" or k == "crm_role_ids":
|
||||
getattr(item, k).update(v)
|
||||
elif k in ("phone_no", "email") and getattr(item, k):
|
||||
continue
|
||||
else:
|
||||
setattr(item, k, v)
|
||||
return item
|
||||
|
||||
for row in bx_rows:
|
||||
name = (row.get("real_name") or "").strip()
|
||||
if not name:
|
||||
stats.warnings.append(f"bx_user id={row['id']} 缺少 real_name,已跳过")
|
||||
continue
|
||||
upsert(
|
||||
name,
|
||||
phone_no=_normalize_phone(row.get("phone")),
|
||||
email=_clip(row.get("email"), 50),
|
||||
bx_user_id=int(row["id"]),
|
||||
bx_role_ids=bx_roles.get(int(row["id"]), set()),
|
||||
sources="bx",
|
||||
)
|
||||
|
||||
for row in crm_rows:
|
||||
nick = (row.get("nick_name") or "").strip()
|
||||
uname = (row.get("user_name") or "").strip()
|
||||
name = nick if _has_chinese(nick) else (uname if _has_chinese(uname) else nick or uname)
|
||||
if not name or not _has_chinese(name):
|
||||
continue
|
||||
upsert(
|
||||
name,
|
||||
phone_no=_normalize_phone(row.get("phonenumber")),
|
||||
email=_clip(row.get("email"), 50),
|
||||
sex=str(row.get("sex") or "0"),
|
||||
crm_user_id=int(row["user_id"]),
|
||||
crm_role_ids=crm_roles.get(int(row["user_id"]), set()),
|
||||
sources="crm",
|
||||
)
|
||||
|
||||
# 手机号业务覆盖
|
||||
for name, phone in PHONE_OVERRIDES.items():
|
||||
if name in merged:
|
||||
merged[name].phone_no = phone
|
||||
|
||||
dept_mapping = dept_mapping or {}
|
||||
result = []
|
||||
for item in merged.values():
|
||||
item.dept_id = dept_mapping.get(item.user_no, default_dept_id)
|
||||
result.append(item)
|
||||
|
||||
result.sort(key=lambda u: u.user_no)
|
||||
return result
|
||||
|
||||
|
||||
def target_user_exists_conn(conn, user_no: str, tenant_no: str) -> Optional[str]:
|
||||
sql = """
|
||||
SELECT id FROM sys_user
|
||||
WHERE user_no = :user_no AND tenant_no = :tenant AND del_flag = 0
|
||||
LIMIT 1
|
||||
"""
|
||||
row = conn.execute(text(sql), {"user_no": user_no, "tenant": tenant_no}).first()
|
||||
return str(row[0]) if row else None
|
||||
|
||||
|
||||
def ensure_portal_role(
|
||||
conn,
|
||||
role_name: str,
|
||||
tenant_no: str,
|
||||
admin_id: str,
|
||||
dept_id: str,
|
||||
dry_run: bool,
|
||||
cache: Dict[str, str],
|
||||
stats: MigrationStats,
|
||||
) -> str:
|
||||
if role_name in cache:
|
||||
return cache[role_name]
|
||||
row = conn.execute(
|
||||
text(
|
||||
"""
|
||||
SELECT id FROM sys_role
|
||||
WHERE role_name = :name AND tenant_no = :tenant AND del_flag = 0
|
||||
LIMIT 1
|
||||
"""
|
||||
),
|
||||
{"name": role_name, "tenant": tenant_no},
|
||||
).first()
|
||||
if row:
|
||||
cache[role_name] = str(row[0])
|
||||
return cache[role_name]
|
||||
|
||||
role_id = generate_uuid()
|
||||
if not dry_run:
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
INSERT INTO sys_role (
|
||||
id, role_name, data_scope, status, tenant_no, order_num,
|
||||
remark, create_by, create_dept_id, create_time, update_by,
|
||||
update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :role_name, '5', '1', :tenant_no, 10,
|
||||
'用户迁移脚本自动创建', :create_by, :dept_id, :now, :create_by,
|
||||
:now, 0
|
||||
)
|
||||
"""
|
||||
),
|
||||
{
|
||||
"id": role_id,
|
||||
"role_name": role_name,
|
||||
"tenant_no": tenant_no,
|
||||
"create_by": admin_id,
|
||||
"dept_id": dept_id,
|
||||
"now": datetime.now(),
|
||||
},
|
||||
)
|
||||
cache[role_name] = role_id
|
||||
stats.roles_created += 1
|
||||
return role_id
|
||||
|
||||
|
||||
def portal_role_names_for_user(user: SourceUser) -> Set[str]:
|
||||
names: Set[str] = set()
|
||||
for rid in user.bx_role_ids:
|
||||
name = BX_ROLE_MAP.get(rid)
|
||||
if name and name != "管理员":
|
||||
names.add(name)
|
||||
for rid in user.crm_role_ids:
|
||||
name = CRM_ROLE_MAP.get(rid)
|
||||
if name:
|
||||
names.add(name)
|
||||
if not names:
|
||||
names.add("员工")
|
||||
return names
|
||||
|
||||
|
||||
def insert_user_role(
|
||||
conn,
|
||||
user_id: str,
|
||||
role_id: str,
|
||||
tenant_no: str,
|
||||
admin_id: str,
|
||||
dept_id: str,
|
||||
dry_run: bool,
|
||||
stats: MigrationStats,
|
||||
) -> None:
|
||||
exists = conn.execute(
|
||||
text(
|
||||
"""
|
||||
SELECT id FROM sys_user_role
|
||||
WHERE user_id = :uid AND role_id = :rid AND tenant_no = :tenant AND del_flag = 0
|
||||
LIMIT 1
|
||||
"""
|
||||
),
|
||||
{"uid": user_id, "rid": role_id, "tenant": tenant_no},
|
||||
).first()
|
||||
if exists:
|
||||
return
|
||||
if not dry_run:
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
INSERT INTO sys_user_role (
|
||||
id, user_id, role_id, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :user_id, :role_id, :tenant_no, 0, 'migrate_users',
|
||||
:create_by, :dept_id, :now, :create_by, :now, 0
|
||||
)
|
||||
"""
|
||||
),
|
||||
{
|
||||
"id": generate_uuid(),
|
||||
"user_id": user_id,
|
||||
"role_id": role_id,
|
||||
"tenant_no": tenant_no,
|
||||
"create_by": admin_id,
|
||||
"dept_id": dept_id,
|
||||
"now": datetime.now(),
|
||||
},
|
||||
)
|
||||
stats.user_roles_inserted += 1
|
||||
|
||||
|
||||
def migrate_users(
|
||||
source_engine: Engine,
|
||||
target_engine: Engine,
|
||||
*,
|
||||
tenant_no: str,
|
||||
dept_id: str,
|
||||
dept_mapping: Optional[Dict[str, str]],
|
||||
dry_run: bool,
|
||||
with_roles: bool,
|
||||
stats: MigrationStats,
|
||||
) -> List[dict]:
|
||||
users = build_merged_users(
|
||||
source_engine, stats, dept_mapping=dept_mapping, default_dept_id=dept_id
|
||||
)
|
||||
mapping_rows: List[dict] = []
|
||||
used_passwords: Set[str] = set()
|
||||
|
||||
with target_engine.connect() as raw_conn:
|
||||
admin_row = raw_conn.execute(
|
||||
text("SELECT id FROM sys_user WHERE user_no = :u AND del_flag = 0 LIMIT 1"),
|
||||
{"u": ADMIN_USER_NO},
|
||||
).first()
|
||||
admin_id = str(admin_row[0]) if admin_row else ""
|
||||
|
||||
with target_engine.begin() as conn:
|
||||
role_cache: Dict[str, str] = {}
|
||||
|
||||
for user in users:
|
||||
existing_id = target_user_exists_conn(conn, user.user_no, tenant_no)
|
||||
plain_password = ""
|
||||
password_hash = ""
|
||||
if existing_id:
|
||||
stats.skipped_users += 1
|
||||
stats.warnings.append(f"已存在,跳过: {user.user_no} (id={existing_id})")
|
||||
new_id = existing_id
|
||||
else:
|
||||
plain_password = generate_initial_password(used_passwords)
|
||||
password_hash = get_password_hash(plain_password)
|
||||
new_id = generate_uuid()
|
||||
user_dept_id = user.dept_id or dept_id
|
||||
if not dry_run:
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
INSERT INTO sys_user (
|
||||
id, dept_id, user_no, nick_name, email, phone_no, sex,
|
||||
avatar, password, status, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by,
|
||||
update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :dept_id, :user_no, :nick_name, :email, :phone_no, :sex,
|
||||
NULL, :password, '1', :tenant_no, 0, :remark,
|
||||
:create_by, :dept_id, :now, :create_by, :now, 0
|
||||
)
|
||||
"""
|
||||
),
|
||||
{
|
||||
"id": new_id,
|
||||
"dept_id": user_dept_id,
|
||||
"user_no": _clip(user.user_no, 30),
|
||||
"nick_name": _clip(user.nick_name, 30),
|
||||
"email": _clip(user.email, 50),
|
||||
"phone_no": _clip(user.phone_no, 11),
|
||||
"sex": _clip(user.sex, 1) or "0",
|
||||
"password": password_hash,
|
||||
"tenant_no": tenant_no,
|
||||
"remark": f"migrate_users:{','.join(user.sources)}",
|
||||
"create_by": admin_id or None,
|
||||
"now": datetime.now(),
|
||||
},
|
||||
)
|
||||
stats.inserted_users += 1
|
||||
|
||||
user_dept_id = user.dept_id or dept_id
|
||||
if with_roles and admin_id:
|
||||
for role_name in portal_role_names_for_user(user):
|
||||
role_id = ensure_portal_role(
|
||||
conn,
|
||||
role_name,
|
||||
tenant_no,
|
||||
admin_id,
|
||||
user_dept_id,
|
||||
dry_run,
|
||||
role_cache,
|
||||
stats,
|
||||
)
|
||||
insert_user_role(
|
||||
conn,
|
||||
new_id,
|
||||
role_id,
|
||||
tenant_no,
|
||||
admin_id,
|
||||
user_dept_id,
|
||||
dry_run,
|
||||
stats,
|
||||
)
|
||||
|
||||
mapping_rows.append(
|
||||
{
|
||||
"new_user_id": new_id,
|
||||
"user_no": user.user_no,
|
||||
"nick_name": user.nick_name,
|
||||
"phone_no": user.phone_no,
|
||||
"dept_id": user_dept_id,
|
||||
"dept_name": DEPT_BY_ID.get(user_dept_id, ""),
|
||||
"bx_user_id": user.bx_user_id or "",
|
||||
"crm_user_id": user.crm_user_id or "",
|
||||
"dibang_user_id": "",
|
||||
"initial_password": plain_password,
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": ",".join(user.sources),
|
||||
"bx_roles": bx_role_labels(user.bx_role_ids),
|
||||
"crm_roles": crm_role_labels(user.crm_role_ids),
|
||||
"portal_roles": ",".join(sorted(portal_role_names_for_user(user))),
|
||||
}
|
||||
)
|
||||
|
||||
return mapping_rows
|
||||
|
||||
|
||||
def write_mapping_outputs(
|
||||
mapping_rows: List[dict],
|
||||
json_path: Optional[Path],
|
||||
csv_path: Optional[Path],
|
||||
credentials_path: Optional[Path],
|
||||
) -> None:
|
||||
safe_rows = []
|
||||
for row in mapping_rows:
|
||||
item = dict(row)
|
||||
item.pop("initial_password", None)
|
||||
safe_rows.append(item)
|
||||
|
||||
if json_path:
|
||||
json_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
payload = {
|
||||
"generated_at": datetime.now().isoformat(timespec="seconds"),
|
||||
"count": len(safe_rows),
|
||||
"users": safe_rows,
|
||||
"bx_id_to_user": {
|
||||
str(r["bx_user_id"]): r["new_user_id"]
|
||||
for r in safe_rows
|
||||
if r.get("bx_user_id")
|
||||
},
|
||||
"crm_id_to_user": {
|
||||
str(r["crm_user_id"]): r["new_user_id"]
|
||||
for r in safe_rows
|
||||
if r.get("crm_user_id")
|
||||
},
|
||||
}
|
||||
json_path.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||
|
||||
if csv_path:
|
||||
csv_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
fieldnames = [
|
||||
"new_user_id",
|
||||
"user_no",
|
||||
"nick_name",
|
||||
"phone_no",
|
||||
"dept_id",
|
||||
"dept_name",
|
||||
"bx_user_id",
|
||||
"crm_user_id",
|
||||
"dibang_user_id",
|
||||
"password_hash_algo",
|
||||
"status",
|
||||
"sources",
|
||||
"bx_roles",
|
||||
"crm_roles",
|
||||
"portal_roles",
|
||||
]
|
||||
with csv_path.open("w", encoding="utf-8", newline="") as f:
|
||||
writer = csv.DictWriter(f, fieldnames=fieldnames, extrasaction="ignore")
|
||||
writer.writeheader()
|
||||
writer.writerows(safe_rows)
|
||||
|
||||
if credentials_path:
|
||||
credentials_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
cred_fields = [
|
||||
"user_no",
|
||||
"nick_name",
|
||||
"phone_no",
|
||||
"dept_name",
|
||||
"initial_password",
|
||||
"new_user_id",
|
||||
]
|
||||
with credentials_path.open("w", encoding="utf-8", newline="") as f:
|
||||
writer = csv.DictWriter(f, fieldnames=cred_fields, extrasaction="ignore")
|
||||
writer.writeheader()
|
||||
for row in mapping_rows:
|
||||
if row.get("initial_password"):
|
||||
writer.writerow(row)
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(description="迁移 sx 报销/CRM 用户到 shanxia2.0")
|
||||
parser.add_argument("--dry-run", action="store_true", help="只演练不写库")
|
||||
parser.add_argument("--env-file", default=".env.production", help="如 .env.production")
|
||||
parser.add_argument(
|
||||
"--source-url",
|
||||
default=os.getenv("SX_SOURCE_DATABASE_URL", ""),
|
||||
help="源库 sx 连接串",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--source-db",
|
||||
default="sx",
|
||||
help="从目标 DATABASE_URL 推导源库时的库名",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--tenant-no",
|
||||
default=DEFAULT_TENANT_NO,
|
||||
help="目标租户编号",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--dept-id",
|
||||
default=DEFAULT_DEPT_ID,
|
||||
help="默认部门 ID",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--dept-mapping-csv",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_import_roster.csv"),
|
||||
help="按人指定部门的 CSV(填 dept_id 或 dept_name)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--credentials-out",
|
||||
default=str(
|
||||
BACKEND_ROOT.parent / "docs/data-migration/mappings/user_import_credentials.csv"
|
||||
),
|
||||
help="初始明文密码清单(仅新建用户,勿提交版本库)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--mapping-out",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.json"),
|
||||
help="输出 JSON 映射",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--mapping-csv",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/user_mapping_result.csv"),
|
||||
help="输出 CSV 映射",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--no-roles",
|
||||
action="store_true",
|
||||
help="不写入 sys_role / sys_user_role",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--check-infra",
|
||||
action="store_true",
|
||||
help="检查 MySQL/Redis/MinIO 连通性",
|
||||
)
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def main() -> int:
|
||||
args = parse_args()
|
||||
load_settings_env(args.env_file or None)
|
||||
runtime_settings = load_runtime_settings()
|
||||
|
||||
target_url = runtime_settings.DATABASE_URL
|
||||
source_url = args.source_url or derive_source_url(target_url, args.source_db)
|
||||
|
||||
print("=== 用户迁移 migrate_users ===")
|
||||
print(f"模式: {'DRY-RUN' if args.dry_run else 'EXECUTE'}")
|
||||
print(f"源库: {source_url}")
|
||||
print(f"目标库: {target_url}")
|
||||
print(f"租户: {args.tenant_no}")
|
||||
print("跳过: admin、地磅账号")
|
||||
print()
|
||||
|
||||
source_engine = create_engine(source_url, pool_pre_ping=True)
|
||||
target_engine = create_engine(target_url, pool_pre_ping=True)
|
||||
|
||||
if args.check_infra:
|
||||
check_mysql(source_engine, "source")
|
||||
check_mysql(target_engine, "target")
|
||||
ok, msg = check_redis(runtime_settings)
|
||||
print(f"Redis: {'OK' if ok else 'FAIL'} — {msg}")
|
||||
ok, msg = check_minio(runtime_settings)
|
||||
print(f"MinIO: {'OK' if ok else 'FAIL'} — {msg}")
|
||||
print()
|
||||
|
||||
dept_mapping_path = Path(args.dept_mapping_csv)
|
||||
dept_mapping = load_dept_mapping_csv(dept_mapping_path, args.dept_id)
|
||||
if dept_mapping_path.is_file():
|
||||
filled = sum(
|
||||
1
|
||||
for k, v in dept_mapping.items()
|
||||
if v and v != args.dept_id
|
||||
)
|
||||
print(f"部门映射: {dept_mapping_path.name}({filled} 人已指定非默认部门,其余默认生产现场部)")
|
||||
else:
|
||||
print(f"部门映射: 未找到 {dept_mapping_path},全部使用默认部门")
|
||||
print("密码策略: 每人随机 4 位数字 + bcrypt(与门户一致)")
|
||||
print()
|
||||
|
||||
stats = MigrationStats()
|
||||
mapping_rows = migrate_users(
|
||||
source_engine,
|
||||
target_engine,
|
||||
tenant_no=args.tenant_no,
|
||||
dept_id=args.dept_id,
|
||||
dept_mapping=dept_mapping or None,
|
||||
dry_run=args.dry_run,
|
||||
with_roles=not args.no_roles,
|
||||
stats=stats,
|
||||
)
|
||||
|
||||
if not args.dry_run:
|
||||
write_mapping_outputs(
|
||||
mapping_rows,
|
||||
Path(args.mapping_out),
|
||||
Path(args.mapping_csv),
|
||||
Path(args.credentials_out),
|
||||
)
|
||||
else:
|
||||
print("(dry-run 不写库;映射预览见下方统计,正式执行后写入 JSON/CSV)")
|
||||
|
||||
print(f"待迁移/处理用户数: {len(mapping_rows)}")
|
||||
print(f"新增用户: {stats.inserted_users}")
|
||||
print(f"跳过已存在: {stats.skipped_users}")
|
||||
print(f"新建角色: {stats.roles_created}")
|
||||
print(f"用户-角色关联: {stats.user_roles_inserted}")
|
||||
if stats.warnings:
|
||||
print("警告:")
|
||||
for w in stats.warnings:
|
||||
print(f" - {w}")
|
||||
if not args.dry_run:
|
||||
print(f"映射 JSON: {args.mapping_out}")
|
||||
print(f"映射 CSV: {args.mapping_csv}")
|
||||
print(f"密码清单: {args.credentials_out}")
|
||||
print("完成.")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,143 @@
|
||||
"""MinIO 附件 URL 规范化(数据迁移共用)。
|
||||
|
||||
背景
|
||||
----
|
||||
CRM / 地磅 / 报销与 shanxia2.0 共用同一 MinIO(bucket 默认 ``ruoyi``),
|
||||
物理对象无需复制。旧 CRM ``sys_oss.url`` 存的是带域名的绝对 URL(含历史
|
||||
``47.99.164.66:20004``、``121.43.228.102:9000`` 等),门户 ``sys_oss.url`` 与
|
||||
业务表字段存 **相对 object key**(如 ``2025/10/08/xxx.png``)。
|
||||
|
||||
旧表 ``sys_oss.file_name`` 通常已是 object key,与 ``url`` 中的路径一致,
|
||||
解析失败时可优先回退 ``file_name``。
|
||||
|
||||
报销 ``bx_attachment.file_path`` 本身即为相对路径(如 ``bx/2026-05-19/...``),
|
||||
可直接写入目标库。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Iterable, Optional
|
||||
from urllib.parse import unquote, urlparse
|
||||
|
||||
|
||||
DEFAULT_BUCKET = "ruoyi"
|
||||
|
||||
# 历史绝对 URL 前缀(域名/网关变更);匹配时去掉前缀得到 object key
|
||||
LEGACY_URL_PREFIXES = (
|
||||
"http://47.99.164.66:20004/ruoyi/",
|
||||
"https://47.99.164.66:20004/ruoyi/",
|
||||
"http://121.43.228.102:9000/ruoyi/",
|
||||
"https://121.43.228.102:9000/ruoyi/",
|
||||
"http://www.chengyantek.cn:20004/ruoyi/",
|
||||
"https://www.chengyantek.cn:20004/ruoyi/",
|
||||
"http://www.chengyantek.cn/ruoyi/",
|
||||
"https://www.chengyantek.cn/ruoyi/",
|
||||
"http://www.chengyantek.cn/zkxw/",
|
||||
"https://www.chengyantek.cn/zkxw/",
|
||||
)
|
||||
|
||||
|
||||
def strip_url_query(raw: str) -> str:
|
||||
"""去掉预签名 query(``?X-Amz-...``)。"""
|
||||
value = (raw or "").strip()
|
||||
if not value:
|
||||
return ""
|
||||
return value.split("?", 1)[0].strip()
|
||||
|
||||
|
||||
def _strip_legacy_prefix(url: str) -> Optional[str]:
|
||||
normalized = strip_url_query(url)
|
||||
for prefix in LEGACY_URL_PREFIXES:
|
||||
if normalized.startswith(prefix):
|
||||
return normalized[len(prefix) :].lstrip("/")
|
||||
return None
|
||||
|
||||
|
||||
def extract_minio_object_key(
|
||||
raw_url: Optional[str],
|
||||
*,
|
||||
bucket: str = DEFAULT_BUCKET,
|
||||
file_name_fallback: Optional[str] = None,
|
||||
) -> str:
|
||||
"""将绝对/相对 URL 规范为 MinIO object key(不含 bucket)。"""
|
||||
url = strip_url_query(raw_url or "")
|
||||
if not url:
|
||||
fallback = (file_name_fallback or "").strip().lstrip("/")
|
||||
return fallback
|
||||
|
||||
legacy = _strip_legacy_prefix(url)
|
||||
if legacy:
|
||||
return legacy
|
||||
|
||||
if url.startswith("http://") or url.startswith("https://"):
|
||||
parsed = urlparse(url)
|
||||
path = unquote((parsed.path or "").lstrip("/"))
|
||||
bucket_prefix = f"{bucket}/"
|
||||
if path.startswith(bucket_prefix):
|
||||
return path[len(bucket_prefix) :]
|
||||
# 少数 URL 路径不含 bucket 段
|
||||
return path
|
||||
|
||||
return url.lstrip("/")
|
||||
|
||||
|
||||
def normalize_oss_storage_url(
|
||||
url: Optional[str],
|
||||
file_name: Optional[str] = None,
|
||||
*,
|
||||
bucket: str = DEFAULT_BUCKET,
|
||||
) -> str:
|
||||
"""迁移 CRM ``sys_oss`` 行:``url`` + ``file_name`` → 门户相对路径。"""
|
||||
from_url = extract_minio_object_key(url, bucket=bucket)
|
||||
if from_url:
|
||||
return from_url
|
||||
return (file_name or "").strip().lstrip("/")
|
||||
|
||||
|
||||
def join_relative_urls(urls: Iterable[str]) -> str:
|
||||
"""逗号拼接相对路径(去空、去重保序)。"""
|
||||
seen = set()
|
||||
parts: list[str] = []
|
||||
for item in urls:
|
||||
key = (item or "").strip().lstrip("/")
|
||||
if not key or key in seen:
|
||||
continue
|
||||
seen.add(key)
|
||||
parts.append(key)
|
||||
return ",".join(parts)
|
||||
|
||||
|
||||
def resolve_oss_id_csv(
|
||||
oss_id_csv: Optional[str],
|
||||
oss_id_to_relative_url: dict[str, str],
|
||||
) -> str:
|
||||
"""业务表 OSS ID 串 → 相对 URL 串(用于客户证照、跟进附件等)。"""
|
||||
if not oss_id_csv:
|
||||
return ""
|
||||
urls: list[str] = []
|
||||
for token in str(oss_id_csv).split(","):
|
||||
oss_id = token.strip()
|
||||
if not oss_id:
|
||||
continue
|
||||
mapped = oss_id_to_relative_url.get(oss_id)
|
||||
if mapped:
|
||||
urls.append(mapped)
|
||||
return join_relative_urls(urls)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
samples = [
|
||||
(
|
||||
"http://47.99.164.66:20004/ruoyi/2025/10/08/5ac0966ab3a74eadab571ce0bb3b441a.png",
|
||||
"2025/10/08/5ac0966ab3a74eadab571ce0bb3b441a.png",
|
||||
),
|
||||
(
|
||||
"http://121.43.228.102:9000/ruoyi/2025/11/01/0048348b3d6c439f99db454c8c05e59a.gif?X-Amz-Algorithm=AWS4",
|
||||
"2025/11/01/0048348b3d6c439f99db454c8c05e59a.gif",
|
||||
),
|
||||
("2025/10/17/d601338282a44cf092bf68afe1aef239.jpeg", "2025/10/17/d601338282a44cf092bf68afe1aef239.jpeg"),
|
||||
("bx/2026-05-19/4ca4ffbeb7fc4e22913936d0860b2e2d.png", "bx/2026-05-19/4ca4ffbeb7fc4e22913936d0860b2e2d.png"),
|
||||
]
|
||||
for raw, expected in samples:
|
||||
got = extract_minio_object_key(raw)
|
||||
assert got == expected, f"{raw!r} -> {got!r}, want {expected!r}"
|
||||
print("minio_url self-check ok")
|
||||
@@ -0,0 +1,63 @@
|
||||
-- =============================================================================
|
||||
-- 新增财务部门(shanxia2.0 租户)
|
||||
-- 执行库:shanxia2.0
|
||||
-- 日期:2026-07-12
|
||||
--
|
||||
-- 部门树(执行后):
|
||||
-- 安庆市山峡化工有限公司(根)
|
||||
-- ├── 销售部
|
||||
-- ├── 财务部门 ← 本脚本新增
|
||||
-- ├── 人力资源部
|
||||
-- └── 生产现场部
|
||||
--
|
||||
-- 可重复执行:已存在同 ID 部门则跳过插入
|
||||
-- =============================================================================
|
||||
|
||||
SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
SET collation_connection = 'utf8mb4_unicode_ci';
|
||||
|
||||
SET @tenant_no := 'shanxia2.0';
|
||||
SET @admin_user_id := 'd3000000000000000000000000000001';
|
||||
SET @dept_root_id := 'b13c2be2-4e71-11f1-9f47-00163e3bdd96';
|
||||
SET @dept_finance_id := 'F65CAAE057914CCCAE2A81BE627A43EF';
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
INSERT INTO sys_dept (
|
||||
id, parent_id, dept_name, dept_category_code, status,
|
||||
leader, leader_phone, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
)
|
||||
SELECT
|
||||
@dept_finance_id,
|
||||
@dept_root_id,
|
||||
'财务部门',
|
||||
'bm',
|
||||
'1',
|
||||
NULL,
|
||||
NULL,
|
||||
@tenant_no,
|
||||
15,
|
||||
'用户迁移前新增',
|
||||
@admin_user_id,
|
||||
@dept_root_id,
|
||||
NOW(),
|
||||
@admin_user_id,
|
||||
NOW(),
|
||||
0
|
||||
FROM DUAL
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM sys_dept
|
||||
WHERE id = @dept_finance_id COLLATE utf8mb4_unicode_ci
|
||||
AND tenant_no = @tenant_no COLLATE utf8mb4_unicode_ci
|
||||
AND del_flag = 0
|
||||
);
|
||||
|
||||
COMMIT;
|
||||
|
||||
SELECT id, parent_id, dept_name, dept_category_code, order_num, status
|
||||
FROM sys_dept
|
||||
WHERE tenant_no = @tenant_no COLLATE utf8mb4_unicode_ci
|
||||
AND del_flag = 0
|
||||
ORDER BY parent_id, order_num, dept_name;
|
||||
@@ -0,0 +1,117 @@
|
||||
-- =============================================================================
|
||||
-- 重置 shanxia2.0 租户部门树(P0 数据迁移前置)
|
||||
-- 执行库:shanxia2.0
|
||||
-- 日期:2026-07-12
|
||||
--
|
||||
-- 目标结构:
|
||||
-- 安庆市山峡化工有限公司(根,组织类别 gs)
|
||||
-- ├── 销售部(bm)
|
||||
-- ├── 人力资源部(bm)
|
||||
-- └── 生产现场部(bm)
|
||||
--
|
||||
-- 用法(生产):
|
||||
-- mysql -h121.43.228.102 -uroot -p shanxia2.0 < backend/scripts/migration_20260712_reset_sys_dept.sql
|
||||
--
|
||||
-- 说明:
|
||||
-- 1. 物理删除租户 shanxia2.0 下全部 sys_dept 后重建(含已软删记录)
|
||||
-- 2. 复用根部门 ID(admin.dept_id 已指向)与销售部 ID(用户迁移脚本默认部门)
|
||||
-- 3. 同步将 admin 挂到根公司;清理已失效的自定义数据权限部门引用
|
||||
-- =============================================================================
|
||||
|
||||
-- 与表字段 collation 对齐,避免 1267 Illegal mix of collations
|
||||
SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
SET collation_connection = 'utf8mb4_unicode_ci';
|
||||
|
||||
SET @tenant_no := 'shanxia2.0';
|
||||
SET @admin_user_id := 'd3000000000000000000000000000001';
|
||||
|
||||
-- 稳定部门 ID(与历史/迁移脚本对齐)
|
||||
SET @dept_root_id := 'b13c2be2-4e71-11f1-9f47-00163e3bdd96';
|
||||
SET @dept_sales_id := 'E65CAAE057914CCCAE2A81BE627A43EA';
|
||||
SET @dept_hr_id := 'C65CAAE057914CCCAE2A81BE627A43ED';
|
||||
SET @dept_prod_id := 'D65CAAE057914CCCAE2A81BE627A43EE';
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
-- 清理自定义数据权限中指向旧部门的配置(当前库通常为空,预留)
|
||||
DELETE FROM sys_role_data_scope_detail
|
||||
WHERE tenant_no = @tenant_no COLLATE utf8mb4_unicode_ci
|
||||
AND scope_type = 'dept' COLLATE utf8mb4_unicode_ci
|
||||
AND scope_value COLLATE utf8mb4_unicode_ci NOT IN (
|
||||
@dept_root_id COLLATE utf8mb4_unicode_ci,
|
||||
@dept_sales_id COLLATE utf8mb4_unicode_ci,
|
||||
@dept_hr_id COLLATE utf8mb4_unicode_ci,
|
||||
@dept_prod_id COLLATE utf8mb4_unicode_ci
|
||||
);
|
||||
|
||||
-- 清空租户全部部门(物理删除)
|
||||
DELETE FROM sys_dept
|
||||
WHERE tenant_no = @tenant_no COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
-- 根:安庆市山峡化工有限公司
|
||||
INSERT INTO sys_dept (
|
||||
id, parent_id, dept_name, dept_category_code, status,
|
||||
leader, leader_phone, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
@dept_root_id, '0', '安庆市山峡化工有限公司', 'gs', '1',
|
||||
NULL, NULL, @tenant_no, 0, '数据迁移脚本重建',
|
||||
@admin_user_id, '', NOW(), @admin_user_id, NOW(), 0
|
||||
);
|
||||
|
||||
-- 一级部门:销售部
|
||||
INSERT INTO sys_dept (
|
||||
id, parent_id, dept_name, dept_category_code, status,
|
||||
leader, leader_phone, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
@dept_sales_id, @dept_root_id, '销售部', 'bm', '1',
|
||||
NULL, NULL, @tenant_no, 10, '数据迁移脚本重建',
|
||||
@admin_user_id, @dept_root_id, NOW(), @admin_user_id, NOW(), 0
|
||||
);
|
||||
|
||||
-- 一级部门:人力资源部
|
||||
INSERT INTO sys_dept (
|
||||
id, parent_id, dept_name, dept_category_code, status,
|
||||
leader, leader_phone, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
@dept_hr_id, @dept_root_id, '人力资源部', 'bm', '1',
|
||||
NULL, NULL, @tenant_no, 20, '数据迁移脚本重建',
|
||||
@admin_user_id, @dept_root_id, NOW(), @admin_user_id, NOW(), 0
|
||||
);
|
||||
|
||||
-- 一级部门:生产现场部
|
||||
INSERT INTO sys_dept (
|
||||
id, parent_id, dept_name, dept_category_code, status,
|
||||
leader, leader_phone, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
@dept_prod_id, @dept_root_id, '生产现场部', 'bm', '1',
|
||||
NULL, NULL, @tenant_no, 30, '数据迁移脚本重建',
|
||||
@admin_user_id, @dept_root_id, NOW(), @admin_user_id, NOW(), 0
|
||||
);
|
||||
|
||||
-- admin 挂到根公司(与重建后 ID 一致,幂等)
|
||||
UPDATE sys_user
|
||||
SET dept_id = @dept_root_id,
|
||||
update_by = @admin_user_id,
|
||||
update_time = NOW()
|
||||
WHERE id = @admin_user_id COLLATE utf8mb4_unicode_ci
|
||||
AND tenant_no = @tenant_no COLLATE utf8mb4_unicode_ci
|
||||
AND del_flag = 0;
|
||||
|
||||
COMMIT;
|
||||
|
||||
-- 验收查询
|
||||
SELECT id, parent_id, dept_name, dept_category_code, order_num, status
|
||||
FROM sys_dept
|
||||
WHERE tenant_no = @tenant_no COLLATE utf8mb4_unicode_ci
|
||||
AND del_flag = 0
|
||||
ORDER BY parent_id, order_num, dept_name;
|
||||
|
||||
SELECT id, user_no, nick_name, dept_id
|
||||
FROM sys_user
|
||||
WHERE tenant_no = @tenant_no COLLATE utf8mb4_unicode_ci
|
||||
AND del_flag = 0
|
||||
ORDER BY user_no;
|
||||
@@ -0,0 +1,115 @@
|
||||
#!/usr/bin/env python3
|
||||
"""仅刷新 5 个业务角色的菜单授权(不删角色、不动用户绑定)。
|
||||
|
||||
用于修复「角色只勾 F 按钮、缺少 C 页面 :list」导致前端侧栏为空的问题。
|
||||
|
||||
用法:
|
||||
cd backend && ./venv/bin/python scripts/refresh_business_role_menus.py --env-file .env.production
|
||||
./venv/bin/python scripts/refresh_business_role_menus.py --dry-run --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import sys
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
from scripts.setup_business_roles import ( # noqa: E402
|
||||
MODULE_MENU_ROOTS,
|
||||
NEW_ROLES,
|
||||
TENANT_NO,
|
||||
collect_subtree_menu_ids,
|
||||
grant_module_menus,
|
||||
perm_menu_ids,
|
||||
)
|
||||
|
||||
|
||||
def load_settings_env(env_file: str) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
path = Path(env_file) if env_file else BACKEND_ROOT / ".env.production"
|
||||
if not path.is_absolute():
|
||||
path = BACKEND_ROOT / path
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def verify_user_menu_codes(engine, user_no: str) -> None:
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.services.web_auth_roles import iter_user_menu_perm_codes
|
||||
|
||||
with Session(engine) as db:
|
||||
row = db.execute(
|
||||
text(
|
||||
"""
|
||||
SELECT id FROM sys_user
|
||||
WHERE tenant_no = :tenant AND user_no = :user_no AND del_flag = 0
|
||||
LIMIT 1
|
||||
"""
|
||||
),
|
||||
{"tenant": TENANT_NO, "user_no": user_no},
|
||||
).first()
|
||||
if not row:
|
||||
print(f" [verify] 用户不存在: {user_no}")
|
||||
return
|
||||
uid = str(row[0])
|
||||
codes = sorted(iter_user_menu_perm_codes(db, uid, TENANT_NO))
|
||||
list_codes = [c for c in codes if c.endswith(":list")]
|
||||
print(f" [verify] {user_no}: 共 {len(codes)} 个 perms,其中 :list {len(list_codes)} 个")
|
||||
if list_codes:
|
||||
print(f" 示例: {', '.join(list_codes[:5])}...")
|
||||
else:
|
||||
print(" 警告: 无任何 :list 权限,前端侧栏仍会为空")
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="刷新业务角色菜单授权")
|
||||
parser.add_argument("--env-file", default=".env.production")
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--verify-user", default="方金强", help="刷新后校验该用户的 menuCodes")
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file)
|
||||
settings = load_runtime_settings()
|
||||
engine = create_engine(settings.DATABASE_URL, pool_pre_ping=True)
|
||||
|
||||
print("=== refresh_business_role_menus ===")
|
||||
print(f"模式: {'DRY-RUN' if args.dry_run else 'EXECUTE'}")
|
||||
print(f"租户: {TENANT_NO}")
|
||||
print()
|
||||
|
||||
with engine.begin() as conn:
|
||||
subtree = collect_subtree_menu_ids(conn, MODULE_MENU_ROOTS, TENANT_NO)
|
||||
grant_ids = perm_menu_ids(conn, subtree, TENANT_NO)
|
||||
print(f"模块子树 {len(subtree)} 项,带 perms 菜单 {len(grant_ids)} 项")
|
||||
for role_name, role_id in NEW_ROLES.items():
|
||||
cnt = grant_module_menus(conn, role_id, grant_ids, TENANT_NO, args.dry_run)
|
||||
print(f" {role_name}: {cnt} 项")
|
||||
|
||||
if not args.dry_run and args.verify_user:
|
||||
print()
|
||||
print("校验 menuCodes:")
|
||||
verify_user_menu_codes(engine, args.verify_user)
|
||||
|
||||
print("完成.")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,268 @@
|
||||
#!/usr/bin/env python3
|
||||
"""将门户 crm_product.product_no 统一为 SXWL + 6 位流水,并写出编号映射 CSV。
|
||||
|
||||
设计:docs/superpowers/specs/2026-07-12-crm-product-no-renumber-design.md
|
||||
|
||||
用法:
|
||||
cd backend
|
||||
venv/bin/python scripts/renumber_crm_product_no.py --dry-run --env-file .env.production
|
||||
|
||||
venv/bin/python scripts/renumber_crm_product_no.py --apply --env-file .env.production \\
|
||||
--mapping-out ../docs/data-migration/mappings/crm_product_no_mapping.csv
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
DEFAULT_TENANT_NO = "shanxia2.0"
|
||||
PRODUCT_NO_PREFIX = "SXWL"
|
||||
PRODUCT_NO_SEQ_LEN = 6
|
||||
NEW_NO_PATTERN = re.compile(rf"^{PRODUCT_NO_PREFIX}[0-9]{{{PRODUCT_NO_SEQ_LEN}}}$")
|
||||
TEMP_PREFIX = "__REN_"
|
||||
|
||||
|
||||
@dataclass
|
||||
class RenumberStats:
|
||||
total: int = 0
|
||||
to_update: int = 0
|
||||
skipped: int = 0
|
||||
updated: int = 0
|
||||
warnings: List[str] = field(default_factory=list)
|
||||
|
||||
|
||||
def load_settings_env(env_file: Optional[str]) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
candidates: List[Path] = []
|
||||
if env_file:
|
||||
p = Path(env_file)
|
||||
candidates.append(p if p.is_absolute() else BACKEND_ROOT / p)
|
||||
candidates.extend([BACKEND_ROOT / ".env.production", BACKEND_ROOT / ".env"])
|
||||
for path in candidates:
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
break
|
||||
|
||||
|
||||
def product_id_sort_key(product_id: str) -> int:
|
||||
try:
|
||||
return int(product_id)
|
||||
except (TypeError, ValueError):
|
||||
return 0
|
||||
|
||||
|
||||
def format_new_product_no(seq: int) -> str:
|
||||
if seq < 1 or seq > 10**PRODUCT_NO_SEQ_LEN - 1:
|
||||
raise ValueError(f"序号超出范围: {seq}")
|
||||
return f"{PRODUCT_NO_PREFIX}{seq:0{PRODUCT_NO_SEQ_LEN}d}"
|
||||
|
||||
|
||||
def fetch_products(engine: Engine, tenant_no: str) -> List[dict]:
|
||||
sql = text(
|
||||
"""
|
||||
SELECT id, product_no, product_name, category_id
|
||||
FROM crm_product
|
||||
WHERE tenant_no = :tenant_no AND del_flag = 0
|
||||
"""
|
||||
)
|
||||
with engine.connect() as conn:
|
||||
rows = [dict(r._mapping) for r in conn.execute(sql, {"tenant_no": tenant_no})]
|
||||
rows.sort(key=lambda r: product_id_sort_key(str(r["id"])))
|
||||
return rows
|
||||
|
||||
|
||||
def build_mapping(rows: List[dict], renumbered_at: Optional[str] = None) -> List[dict]:
|
||||
mapping: List[dict] = []
|
||||
for seq, row in enumerate(rows, start=1):
|
||||
pid = str(row["id"])
|
||||
old_no = (row.get("product_no") or "").strip()
|
||||
new_no = format_new_product_no(seq)
|
||||
mapping.append(
|
||||
{
|
||||
"product_id": pid,
|
||||
"old_product_no": old_no,
|
||||
"new_product_no": new_no,
|
||||
"product_name": (row.get("product_name") or "")[:200],
|
||||
"category_id": str(row.get("category_id") or ""),
|
||||
"seq": seq,
|
||||
"renumbered_at": renumbered_at or "",
|
||||
}
|
||||
)
|
||||
return mapping
|
||||
|
||||
|
||||
def validate_mapping(mapping: List[dict], stats: RenumberStats) -> None:
|
||||
new_nos = [m["new_product_no"] for m in mapping]
|
||||
if len(new_nos) != len(set(new_nos)):
|
||||
stats.warnings.append("新编号存在重复")
|
||||
old_nos = [m["old_product_no"] for m in mapping if m["old_product_no"]]
|
||||
if len(old_nos) != len(set(old_nos)):
|
||||
stats.warnings.append("旧编号存在重复(仍将按 product_id 映射)")
|
||||
for m in mapping:
|
||||
if not NEW_NO_PATTERN.match(m["new_product_no"]):
|
||||
stats.warnings.append(f"非法新编号: {m['new_product_no']} (id={m['product_id']})")
|
||||
|
||||
|
||||
def write_mapping_csv(path: Path, mapping: List[dict], renumbered_at: str) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
for row in mapping:
|
||||
if not row.get("renumbered_at"):
|
||||
row["renumbered_at"] = renumbered_at
|
||||
fieldnames = [
|
||||
"product_id",
|
||||
"old_product_no",
|
||||
"new_product_no",
|
||||
"product_name",
|
||||
"category_id",
|
||||
"seq",
|
||||
"renumbered_at",
|
||||
]
|
||||
with path.open("w", encoding="utf-8", newline="") as f:
|
||||
writer = csv.DictWriter(f, fieldnames=fieldnames)
|
||||
writer.writeheader()
|
||||
writer.writerows(mapping)
|
||||
|
||||
|
||||
def apply_renumber(engine: Engine, mapping: List[dict], tenant_no: str, stats: RenumberStats) -> None:
|
||||
"""两阶段 UPDATE,避免 uk_product_no 中间态冲突。"""
|
||||
phase1_sql = text(
|
||||
"""
|
||||
UPDATE crm_product
|
||||
SET product_no = :temp_no, update_time = NOW()
|
||||
WHERE id = :id AND tenant_no = :tenant_no AND del_flag = 0
|
||||
"""
|
||||
)
|
||||
phase2_sql = text(
|
||||
"""
|
||||
UPDATE crm_product
|
||||
SET product_no = :new_no, update_time = NOW()
|
||||
WHERE id = :id AND tenant_no = :tenant_no AND del_flag = 0
|
||||
"""
|
||||
)
|
||||
|
||||
with engine.begin() as conn:
|
||||
for m in mapping:
|
||||
old_no = m["old_product_no"]
|
||||
new_no = m["new_product_no"]
|
||||
if old_no == new_no:
|
||||
stats.skipped += 1
|
||||
continue
|
||||
stats.to_update += 1
|
||||
temp_no = f"{TEMP_PREFIX}{m['product_id']}"[:50]
|
||||
conn.execute(
|
||||
phase1_sql,
|
||||
{"temp_no": temp_no, "id": m["product_id"], "tenant_no": tenant_no},
|
||||
)
|
||||
for m in mapping:
|
||||
old_no = m["old_product_no"]
|
||||
new_no = m["new_product_no"]
|
||||
if old_no == new_no:
|
||||
continue
|
||||
result = conn.execute(
|
||||
phase2_sql,
|
||||
{"new_no": new_no, "id": m["product_id"], "tenant_no": tenant_no},
|
||||
)
|
||||
stats.updated += int(result.rowcount or 0)
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="CRM 产品编号统一为 SXWL + 6 位流水")
|
||||
parser.add_argument("--dry-run", action="store_true", help="仅预览,不写库")
|
||||
parser.add_argument("--apply", action="store_true", help="执行 UPDATE 并写映射")
|
||||
parser.add_argument("--env-file", default=None, help="如 .env.production")
|
||||
parser.add_argument(
|
||||
"--mapping-out",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/crm_product_no_mapping.csv"),
|
||||
help="编号映射 CSV 输出路径",
|
||||
)
|
||||
parser.add_argument("--tenant-no", default=DEFAULT_TENANT_NO)
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.apply and args.dry_run:
|
||||
print("请只指定 --dry-run 或 --apply 之一")
|
||||
return 1
|
||||
if not args.apply and not args.dry_run:
|
||||
args.dry_run = True
|
||||
|
||||
load_settings_env(args.env_file)
|
||||
from app.core.config import Settings
|
||||
|
||||
settings = Settings()
|
||||
engine = create_engine(settings.DATABASE_URL, pool_pre_ping=True)
|
||||
|
||||
stats = RenumberStats()
|
||||
rows = fetch_products(engine, args.tenant_no)
|
||||
stats.total = len(rows)
|
||||
if stats.total == 0:
|
||||
print("目标库无有效产品,退出")
|
||||
return 1
|
||||
|
||||
now_str = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
mapping = build_mapping(rows, renumbered_at=now_str if args.apply else "")
|
||||
validate_mapping(mapping, stats)
|
||||
|
||||
for m in mapping:
|
||||
if m["old_product_no"] != m["new_product_no"]:
|
||||
stats.to_update += 1
|
||||
else:
|
||||
stats.skipped += 1
|
||||
|
||||
mode = "DRY-RUN" if args.dry_run else "APPLY"
|
||||
print(f"租户: {args.tenant_no}")
|
||||
print(f"有效产品: {stats.total}")
|
||||
print(f"需更新编号: {stats.to_update} 已符合跳过: {stats.skipped}")
|
||||
print("\n抽样映射(前 5 / 后 3):")
|
||||
for m in mapping[:5]:
|
||||
print(f" id={m['product_id']} {m['old_product_no']!r} -> {m['new_product_no']}")
|
||||
if len(mapping) > 8:
|
||||
print(" ...")
|
||||
for m in mapping[-3:]:
|
||||
print(f" id={m['product_id']} {m['old_product_no']!r} -> {m['new_product_no']}")
|
||||
next_seq = stats.total + 1
|
||||
print(f"\n下一自动编号应为: {format_new_product_no(next_seq)}")
|
||||
|
||||
if stats.warnings:
|
||||
print("\n警告:")
|
||||
for w in stats.warnings:
|
||||
print(f" - {w}")
|
||||
|
||||
if args.dry_run:
|
||||
print("\n=== 产品编号统一 [DRY-RUN] ===")
|
||||
print("未写库。确认后加 --apply --mapping-out ...")
|
||||
return 0
|
||||
|
||||
mapping_path = Path(args.mapping_out)
|
||||
if not mapping_path.is_absolute():
|
||||
mapping_path = BACKEND_ROOT / mapping_path
|
||||
|
||||
apply_stats = RenumberStats(total=stats.total)
|
||||
apply_renumber(engine, mapping, args.tenant_no, apply_stats)
|
||||
|
||||
write_mapping_csv(mapping_path, mapping, now_str)
|
||||
|
||||
print(f"\n映射已写入: {mapping_path}")
|
||||
print("\n=== 产品编号统一 [COMMITTED] ===")
|
||||
print(f"更新行数: {apply_stats.updated}")
|
||||
print(f"跳过(已符合): {apply_stats.skipped}")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,412 @@
|
||||
#!/usr/bin/env python3
|
||||
"""重置业务角色:保留超级管理员,创建 5 个销售体系角色并授权菜单、绑定用户。
|
||||
|
||||
用法:
|
||||
cd backend && ./venv/bin/python scripts/setup_business_roles.py --env-file .env.production
|
||||
./venv/bin/python scripts/setup_business_roles.py --dry-run --env-file .env.production
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Set
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
from app.core.utils import generate_uuid
|
||||
|
||||
TENANT_NO = "shanxia2.0"
|
||||
ADMIN_USER_ID = "d3000000000000000000000000000001"
|
||||
SUPER_ADMIN_ROLE_ID = "097bd2c6-4e72-11f1-9f47-00163e3bdd96"
|
||||
|
||||
# 四个一级业务模块根菜单
|
||||
MODULE_MENU_ROOTS = [
|
||||
"CRM00000000000000000000000000001", # CRM管理
|
||||
"BX00000000000000000000000000001", # 报销管理
|
||||
"DB00000000000000000000000000001", # 地磅管理
|
||||
"PL_MENU_ROOT", # 运输管理
|
||||
]
|
||||
|
||||
NEW_ROLES: Dict[str, str] = {
|
||||
"管理员": "R65CAAE057914CCCAE2A81BE627A5001",
|
||||
"销售主管": "R65CAAE057914CCCAE2A81BE627A5002",
|
||||
"销售计划员": "R65CAAE057914CCCAE2A81BE627A5003",
|
||||
"销售实录员": "R65CAAE057914CCCAE2A81BE627A5004",
|
||||
"销售办证员": "R65CAAE057914CCCAE2A81BE627A5005",
|
||||
}
|
||||
|
||||
USER_ROLE_ASSIGNMENTS: Dict[str, List[str]] = {
|
||||
"管理员": ["吴良萍", "吴九华", "汪璇"],
|
||||
"销售主管": ["方金强", "吴九华"],
|
||||
"销售计划员": ["程欢欢"],
|
||||
"销售实录员": ["郑丽娜"],
|
||||
"销售办证员": ["刘丹"],
|
||||
}
|
||||
|
||||
|
||||
def load_runtime_settings():
|
||||
from app.core.config import Settings
|
||||
|
||||
return Settings()
|
||||
|
||||
|
||||
def load_settings_env(env_file: str) -> None:
|
||||
if env_file:
|
||||
os.environ["ENV_FILE"] = env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
path = Path(env_file) if env_file else BACKEND_ROOT / ".env.production"
|
||||
if not path.is_absolute():
|
||||
path = BACKEND_ROOT / path
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
|
||||
|
||||
def collect_subtree_menu_ids(conn, root_ids: List[str], tenant_no: str) -> Set[str]:
|
||||
"""BFS 收集模块根下全部菜单(含中间目录)。"""
|
||||
all_ids: Set[str] = set(root_ids)
|
||||
frontier = list(root_ids)
|
||||
while frontier:
|
||||
placeholders = ", ".join(f":p{i}" for i in range(len(frontier)))
|
||||
params = {f"p{i}": frontier[i] for i in range(len(frontier))}
|
||||
params["tenant"] = tenant_no
|
||||
rows = conn.execute(
|
||||
text(
|
||||
f"""
|
||||
SELECT id FROM sys_menu
|
||||
WHERE del_flag = 0 AND tenant_no = :tenant
|
||||
AND parent_id IN ({placeholders})
|
||||
"""
|
||||
),
|
||||
params,
|
||||
).fetchall()
|
||||
new_ids = [str(r[0]) for r in rows if str(r[0]) not in all_ids]
|
||||
if not new_ids:
|
||||
break
|
||||
all_ids.update(new_ids)
|
||||
frontier = new_ids
|
||||
return all_ids
|
||||
|
||||
|
||||
def perm_menu_ids(conn, menu_ids: Set[str], tenant_no: str) -> List[str]:
|
||||
"""持久化所有带 perms 的菜单(C 页面 :list + F 按钮),与前端 menuCode 过滤对齐。"""
|
||||
if not menu_ids:
|
||||
return []
|
||||
placeholders = ", ".join(f":m{i}" for i in range(len(menu_ids)))
|
||||
params = {f"m{i}": mid for i, mid in enumerate(sorted(menu_ids))}
|
||||
params["tenant"] = tenant_no
|
||||
rows = conn.execute(
|
||||
text(
|
||||
f"""
|
||||
SELECT id FROM sys_menu
|
||||
WHERE del_flag = 0 AND tenant_no = :tenant AND id IN ({placeholders})
|
||||
AND perms IS NOT NULL AND TRIM(perms) <> ''
|
||||
ORDER BY id
|
||||
"""
|
||||
),
|
||||
params,
|
||||
).fetchall()
|
||||
return [str(r[0]) for r in rows if r and r[0]]
|
||||
|
||||
|
||||
def leaf_menu_ids(conn, menu_ids: Set[str], tenant_no: str) -> List[str]:
|
||||
"""与角色管理页一致:仅持久化叶子菜单(无子节点的菜单)。"""
|
||||
if not menu_ids:
|
||||
return []
|
||||
placeholders = ", ".join(f":m{i}" for i in range(len(menu_ids)))
|
||||
params = {f"m{i}": mid for i, mid in enumerate(sorted(menu_ids))}
|
||||
params["tenant"] = tenant_no
|
||||
rows = conn.execute(
|
||||
text(
|
||||
f"""
|
||||
SELECT id, parent_id FROM sys_menu
|
||||
WHERE del_flag = 0 AND tenant_no = :tenant AND id IN ({placeholders})
|
||||
"""
|
||||
),
|
||||
params,
|
||||
).mappings().all()
|
||||
id_set = {str(r["id"]) for r in rows}
|
||||
parents_with_children: Set[str] = set()
|
||||
for r in rows:
|
||||
pid = str(r.get("parent_id") or "")
|
||||
if pid in id_set:
|
||||
parents_with_children.add(pid)
|
||||
leaves = sorted(mid for mid in id_set if mid not in parents_with_children)
|
||||
return leaves
|
||||
|
||||
|
||||
def fetch_user_id_map(conn, tenant_no: str) -> Dict[str, str]:
|
||||
rows = conn.execute(
|
||||
text(
|
||||
"""
|
||||
SELECT id, user_no, dept_id FROM sys_user
|
||||
WHERE tenant_no = :tenant AND del_flag = 0
|
||||
"""
|
||||
),
|
||||
{"tenant": tenant_no},
|
||||
).mappings().all()
|
||||
return {str(r["user_no"]): {"id": str(r["id"]), "dept_id": str(r.get("dept_id") or "")} for r in rows}
|
||||
|
||||
|
||||
def purge_non_super_roles(conn, tenant_no: str, dry_run: bool) -> int:
|
||||
cnt = conn.execute(
|
||||
text(
|
||||
"""
|
||||
SELECT COUNT(*) FROM sys_role
|
||||
WHERE tenant_no = :tenant AND del_flag = 0 AND id <> :super_id
|
||||
"""
|
||||
),
|
||||
{"tenant": tenant_no, "super_id": SUPER_ADMIN_ROLE_ID},
|
||||
).scalar()
|
||||
if dry_run:
|
||||
return int(cnt or 0)
|
||||
now = datetime.now()
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
UPDATE sys_role_menu
|
||||
SET del_flag = 1, update_time = :now
|
||||
WHERE tenant_no = :tenant AND role_id <> :super_id AND del_flag = 0
|
||||
"""
|
||||
),
|
||||
{"tenant": tenant_no, "super_id": SUPER_ADMIN_ROLE_ID, "now": now},
|
||||
)
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
DELETE FROM sys_role_menu
|
||||
WHERE tenant_no = :tenant AND role_id <> :super_id
|
||||
"""
|
||||
),
|
||||
{"tenant": tenant_no, "super_id": SUPER_ADMIN_ROLE_ID},
|
||||
)
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
UPDATE sys_role_data_scope_detail
|
||||
SET del_flag = 1, update_time = :now
|
||||
WHERE tenant_no = :tenant AND role_id <> :super_id AND del_flag = 0
|
||||
"""
|
||||
),
|
||||
{"tenant": tenant_no, "super_id": SUPER_ADMIN_ROLE_ID, "now": now},
|
||||
)
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
UPDATE sys_user_role
|
||||
SET del_flag = 1, update_time = :now
|
||||
WHERE tenant_no = :tenant AND role_id <> :super_id AND del_flag = 0
|
||||
"""
|
||||
),
|
||||
{"tenant": tenant_no, "super_id": SUPER_ADMIN_ROLE_ID, "now": now},
|
||||
)
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
UPDATE sys_role
|
||||
SET del_flag = 1, update_time = :now, update_by = :admin
|
||||
WHERE tenant_no = :tenant AND del_flag = 0 AND id <> :super_id
|
||||
"""
|
||||
),
|
||||
{"tenant": tenant_no, "super_id": SUPER_ADMIN_ROLE_ID, "now": now, "admin": ADMIN_USER_ID},
|
||||
)
|
||||
return int(cnt or 0)
|
||||
|
||||
|
||||
def ensure_new_roles(conn, tenant_no: str, dry_run: bool) -> None:
|
||||
order = 10
|
||||
for role_name, role_id in NEW_ROLES.items():
|
||||
exists = conn.execute(
|
||||
text(
|
||||
"""
|
||||
SELECT id FROM sys_role
|
||||
WHERE id = :id AND tenant_no = :tenant AND del_flag = 0
|
||||
LIMIT 1
|
||||
"""
|
||||
),
|
||||
{"id": role_id, "tenant": tenant_no},
|
||||
).first()
|
||||
if exists:
|
||||
order += 10
|
||||
continue
|
||||
if not dry_run:
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
INSERT INTO sys_role (
|
||||
id, role_name, data_scope, status, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :name, '1', '1', :tenant, :order_num,
|
||||
'用户迁移后业务角色初始化', :admin, '', :now, :admin, :now, 0
|
||||
)
|
||||
"""
|
||||
),
|
||||
{
|
||||
"id": role_id,
|
||||
"name": role_name,
|
||||
"tenant": tenant_no,
|
||||
"order_num": order,
|
||||
"admin": ADMIN_USER_ID,
|
||||
"now": datetime.now(),
|
||||
},
|
||||
)
|
||||
order += 10
|
||||
|
||||
|
||||
def grant_module_menus(conn, role_id: str, leaf_ids: List[str], tenant_no: str, dry_run: bool) -> int:
|
||||
if dry_run:
|
||||
return len(leaf_ids)
|
||||
conn.execute(
|
||||
text("DELETE FROM sys_role_menu WHERE role_id = :rid"),
|
||||
{"rid": role_id},
|
||||
)
|
||||
now = datetime.now()
|
||||
for mid in leaf_ids:
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
INSERT INTO sys_role_menu (
|
||||
id, role_id, menu_id, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :role_id, :menu_id, :tenant, 0, 'setup_business_roles',
|
||||
:admin, '', :now, :admin, :now, 0
|
||||
)
|
||||
"""
|
||||
),
|
||||
{
|
||||
"id": generate_uuid(),
|
||||
"role_id": role_id,
|
||||
"menu_id": mid,
|
||||
"tenant": tenant_no,
|
||||
"admin": ADMIN_USER_ID,
|
||||
"now": now,
|
||||
},
|
||||
)
|
||||
return len(leaf_ids)
|
||||
|
||||
|
||||
def assign_user_roles(
|
||||
conn,
|
||||
user_map: Dict[str, dict],
|
||||
tenant_no: str,
|
||||
dry_run: bool,
|
||||
) -> List[dict]:
|
||||
rows_out: List[dict] = []
|
||||
for role_name, user_nos in USER_ROLE_ASSIGNMENTS.items():
|
||||
role_id = NEW_ROLES[role_name]
|
||||
for user_no in user_nos:
|
||||
info = user_map.get(user_no)
|
||||
if not info:
|
||||
raise ValueError(f"用户不存在: {user_no}")
|
||||
exists = conn.execute(
|
||||
text(
|
||||
"""
|
||||
SELECT id FROM sys_user_role
|
||||
WHERE user_id = :uid AND role_id = :rid AND tenant_no = :tenant AND del_flag = 0
|
||||
LIMIT 1
|
||||
"""
|
||||
),
|
||||
{"uid": info["id"], "rid": role_id, "tenant": tenant_no},
|
||||
).first()
|
||||
if exists:
|
||||
rows_out.append({"user_no": user_no, "role_name": role_name, "status": "exists"})
|
||||
continue
|
||||
if not dry_run:
|
||||
conn.execute(
|
||||
text(
|
||||
"""
|
||||
INSERT INTO sys_user_role (
|
||||
id, user_id, role_id, tenant_no, order_num, remark,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
:id, :uid, :rid, :tenant, 0, 'setup_business_roles',
|
||||
:admin, :dept_id, :now, :admin, :now, 0
|
||||
)
|
||||
"""
|
||||
),
|
||||
{
|
||||
"id": generate_uuid(),
|
||||
"uid": info["id"],
|
||||
"rid": role_id,
|
||||
"tenant": tenant_no,
|
||||
"admin": ADMIN_USER_ID,
|
||||
"dept_id": info["dept_id"],
|
||||
"now": datetime.now(),
|
||||
},
|
||||
)
|
||||
rows_out.append({"user_no": user_no, "role_name": role_name, "status": "inserted"})
|
||||
return rows_out
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(description="初始化业务角色与菜单权限")
|
||||
parser.add_argument("--env-file", default=".env.production")
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument(
|
||||
"--report-out",
|
||||
default=str(BACKEND_ROOT.parent / "docs/data-migration/mappings/role_setup_result.json"),
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
load_settings_env(args.env_file)
|
||||
settings = load_runtime_settings()
|
||||
engine = create_engine(settings.DATABASE_URL, pool_pre_ping=True)
|
||||
|
||||
print("=== setup_business_roles ===")
|
||||
print(f"模式: {'DRY-RUN' if args.dry_run else 'EXECUTE'}")
|
||||
print(f"租户: {TENANT_NO}")
|
||||
print()
|
||||
|
||||
with engine.begin() as conn:
|
||||
removed = purge_non_super_roles(conn, TENANT_NO, args.dry_run)
|
||||
ensure_new_roles(conn, TENANT_NO, args.dry_run)
|
||||
subtree = collect_subtree_menu_ids(conn, MODULE_MENU_ROOTS, TENANT_NO)
|
||||
grant_ids = perm_menu_ids(conn, subtree, TENANT_NO)
|
||||
menu_grants = {}
|
||||
for role_name, role_id in NEW_ROLES.items():
|
||||
menu_grants[role_name] = grant_module_menus(conn, role_id, grant_ids, TENANT_NO, args.dry_run)
|
||||
user_map = fetch_user_id_map(conn, TENANT_NO)
|
||||
assignments = assign_user_roles(conn, user_map, TENANT_NO, args.dry_run)
|
||||
|
||||
report = {
|
||||
"generated_at": datetime.now().isoformat(timespec="seconds"),
|
||||
"removed_old_roles": removed,
|
||||
"module_menu_roots": MODULE_MENU_ROOTS,
|
||||
"subtree_menu_count": len(subtree),
|
||||
"perm_menu_count": len(grant_ids),
|
||||
"menu_grants_per_role": menu_grants,
|
||||
"user_role_assignments": assignments,
|
||||
"new_roles": NEW_ROLES,
|
||||
}
|
||||
|
||||
if not args.dry_run:
|
||||
Path(args.report_out).write_text(
|
||||
json.dumps(report, ensure_ascii=False, indent=2), encoding="utf-8"
|
||||
)
|
||||
|
||||
print(f"清理旧角色(非超级管理员): {removed}")
|
||||
print(f"模块子树菜单数: {len(subtree)},带 perms 菜单数: {len(grant_ids)}")
|
||||
for role_name, cnt in menu_grants.items():
|
||||
print(f" {role_name}: {cnt} 个菜单权限")
|
||||
print("用户-角色绑定:")
|
||||
for item in assignments:
|
||||
print(f" {item['user_no']} -> {item['role_name']} ({item['status']})")
|
||||
if not args.dry_run:
|
||||
print(f"报告: {args.report_out}")
|
||||
print("完成.")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env python3
|
||||
"""校验指定用户的 Web menuCodes 是否包含前端侧栏所需的 :list 权限。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(BACKEND_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(BACKEND_ROOT))
|
||||
|
||||
TENANT_NO = "shanxia2.0"
|
||||
|
||||
# 前端侧栏关键 :list(与 sqxp.ts / pl.ts meta.menuCode 对齐)
|
||||
REQUIRED_LIST_CODES = [
|
||||
"crm:clue:list",
|
||||
"crm:customer:list",
|
||||
"crm:customerPool:list",
|
||||
"bx:expenseItem:list",
|
||||
"db:dashboard:list",
|
||||
"pl:plan:list",
|
||||
]
|
||||
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--env-file", default=".env.production")
|
||||
parser.add_argument("--user-no", default="方金强")
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.env_file:
|
||||
os.environ["ENV_FILE"] = args.env_file
|
||||
from dotenv import load_dotenv
|
||||
|
||||
path = Path(args.env_file)
|
||||
if not path.is_absolute():
|
||||
path = BACKEND_ROOT / path
|
||||
if path.is_file():
|
||||
load_dotenv(path, override=True)
|
||||
|
||||
from app.core.config import Settings
|
||||
from app.services.web_auth_roles import iter_user_menu_perm_codes
|
||||
|
||||
engine = create_engine(Settings().DATABASE_URL, pool_pre_ping=True)
|
||||
with Session(engine) as db:
|
||||
row = db.execute(
|
||||
text(
|
||||
"""
|
||||
SELECT id, nick_name FROM sys_user
|
||||
WHERE tenant_no = :tenant AND user_no = :user_no AND del_flag = 0
|
||||
LIMIT 1
|
||||
"""
|
||||
),
|
||||
{"tenant": TENANT_NO, "user_no": args.user_no},
|
||||
).first()
|
||||
if not row:
|
||||
print(f"用户不存在: {args.user_no}")
|
||||
return 1
|
||||
uid, nick = str(row[0]), row[1]
|
||||
codes = iter_user_menu_perm_codes(db, uid, TENANT_NO)
|
||||
print(f"用户: {args.user_no} ({nick}) id={uid}")
|
||||
print(f"menuCodes 总数: {len(codes)}")
|
||||
list_codes = sorted(c for c in codes if c.endswith(":list"))
|
||||
print(f":list 数量: {len(list_codes)}")
|
||||
missing = [c for c in REQUIRED_LIST_CODES if c not in codes]
|
||||
if missing:
|
||||
print(f"缺少关键 :list ({len(missing)}): {', '.join(missing)}")
|
||||
return 1
|
||||
print("关键 :list 均已具备,前端侧栏应可正常展示(需配合最新 web-admin 构建)。")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,101 @@
|
||||
# 生产数据同步总体规划
|
||||
|
||||
> **编写日期**:2026-07-12
|
||||
> **状态**:P0 方案已定稿(用户:中文名登录)
|
||||
> **目标库**:`shanxia2.0`(租户 `tenant_no = 'shanxia2.0'`)
|
||||
|
||||
---
|
||||
|
||||
## 1. 目标
|
||||
|
||||
1. 在门户 2.0 建立**统一用户体系**(`sys_user` + 角色 + 菜单权限)
|
||||
2. 将 sx 库 CRM、报销生产数据迁入对应 `crm_*`、`bx_*` 表
|
||||
3. 将地磅库业务数据迁入 `db_*` 表
|
||||
4. 全过程可审计、可回滚、可重复执行(幂等)
|
||||
|
||||
---
|
||||
|
||||
## 2. 已确认决策
|
||||
|
||||
| 决策项 | 结论 |
|
||||
|--------|------|
|
||||
| 登录账号(`user_no`) | **以中文名为准**(真实姓名);见 [02-user-unification.md](./02-user-unification.md) |
|
||||
| 超级管理员 | 保留 `admin` 账号(不按中文名改) |
|
||||
| 租户编号 | 统一 `shanxia2.0` |
|
||||
| **主键 ID(全局)** | **原系统 id 原样迁入**:`bigint`/`int` → 同值 `VARCHAR` 字符串;详见 [05-id-preservation-policy.md](./05-id-preservation-policy.md) |
|
||||
| 主键例外 | **仅 `sys_user`**:P0 已用门户 UUID,外键经 `user_mapping`;字典 id 按类型+值对齐 |
|
||||
| 密码 | 优先沿用 bx/CRM 的 bcrypt;地磅明文密码**不迁入**,统一重置临时密码 |
|
||||
| 地磅用户 | 并入 `sys_user`,分配「地磅操作员」角色;无中文名的账号单独处理 |
|
||||
|
||||
---
|
||||
|
||||
## 3. 阶段划分
|
||||
|
||||
```
|
||||
P0 基础主数据
|
||||
├── 字典 sys_dict_data
|
||||
├── 部门 sys_dept
|
||||
├── 角色 sys_role + sys_role_menu
|
||||
└── 用户 sys_user + sys_user_role ← 阻塞项,最先人工确认映射表
|
||||
|
||||
P1 CRM 业务(~7110 行级 INSERT)
|
||||
└── 产品 → 客户 → 线索 → 商机 → 报价 → 合同(按依赖顺序)
|
||||
|
||||
P2 报销业务(~857 行)
|
||||
└── 费用项/工作流 → 备用金 → 报销单 → 附件
|
||||
|
||||
P3 地磅业务(~4254 行)
|
||||
└── 车辆 → migrate_dibang_data.py(计划/地磅单/出入库)
|
||||
|
||||
P4 验收
|
||||
└── 抽样单据 + 登录 + 附件 URL + 行数对账
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. 执行原则
|
||||
|
||||
1. **先映射、后灌数**:P0 生成 `user_mapping`;业务表 ID 多为恒等映射,见 [05-id-preservation-policy.md](./05-id-preservation-policy.md)
|
||||
2. **dry-run 优先**:所有脚本支持 `--dry-run`,生产执行前在测试库跑通
|
||||
3. **只追加日志**:`phase-*/logs/` 按批次追加,不覆盖
|
||||
4. **备份**:每阶段执行前 mysqldump 目标库
|
||||
5. **不双写**:切换窗口内旧系统只读对照,不做双向同步
|
||||
|
||||
---
|
||||
|
||||
## 5. 脚本与产物
|
||||
|
||||
| 产物 | 路径 | 状态 |
|
||||
|------|------|------|
|
||||
| 用户映射表 | `mappings/user_mapping.csv` | 已生成初稿 |
|
||||
| 产品分类 ID 映射 | `mappings/crm_product_category_id_mapping.csv` | ✅ 5 行恒等映射 |
|
||||
| 产品 ID 映射 | `mappings/crm_product_id_mapping.csv` | ✅ 239 行恒等映射 |
|
||||
| 产品编号映射 | `mappings/crm_product_no_mapping.csv` | ✅ 239 行 old→new |
|
||||
| 产品编号统一脚本 | `backend/scripts/renumber_crm_product_no.py` | ✅ 已执行 |
|
||||
| CRM ID 映射 | `mappings/crm_id_mapping.csv` | 待 P1(汇总;多为 source_id=new_id) |
|
||||
| 报销 ID 映射 | `mappings/bx_id_mapping.csv` | 待 P2 |
|
||||
| 地磅迁移脚本 | `backend/scripts/migrate_dibang_data.py` | 已有 |
|
||||
| 用户迁移脚本 | `backend/scripts/migrate_users.py` | 已有 |
|
||||
| 产品分类迁移脚本 | `backend/scripts/migrate_crm_product_category.py` | ✅ 已执行 |
|
||||
| 产品迁移脚本 | `backend/scripts/migrate_crm_product.py` | ✅ 已执行(239 行) |
|
||||
|
||||
---
|
||||
|
||||
## 6. 风险摘要
|
||||
|
||||
| 风险 | 对策 |
|
||||
|------|------|
|
||||
| 中文名重复 | 映射表人工审核;冲突时 `user_no` 追加手机后四位 |
|
||||
| 吴九华等手机号不一致 | 映射表标注,合并时取 bx 或 CRM 较新记录 |
|
||||
| 工作流审批人节点 | 导入用户后重绑 `bx_workflow_node.approver_id` |
|
||||
| CRM `create_by` 为 bigint | 经 `user_mapping` 转为门户 `sys_user.id`(用户表为 P0 例外,不保留源 id) |
|
||||
| 附件 MinIO URL 失效 | P4 前批量 HEAD 检查 |
|
||||
|
||||
---
|
||||
|
||||
## 7. 相关文档
|
||||
|
||||
- CRM 数据注意事项:`docs/superpowers/specs/2026-05-30-crm-migration-design.md` §7
|
||||
- 地磅数据脚本说明:`docs/db-migration/00-migration-plan.md` §7
|
||||
- 报销范围:`docs/bx-migration/00-migration-plan.md`(代码移植;数据同步在本目录 P2)
|
||||
- 主键 ID 全局策略:[05-id-preservation-policy.md](./05-id-preservation-policy.md)
|
||||
@@ -0,0 +1,234 @@
|
||||
# 三系统用户账号明细清单
|
||||
|
||||
> **数据来源**:`docs/sql/dibang.sql`、`docs/sql/sx.sql`、`docs/sql/shanxia2.0.sql`(生产快照)
|
||||
> **生成日期**:2026-07-12
|
||||
> **用途**:供业务方勾选移植范围;密码仅标注类型,不列出密文
|
||||
> **登录规则(已确认)**:迁入门户后 `user_no` 以**中文姓名**为准;超级管理员保留 `admin`
|
||||
|
||||
---
|
||||
|
||||
## 一、数量汇总
|
||||
|
||||
| 系统 | 用户表 | 总记录 | 有效/启用 | 已删除/停用 |
|
||||
|------|--------|--------|-----------|------------|
|
||||
| 地磅 | `users` | 15 | 6 | 9 |
|
||||
| 山峡 1.0 · 报销 | `bx_user` | 26 | 25 | 1 |
|
||||
| 山峡 1.0 · CRM | `sys_user` | 12 | 8 | 4 |
|
||||
| 山峡 2.0 · 门户(目标) | `sys_user` | 1 | 1 | 0 |
|
||||
| **源系统合计** | — | **53** | **39** | **14** |
|
||||
|
||||
去重合并后,预计迁入门户约 **31** 个账号(见第六节)。
|
||||
|
||||
---
|
||||
|
||||
## 二、地磅系统(`dibang.sql` → `users`)
|
||||
|
||||
共 **15** 条;密码均为**明文**存储。
|
||||
|
||||
### 2.1 有效账号(6)
|
||||
|
||||
| ID | 登录名 username | 密码类型 | 角色 role | 启用 | 建议门户 user_no | 备注 |
|
||||
|----|----------------|---------|-----------|------|-----------------|------|
|
||||
| 4 | admin | 明文 | admin | 是 | admin(复用门户) | 与门户管理员合并,不新建 |
|
||||
| 5 | gly | 明文 | user | 是 | 管理员 | 地磅管理类账号 |
|
||||
| 6 | shanxia | 明文 | user | 是 | 山峡 | |
|
||||
| 17 | user1 | 明文 | operator | 是 | 过磅员1 | |
|
||||
| 18 | user2 | 明文 | operator | 是 | 过磅员2 | |
|
||||
| 19 | 过磅员 | 明文 | operator | 是 | 过磅员 | 登录名本身为中文 |
|
||||
|
||||
### 2.2 已停用账号(9,建议不移植)
|
||||
|
||||
| ID | 登录名 | 角色 | 启用 | 备注 |
|
||||
|----|--------|------|------|------|
|
||||
| 7 | 3 | admin | 否 | 测试账号 |
|
||||
| 8 | 1 | operator | 否 | 测试账号 |
|
||||
| 9 | 2 | operator | 否 | 测试账号 |
|
||||
| 11 | 4 | operator | 否 | 测试账号 |
|
||||
| 12 | 5 | operator | 否 | 测试账号 |
|
||||
| 13 | 6 | operator | 否 | 测试账号 |
|
||||
| 14 | 7 | operator | 否 | 测试账号 |
|
||||
| 15 | 8 | operator | 否 | 测试账号 |
|
||||
| 16 | 9 | operator | 否 | 测试账号 |
|
||||
|
||||
---
|
||||
|
||||
## 三、报销系统(`sx.sql` → `bx_user`)
|
||||
|
||||
共 **26** 条;密码均为 **bcrypt($2b$12)**。
|
||||
|
||||
### 3.1 有效账号(25)
|
||||
|
||||
| ID | 登录名 username | 真实姓名 | 手机 | 邮箱 | 报销角色 | 状态 |
|
||||
|----|----------------|---------|------|------|---------|------|
|
||||
| 1 | admin | 系统管理员 | 13877662211 | wuzilong@1q.com | 管理员 | 正常 |
|
||||
| 16 | jiuhua | 吴九华 | 13305560059※ | — | 总经理 | 正常 |
|
||||
| 17 | wangxuan2026 | 汪璇 | 18895395317 | — | 财务人员 | 正常 |
|
||||
| 18 | liumaosheng | 刘茂生 | 18955618780 | — | 员工 | 正常 |
|
||||
| 19 | wuliangping | 吴良萍 | 18855101814 | — | 员工 | 正常 |
|
||||
| 20 | fangjinqiang | 方金强 | 18110402102 | — | 员工 | 正常 |
|
||||
| 21 | huangtianbao | 黄天宝 | 13865153716 | — | 员工 | 正常 |
|
||||
| 22 | chenghuanhuan | 程欢欢 | 18855677446 | — | 员工 | 正常 |
|
||||
| 23 | liudan | 刘丹 | 13865565378 | — | 员工 | 正常 |
|
||||
| 24 | Zhenglina | 郑丽娜 | 13522116225 | — | 员工 | 正常 |
|
||||
| 26 | liqin | 李勤 | 13470794894 | — | 员工 | 正常 |
|
||||
| 27 | wuchunsheng | 吴春生 | 18805561555 | — | 员工 | 正常 |
|
||||
| 28 | wuziguo | 吴自国 | 15155081585 | — | 员工 | 正常 |
|
||||
| 29 | panguangrong | 潘光荣 | 13955614150 | — | 员工 | 正常 |
|
||||
| 30 | liudaoyin | 刘道银 | 15855555833 | — | 员工 | 正常 |
|
||||
| 31 | wanghuasheng | 汪华胜 | 13976616618 | — | 员工 | 正常 |
|
||||
| 32 | Wangxiaoyang | 王晓阳 | 19939016266 | — | 员工 | 正常 |
|
||||
| 33 | guoqi | 郭奇 | 13805683372 | — | 员工 | 正常 |
|
||||
| 34 | liuduan | 刘端 | 18749617637 | — | 员工 | 正常 |
|
||||
| 35 | fangchangbiao | 方长彪 | 13225569301 | — | 员工 | 正常 |
|
||||
| 36 | wuzizhai | 吴自寨 | 13855607262 | — | 员工 | 正常 |
|
||||
| 37 | wuzuoquan | 吴祚权 | 19855069273 | — | 员工 | 正常 |
|
||||
| 45 | shenweibin | 沈卫斌 | 18756693937 | — | 员工 | 正常 |
|
||||
| 47 | wangwuyun | 王伍云 | 18815716809 | — | 员工 | 正常 |
|
||||
| 48 | huyinchi | 胡银池 | 13955508997 | — | 员工 | 正常 |
|
||||
|
||||
※ 吴九华:bx 库手机为 `13305560059`;业务已确认迁入门户使用 **`18656008189`**(与 CRM 一致)。
|
||||
|
||||
### 3.2 已删除账号(1,建议不移植)
|
||||
|
||||
| ID | 登录名 | 真实姓名 | 手机 | 备注 |
|
||||
|----|--------|---------|------|------|
|
||||
| 25 | fengchuanzhong | 冯传忠 | 13167719458 | del_flag=1 |
|
||||
|
||||
### 3.3 报销角色定义(`bx_role`)
|
||||
|
||||
| 角色 ID | 角色名 | 编码 |
|
||||
|---------|--------|------|
|
||||
| 1 | 管理员 | ADMIN |
|
||||
| 2 | 员工 | EMPLOYEE |
|
||||
| 3 | 财务人员 | FINANCE |
|
||||
| 4 | 总经理 | GENERAL_MANAGER |
|
||||
|
||||
---
|
||||
|
||||
## 四、CRM 系统(`sx.sql` → `sys_user`)
|
||||
|
||||
共 **12** 条;密码均为 **bcrypt($2a$10)**。
|
||||
状态语义:`status='0'` 正常,`del_flag='0'` 未删除。
|
||||
|
||||
### 4.1 有效账号(8)
|
||||
|
||||
| user_id | 登录名 user_name | 昵称 nick_name | 手机 | 邮箱 | CRM 角色 | 部门 | 最后登录 |
|
||||
|---------|-----------------|-------------|------|------|---------|------|---------|
|
||||
| 1 | admin | 超级管理员 | 15888888811 | 704541015@qq.com | 超级管理员 | 安庆山峡化工 | 2026-07-12 |
|
||||
| 1984880121521848321 | 方金强 | 方金强 | 18110402102 | — | 销售主管 | 安庆山峡化工 | 2025-12-24 |
|
||||
| 1984880722460753922 | 汪璇 | 汪璇 | 18895395317 | — | 行政 | 安庆山峡化工 | — |
|
||||
| 1984880895001837569 | 宋健 | 宋健 | 18297798890 | — | 销售人员 | 安庆山峡化工 | 2025-11-28 |
|
||||
| 1984881038509948929 | 程欢欢 | 程欢欢 | 18855677446 | — | 销售人员、行政 | 安庆山峡化工 | 2026-07-10 |
|
||||
| 1984881464336662529 | 吴良萍 | 吴良萍 | — | — | 行政 | 安庆山峡化工 | 2026-07-10 |
|
||||
| 1988153817824903170 | 吴九华 | 吴九华 | 18656008189 | — | 销售主管 | 安庆山峡化工 | 2025-11-11 |
|
||||
| 1993942552906809345 | 郑丽娜 | 郑丽娜 | 13522116225 | — | 销售人员 | — | 2025-12-02 |
|
||||
|
||||
### 4.2 已删除账号(4,建议不移植)
|
||||
|
||||
| user_id | 登录名 | 昵称 | 备注 |
|
||||
|---------|--------|------|------|
|
||||
| 1975524619704606722 | lisi | 销售李 | del_flag=1 |
|
||||
| 1975745762877280257 | nana | 吴九华 | del_flag=1,与现用吴九华重复 |
|
||||
| 1975746041270013954 | wwww | 方金强 | del_flag=1,与现用方金强重复 |
|
||||
| 2001899666392403970 | admin1 | 超级管理员 | del_flag=1 |
|
||||
|
||||
### 4.3 CRM 角色定义(有效用户涉及)
|
||||
|
||||
| role_id | 角色名 | role_key |
|
||||
|---------|--------|----------|
|
||||
| 1 | 超级管理员 | superadmin |
|
||||
| 1975370859695071234 | 销售人员 | xsry |
|
||||
| 1979711425949528066 | 销售主管 | xszg |
|
||||
| 1984885915415953409 | 行政 | xingzheng |
|
||||
|
||||
---
|
||||
|
||||
## 五、门户目标库现状(`shanxia2.0.sql`)
|
||||
|
||||
| id | user_no | nick_name | 手机 | 邮箱 | 租户 | 备注 |
|
||||
|----|---------|-----------|------|------|------|------|
|
||||
| d300…0001 | admin | 系统管理员 | 19115582687 | admin@zkxw.local | shanxia2.0 | 已存在,保留 |
|
||||
|
||||
---
|
||||
|
||||
## 六、跨系统人员对照(去重合并参考)
|
||||
|
||||
以下按**中文姓名**归并同一人;「建议移植」列为当前初稿,**请你勾选范围**。
|
||||
|
||||
| 序号 | 中文名(门户 user_no) | 手机(迁入值) | bx | CRM | 地磅 | 报销角色 | CRM 角色 | 建议移植 |
|
||||
|------|----------------------|---------------|-----|-----|------|---------|---------|---------|
|
||||
| 1 | admin | 19115582687※ | ✓ | ✓ | ✓ | 管理员 | 超管 | 保留门户现有 |
|
||||
| 2 | 吴九华 | 18656008189 | ✓ | ✓ | — | 总经理 | 销售主管 | 是 |
|
||||
| 3 | 汪璇 | 18895395317 | ✓ | ✓ | — | 财务 | 行政 | 是 |
|
||||
| 4 | 刘茂生 | 18955618780 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 5 | 吴良萍 | 18855101814 | ✓ | ✓ | — | 员工 | 行政 | 是 |
|
||||
| 6 | 方金强 | 18110402102 | ✓ | ✓ | — | 员工 | 销售主管 | 是 |
|
||||
| 7 | 黄天宝 | 13865153716 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 8 | 程欢欢 | 18855677446 | ✓ | ✓ | — | 员工 | 销售+行政 | 是 |
|
||||
| 9 | 刘丹 | 13865565378 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 10 | 郑丽娜 | 13522116225 | ✓ | ✓ | — | 员工 | 销售 | 是 |
|
||||
| 11 | 李勤 | 13470794894 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 12 | 吴春生 | 18805561555 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 13 | 吴自国 | 15155081585 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 14 | 潘光荣 | 13955614150 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 15 | 刘道银 | 15855555833 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 16 | 汪华胜 | 13976616618 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 17 | 王晓阳 | 19939016266 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 18 | 郭奇 | 13805683372 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 19 | 刘端 | 18749617637 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 20 | 方长彪 | 13225569301 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 21 | 吴自寨 | 13855607262 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 22 | 吴祚权 | 19855069273 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 23 | 沈卫斌 | 18756693937 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 24 | 王伍云 | 18815716809 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 25 | 胡银池 | 13955508997 | ✓ | — | — | 员工 | — | 是 |
|
||||
| 26 | 宋健 | 18297798890 | — | ✓ | — | — | 销售 | 是 |
|
||||
| 27 | 管理员 | — | — | — | gly | — | — | 是(地磅) |
|
||||
| 28 | 山峡 | — | — | — | shanxia | — | — | 是(地磅) |
|
||||
| 29 | 过磅员1 | — | — | — | user1 | — | — | 是(地磅) |
|
||||
| 30 | 过磅员2 | — | — | — | user2 | — | — | 是(地磅) |
|
||||
| 31 | 过磅员 | — | — | — | 过磅员 | — | — | 是(地磅) |
|
||||
|
||||
※ admin 手机以门户现网为准(`19115582687`),与 bx/CRM 不同。
|
||||
|
||||
### 6.1 仅存在于单一源系统的人员
|
||||
|
||||
**仅报销(18 人)**:刘茂生、黄天宝、刘丹、李勤、吴春生、吴自国、潘光荣、刘道银、汪华胜、王晓阳、郭奇、刘端、方长彪、吴自寨、吴祚权、沈卫斌、王伍云、胡银池
|
||||
|
||||
**仅 CRM(1 人)**:宋健
|
||||
|
||||
**仅地磅(5 人)**:管理员(gly)、山峡、过磅员1、过磅员2、过磅员
|
||||
|
||||
**bx + CRM 重叠(7 人)**:吴九华、汪璇、吴良萍、方金强、程欢欢、郑丽娜、(admin 算管理类)
|
||||
|
||||
---
|
||||
|
||||
## 七、建议不移植的账号(14)
|
||||
|
||||
| 来源 | 数量 | 明细 |
|
||||
|------|------|------|
|
||||
| 地磅停用 | 9 | id 7–16 测试账号 |
|
||||
| 报销删除 | 1 | 冯传忠 |
|
||||
| CRM 删除 | 4 | lisi、nana、wwww、admin1 |
|
||||
|
||||
---
|
||||
|
||||
## 八、请你确认的移植范围
|
||||
|
||||
请在第六节表格中标注,或直接回复:
|
||||
|
||||
1. **员工账号**:25 人是否全部迁入?是否有需要排除的?
|
||||
2. **地磅账号**:5 个地磅专用账号是否全部迁入?
|
||||
3. **admin**:是否只保留门户现有 `admin`,不合并 bx/CRM 的 admin 密码?
|
||||
4. **密码策略**:迁入后是否统一重置临时密码,还是保留 bx/CRM 原 bcrypt?
|
||||
5. **角色**:是否按 bx 角色 + CRM 角色分别映射到门户菜单权限?
|
||||
|
||||
确认后我将更新 `mappings/user_mapping.csv` 并编写迁移脚本。
|
||||
|
||||
---
|
||||
|
||||
## 九、相关文件
|
||||
|
||||
- 映射表初稿:`mappings/user_mapping.csv`
|
||||
- 用户统一规则:`02-user-unification.md`
|
||||
- 执行步骤:`phase-0-foundation/step-04-users.md`
|
||||
@@ -0,0 +1,163 @@
|
||||
# 用户统一方案
|
||||
|
||||
> **决策**:登录账号(`sys_user.user_no`)**以中文名为准**。
|
||||
> **例外**:超级管理员固定为 `admin`。
|
||||
|
||||
---
|
||||
|
||||
## 1. 三源用户概览
|
||||
|
||||
| 来源表 | 库 | 记录数 | 有效(未删除/启用) | 说明 |
|
||||
|--------|-----|--------|---------------------|------|
|
||||
| `bx_user` | sx | 26 | 25 | 报销员工,有 `real_name` + bcrypt |
|
||||
| `sys_user` | sx(CRM) | 12 | 8 | 若依用户,`user_name` 混用拼音/中文 |
|
||||
| `users` | dibang | 15 | 6 | 地磅账号,多为拼音/数字,仅 `过磅员` 为中文 |
|
||||
| `sys_user` | shanxia2.0 | 1 | 1 | 仅 `admin`,目标写入表 |
|
||||
|
||||
---
|
||||
|
||||
## 2. 字段映射规则
|
||||
|
||||
门户 `sys_user` 目标字段:
|
||||
|
||||
| 目标字段 | 规则 |
|
||||
|----------|------|
|
||||
| `user_no` | **中文真实姓名**;管理员为 `admin`;地磅无中文名见 §4 |
|
||||
| `nick_name` | 与 `user_no` 相同(管理员为「系统管理员」) |
|
||||
| `phone_no` | 优先 bx `phone`,其次 CRM `phonenumber` |
|
||||
| `email` | bx `email` 或 CRM `email` |
|
||||
| `password` | 优先 bx bcrypt(`$2b$12`);CRM 为 `$2a$10` 可保留或统一重哈希 |
|
||||
| `status` | 门户 `1`=正常:`bx.status=1` / CRM `status='0'` / 地磅 `is_active=1` |
|
||||
| `del_flag` | `0`;旧系统已删除用户不导入 |
|
||||
| `tenant_no` | `'shanxia2.0'` |
|
||||
| `dept_id` | 默认销售部门 UUID(P0 部门迁移后填入) |
|
||||
|
||||
---
|
||||
|
||||
## 3. 去重与合并规则
|
||||
|
||||
按以下优先级识别**同一自然人**:
|
||||
|
||||
1. **手机号相同**(11 位,去空格)
|
||||
2. **中文姓名相同**(`bx.real_name` = CRM `nick_name` 或 `user_name`)
|
||||
3. 仅一方存在且 `del_flag=0` / 未删除 → 单独建档
|
||||
|
||||
合并后只保留 **一条** `sys_user`,在 `user_mapping.csv` 记录各源 ID → 门户 `new_user_id`。
|
||||
|
||||
> **与全局 ID 策略的关系**:业务表主键一律原样保留([05-id-preservation-policy.md](./05-id-preservation-policy.md));**仅用户表**因 P0 已执行而使用新生成的门户 UUID,所有 `create_by` / `owner_user_id` 等用户外键必须经本映射转换。
|
||||
|
||||
### 3.1 需人工确认
|
||||
|
||||
| 姓名 | 说明 |
|
||||
|------|------|
|
||||
| 方金强 | CRM 有两条历史(`wwww` 已删、`方金强` 活跃);只导入活跃条 |
|
||||
|
||||
> 吴九华手机号已确认:`18656008189`(bx 与 CRM 合并为一条)。
|
||||
|
||||
### 3.2 不导入
|
||||
|
||||
- CRM:`lisi`、`nana`、`wwww`、`admin1`(均已 `del_flag=1`)
|
||||
- bx:`冯传忠`(`del_flag=1`)
|
||||
- 地磅:id 7–16 测试账号(`is_active=0`)
|
||||
|
||||
---
|
||||
|
||||
## 4. 地磅用户处理(无中文名)
|
||||
|
||||
地磅账号将并入门户,登录名规则:
|
||||
|
||||
| 原地磅 username | 建议 user_no | nick_name | 角色 |
|
||||
|----------------|-------------|-----------|------|
|
||||
| admin | 不单独建账号 | — | 复用门户 `admin` |
|
||||
| gly | 管理员 | 管理员 | 地磅管理员(或合并到业务管理员) |
|
||||
| shanxia | 山峡 | 山峡 | 地磅操作员 |
|
||||
| user1 | 过磅员1 | 过磅员1 | 地磅操作员 |
|
||||
| user2 | 过磅员2 | 过磅员2 | 地磅操作员 |
|
||||
| 过磅员 | 过磅员 | 过磅员 | 地磅操作员 |
|
||||
|
||||
> 若「管理员」「山峡」与员工姓名冲突,在 `user_no` 后加后缀,如 `管理员_地磅`。
|
||||
|
||||
地磅密码均为明文弱密码,**迁入时统一重置**为临时密码(首次登录强制修改)。
|
||||
|
||||
---
|
||||
|
||||
## 5. 完整用户清单(初稿)
|
||||
|
||||
以下为基于 `docs/sql/sx.sql`、`docs/sql/dibang.sql` 快照整理的 **待导入** 清单(不含已删除、不含门户已有 `admin`)。
|
||||
|
||||
### 5.1 员工账号(bx 为主,中文名登录)
|
||||
|
||||
| user_no | 来源 bx_id | 来源 CRM user_id | 手机 | 备注 |
|
||||
|---------|-----------|------------------|------|------|
|
||||
| 吴九华 | 16 | 1988153817824903170 | 18656008189 | |
|
||||
| 汪璇 | 17 | 1984880722460753922 | 18895395317 | |
|
||||
| 刘茂生 | 18 | — | 18955618780 | 仅 bx |
|
||||
| 吴良萍 | 19 | 1984881464336662529 | 18855101814 | |
|
||||
| 方金强 | 20 | 1984880121521848321 | 18110402102 | |
|
||||
| 黄天宝 | 21 | — | 13865153716 | 仅 bx |
|
||||
| 程欢欢 | 22 | 1984881038509948929 | 18855677446 | |
|
||||
| 刘丹 | 23 | — | 13865565378 | 仅 bx |
|
||||
| 郑丽娜 | 24 | 1993942552906809345 | 13522116225 | |
|
||||
| 李勤 | 26 | — | 13470794894 | 仅 bx |
|
||||
| 吴春生 | 27 | — | 18805561555 | 仅 bx |
|
||||
| 吴自国 | 28 | — | 15155081585 | 仅 bx |
|
||||
| 潘光荣 | 29 | — | 13955614150 | 仅 bx |
|
||||
| 刘道银 | 30 | — | 15855555833 | 仅 bx |
|
||||
| 汪华胜 | 31 | — | 13976616618 | 仅 bx |
|
||||
| 王晓阳 | 32 | — | 19939016266 | 仅 bx |
|
||||
| 郭奇 | 33 | — | 13805683372 | 仅 bx |
|
||||
| 刘端 | 34 | — | 18749617637 | 仅 bx |
|
||||
| 方长彪 | 35 | — | 13225569301 | 仅 bx |
|
||||
| 吴自寨 | 36 | — | 13855607262 | 仅 bx |
|
||||
| 吴祚权 | 37 | — | 19855069273 | 仅 bx |
|
||||
| 沈卫斌 | 45 | — | 18756693937 | 仅 bx |
|
||||
| 王伍云 | 47 | — | 18815716809 | 仅 bx |
|
||||
| 胡银池 | 48 | — | 13955508997 | 仅 bx |
|
||||
| 宋健 | — | 1984880895001837569 | 18297798890 | 仅 CRM |
|
||||
|
||||
**合计:25 名员工 + 1 管理员(admin 已存在)**
|
||||
|
||||
### 5.2 地磅专用账号(+5,若不与员工合并)
|
||||
|
||||
见 §4 表。
|
||||
|
||||
---
|
||||
|
||||
## 6. 角色分配建议(P0 执行时配置)
|
||||
|
||||
| 角色 | 适用用户 |
|
||||
|------|---------|
|
||||
| 超级管理员 | `admin` |
|
||||
| 销售人员 | CRM 销售相关(方金强、汪璇、程欢欢等,按现网 CRM 角色对照) |
|
||||
| 报销-员工 | bx 全体申请人 |
|
||||
| 报销-财务 / 总经理 | 按 bx 原 `bx_role_user` 对照 |
|
||||
| 地磅操作员 | 地磅 §4 账号 |
|
||||
|
||||
具体 `sys_role` 名称与 `sys_role_menu` 在 `phase-0-foundation/step-03-role-menu.md` 定义(待编写)。
|
||||
|
||||
---
|
||||
|
||||
## 7. 映射表结构
|
||||
|
||||
`mappings/user_mapping.csv` 列:
|
||||
|
||||
```
|
||||
new_user_id,user_no,nick_name,phone_no,bx_user_id,crm_user_id,dibang_user_id,password_source,status,remark
|
||||
```
|
||||
|
||||
- `new_user_id`:新生成 UUID(脚本写入前为空,执行后回填)
|
||||
- `password_source`:`bx` | `crm` | `reset`(地磅)
|
||||
|
||||
---
|
||||
|
||||
## 8. 对下游数据迁移的影响
|
||||
|
||||
| 下游 | 旧字段 | 新字段 |
|
||||
|------|--------|--------|
|
||||
| CRM 全表 | `create_by` bigint | `user_mapping.crm_user_id` → `new_user_id` |
|
||||
| CRM 全表 | `owner_user_id` bigint | 同上 |
|
||||
| bx 全表 | `applicant_id` / 审批人 int | `user_mapping.bx_user_id` → `new_user_id` |
|
||||
| bx 工作流节点 | `approver_id` | 重绑为新 UUID |
|
||||
| 地磅 | 无用户 FK | 仅操作员需能登录门户 |
|
||||
|
||||
**P0 用户迁移完成并验收后**,方可启动 P1/P2/P3。
|
||||
@@ -0,0 +1,83 @@
|
||||
# 数据移植过程留痕规范
|
||||
|
||||
> **编写日期**:2026-07-12
|
||||
> **目的**:后续会再次全量/增量移植,所有步骤必须可追溯、可复现、可对比。
|
||||
|
||||
---
|
||||
|
||||
## 1. 三层文档结构
|
||||
|
||||
| 层级 | 路径 | 用途 |
|
||||
|------|------|------|
|
||||
| 总体规划 | `00-master-plan.md`、`04-execution-order.md` | 阶段划分、依赖、全局原则 |
|
||||
| 步骤操作手册 | `phase-*/step-*.md` | 单步前置条件、命令、验收、日志模板 |
|
||||
| 执行批次日志 | `phase-*/logs/YYYY-MM-DD-HHMM-*.md` | **每次真实执行**的留痕(只追加,禁止覆盖) |
|
||||
|
||||
Superpowers 设计与实施计划(字段映射、脚本结构、风险)放在:
|
||||
|
||||
- `docs/superpowers/specs/*-data-migration-design.md`
|
||||
- `docs/superpowers/plans/*-data-migration.md`
|
||||
|
||||
---
|
||||
|
||||
## 2. 每步必须产出的映射与脚本
|
||||
|
||||
| 产物 | 说明 |
|
||||
|------|------|
|
||||
| `mappings/*_id_mapping.csv` | 源 ID → 目标 ID;业务表多为 **恒等映射**(`str(源id)`);用户表见 `user_mapping` |
|
||||
| `backend/scripts/migrate_*.py` | 支持 `--dry-run`、`--mapping-out` |
|
||||
| `phase-*/logs/*.md` | 执行前后行数、抽样 SQL、问题处理 |
|
||||
|
||||
---
|
||||
|
||||
## 3. 执行批次日志模板(强制字段)
|
||||
|
||||
```markdown
|
||||
## 批次:YYYY-MM-DD HH:MM
|
||||
|
||||
### 环境
|
||||
- 目标库:(host/db,脱敏)
|
||||
- 源库:
|
||||
- 操作人:
|
||||
- Git 分支 / 提交:
|
||||
|
||||
### 执行前备份
|
||||
- mysqldump 路径或快照名:
|
||||
|
||||
### 执行命令
|
||||
(完整命令,密码脱敏)
|
||||
|
||||
### 行数对比
|
||||
| 表 | 源库 del_flag=0 | 执行前目标库 | 执行后目标库 | 预期 |
|
||||
|
||||
### 映射产物
|
||||
- 文件路径、行数、未映射条数
|
||||
|
||||
### 抽样校验 SQL
|
||||
(粘贴 2~3 条 SELECT 及结果摘要)
|
||||
|
||||
### 界面验收
|
||||
- 页面路径、账号、结果
|
||||
|
||||
### 问题与处理
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. 幂等与二次移植
|
||||
|
||||
1. **首次移植**:生成 mapping CSV。业务主键 **原样保留**(见 [05-id-preservation-policy.md](./05-id-preservation-policy.md));`sys_user` 例外。
|
||||
2. **二次移植**(同环境重跑):
|
||||
- 脚本按 `source_id` 查 mapping,已存在则 **UPDATE 或 SKIP**(步骤文档中写明策略)。
|
||||
- 日志新批次追加,注明 `re-run` / `incremental`。
|
||||
3. **清空重灌**(仅测试库):步骤文档单独写 `TRUNCATE` 范围与顺序,生产禁止随意清空。
|
||||
|
||||
---
|
||||
|
||||
## 5. 当前进度索引
|
||||
|
||||
| 阶段 | 步骤文档 | 设计/计划 | 脚本 | 状态 |
|
||||
|------|----------|-----------|------|------|
|
||||
| P0-1 字典 | [step-01-dict.md](./phase-0-foundation/step-01-dict.md) | — | `compare_dict_snapshots.py` | 已分析,无需批量导入 |
|
||||
| P0-4 用户 | [step-04-users.md](./phase-0-foundation/step-04-users.md) | — | `migrate_users.py` | 已执行,见 mappings |
|
||||
| P1-1 产品分类 | [step-01-product-category.md](./phase-1-crm/step-01-product-category.md) | [design](../superpowers/specs/2026-07-12-crm-product-category-data-migration-design.md) / [plan](../superpowers/plans/2026-07-12-crm-product-category-data-migration.md) | `migrate_crm_product_category.py` | ✅ 2026-07-12 已执行 |
|
||||
@@ -0,0 +1,63 @@
|
||||
# 全局执行顺序
|
||||
|
||||
依赖关系决定执行顺序;每步完成后更新 `README.md` 状态表,并在 `logs/` 追加记录。
|
||||
|
||||
**主键策略**:所有业务表 id 原样迁入(`str(源id)`),见 [05-id-preservation-policy.md](./05-id-preservation-policy.md);`sys_user` 与用户外键除外。
|
||||
|
||||
---
|
||||
|
||||
## Phase 0 — 基础主数据
|
||||
|
||||
| 序号 | 步骤 | 文档 | 依赖 | 产出 |
|
||||
|------|------|------|------|------|
|
||||
| 0-1 | 字典迁移 | [step-01-dict.md](./phase-0-foundation/step-01-dict.md) | — | 无需批量导入,验收即可 |
|
||||
| 0-2 | 部门迁移 | `phase-0-foundation/step-02-dept.md`(待编写) | — | `sys_dept` + dept_mapping |
|
||||
| 0-3 | 角色与菜单 | `phase-0-foundation/step-03-role-menu.md`(待编写) | 0-2 | `sys_role`、`sys_role_menu` |
|
||||
| 0-4 | **用户统一** | [step-04-users.md](./phase-0-foundation/step-04-users.md) | 0-2, 0-3 | `sys_user`、`user_mapping.csv` |
|
||||
|
||||
---
|
||||
|
||||
## Phase 1 — CRM
|
||||
|
||||
| 序号 | 步骤 | 文档 | 依赖 |
|
||||
|------|------|------|------|
|
||||
| 1-1a | **产品分类** | [step-01-product-category.md](./phase-1-crm/step-01-product-category.md) | P0 用户 mapping |
|
||||
| 1-1b | 产品 | [step-02-product.md](./phase-1-crm/step-02-product.md) | 1-1a category mapping |
|
||||
| 1-1c | **产品编号统一** | [step-03-product-no-renumber.md](./phase-1-crm/step-03-product-no-renumber.md) | 1-1b |
|
||||
| 1-2 | 客户 + 联系人 + 公海 | `step-03-customer.md`(待编写) | 1-1b, user_mapping |
|
||||
| 1-3 | 线索 + 商机 | 待编写 | 1-2 |
|
||||
| 1-4 | 报价 + 合同 | 待编写 | 1-3 |
|
||||
| 1-5 | 附件 sys_oss | 待编写 | 并行可在 1-2 后分批 |
|
||||
|
||||
CRM 细顺序见 `docs/superpowers/specs/2026-05-30-crm-migration-design.md` §7.6。
|
||||
|
||||
---
|
||||
|
||||
## Phase 2 — 报销
|
||||
|
||||
| 序号 | 步骤 | 依赖 |
|
||||
|------|------|------|
|
||||
| 2-1 | 费用项 + 工作流定义/节点 | P0(审批人 UUID) |
|
||||
| 2-2 | 备用金申请 + 审批 | 2-1 |
|
||||
| 2-3 | 报销单 + 明细 + 审批 + 冲抵 | 2-2 |
|
||||
| 2-4 | 附件 | 2-3 |
|
||||
|
||||
---
|
||||
|
||||
## Phase 3 — 地磅
|
||||
|
||||
| 序号 | 步骤 | 依赖 |
|
||||
|------|------|------|
|
||||
| 3-1 | 车辆 `db_vehicle` | P0(可选) |
|
||||
| 3-2 | 计划/地磅单/出入库 | 3-1;`migrate_dibang_data.py` |
|
||||
|
||||
地磅业务数据不依赖 CRM 主键,但产品/客户名称与 CRM 一致更佳(方案 A 文本冗余)。
|
||||
|
||||
---
|
||||
|
||||
## Phase 4 — 验收
|
||||
|
||||
- 各表 `COUNT(*)` 与源库对账
|
||||
- 抽样 10 条 CRM 客户、5 条报销单、5 条地磅单端到端打开
|
||||
- 员工用**中文名**登录门户验证菜单权限
|
||||
- 附件 URL 可访问
|
||||
@@ -0,0 +1,94 @@
|
||||
# 主键 ID 保留策略(全局)
|
||||
|
||||
> **决策日期**:2026-07-12
|
||||
> **适用范围**:`docs/data-migration/` 下全部生产数据同步(CRM、报销、地磅)
|
||||
> **原则**:原系统业务主键 **原样迁入** 门户库,仅做类型适配(`bigint`/`int` → 同值 `VARCHAR`),**不重新生成 UUID**。
|
||||
|
||||
---
|
||||
|
||||
## 1. 核心规则
|
||||
|
||||
| 项 | 规则 |
|
||||
|----|------|
|
||||
| 业务表主键 `id` | `target.id = str(source.id)`(十进制字符串,与源数值一致) |
|
||||
| 业务外键 `*_id` | 指向业务实体时:`str(source_*_id)`;指向用户时:见 §3 |
|
||||
| `parent_id` 等树字段 | `0` → `'0'`;非 0 → `str(source_parent_id)` |
|
||||
| 映射文件 | 仍生成 `*_id_mapping.csv`,多为 **恒等映射**(`source_id` = `new_id`),用于审计与二次移植对账 |
|
||||
| 脚本实现 | 统一使用 `legacy_id_to_str()`(参考 `migrate_dibang_data.py`、`migrate_crm_product_category.py`) |
|
||||
|
||||
**示例**
|
||||
|
||||
```
|
||||
源 crm_product.id = 42 → 目标 "42"
|
||||
源 crm_product.category_id = 1975766458781167617 → 目标 "1975766458781167617"
|
||||
源地磅 plan.id = 12 → 目标 "12"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 2. 好处
|
||||
|
||||
1. **下游表免查 mapping**:产品、客户、报价、合同等子表外键可直接 `str(源值)` 写入。
|
||||
2. **二次移植简单**:按 `id` 幂等 SKIP/UPDATE,mapping 即对账表。
|
||||
3. **与地磅策略一致**:三系统同一套心智模型。
|
||||
4. **问题排查**:门户与旧库对照时 ID 一一对应。
|
||||
|
||||
---
|
||||
|
||||
## 3. 例外(不保留源 id 或需额外映射)
|
||||
|
||||
| 场景 | 处理方式 | 说明 |
|
||||
|------|----------|------|
|
||||
| **`sys_user`(P0 已执行)** | 已生成门户 UUID | 以 `mappings/user_mapping_result.csv` 为准;`create_by` / `owner_user_id` / `approver_id` 等 **必须**经用户映射转换 |
|
||||
| **字典 `sys_dict_data.id`** | 按门户既有主键 | 字典项以 `dict_type` + `dict_value` 对齐,不按 sx 的 `dict_code` 保留 id(见 step-01-dict) |
|
||||
| **门户已手工录入且 id 冲突** | 步骤文档写明 | 测试库可用 `--truncate`;生产需人工合并,禁止静默覆盖 |
|
||||
| **源 id 非纯数字** | 原样字符串写入 | 若超长则按目标列宽截断并记 WARNING |
|
||||
|
||||
---
|
||||
|
||||
## 4. 各阶段适用表(摘要)
|
||||
|
||||
| 阶段 | 表 / 实体 | 主键策略 |
|
||||
|------|-----------|----------|
|
||||
| P0 | `sys_user` | ❌ 例外:门户 UUID + user_mapping |
|
||||
| P0 | `sys_dept`、`sys_role` | ✅ 若从 sx 导入,优先保留源 id 字符串 |
|
||||
| P1 CRM | `crm_product_category` | ✅ 已按本策略实现脚本 |
|
||||
| P1 CRM | `crm_product`、`crm_customer`、`crm_clue`、商机/报价/合同等 | ✅ 全部 `str(source.id)` |
|
||||
| P1 CRM | `sys_oss`(附件) | ✅ `str(oss_id)` |
|
||||
| P2 报销 | `bx_*` 业务表 | ✅ `str(source.id)` |
|
||||
| P3 地磅 | `db_*` | ✅ 已有脚本,int → 同值字符串 |
|
||||
|
||||
---
|
||||
|
||||
## 5. 脚本约定
|
||||
|
||||
每个 `migrate_*.py` 应:
|
||||
|
||||
1. 支持 `--dry-run`
|
||||
2. 默认:目标已存在同 `id` → **SKIP**;`--update` 可覆盖非主键字段
|
||||
3. `--mapping-out` 写出恒等或例外映射 CSV
|
||||
4. 日志与 `phase-*/logs/` 记录「ID 策略:原样保留」
|
||||
|
||||
共享工具函数(可复制到各脚本或后续抽到 `scripts/migration_utils.py`):
|
||||
|
||||
```python
|
||||
def legacy_id_to_str(legacy_id) -> str:
|
||||
if legacy_id is None:
|
||||
return "0"
|
||||
return str(int(legacy_id))
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 6. 与旧文档的关系
|
||||
|
||||
- **代码移植 spec** `docs/superpowers/specs/2026-05-30-crm-migration-design.md` §7.1 曾写「bigint → UUID」;**生产数据同步以本文档为准**。
|
||||
- **OpenSpec / 公共字段** 仍要求目标列类型为 `VARCHAR(64)`;保留源 id 字符串满足类型要求,不要求必须是 UUID 格式。
|
||||
|
||||
---
|
||||
|
||||
## 7. 相关文档
|
||||
|
||||
- [00-master-plan.md](./00-master-plan.md) §2 已确认决策
|
||||
- [03-process-logging.md](./03-process-logging.md) 映射产物说明
|
||||
- [phase-1-crm/step-01-product-category.md](./phase-1-crm/step-01-product-category.md) 首版落地示例
|
||||
@@ -0,0 +1,56 @@
|
||||
# 生产数据同步(shanxia2.0)
|
||||
|
||||
将三地磅、山峡 1.0(CRM + 报销)、山峡 2.0 门户的生产数据,按阶段灌入 `shanxia2.0` 生产库。
|
||||
|
||||
## 与代码移植文档的关系
|
||||
|
||||
| 目录 | 用途 |
|
||||
|------|------|
|
||||
| `docs/crm-migration/` | CRM **功能**移植(前后端代码) |
|
||||
| `docs/bx-migration/` | 报销 **功能**移植 |
|
||||
| `docs/db-migration/` | 地磅 **功能**移植 |
|
||||
| **`docs/data-migration/`** | **生产数据**同步过程记录(本文档体系) |
|
||||
|
||||
代码移植完成后,业务表结构已在 `docs/sql/shanxia2.0.sql`;本目录负责「如何把旧库数据填进去」。
|
||||
|
||||
## SQL 快照权威来源
|
||||
|
||||
| 系统 | 快照文件 | 说明 |
|
||||
|------|---------|------|
|
||||
| 地磅 | `docs/sql/dibang.sql` | 独立库,12 表 |
|
||||
| 山峡 1.0 | `docs/sql/sx.sql` | CRM + 报销 + 若依 sys_*,157 表 |
|
||||
| 山峡 2.0 | `docs/sql/shanxia2.0.sql` | 目标库,当前几乎无业务数据 |
|
||||
|
||||
## 文档索引
|
||||
|
||||
| 文件 | 内容 |
|
||||
|------|------|
|
||||
| [00-master-plan.md](./00-master-plan.md) | 总体规划、原则、阶段划分 |
|
||||
| [01-user-account-inventory.md](./01-user-account-inventory.md) | **三系统用户账号明细**(供勾选移植范围) |
|
||||
| [02-user-unification.md](./02-user-unification.md) | **用户统一方案**(中文名登录) |
|
||||
| [05-id-preservation-policy.md](./05-id-preservation-policy.md) | **全局主键策略**:原系统 id 原样迁入(`str(bigint)`) |
|
||||
| [03-process-logging.md](./03-process-logging.md) | **移植过程留痕规范**(日志模板、幂等、二次移植) |
|
||||
| [04-execution-order.md](./04-execution-order.md) | 全局执行顺序与依赖 |
|
||||
| [phase-0-foundation/step-01-dict.md](./phase-0-foundation/step-01-dict.md) | P0 字典(已分析:无需批量导入) |
|
||||
| [phase-0-foundation/step-04-users.md](./phase-0-foundation/step-04-users.md) | P0 用户同步操作步骤 |
|
||||
| [phase-1-crm/step-01-product-category.md](./phase-1-crm/step-01-product-category.md) | P1 产品分类 |
|
||||
| [phase-1-crm/step-02-product.md](./phase-1-crm/step-02-product.md) | P1 产品主表 |
|
||||
| [phase-1-crm/step-03-product-no-renumber.md](./phase-1-crm/step-03-product-no-renumber.md) | P1 产品编号统一 |
|
||||
| [mappings/crm_product_no_mapping.csv](./mappings/crm_product_no_mapping.csv) | 产品编号旧→新映射(239 行) |
|
||||
| [mappings/user_mapping.csv](./mappings/user_mapping.csv) | 三源用户 → 门户 `sys_user` 映射表 |
|
||||
| [mappings/crm_product_category_id_mapping.csv](./mappings/crm_product_category_id_mapping.csv) | 产品分类 ID 映射 |
|
||||
| [mappings/crm_product_id_mapping.csv](./mappings/crm_product_id_mapping.csv) | 产品 ID 映射(239 行恒等) |
|
||||
|
||||
## 当前状态
|
||||
|
||||
| 阶段 | 状态 | 说明 |
|
||||
|------|------|------|
|
||||
| P0 基础(字典/部门/角色/用户) | 进行中 | 字典已验收无需导入;用户已执行见 `mappings/user_mapping_result.csv` |
|
||||
| P1 CRM 业务数据 | **P1-1c 产品编号已统一** | 产品 239 条 + 编号映射;见 `logs/2026-07-12-2106-product-no-renumber.md` |
|
||||
| P2 报销业务数据 | 未开始 | 依赖 P0 |
|
||||
| P3 地磅业务数据 | 脚本已有 | `backend/scripts/migrate_dibang_data.py` |
|
||||
| P4 验收与切换 | 未开始 | — |
|
||||
|
||||
## 执行记录
|
||||
|
||||
每步执行后在对应 `phase-*/logs/` 下追加记录(禁止覆盖历史批次)。模板见各 `step-*.md` 文末。
|
||||
@@ -0,0 +1,12 @@
|
||||
source_id,new_id,migrated_at
|
||||
17,17,2026-07-13 04:41:12
|
||||
18,18,2026-07-13 04:41:12
|
||||
20,20,2026-07-13 04:41:12
|
||||
22,22,2026-07-13 04:41:12
|
||||
23,23,2026-07-13 04:41:12
|
||||
24,24,2026-07-13 04:41:12
|
||||
25,25,2026-07-13 04:41:12
|
||||
26,26,2026-07-13 04:41:12
|
||||
27,27,2026-07-13 04:41:12
|
||||
28,28,2026-07-13 04:41:12
|
||||
29,29,2026-07-13 04:41:12
|
||||
|
@@ -0,0 +1,25 @@
|
||||
source_id,new_id,migrated_at
|
||||
19,19,2026-07-13 04:41:13
|
||||
20,20,2026-07-13 04:41:13
|
||||
21,21,2026-07-13 04:41:13
|
||||
22,22,2026-07-13 04:41:13
|
||||
23,23,2026-07-13 04:41:13
|
||||
24,24,2026-07-13 04:41:13
|
||||
25,25,2026-07-13 04:41:13
|
||||
26,26,2026-07-13 04:41:13
|
||||
27,27,2026-07-13 04:41:13
|
||||
28,28,2026-07-13 04:41:13
|
||||
29,29,2026-07-13 04:41:13
|
||||
30,30,2026-07-13 04:41:13
|
||||
31,31,2026-07-13 04:41:13
|
||||
32,32,2026-07-13 04:41:13
|
||||
33,33,2026-07-13 04:41:13
|
||||
34,34,2026-07-13 04:41:13
|
||||
35,35,2026-07-13 04:41:13
|
||||
36,36,2026-07-13 04:41:13
|
||||
37,37,2026-07-13 04:41:13
|
||||
38,38,2026-07-13 04:41:13
|
||||
39,39,2026-07-13 04:41:13
|
||||
40,40,2026-07-13 04:41:13
|
||||
41,41,2026-07-13 04:41:13
|
||||
42,42,2026-07-13 04:41:13
|
||||
|
@@ -0,0 +1,142 @@
|
||||
source_id,new_id,migrated_at
|
||||
133,133,2026-07-13 04:41:38
|
||||
134,134,2026-07-13 04:41:38
|
||||
135,135,2026-07-13 04:41:38
|
||||
136,136,2026-07-13 04:41:38
|
||||
137,137,2026-07-13 04:41:38
|
||||
138,138,2026-07-13 04:41:38
|
||||
139,139,2026-07-13 04:41:38
|
||||
140,140,2026-07-13 04:41:38
|
||||
141,141,2026-07-13 04:41:38
|
||||
142,142,2026-07-13 04:41:38
|
||||
143,143,2026-07-13 04:41:38
|
||||
145,145,2026-07-13 04:41:38
|
||||
146,146,2026-07-13 04:41:38
|
||||
147,147,2026-07-13 04:41:38
|
||||
148,148,2026-07-13 04:41:38
|
||||
149,149,2026-07-13 04:41:38
|
||||
151,151,2026-07-13 04:41:38
|
||||
152,152,2026-07-13 04:41:38
|
||||
153,153,2026-07-13 04:41:38
|
||||
154,154,2026-07-13 04:41:38
|
||||
155,155,2026-07-13 04:41:38
|
||||
157,157,2026-07-13 04:41:38
|
||||
158,158,2026-07-13 04:41:38
|
||||
159,159,2026-07-13 04:41:38
|
||||
160,160,2026-07-13 04:41:38
|
||||
161,161,2026-07-13 04:41:38
|
||||
162,162,2026-07-13 04:41:38
|
||||
163,163,2026-07-13 04:41:38
|
||||
164,164,2026-07-13 04:41:38
|
||||
165,165,2026-07-13 04:41:38
|
||||
166,166,2026-07-13 04:41:38
|
||||
167,167,2026-07-13 04:41:38
|
||||
168,168,2026-07-13 04:41:38
|
||||
169,169,2026-07-13 04:41:38
|
||||
170,170,2026-07-13 04:41:38
|
||||
171,171,2026-07-13 04:41:38
|
||||
172,172,2026-07-13 04:41:38
|
||||
173,173,2026-07-13 04:41:38
|
||||
174,174,2026-07-13 04:41:38
|
||||
175,175,2026-07-13 04:41:38
|
||||
177,177,2026-07-13 04:41:38
|
||||
178,178,2026-07-13 04:41:38
|
||||
179,179,2026-07-13 04:41:38
|
||||
180,180,2026-07-13 04:41:38
|
||||
181,181,2026-07-13 04:41:38
|
||||
182,182,2026-07-13 04:41:38
|
||||
183,183,2026-07-13 04:41:38
|
||||
184,184,2026-07-13 04:41:38
|
||||
185,185,2026-07-13 04:41:38
|
||||
186,186,2026-07-13 04:41:38
|
||||
187,187,2026-07-13 04:41:38
|
||||
188,188,2026-07-13 04:41:38
|
||||
189,189,2026-07-13 04:41:38
|
||||
190,190,2026-07-13 04:41:38
|
||||
191,191,2026-07-13 04:41:38
|
||||
192,192,2026-07-13 04:41:38
|
||||
193,193,2026-07-13 04:41:38
|
||||
194,194,2026-07-13 04:41:38
|
||||
195,195,2026-07-13 04:41:38
|
||||
196,196,2026-07-13 04:41:38
|
||||
197,197,2026-07-13 04:41:38
|
||||
198,198,2026-07-13 04:41:38
|
||||
199,199,2026-07-13 04:41:38
|
||||
200,200,2026-07-13 04:41:38
|
||||
202,202,2026-07-13 04:41:38
|
||||
203,203,2026-07-13 04:41:38
|
||||
204,204,2026-07-13 04:41:38
|
||||
205,205,2026-07-13 04:41:38
|
||||
206,206,2026-07-13 04:41:38
|
||||
207,207,2026-07-13 04:41:38
|
||||
208,208,2026-07-13 04:41:38
|
||||
209,209,2026-07-13 04:41:38
|
||||
210,210,2026-07-13 04:41:38
|
||||
211,211,2026-07-13 04:41:38
|
||||
212,212,2026-07-13 04:41:38
|
||||
213,213,2026-07-13 04:41:38
|
||||
214,214,2026-07-13 04:41:38
|
||||
215,215,2026-07-13 04:41:38
|
||||
216,216,2026-07-13 04:41:38
|
||||
217,217,2026-07-13 04:41:38
|
||||
218,218,2026-07-13 04:41:38
|
||||
219,219,2026-07-13 04:41:38
|
||||
220,220,2026-07-13 04:41:38
|
||||
221,221,2026-07-13 04:41:38
|
||||
222,222,2026-07-13 04:41:38
|
||||
223,223,2026-07-13 04:41:38
|
||||
224,224,2026-07-13 04:41:38
|
||||
225,225,2026-07-13 04:41:38
|
||||
226,226,2026-07-13 04:41:38
|
||||
227,227,2026-07-13 04:41:38
|
||||
228,228,2026-07-13 04:41:38
|
||||
229,229,2026-07-13 04:41:38
|
||||
230,230,2026-07-13 04:41:38
|
||||
231,231,2026-07-13 04:41:38
|
||||
232,232,2026-07-13 04:41:38
|
||||
233,233,2026-07-13 04:41:38
|
||||
234,234,2026-07-13 04:41:38
|
||||
235,235,2026-07-13 04:41:38
|
||||
236,236,2026-07-13 04:41:38
|
||||
237,237,2026-07-13 04:41:38
|
||||
238,238,2026-07-13 04:41:38
|
||||
239,239,2026-07-13 04:41:38
|
||||
240,240,2026-07-13 04:41:38
|
||||
241,241,2026-07-13 04:41:38
|
||||
242,242,2026-07-13 04:41:38
|
||||
243,243,2026-07-13 04:41:38
|
||||
244,244,2026-07-13 04:41:38
|
||||
245,245,2026-07-13 04:41:38
|
||||
246,246,2026-07-13 04:41:38
|
||||
247,247,2026-07-13 04:41:38
|
||||
248,248,2026-07-13 04:41:38
|
||||
249,249,2026-07-13 04:41:38
|
||||
251,251,2026-07-13 04:41:38
|
||||
252,252,2026-07-13 04:41:38
|
||||
253,253,2026-07-13 04:41:38
|
||||
254,254,2026-07-13 04:41:38
|
||||
255,255,2026-07-13 04:41:38
|
||||
256,256,2026-07-13 04:41:38
|
||||
257,257,2026-07-13 04:41:38
|
||||
258,258,2026-07-13 04:41:38
|
||||
259,259,2026-07-13 04:41:38
|
||||
260,260,2026-07-13 04:41:38
|
||||
261,261,2026-07-13 04:41:38
|
||||
262,262,2026-07-13 04:41:38
|
||||
263,263,2026-07-13 04:41:38
|
||||
264,264,2026-07-13 04:41:38
|
||||
265,265,2026-07-13 04:41:38
|
||||
266,266,2026-07-13 04:41:38
|
||||
267,267,2026-07-13 04:41:38
|
||||
268,268,2026-07-13 04:41:38
|
||||
269,269,2026-07-13 04:41:38
|
||||
270,270,2026-07-13 04:41:38
|
||||
271,271,2026-07-13 04:41:38
|
||||
272,272,2026-07-13 04:41:38
|
||||
273,273,2026-07-13 04:41:38
|
||||
274,274,2026-07-13 04:41:38
|
||||
275,275,2026-07-13 04:41:38
|
||||
276,276,2026-07-13 04:41:38
|
||||
277,277,2026-07-13 04:41:38
|
||||
278,278,2026-07-13 04:41:38
|
||||
279,279,2026-07-13 04:41:38
|
||||
|
@@ -0,0 +1,49 @@
|
||||
source_id,new_id,migrated_at
|
||||
28,28,2026-07-13 04:41:11
|
||||
29,29,2026-07-13 04:41:11
|
||||
30,30,2026-07-13 04:41:11
|
||||
31,31,2026-07-13 04:41:11
|
||||
32,32,2026-07-13 04:41:11
|
||||
33,33,2026-07-13 04:41:11
|
||||
34,34,2026-07-13 04:41:11
|
||||
35,35,2026-07-13 04:41:11
|
||||
36,36,2026-07-13 04:41:11
|
||||
37,37,2026-07-13 04:41:11
|
||||
38,38,2026-07-13 04:41:11
|
||||
39,39,2026-07-13 04:41:11
|
||||
40,40,2026-07-13 04:41:11
|
||||
41,41,2026-07-13 04:41:11
|
||||
42,42,2026-07-13 04:41:11
|
||||
43,43,2026-07-13 04:41:11
|
||||
44,44,2026-07-13 04:41:11
|
||||
45,45,2026-07-13 04:41:11
|
||||
46,46,2026-07-13 04:41:11
|
||||
47,47,2026-07-13 04:41:11
|
||||
48,48,2026-07-13 04:41:11
|
||||
49,49,2026-07-13 04:41:11
|
||||
50,50,2026-07-13 04:41:11
|
||||
51,51,2026-07-13 04:41:11
|
||||
52,52,2026-07-13 04:41:11
|
||||
53,53,2026-07-13 04:41:11
|
||||
54,54,2026-07-13 04:41:11
|
||||
55,55,2026-07-13 04:41:11
|
||||
56,56,2026-07-13 04:41:11
|
||||
57,57,2026-07-13 04:41:11
|
||||
58,58,2026-07-13 04:41:11
|
||||
59,59,2026-07-13 04:41:11
|
||||
60,60,2026-07-13 04:41:11
|
||||
61,61,2026-07-13 04:41:11
|
||||
62,62,2026-07-13 04:41:11
|
||||
63,63,2026-07-13 04:41:11
|
||||
64,64,2026-07-13 04:41:11
|
||||
65,65,2026-07-13 04:41:11
|
||||
66,66,2026-07-13 04:41:11
|
||||
67,67,2026-07-13 04:41:11
|
||||
68,68,2026-07-13 04:41:11
|
||||
69,69,2026-07-13 04:41:11
|
||||
70,70,2026-07-13 04:41:11
|
||||
71,71,2026-07-13 04:41:11
|
||||
72,72,2026-07-13 04:41:11
|
||||
73,73,2026-07-13 04:41:11
|
||||
74,74,2026-07-13 04:41:11
|
||||
75,75,2026-07-13 04:41:11
|
||||
|
@@ -0,0 +1,114 @@
|
||||
source_id,new_id,migrated_at
|
||||
22,22,2026-07-13 04:41:19
|
||||
23,23,2026-07-13 04:41:19
|
||||
24,24,2026-07-13 04:41:19
|
||||
25,25,2026-07-13 04:41:19
|
||||
26,26,2026-07-13 04:41:19
|
||||
27,27,2026-07-13 04:41:19
|
||||
29,29,2026-07-13 04:41:19
|
||||
30,30,2026-07-13 04:41:19
|
||||
31,31,2026-07-13 04:41:19
|
||||
32,32,2026-07-13 04:41:19
|
||||
33,33,2026-07-13 04:41:19
|
||||
34,34,2026-07-13 04:41:19
|
||||
35,35,2026-07-13 04:41:19
|
||||
36,36,2026-07-13 04:41:19
|
||||
37,37,2026-07-13 04:41:19
|
||||
38,38,2026-07-13 04:41:19
|
||||
39,39,2026-07-13 04:41:19
|
||||
40,40,2026-07-13 04:41:19
|
||||
41,41,2026-07-13 04:41:19
|
||||
42,42,2026-07-13 04:41:19
|
||||
43,43,2026-07-13 04:41:19
|
||||
44,44,2026-07-13 04:41:19
|
||||
45,45,2026-07-13 04:41:19
|
||||
46,46,2026-07-13 04:41:19
|
||||
47,47,2026-07-13 04:41:19
|
||||
48,48,2026-07-13 04:41:19
|
||||
49,49,2026-07-13 04:41:19
|
||||
50,50,2026-07-13 04:41:19
|
||||
51,51,2026-07-13 04:41:19
|
||||
52,52,2026-07-13 04:41:19
|
||||
53,53,2026-07-13 04:41:19
|
||||
54,54,2026-07-13 04:41:19
|
||||
55,55,2026-07-13 04:41:19
|
||||
56,56,2026-07-13 04:41:19
|
||||
57,57,2026-07-13 04:41:19
|
||||
58,58,2026-07-13 04:41:19
|
||||
59,59,2026-07-13 04:41:19
|
||||
60,60,2026-07-13 04:41:19
|
||||
61,61,2026-07-13 04:41:19
|
||||
62,62,2026-07-13 04:41:19
|
||||
63,63,2026-07-13 04:41:19
|
||||
64,64,2026-07-13 04:41:19
|
||||
65,65,2026-07-13 04:41:19
|
||||
66,66,2026-07-13 04:41:19
|
||||
67,67,2026-07-13 04:41:19
|
||||
68,68,2026-07-13 04:41:19
|
||||
69,69,2026-07-13 04:41:19
|
||||
70,70,2026-07-13 04:41:19
|
||||
71,71,2026-07-13 04:41:19
|
||||
72,72,2026-07-13 04:41:19
|
||||
73,73,2026-07-13 04:41:19
|
||||
74,74,2026-07-13 04:41:19
|
||||
75,75,2026-07-13 04:41:19
|
||||
76,76,2026-07-13 04:41:19
|
||||
77,77,2026-07-13 04:41:19
|
||||
78,78,2026-07-13 04:41:19
|
||||
79,79,2026-07-13 04:41:19
|
||||
80,80,2026-07-13 04:41:19
|
||||
81,81,2026-07-13 04:41:19
|
||||
82,82,2026-07-13 04:41:19
|
||||
83,83,2026-07-13 04:41:19
|
||||
84,84,2026-07-13 04:41:19
|
||||
85,85,2026-07-13 04:41:19
|
||||
86,86,2026-07-13 04:41:19
|
||||
87,87,2026-07-13 04:41:19
|
||||
88,88,2026-07-13 04:41:19
|
||||
89,89,2026-07-13 04:41:19
|
||||
90,90,2026-07-13 04:41:19
|
||||
93,93,2026-07-13 04:41:19
|
||||
94,94,2026-07-13 04:41:19
|
||||
95,95,2026-07-13 04:41:19
|
||||
96,96,2026-07-13 04:41:19
|
||||
97,97,2026-07-13 04:41:19
|
||||
98,98,2026-07-13 04:41:19
|
||||
99,99,2026-07-13 04:41:19
|
||||
100,100,2026-07-13 04:41:19
|
||||
101,101,2026-07-13 04:41:19
|
||||
102,102,2026-07-13 04:41:19
|
||||
103,103,2026-07-13 04:41:19
|
||||
104,104,2026-07-13 04:41:19
|
||||
105,105,2026-07-13 04:41:19
|
||||
106,106,2026-07-13 04:41:19
|
||||
107,107,2026-07-13 04:41:19
|
||||
108,108,2026-07-13 04:41:19
|
||||
109,109,2026-07-13 04:41:19
|
||||
110,110,2026-07-13 04:41:19
|
||||
111,111,2026-07-13 04:41:19
|
||||
113,113,2026-07-13 04:41:19
|
||||
114,114,2026-07-13 04:41:19
|
||||
115,115,2026-07-13 04:41:19
|
||||
116,116,2026-07-13 04:41:19
|
||||
117,117,2026-07-13 04:41:19
|
||||
118,118,2026-07-13 04:41:19
|
||||
119,119,2026-07-13 04:41:19
|
||||
120,120,2026-07-13 04:41:19
|
||||
121,121,2026-07-13 04:41:19
|
||||
122,122,2026-07-13 04:41:19
|
||||
123,123,2026-07-13 04:41:19
|
||||
124,124,2026-07-13 04:41:19
|
||||
125,125,2026-07-13 04:41:19
|
||||
126,126,2026-07-13 04:41:19
|
||||
127,127,2026-07-13 04:41:19
|
||||
128,128,2026-07-13 04:41:19
|
||||
129,129,2026-07-13 04:41:19
|
||||
130,130,2026-07-13 04:41:19
|
||||
131,131,2026-07-13 04:41:19
|
||||
132,132,2026-07-13 04:41:19
|
||||
133,133,2026-07-13 04:41:19
|
||||
134,134,2026-07-13 04:41:19
|
||||
135,135,2026-07-13 04:41:19
|
||||
136,136,2026-07-13 04:41:19
|
||||
137,137,2026-07-13 04:41:19
|
||||
139,139,2026-07-13 04:41:19
|
||||
|
@@ -0,0 +1,140 @@
|
||||
source_id,new_id,migrated_at
|
||||
30,30,2026-07-13 04:41:31
|
||||
31,31,2026-07-13 04:41:31
|
||||
32,32,2026-07-13 04:41:31
|
||||
33,33,2026-07-13 04:41:31
|
||||
34,34,2026-07-13 04:41:31
|
||||
35,35,2026-07-13 04:41:31
|
||||
36,36,2026-07-13 04:41:31
|
||||
37,37,2026-07-13 04:41:31
|
||||
38,38,2026-07-13 04:41:31
|
||||
39,39,2026-07-13 04:41:31
|
||||
40,40,2026-07-13 04:41:31
|
||||
41,41,2026-07-13 04:41:31
|
||||
42,42,2026-07-13 04:41:31
|
||||
43,43,2026-07-13 04:41:31
|
||||
44,44,2026-07-13 04:41:31
|
||||
45,45,2026-07-13 04:41:31
|
||||
46,46,2026-07-13 04:41:31
|
||||
47,47,2026-07-13 04:41:31
|
||||
48,48,2026-07-13 04:41:31
|
||||
49,49,2026-07-13 04:41:31
|
||||
50,50,2026-07-13 04:41:31
|
||||
51,51,2026-07-13 04:41:31
|
||||
52,52,2026-07-13 04:41:31
|
||||
53,53,2026-07-13 04:41:31
|
||||
54,54,2026-07-13 04:41:31
|
||||
55,55,2026-07-13 04:41:31
|
||||
56,56,2026-07-13 04:41:31
|
||||
57,57,2026-07-13 04:41:31
|
||||
58,58,2026-07-13 04:41:31
|
||||
59,59,2026-07-13 04:41:31
|
||||
60,60,2026-07-13 04:41:31
|
||||
61,61,2026-07-13 04:41:31
|
||||
62,62,2026-07-13 04:41:31
|
||||
63,63,2026-07-13 04:41:31
|
||||
64,64,2026-07-13 04:41:31
|
||||
65,65,2026-07-13 04:41:31
|
||||
66,66,2026-07-13 04:41:31
|
||||
67,67,2026-07-13 04:41:31
|
||||
68,68,2026-07-13 04:41:31
|
||||
69,69,2026-07-13 04:41:31
|
||||
70,70,2026-07-13 04:41:31
|
||||
71,71,2026-07-13 04:41:31
|
||||
72,72,2026-07-13 04:41:31
|
||||
73,73,2026-07-13 04:41:31
|
||||
74,74,2026-07-13 04:41:31
|
||||
75,75,2026-07-13 04:41:31
|
||||
76,76,2026-07-13 04:41:31
|
||||
77,77,2026-07-13 04:41:31
|
||||
78,78,2026-07-13 04:41:31
|
||||
79,79,2026-07-13 04:41:31
|
||||
80,80,2026-07-13 04:41:31
|
||||
81,81,2026-07-13 04:41:31
|
||||
82,82,2026-07-13 04:41:31
|
||||
83,83,2026-07-13 04:41:31
|
||||
84,84,2026-07-13 04:41:31
|
||||
85,85,2026-07-13 04:41:31
|
||||
86,86,2026-07-13 04:41:31
|
||||
87,87,2026-07-13 04:41:31
|
||||
88,88,2026-07-13 04:41:31
|
||||
89,89,2026-07-13 04:41:31
|
||||
90,90,2026-07-13 04:41:31
|
||||
91,91,2026-07-13 04:41:31
|
||||
92,92,2026-07-13 04:41:31
|
||||
93,93,2026-07-13 04:41:31
|
||||
94,94,2026-07-13 04:41:31
|
||||
95,95,2026-07-13 04:41:31
|
||||
96,96,2026-07-13 04:41:31
|
||||
97,97,2026-07-13 04:41:31
|
||||
98,98,2026-07-13 04:41:31
|
||||
99,99,2026-07-13 04:41:31
|
||||
100,100,2026-07-13 04:41:31
|
||||
101,101,2026-07-13 04:41:31
|
||||
102,102,2026-07-13 04:41:31
|
||||
103,103,2026-07-13 04:41:31
|
||||
104,104,2026-07-13 04:41:31
|
||||
105,105,2026-07-13 04:41:31
|
||||
106,106,2026-07-13 04:41:31
|
||||
107,107,2026-07-13 04:41:31
|
||||
108,108,2026-07-13 04:41:31
|
||||
109,109,2026-07-13 04:41:31
|
||||
110,110,2026-07-13 04:41:31
|
||||
111,111,2026-07-13 04:41:31
|
||||
112,112,2026-07-13 04:41:31
|
||||
113,113,2026-07-13 04:41:31
|
||||
114,114,2026-07-13 04:41:31
|
||||
115,115,2026-07-13 04:41:31
|
||||
116,116,2026-07-13 04:41:31
|
||||
117,117,2026-07-13 04:41:31
|
||||
118,118,2026-07-13 04:41:31
|
||||
119,119,2026-07-13 04:41:31
|
||||
120,120,2026-07-13 04:41:31
|
||||
121,121,2026-07-13 04:41:31
|
||||
122,122,2026-07-13 04:41:31
|
||||
123,123,2026-07-13 04:41:31
|
||||
124,124,2026-07-13 04:41:31
|
||||
125,125,2026-07-13 04:41:31
|
||||
126,126,2026-07-13 04:41:31
|
||||
127,127,2026-07-13 04:41:31
|
||||
128,128,2026-07-13 04:41:31
|
||||
129,129,2026-07-13 04:41:31
|
||||
130,130,2026-07-13 04:41:31
|
||||
131,131,2026-07-13 04:41:31
|
||||
132,132,2026-07-13 04:41:31
|
||||
133,133,2026-07-13 04:41:31
|
||||
134,134,2026-07-13 04:41:31
|
||||
135,135,2026-07-13 04:41:31
|
||||
136,136,2026-07-13 04:41:31
|
||||
137,137,2026-07-13 04:41:31
|
||||
138,138,2026-07-13 04:41:31
|
||||
139,139,2026-07-13 04:41:31
|
||||
140,140,2026-07-13 04:41:31
|
||||
141,141,2026-07-13 04:41:31
|
||||
142,142,2026-07-13 04:41:31
|
||||
143,143,2026-07-13 04:41:31
|
||||
144,144,2026-07-13 04:41:31
|
||||
145,145,2026-07-13 04:41:31
|
||||
146,146,2026-07-13 04:41:31
|
||||
147,147,2026-07-13 04:41:31
|
||||
148,148,2026-07-13 04:41:31
|
||||
149,149,2026-07-13 04:41:31
|
||||
150,150,2026-07-13 04:41:31
|
||||
151,151,2026-07-13 04:41:31
|
||||
152,152,2026-07-13 04:41:31
|
||||
153,153,2026-07-13 04:41:31
|
||||
154,154,2026-07-13 04:41:31
|
||||
155,155,2026-07-13 04:41:31
|
||||
156,156,2026-07-13 04:41:31
|
||||
157,157,2026-07-13 04:41:31
|
||||
158,158,2026-07-13 04:41:31
|
||||
159,159,2026-07-13 04:41:31
|
||||
160,160,2026-07-13 04:41:31
|
||||
161,161,2026-07-13 04:41:31
|
||||
162,162,2026-07-13 04:41:31
|
||||
163,163,2026-07-13 04:41:31
|
||||
164,164,2026-07-13 04:41:31
|
||||
165,165,2026-07-13 04:41:31
|
||||
166,166,2026-07-13 04:41:31
|
||||
167,167,2026-07-13 04:41:31
|
||||
168,168,2026-07-13 04:41:31
|
||||
|
@@ -0,0 +1,157 @@
|
||||
source_id,new_id,migrated_at
|
||||
35,35,2026-07-13 04:41:25
|
||||
36,36,2026-07-13 04:41:25
|
||||
37,37,2026-07-13 04:41:25
|
||||
38,38,2026-07-13 04:41:25
|
||||
39,39,2026-07-13 04:41:25
|
||||
40,40,2026-07-13 04:41:25
|
||||
41,41,2026-07-13 04:41:25
|
||||
42,42,2026-07-13 04:41:25
|
||||
43,43,2026-07-13 04:41:25
|
||||
44,44,2026-07-13 04:41:25
|
||||
45,45,2026-07-13 04:41:25
|
||||
46,46,2026-07-13 04:41:25
|
||||
47,47,2026-07-13 04:41:25
|
||||
50,50,2026-07-13 04:41:25
|
||||
51,51,2026-07-13 04:41:25
|
||||
52,52,2026-07-13 04:41:25
|
||||
54,54,2026-07-13 04:41:25
|
||||
55,55,2026-07-13 04:41:25
|
||||
56,56,2026-07-13 04:41:25
|
||||
58,58,2026-07-13 04:41:25
|
||||
60,60,2026-07-13 04:41:25
|
||||
62,62,2026-07-13 04:41:25
|
||||
64,64,2026-07-13 04:41:25
|
||||
65,65,2026-07-13 04:41:25
|
||||
68,68,2026-07-13 04:41:25
|
||||
69,69,2026-07-13 04:41:25
|
||||
71,71,2026-07-13 04:41:25
|
||||
72,72,2026-07-13 04:41:25
|
||||
73,73,2026-07-13 04:41:25
|
||||
74,74,2026-07-13 04:41:25
|
||||
75,75,2026-07-13 04:41:25
|
||||
76,76,2026-07-13 04:41:25
|
||||
77,77,2026-07-13 04:41:25
|
||||
79,79,2026-07-13 04:41:25
|
||||
80,80,2026-07-13 04:41:25
|
||||
81,81,2026-07-13 04:41:25
|
||||
82,82,2026-07-13 04:41:25
|
||||
83,83,2026-07-13 04:41:25
|
||||
84,84,2026-07-13 04:41:25
|
||||
85,85,2026-07-13 04:41:25
|
||||
86,86,2026-07-13 04:41:25
|
||||
87,87,2026-07-13 04:41:25
|
||||
88,88,2026-07-13 04:41:25
|
||||
89,89,2026-07-13 04:41:25
|
||||
90,90,2026-07-13 04:41:25
|
||||
91,91,2026-07-13 04:41:25
|
||||
93,93,2026-07-13 04:41:25
|
||||
94,94,2026-07-13 04:41:25
|
||||
95,95,2026-07-13 04:41:25
|
||||
96,96,2026-07-13 04:41:25
|
||||
97,97,2026-07-13 04:41:25
|
||||
98,98,2026-07-13 04:41:25
|
||||
99,99,2026-07-13 04:41:25
|
||||
100,100,2026-07-13 04:41:25
|
||||
101,101,2026-07-13 04:41:25
|
||||
103,103,2026-07-13 04:41:25
|
||||
106,106,2026-07-13 04:41:25
|
||||
107,107,2026-07-13 04:41:25
|
||||
108,108,2026-07-13 04:41:25
|
||||
109,109,2026-07-13 04:41:25
|
||||
110,110,2026-07-13 04:41:25
|
||||
113,113,2026-07-13 04:41:25
|
||||
114,114,2026-07-13 04:41:25
|
||||
115,115,2026-07-13 04:41:25
|
||||
116,116,2026-07-13 04:41:25
|
||||
117,117,2026-07-13 04:41:25
|
||||
118,118,2026-07-13 04:41:25
|
||||
119,119,2026-07-13 04:41:25
|
||||
120,120,2026-07-13 04:41:25
|
||||
121,121,2026-07-13 04:41:25
|
||||
122,122,2026-07-13 04:41:25
|
||||
123,123,2026-07-13 04:41:25
|
||||
124,124,2026-07-13 04:41:25
|
||||
125,125,2026-07-13 04:41:25
|
||||
126,126,2026-07-13 04:41:25
|
||||
127,127,2026-07-13 04:41:25
|
||||
128,128,2026-07-13 04:41:25
|
||||
129,129,2026-07-13 04:41:25
|
||||
130,130,2026-07-13 04:41:25
|
||||
131,131,2026-07-13 04:41:25
|
||||
133,133,2026-07-13 04:41:25
|
||||
134,134,2026-07-13 04:41:25
|
||||
135,135,2026-07-13 04:41:25
|
||||
136,136,2026-07-13 04:41:25
|
||||
137,137,2026-07-13 04:41:25
|
||||
138,138,2026-07-13 04:41:25
|
||||
139,139,2026-07-13 04:41:25
|
||||
140,140,2026-07-13 04:41:25
|
||||
141,141,2026-07-13 04:41:25
|
||||
142,142,2026-07-13 04:41:25
|
||||
143,143,2026-07-13 04:41:25
|
||||
144,144,2026-07-13 04:41:25
|
||||
145,145,2026-07-13 04:41:25
|
||||
146,146,2026-07-13 04:41:25
|
||||
147,147,2026-07-13 04:41:25
|
||||
148,148,2026-07-13 04:41:25
|
||||
149,149,2026-07-13 04:41:25
|
||||
150,150,2026-07-13 04:41:25
|
||||
151,151,2026-07-13 04:41:25
|
||||
152,152,2026-07-13 04:41:25
|
||||
153,153,2026-07-13 04:41:25
|
||||
154,154,2026-07-13 04:41:25
|
||||
155,155,2026-07-13 04:41:25
|
||||
156,156,2026-07-13 04:41:25
|
||||
157,157,2026-07-13 04:41:25
|
||||
158,158,2026-07-13 04:41:25
|
||||
159,159,2026-07-13 04:41:25
|
||||
160,160,2026-07-13 04:41:25
|
||||
161,161,2026-07-13 04:41:25
|
||||
162,162,2026-07-13 04:41:25
|
||||
163,163,2026-07-13 04:41:25
|
||||
164,164,2026-07-13 04:41:25
|
||||
165,165,2026-07-13 04:41:25
|
||||
166,166,2026-07-13 04:41:25
|
||||
167,167,2026-07-13 04:41:25
|
||||
168,168,2026-07-13 04:41:25
|
||||
169,169,2026-07-13 04:41:25
|
||||
170,170,2026-07-13 04:41:25
|
||||
171,171,2026-07-13 04:41:25
|
||||
173,173,2026-07-13 04:41:25
|
||||
174,174,2026-07-13 04:41:25
|
||||
175,175,2026-07-13 04:41:25
|
||||
176,176,2026-07-13 04:41:25
|
||||
177,177,2026-07-13 04:41:25
|
||||
178,178,2026-07-13 04:41:25
|
||||
179,179,2026-07-13 04:41:25
|
||||
180,180,2026-07-13 04:41:25
|
||||
181,181,2026-07-13 04:41:25
|
||||
182,182,2026-07-13 04:41:25
|
||||
183,183,2026-07-13 04:41:25
|
||||
184,184,2026-07-13 04:41:25
|
||||
185,185,2026-07-13 04:41:25
|
||||
186,186,2026-07-13 04:41:25
|
||||
187,187,2026-07-13 04:41:25
|
||||
188,188,2026-07-13 04:41:25
|
||||
189,189,2026-07-13 04:41:25
|
||||
190,190,2026-07-13 04:41:25
|
||||
191,191,2026-07-13 04:41:25
|
||||
221,221,2026-07-13 04:41:25
|
||||
222,222,2026-07-13 04:41:25
|
||||
223,223,2026-07-13 04:41:25
|
||||
224,224,2026-07-13 04:41:25
|
||||
225,225,2026-07-13 04:41:25
|
||||
226,226,2026-07-13 04:41:25
|
||||
227,227,2026-07-13 04:41:25
|
||||
244,244,2026-07-13 04:41:25
|
||||
245,245,2026-07-13 04:41:25
|
||||
246,246,2026-07-13 04:41:25
|
||||
247,247,2026-07-13 04:41:25
|
||||
248,248,2026-07-13 04:41:25
|
||||
249,249,2026-07-13 04:41:25
|
||||
250,250,2026-07-13 04:41:25
|
||||
251,251,2026-07-13 04:41:25
|
||||
252,252,2026-07-13 04:41:25
|
||||
253,253,2026-07-13 04:41:25
|
||||
254,254,2026-07-13 04:41:25
|
||||
|
@@ -0,0 +1,5 @@
|
||||
source_id,new_id,migrated_at
|
||||
6,6,2026-07-13 04:41:32
|
||||
7,7,2026-07-13 04:41:32
|
||||
8,8,2026-07-13 04:41:32
|
||||
9,9,2026-07-13 04:41:32
|
||||
|
@@ -0,0 +1,3 @@
|
||||
source_id,new_id,migrated_at
|
||||
1,1,2026-07-13 04:41:11
|
||||
2,2,2026-07-13 04:41:11
|
||||
|
@@ -0,0 +1,5 @@
|
||||
source_id,new_id,migrated_at
|
||||
88,88,2026-07-13 04:41:11
|
||||
89,89,2026-07-13 04:41:11
|
||||
90,90,2026-07-13 04:41:11
|
||||
91,91,2026-07-13 04:41:11
|
||||
|
@@ -0,0 +1,2 @@
|
||||
source_id,new_id,migrated_at
|
||||
12,12,2026-07-13 04:11:17
|
||||
|
@@ -0,0 +1,889 @@
|
||||
source_id,new_id,migrated_at
|
||||
1988152891047297025,1988152891047297025,2026-07-13 04:25:06
|
||||
1988423089595760642,1988423089595760642,2026-07-13 04:25:06
|
||||
1988514298175569921,1988514298175569921,2026-07-13 04:25:06
|
||||
1988525687015358465,1988525687015358465,2026-07-13 04:25:06
|
||||
1988837170442027009,1988837170442027009,2026-07-13 04:25:06
|
||||
1988855441748832257,1988855441748832257,2026-07-13 04:25:06
|
||||
1988905755873030145,1988905755873030145,2026-07-13 04:25:06
|
||||
1989150878833750018,1989150878833750018,2026-07-13 04:25:06
|
||||
1989153056327643137,1989153056327643137,2026-07-13 04:25:06
|
||||
1989154324030861313,1989154324030861313,2026-07-13 04:25:06
|
||||
1989176654807347201,1989176654807347201,2026-07-13 04:25:06
|
||||
1989177268740206593,1989177268740206593,2026-07-13 04:25:06
|
||||
1989252048969445377,1989252048969445377,2026-07-13 04:25:06
|
||||
1990223581871296513,1990223581871296513,2026-07-13 04:25:06
|
||||
1990223975607390210,1990223975607390210,2026-07-13 04:25:06
|
||||
1990238663388909569,1990238663388909569,2026-07-13 04:25:06
|
||||
1990239673553473537,1990239673553473537,2026-07-13 04:25:06
|
||||
1990240151251144706,1990240151251144706,2026-07-13 04:25:06
|
||||
1990240479967137793,1990240479967137793,2026-07-13 04:25:06
|
||||
1990245618425745410,1990245618425745410,2026-07-13 04:25:06
|
||||
1990257060176678913,1990257060176678913,2026-07-13 04:25:06
|
||||
1990257490898145281,1990257490898145281,2026-07-13 04:25:06
|
||||
1990315883914547201,1990315883914547201,2026-07-13 04:25:06
|
||||
1990323852978900994,1990323852978900994,2026-07-13 04:25:06
|
||||
1990340044686839810,1990340044686839810,2026-07-13 04:25:06
|
||||
1990659848421462018,1990659848421462018,2026-07-13 04:25:06
|
||||
1990663240732594177,1990663240732594177,2026-07-13 04:25:06
|
||||
1990691630172819458,1990691630172819458,2026-07-13 04:25:06
|
||||
1991343173188407297,1991343173188407297,2026-07-13 04:25:06
|
||||
1991343840560893953,1991343840560893953,2026-07-13 04:25:06
|
||||
1991401012233637889,1991401012233637889,2026-07-13 04:25:06
|
||||
1991416113477062657,1991416113477062657,2026-07-13 04:25:06
|
||||
1991693039554924546,1991693039554924546,2026-07-13 04:25:06
|
||||
1991699446740160514,1991699446740160514,2026-07-13 04:25:06
|
||||
1991746005162921985,1991746005162921985,2026-07-13 04:25:06
|
||||
1991761700101689346,1991761700101689346,2026-07-13 04:25:06
|
||||
1991762696123060226,1991762696123060226,2026-07-13 04:25:06
|
||||
1991765317206544386,1991765317206544386,2026-07-13 04:25:06
|
||||
1991772594349150209,1991772594349150209,2026-07-13 04:25:06
|
||||
1992771530698403842,1992771530698403842,2026-07-13 04:25:06
|
||||
1992777608483975169,1992777608483975169,2026-07-13 04:25:06
|
||||
1992778911683588098,1992778911683588098,2026-07-13 04:25:06
|
||||
1992879839350865922,1992879839350865922,2026-07-13 04:25:06
|
||||
1992880625082417153,1992880625082417153,2026-07-13 04:25:06
|
||||
1993133847785226242,1993133847785226242,2026-07-13 04:25:06
|
||||
1993144610134409217,1993144610134409217,2026-07-13 04:25:06
|
||||
1993213835746197505,1993213835746197505,2026-07-13 04:25:06
|
||||
1993214444893356033,1993214444893356033,2026-07-13 04:25:06
|
||||
1993214891209244673,1993214891209244673,2026-07-13 04:25:06
|
||||
1993220149759164417,1993220149759164417,2026-07-13 04:25:06
|
||||
1993234959926280193,1993234959926280193,2026-07-13 04:25:06
|
||||
1993235378773671937,1993235378773671937,2026-07-13 04:25:06
|
||||
1993236110730051586,1993236110730051586,2026-07-13 04:25:06
|
||||
1993586518409330690,1993586518409330690,2026-07-13 04:25:06
|
||||
1993863307757076482,1993863307757076482,2026-07-13 04:25:06
|
||||
1993892147657162753,1993892147657162753,2026-07-13 04:25:06
|
||||
1993950762086678529,1993950762086678529,2026-07-13 04:25:06
|
||||
1993951417127911425,1993951417127911425,2026-07-13 04:25:06
|
||||
1993952832634208257,1993952832634208257,2026-07-13 04:25:06
|
||||
1994226622047961090,1994226622047961090,2026-07-13 04:25:06
|
||||
1994303764127531009,1994303764127531009,2026-07-13 04:25:06
|
||||
1994688183417946114,1994688183417946114,2026-07-13 04:25:06
|
||||
1995297594243006466,1995297594243006466,2026-07-13 04:25:06
|
||||
1995300625181294593,1995300625181294593,2026-07-13 04:25:06
|
||||
1995304065550761985,1995304065550761985,2026-07-13 04:25:06
|
||||
1995330026371530753,1995330026371530753,2026-07-13 04:25:06
|
||||
1995332764094414849,1995332764094414849,2026-07-13 04:25:06
|
||||
1995363074353905666,1995363074353905666,2026-07-13 04:25:06
|
||||
1995364355613114370,1995364355613114370,2026-07-13 04:25:06
|
||||
1995378718700978177,1995378718700978177,2026-07-13 04:25:06
|
||||
1995383460969824257,1995383460969824257,2026-07-13 04:25:06
|
||||
1995393268447952897,1995393268447952897,2026-07-13 04:25:06
|
||||
1995692424076967937,1995692424076967937,2026-07-13 04:25:06
|
||||
1995753621233057794,1995753621233057794,2026-07-13 04:25:06
|
||||
1995787893415329794,1995787893415329794,2026-07-13 04:25:06
|
||||
1995788272655908865,1995788272655908865,2026-07-13 04:25:06
|
||||
1996059075398057985,1996059075398057985,2026-07-13 04:25:06
|
||||
1996059958013837314,1996059958013837314,2026-07-13 04:25:06
|
||||
1996093447509622785,1996093447509622785,2026-07-13 04:25:06
|
||||
1996095520682786817,1996095520682786817,2026-07-13 04:25:06
|
||||
1996117285974818818,1996117285974818818,2026-07-13 04:25:06
|
||||
1996117563075706882,1996117563075706882,2026-07-13 04:25:06
|
||||
1996846901354020866,1996846901354020866,2026-07-13 04:25:06
|
||||
1996847270880591874,1996847270880591874,2026-07-13 04:25:06
|
||||
1997836612818157569,1997836612818157569,2026-07-13 04:25:06
|
||||
1997848613015502849,1997848613015502849,2026-07-13 04:25:06
|
||||
1997849017203802113,1997849017203802113,2026-07-13 04:25:06
|
||||
1997849394938626049,1997849394938626049,2026-07-13 04:25:06
|
||||
1997849672907735042,1997849672907735042,2026-07-13 04:25:06
|
||||
1997859664029270017,1997859664029270017,2026-07-13 04:25:06
|
||||
1997963160795725826,1997963160795725826,2026-07-13 04:25:06
|
||||
1998191639470522369,1998191639470522369,2026-07-13 04:25:06
|
||||
1998205633056980994,1998205633056980994,2026-07-13 04:25:06
|
||||
1998220387876061185,1998220387876061185,2026-07-13 04:25:06
|
||||
1998277638703792129,1998277638703792129,2026-07-13 04:25:06
|
||||
1998296735688671233,1998296735688671233,2026-07-13 04:25:06
|
||||
1998324663830953986,1998324663830953986,2026-07-13 04:25:06
|
||||
1998573686517121025,1998573686517121025,2026-07-13 04:25:06
|
||||
1998659175366508546,1998659175366508546,2026-07-13 04:25:06
|
||||
1998675425970864129,1998675425970864129,2026-07-13 04:25:06
|
||||
1998958532326309890,1998958532326309890,2026-07-13 04:25:06
|
||||
1998987923055951873,1998987923055951873,2026-07-13 04:25:06
|
||||
1999016743771291650,1999016743771291650,2026-07-13 04:25:06
|
||||
1999046900670251010,1999046900670251010,2026-07-13 04:25:06
|
||||
1999056453478629377,1999056453478629377,2026-07-13 04:25:06
|
||||
1999308574488772610,1999308574488772610,2026-07-13 04:25:06
|
||||
1999310179267231745,1999310179267231745,2026-07-13 04:25:06
|
||||
2000372581442240513,2000372581442240513,2026-07-13 04:25:06
|
||||
2000397109887221762,2000397109887221762,2026-07-13 04:25:06
|
||||
2000436773830508545,2000436773830508545,2026-07-13 04:25:06
|
||||
2000463620840603650,2000463620840603650,2026-07-13 04:25:06
|
||||
2000466193609900033,2000466193609900033,2026-07-13 04:25:06
|
||||
2000467275790663682,2000467275790663682,2026-07-13 04:25:06
|
||||
2000480936504573953,2000480936504573953,2026-07-13 04:25:06
|
||||
2000799748273606657,2000799748273606657,2026-07-13 04:25:06
|
||||
2001097027912077314,2001097027912077314,2026-07-13 04:25:06
|
||||
2001098709500825602,2001098709500825602,2026-07-13 04:25:06
|
||||
2001104088125280257,2001104088125280257,2026-07-13 04:25:06
|
||||
2001120942684246017,2001120942684246017,2026-07-13 04:25:06
|
||||
2001121416904839169,2001121416904839169,2026-07-13 04:25:06
|
||||
2001133867012591618,2001133867012591618,2026-07-13 04:25:06
|
||||
2001169241164353537,2001169241164353537,2026-07-13 04:25:06
|
||||
2001211083482337281,2001211083482337281,2026-07-13 04:25:06
|
||||
2001212482744094721,2001212482744094721,2026-07-13 04:25:06
|
||||
2001229289336999938,2001229289336999938,2026-07-13 04:25:06
|
||||
2001526274841563137,2001526274841563137,2026-07-13 04:25:06
|
||||
2001572156370767873,2001572156370767873,2026-07-13 04:25:06
|
||||
2001931441273491457,2001931441273491457,2026-07-13 04:25:06
|
||||
2001931850151022593,2001931850151022593,2026-07-13 04:25:06
|
||||
2001941719629352962,2001941719629352962,2026-07-13 04:25:06
|
||||
2002913740571987969,2002913740571987969,2026-07-13 04:25:06
|
||||
2002914195331010562,2002914195331010562,2026-07-13 04:25:06
|
||||
2002914585489362945,2002914585489362945,2026-07-13 04:25:06
|
||||
2002918971674382337,2002918971674382337,2026-07-13 04:25:06
|
||||
2002931559980257282,2002931559980257282,2026-07-13 04:25:06
|
||||
2002999947700129794,2002999947700129794,2026-07-13 04:25:06
|
||||
2003357797102309377,2003357797102309377,2026-07-13 04:25:06
|
||||
2003637486043713538,2003637486043713538,2026-07-13 04:25:06
|
||||
2003641127798493185,2003641127798493185,2026-07-13 04:25:06
|
||||
2003645251482996737,2003645251482996737,2026-07-13 04:25:06
|
||||
2003665125760487425,2003665125760487425,2026-07-13 04:25:06
|
||||
2003666006262337537,2003666006262337537,2026-07-13 04:25:06
|
||||
2003702336405032962,2003702336405032962,2026-07-13 04:25:06
|
||||
2003721041834856449,2003721041834856449,2026-07-13 04:25:06
|
||||
2004005934460489730,2004005934460489730,2026-07-13 04:25:06
|
||||
2004066523241172994,2004066523241172994,2026-07-13 04:25:06
|
||||
2004069687419916290,2004069687419916290,2026-07-13 04:25:06
|
||||
2004093168425553922,2004093168425553922,2026-07-13 04:25:06
|
||||
2004126256979431425,2004126256979431425,2026-07-13 04:25:06
|
||||
2004380221524594689,2004380221524594689,2026-07-13 04:25:06
|
||||
2004382971310297089,2004382971310297089,2026-07-13 04:25:06
|
||||
2004463889366568961,2004463889366568961,2026-07-13 04:25:06
|
||||
2004486836705742850,2004486836705742850,2026-07-13 04:25:06
|
||||
2004798825462157313,2004798825462157313,2026-07-13 04:25:06
|
||||
2005438433157894145,2005438433157894145,2026-07-13 04:25:06
|
||||
2005448840362774530,2005448840362774530,2026-07-13 04:25:06
|
||||
2005492721896837121,2005492721896837121,2026-07-13 04:25:06
|
||||
2005493141943799809,2005493141943799809,2026-07-13 04:25:06
|
||||
2005532558150520834,2005532558150520834,2026-07-13 04:25:06
|
||||
2005572029592031234,2005572029592031234,2026-07-13 04:25:06
|
||||
2005833484300111874,2005833484300111874,2026-07-13 04:25:06
|
||||
2005833926815961090,2005833926815961090,2026-07-13 04:25:06
|
||||
2005834264679731201,2005834264679731201,2026-07-13 04:25:06
|
||||
2005834427385171969,2005834427385171969,2026-07-13 04:25:06
|
||||
2005835359359520769,2005835359359520769,2026-07-13 04:25:06
|
||||
2005883044590440450,2005883044590440450,2026-07-13 04:25:06
|
||||
2005895907153465346,2005895907153465346,2026-07-13 04:25:06
|
||||
2005897535873011713,2005897535873011713,2026-07-13 04:25:06
|
||||
2005918422064091138,2005918422064091138,2026-07-13 04:25:06
|
||||
2005937585889398785,2005937585889398785,2026-07-13 04:25:06
|
||||
2005938124274454529,2005938124274454529,2026-07-13 04:25:06
|
||||
2005941861965549570,2005941861965549570,2026-07-13 04:25:06
|
||||
2006982813542912002,2006982813542912002,2026-07-13 04:25:06
|
||||
2007624326052450305,2007624326052450305,2026-07-13 04:25:06
|
||||
2007624813258608641,2007624813258608641,2026-07-13 04:25:06
|
||||
2007701124626911233,2007701124626911233,2026-07-13 04:25:06
|
||||
2007701458816471042,2007701458816471042,2026-07-13 04:25:06
|
||||
2007801567055056897,2007801567055056897,2026-07-13 04:25:06
|
||||
2007992703849730049,2007992703849730049,2026-07-13 04:25:06
|
||||
2008007771119292417,2008007771119292417,2026-07-13 04:25:06
|
||||
2008008091706724354,2008008091706724354,2026-07-13 04:25:06
|
||||
2008008490404679681,2008008490404679681,2026-07-13 04:25:06
|
||||
2008018009495048194,2008018009495048194,2026-07-13 04:25:06
|
||||
2008072925139832834,2008072925139832834,2026-07-13 04:25:06
|
||||
2008343923223302145,2008343923223302145,2026-07-13 04:25:06
|
||||
2008381429327204353,2008381429327204353,2026-07-13 04:25:06
|
||||
2008431350554169346,2008431350554169346,2026-07-13 04:25:06
|
||||
2008436702322495489,2008436702322495489,2026-07-13 04:25:06
|
||||
2008438810853642242,2008438810853642242,2026-07-13 04:25:06
|
||||
2008468485445390337,2008468485445390337,2026-07-13 04:25:06
|
||||
2008483437493227522,2008483437493227522,2026-07-13 04:25:06
|
||||
2008749625624367105,2008749625624367105,2026-07-13 04:25:06
|
||||
2008830040548708353,2008830040548708353,2026-07-13 04:25:06
|
||||
2009138191328219138,2009138191328219138,2026-07-13 04:25:06
|
||||
2009491166169010178,2009491166169010178,2026-07-13 04:25:06
|
||||
2009492023384084482,2009492023384084482,2026-07-13 04:25:06
|
||||
2009512712904249346,2009512712904249346,2026-07-13 04:25:06
|
||||
2010529429113671682,2010529429113671682,2026-07-13 04:25:06
|
||||
2010534378832793602,2010534378832793602,2026-07-13 04:25:06
|
||||
2010534833004613633,2010534833004613633,2026-07-13 04:25:06
|
||||
2010535359670784002,2010535359670784002,2026-07-13 04:25:06
|
||||
2010598125316214785,2010598125316214785,2026-07-13 04:25:06
|
||||
2010607680221745153,2010607680221745153,2026-07-13 04:25:06
|
||||
2010617840772190209,2010617840772190209,2026-07-13 04:25:06
|
||||
2010630292041764865,2010630292041764865,2026-07-13 04:25:06
|
||||
2010889055344754689,2010889055344754689,2026-07-13 04:25:06
|
||||
2010889810113953793,2010889810113953793,2026-07-13 04:25:06
|
||||
2010910997300871169,2010910997300871169,2026-07-13 04:25:06
|
||||
2010915159405199362,2010915159405199362,2026-07-13 04:25:06
|
||||
2011008829332619266,2011008829332619266,2026-07-13 04:25:06
|
||||
2011338887909834754,2011338887909834754,2026-07-13 04:25:06
|
||||
2011345056204292098,2011345056204292098,2026-07-13 04:25:06
|
||||
2011369092015685633,2011369092015685633,2026-07-13 04:25:06
|
||||
2011723985939300354,2011723985939300354,2026-07-13 04:25:06
|
||||
2011990889971023873,2011990889971023873,2026-07-13 04:25:06
|
||||
2011999367334690817,2011999367334690817,2026-07-13 04:25:06
|
||||
2012004627268730881,2012004627268730881,2026-07-13 04:25:06
|
||||
2012048911762161665,2012048911762161665,2026-07-13 04:25:06
|
||||
2012050532755800066,2012050532755800066,2026-07-13 04:25:06
|
||||
2012057313934540802,2012057313934540802,2026-07-13 04:25:06
|
||||
2012059993637617665,2012059993637617665,2026-07-13 04:25:06
|
||||
2012071748090691586,2012071748090691586,2026-07-13 04:25:06
|
||||
2012094021212274689,2012094021212274689,2026-07-13 04:25:06
|
||||
2013063507188875265,2013063507188875265,2026-07-13 04:25:06
|
||||
2013068871737245697,2013068871737245697,2026-07-13 04:25:06
|
||||
2013078026812358657,2013078026812358657,2026-07-13 04:25:06
|
||||
2013141520022732801,2013141520022732801,2026-07-13 04:25:06
|
||||
2013158564994711553,2013158564994711553,2026-07-13 04:25:06
|
||||
2013204262729515010,2013204262729515010,2026-07-13 04:25:06
|
||||
2013443525479989249,2013443525479989249,2026-07-13 04:25:06
|
||||
2013452240723607553,2013452240723607553,2026-07-13 04:25:06
|
||||
2013489114724925441,2013489114724925441,2026-07-13 04:25:06
|
||||
2013539627403280386,2013539627403280386,2026-07-13 04:25:06
|
||||
2013781546972708865,2013781546972708865,2026-07-13 04:25:06
|
||||
2013798495307923458,2013798495307923458,2026-07-13 04:25:06
|
||||
2013848727072768002,2013848727072768002,2026-07-13 04:25:06
|
||||
2013873934462320642,2013873934462320642,2026-07-13 04:25:06
|
||||
2013912068784881666,2013912068784881666,2026-07-13 04:25:06
|
||||
2014163171501899778,2014163171501899778,2026-07-13 04:25:06
|
||||
2014235850829430785,2014235850829430785,2026-07-13 04:25:06
|
||||
2014236256909361153,2014236256909361153,2026-07-13 04:25:06
|
||||
2014239940825284610,2014239940825284610,2026-07-13 04:25:06
|
||||
2014264535313776641,2014264535313776641,2026-07-13 04:25:06
|
||||
2014502065812504577,2014502065812504577,2026-07-13 04:25:06
|
||||
2014602051778740226,2014602051778740226,2026-07-13 04:25:06
|
||||
2014616509628514306,2014616509628514306,2026-07-13 04:25:06
|
||||
2014636033186648066,2014636033186648066,2026-07-13 04:25:06
|
||||
2015592765975089153,2015592765975089153,2026-07-13 04:25:06
|
||||
2015597850461392897,2015597850461392897,2026-07-13 04:25:06
|
||||
2015603179173629953,2015603179173629953,2026-07-13 04:25:06
|
||||
2015619498145140737,2015619498145140737,2026-07-13 04:25:06
|
||||
2015674221103599617,2015674221103599617,2026-07-13 04:25:06
|
||||
2015682250133917698,2015682250133917698,2026-07-13 04:25:06
|
||||
2015689317972365313,2015689317972365313,2026-07-13 04:25:06
|
||||
2015703563221258242,2015703563221258242,2026-07-13 04:25:06
|
||||
2015711982992936961,2015711982992936961,2026-07-13 04:25:06
|
||||
2015726625283035138,2015726625283035138,2026-07-13 04:25:06
|
||||
2015954819072315393,2015954819072315393,2026-07-13 04:25:06
|
||||
2016038911373660161,2016038911373660161,2026-07-13 04:25:06
|
||||
2016049525835878402,2016049525835878402,2026-07-13 04:25:06
|
||||
2016057659132399617,2016057659132399617,2026-07-13 04:25:06
|
||||
2016312059809681410,2016312059809681410,2026-07-13 04:25:06
|
||||
2016347221184401409,2016347221184401409,2026-07-13 04:25:06
|
||||
2016359810517880834,2016359810517880834,2026-07-13 04:25:06
|
||||
2016370300732231681,2016370300732231681,2026-07-13 04:25:06
|
||||
2016405467203031042,2016405467203031042,2026-07-13 04:25:06
|
||||
2016446610255040513,2016446610255040513,2026-07-13 04:25:06
|
||||
2016686459348242433,2016686459348242433,2026-07-13 04:25:06
|
||||
2016687139119091713,2016687139119091713,2026-07-13 04:25:06
|
||||
2016697771637788673,2016697771637788673,2026-07-13 04:25:06
|
||||
2016703865890197506,2016703865890197506,2026-07-13 04:25:06
|
||||
2016776900206841858,2016776900206841858,2026-07-13 04:25:06
|
||||
2016777775797161986,2016777775797161986,2026-07-13 04:25:06
|
||||
2016781202702913537,2016781202702913537,2026-07-13 04:25:06
|
||||
2016781633445351425,2016781633445351425,2026-07-13 04:25:06
|
||||
2016784886631419905,2016784886631419905,2026-07-13 04:25:06
|
||||
2016799730088726530,2016799730088726530,2026-07-13 04:25:06
|
||||
2016802189779587074,2016802189779587074,2026-07-13 04:25:06
|
||||
2017105113009278977,2017105113009278977,2026-07-13 04:25:06
|
||||
2018126873943003137,2018126873943003137,2026-07-13 04:25:06
|
||||
2018141942403747841,2018141942403747841,2026-07-13 04:25:06
|
||||
2018146061424185345,2018146061424185345,2026-07-13 04:25:06
|
||||
2018160116453003266,2018160116453003266,2026-07-13 04:25:06
|
||||
2018173975351971842,2018173975351971842,2026-07-13 04:25:06
|
||||
2018197188920397825,2018197188920397825,2026-07-13 04:25:06
|
||||
2018211521180127233,2018211521180127233,2026-07-13 04:25:06
|
||||
2018229835008757761,2018229835008757761,2026-07-13 04:25:06
|
||||
2018494397444444161,2018494397444444161,2026-07-13 04:25:06
|
||||
2018511709392261121,2018511709392261121,2026-07-13 04:25:06
|
||||
2018526401288392705,2018526401288392705,2026-07-13 04:25:06
|
||||
2018612807281070081,2018612807281070081,2026-07-13 04:25:06
|
||||
2018613565435072513,2018613565435072513,2026-07-13 04:25:06
|
||||
2018858099406458881,2018858099406458881,2026-07-13 04:25:06
|
||||
2018881157508812801,2018881157508812801,2026-07-13 04:25:06
|
||||
2018970241598148609,2018970241598148609,2026-07-13 04:25:06
|
||||
2018978142664445954,2018978142664445954,2026-07-13 04:25:06
|
||||
2019217560692248578,2019217560692248578,2026-07-13 04:25:06
|
||||
2019220834820476929,2019220834820476929,2026-07-13 04:25:06
|
||||
2019296275707121665,2019296275707121665,2026-07-13 04:25:06
|
||||
2019600221671706625,2019600221671706625,2026-07-13 04:25:06
|
||||
2019697721699127298,2019697721699127298,2026-07-13 04:25:06
|
||||
2020676987941212161,2020676987941212161,2026-07-13 04:25:06
|
||||
2020677475021541378,2020677475021541378,2026-07-13 04:25:06
|
||||
2020677800608583681,2020677800608583681,2026-07-13 04:25:06
|
||||
2020683641868963842,2020683641868963842,2026-07-13 04:25:06
|
||||
2020684078256934914,2020684078256934914,2026-07-13 04:25:06
|
||||
2020690956873551874,2020690956873551874,2026-07-13 04:25:06
|
||||
2020697579503407105,2020697579503407105,2026-07-13 04:25:06
|
||||
2020802448117649409,2020802448117649409,2026-07-13 04:25:06
|
||||
2021083344104247297,2021083344104247297,2026-07-13 04:25:06
|
||||
2021420357017849857,2021420357017849857,2026-07-13 04:25:06
|
||||
2021425917305999361,2021425917305999361,2026-07-13 04:25:06
|
||||
2021467172643721217,2021467172643721217,2026-07-13 04:25:06
|
||||
2021467823293517826,2021467823293517826,2026-07-13 04:25:06
|
||||
2026104227512373250,2026104227512373250,2026-07-13 04:25:06
|
||||
2026129729971212289,2026129729971212289,2026-07-13 04:25:06
|
||||
2026166063423213569,2026166063423213569,2026-07-13 04:25:06
|
||||
2026199463630655489,2026199463630655489,2026-07-13 04:25:06
|
||||
2026461972719652865,2026461972719652865,2026-07-13 04:25:06
|
||||
2026521813320388610,2026521813320388610,2026-07-13 04:25:06
|
||||
2026576965356146690,2026576965356146690,2026-07-13 04:25:06
|
||||
2026827778351616002,2026827778351616002,2026-07-13 04:25:06
|
||||
2026890388237373442,2026890388237373442,2026-07-13 04:25:06
|
||||
2026918525419573249,2026918525419573249,2026-07-13 04:25:06
|
||||
2026928179155488770,2026928179155488770,2026-07-13 04:25:06
|
||||
2027186532330950658,2027186532330950658,2026-07-13 04:25:06
|
||||
2027255139891073025,2027255139891073025,2026-07-13 04:25:06
|
||||
2027318398325280769,2027318398325280769,2026-07-13 04:25:06
|
||||
2027545020433354753,2027545020433354753,2026-07-13 04:25:06
|
||||
2027557458214047746,2027557458214047746,2026-07-13 04:25:06
|
||||
2027558881051987969,2027558881051987969,2026-07-13 04:25:06
|
||||
2027563568853602305,2027563568853602305,2026-07-13 04:25:06
|
||||
2027579693255544834,2027579693255544834,2026-07-13 04:25:06
|
||||
2027580077588008961,2027580077588008961,2026-07-13 04:25:06
|
||||
2027645723520716802,2027645723520716802,2026-07-13 04:25:06
|
||||
2027696597009879042,2027696597009879042,2026-07-13 04:25:06
|
||||
2028273151913938945,2028273151913938945,2026-07-13 04:25:06
|
||||
2028289550136823810,2028289550136823810,2026-07-13 04:25:06
|
||||
2028295822936559617,2028295822936559617,2026-07-13 04:25:06
|
||||
2028356599357820930,2028356599357820930,2026-07-13 04:25:06
|
||||
2028357134404210689,2028357134404210689,2026-07-13 04:25:06
|
||||
2028360441994596353,2028360441994596353,2026-07-13 04:25:06
|
||||
2028361395598970882,2028361395598970882,2026-07-13 04:25:06
|
||||
2028394773819871233,2028394773819871233,2026-07-13 04:25:06
|
||||
2028408336512897025,2028408336512897025,2026-07-13 04:25:06
|
||||
2028408774419206145,2028408774419206145,2026-07-13 04:25:06
|
||||
2028633536705777666,2028633536705777666,2026-07-13 04:25:06
|
||||
2028641140500779010,2028641140500779010,2026-07-13 04:25:06
|
||||
2028642308077572097,2028642308077572097,2026-07-13 04:25:06
|
||||
2028713889999015937,2028713889999015937,2026-07-13 04:25:06
|
||||
2028732484598550529,2028732484598550529,2026-07-13 04:25:06
|
||||
2028732950556364802,2028732950556364802,2026-07-13 04:25:06
|
||||
2029001664912609281,2029001664912609281,2026-07-13 04:25:06
|
||||
2029022542031409154,2029022542031409154,2026-07-13 04:25:06
|
||||
2029033564335165442,2029033564335165442,2026-07-13 04:25:06
|
||||
2029067958756233217,2029067958756233217,2026-07-13 04:25:06
|
||||
2029087237488693249,2029087237488693249,2026-07-13 04:25:06
|
||||
2029383677574303745,2029383677574303745,2026-07-13 04:25:06
|
||||
2029396898263781377,2029396898263781377,2026-07-13 04:25:06
|
||||
2029424951211773953,2029424951211773953,2026-07-13 04:25:06
|
||||
2029456203713269761,2029456203713269761,2026-07-13 04:25:06
|
||||
2029460550513774594,2029460550513774594,2026-07-13 04:25:06
|
||||
2029792364608540674,2029792364608540674,2026-07-13 04:25:06
|
||||
2030096882281926658,2030096882281926658,2026-07-13 04:25:06
|
||||
2030809559681699842,2030809559681699842,2026-07-13 04:25:06
|
||||
2030811158437138433,2030811158437138433,2026-07-13 04:25:06
|
||||
2030820850924228609,2030820850924228609,2026-07-13 04:25:06
|
||||
2030826678389542913,2030826678389542913,2026-07-13 04:25:06
|
||||
2030830289198747650,2030830289198747650,2026-07-13 04:25:06
|
||||
2030830682490245121,2030830682490245121,2026-07-13 04:25:06
|
||||
2030835420933885954,2030835420933885954,2026-07-13 04:25:06
|
||||
2030835990520369154,2030835990520369154,2026-07-13 04:25:06
|
||||
2030862282192023554,2030862282192023554,2026-07-13 04:25:06
|
||||
2030866399685734401,2030866399685734401,2026-07-13 04:25:06
|
||||
2030901602890248193,2030901602890248193,2026-07-13 04:25:06
|
||||
2030910539580534785,2030910539580534785,2026-07-13 04:25:06
|
||||
2030921848271368193,2030921848271368193,2026-07-13 04:25:06
|
||||
2030930353845923842,2030930353845923842,2026-07-13 04:25:06
|
||||
2030931143822110721,2030931143822110721,2026-07-13 04:25:06
|
||||
2031212203646623746,2031212203646623746,2026-07-13 04:25:06
|
||||
2031238772545003521,2031238772545003521,2026-07-13 04:25:06
|
||||
2031256362109607937,2031256362109607937,2026-07-13 04:25:06
|
||||
2031256763802296322,2031256763802296322,2026-07-13 04:25:06
|
||||
2031261861865562113,2031261861865562113,2026-07-13 04:25:06
|
||||
2031556403189751809,2031556403189751809,2026-07-13 04:25:06
|
||||
2031573594366779393,2031573594366779393,2026-07-13 04:25:06
|
||||
2031630342125494273,2031630342125494273,2026-07-13 04:25:06
|
||||
2031640261490876417,2031640261490876417,2026-07-13 04:25:06
|
||||
2031660536060157954,2031660536060157954,2026-07-13 04:25:06
|
||||
2031899926778855425,2031899926778855425,2026-07-13 04:25:06
|
||||
2031903198004625409,2031903198004625409,2026-07-13 04:25:06
|
||||
2031903468088442881,2031903468088442881,2026-07-13 04:25:06
|
||||
2031909621438595074,2031909621438595074,2026-07-13 04:25:06
|
||||
2031973746839633922,2031973746839633922,2026-07-13 04:25:06
|
||||
2031977309447897089,2031977309447897089,2026-07-13 04:25:06
|
||||
2031986006513401858,2031986006513401858,2026-07-13 04:25:06
|
||||
2031988161177698305,2031988161177698305,2026-07-13 04:25:06
|
||||
2031996074084515842,2031996074084515842,2026-07-13 04:25:06
|
||||
2031996356591861762,2031996356591861762,2026-07-13 04:25:06
|
||||
2032001609114566657,2032001609114566657,2026-07-13 04:25:06
|
||||
2032029279508480002,2032029279508480002,2026-07-13 04:25:06
|
||||
2032337968593354754,2032337968593354754,2026-07-13 04:25:06
|
||||
2032341073603051521,2032341073603051521,2026-07-13 04:25:06
|
||||
2032355653930696705,2032355653930696705,2026-07-13 04:25:06
|
||||
2032381122184986626,2032381122184986626,2026-07-13 04:25:06
|
||||
2032387609556926465,2032387609556926465,2026-07-13 04:25:06
|
||||
2033006727192604673,2033006727192604673,2026-07-13 04:25:06
|
||||
2033076375879643138,2033076375879643138,2026-07-13 04:25:06
|
||||
2033344232844652546,2033344232844652546,2026-07-13 04:25:06
|
||||
2033344554308694017,2033344554308694017,2026-07-13 04:25:06
|
||||
2033349696768667650,2033349696768667650,2026-07-13 04:25:06
|
||||
2033356574655475713,2033356574655475713,2026-07-13 04:25:06
|
||||
2033362726290157569,2033362726290157569,2026-07-13 04:25:06
|
||||
2033461692801445890,2033461692801445890,2026-07-13 04:25:06
|
||||
2033462135451512834,2033462135451512834,2026-07-13 04:25:06
|
||||
2033474820800999426,2033474820800999426,2026-07-13 04:25:06
|
||||
2033715601256181761,2033715601256181761,2026-07-13 04:25:06
|
||||
2033715863068831746,2033715863068831746,2026-07-13 04:25:06
|
||||
2033716517405421569,2033716517405421569,2026-07-13 04:25:06
|
||||
2033730867750989826,2033730867750989826,2026-07-13 04:25:06
|
||||
2033731945032806401,2033731945032806401,2026-07-13 04:25:06
|
||||
2033766559579336706,2033766559579336706,2026-07-13 04:25:06
|
||||
2033771398648524802,2033771398648524802,2026-07-13 04:25:06
|
||||
2034070033483395073,2034070033483395073,2026-07-13 04:25:06
|
||||
2034070287557554177,2034070287557554177,2026-07-13 04:25:06
|
||||
2034073116565270530,2034073116565270530,2026-07-13 04:25:06
|
||||
2034073934286778369,2034073934286778369,2026-07-13 04:25:06
|
||||
2034196684162691074,2034196684162691074,2026-07-13 04:25:06
|
||||
2034430249022484482,2034430249022484482,2026-07-13 04:25:06
|
||||
2034463047838035969,2034463047838035969,2026-07-13 04:25:06
|
||||
2034504222179553281,2034504222179553281,2026-07-13 04:25:06
|
||||
2034504497552388098,2034504497552388098,2026-07-13 04:25:06
|
||||
2034506222908698626,2034506222908698626,2026-07-13 04:25:06
|
||||
2034506475510657025,2034506475510657025,2026-07-13 04:25:06
|
||||
2034507986013745153,2034507986013745153,2026-07-13 04:25:06
|
||||
2034508947478245377,2034508947478245377,2026-07-13 04:25:06
|
||||
2034527684747030529,2034527684747030529,2026-07-13 04:25:06
|
||||
2034860008151937025,2034860008151937025,2026-07-13 04:25:06
|
||||
2034894325326508034,2034894325326508034,2026-07-13 04:25:06
|
||||
2034905430312579073,2034905430312579073,2026-07-13 04:25:06
|
||||
2035880666105344001,2035880666105344001,2026-07-13 04:25:06
|
||||
2035880904991928322,2035880904991928322,2026-07-13 04:25:06
|
||||
2035881212354719745,2035881212354719745,2026-07-13 04:25:06
|
||||
2035882124636811265,2035882124636811265,2026-07-13 04:25:06
|
||||
2035920144064802818,2035920144064802818,2026-07-13 04:25:06
|
||||
2035920403394424833,2035920403394424833,2026-07-13 04:25:06
|
||||
2035946075781296129,2035946075781296129,2026-07-13 04:25:06
|
||||
2035946590506283009,2035946590506283009,2026-07-13 04:25:06
|
||||
2035950933347364865,2035950933347364865,2026-07-13 04:25:06
|
||||
2035952449789587457,2035952449789587457,2026-07-13 04:25:06
|
||||
2035952883707113474,2035952883707113474,2026-07-13 04:25:06
|
||||
2035953138284589057,2035953138284589057,2026-07-13 04:25:06
|
||||
2035983649337995266,2035983649337995266,2026-07-13 04:25:06
|
||||
2035984556775665665,2035984556775665665,2026-07-13 04:25:06
|
||||
2036000578836590593,2036000578836590593,2026-07-13 04:25:06
|
||||
2036003815278997505,2036003815278997505,2026-07-13 04:25:06
|
||||
2036256227810045954,2036256227810045954,2026-07-13 04:25:06
|
||||
2036256455493644290,2036256455493644290,2026-07-13 04:25:06
|
||||
2036340484909789185,2036340484909789185,2026-07-13 04:25:06
|
||||
2036347213517123586,2036347213517123586,2026-07-13 04:25:06
|
||||
2036366962078740481,2036366962078740481,2026-07-13 04:25:06
|
||||
2036681800927637506,2036681800927637506,2026-07-13 04:25:06
|
||||
2036729768837869569,2036729768837869569,2026-07-13 04:25:06
|
||||
2036991103945371650,2036991103945371650,2026-07-13 04:25:06
|
||||
2037092375390285825,2037092375390285825,2026-07-13 04:25:06
|
||||
2037094260901900289,2037094260901900289,2026-07-13 04:25:06
|
||||
2037109994407292929,2037109994407292929,2026-07-13 04:25:06
|
||||
2037361813272358914,2037361813272358914,2026-07-13 04:25:06
|
||||
2037371700849111042,2037371700849111042,2026-07-13 04:25:06
|
||||
2037423697124093954,2037423697124093954,2026-07-13 04:25:06
|
||||
2037447311181443073,2037447311181443073,2026-07-13 04:25:06
|
||||
2037447617856368642,2037447617856368642,2026-07-13 04:25:06
|
||||
2037473900078264322,2037473900078264322,2026-07-13 04:25:06
|
||||
2037691656690167809,2037691656690167809,2026-07-13 04:25:06
|
||||
2037710184096952321,2037710184096952321,2026-07-13 04:25:06
|
||||
2038417815300173825,2038417815300173825,2026-07-13 04:25:06
|
||||
2038423877478739969,2038423877478739969,2026-07-13 04:25:06
|
||||
2038428377992097793,2038428377992097793,2026-07-13 04:25:06
|
||||
2038428585832443905,2038428585832443905,2026-07-13 04:25:06
|
||||
2038445676404895745,2038445676404895745,2026-07-13 04:25:06
|
||||
2038468367555981313,2038468367555981313,2026-07-13 04:25:06
|
||||
2038471464386785282,2038471464386785282,2026-07-13 04:25:06
|
||||
2038472478171033602,2038472478171033602,2026-07-13 04:25:06
|
||||
2038493302735204353,2038493302735204353,2026-07-13 04:25:06
|
||||
2038500916227436546,2038500916227436546,2026-07-13 04:25:06
|
||||
2038516496401657858,2038516496401657858,2026-07-13 04:25:06
|
||||
2038542144335736834,2038542144335736834,2026-07-13 04:25:06
|
||||
2038550563763482626,2038550563763482626,2026-07-13 04:25:06
|
||||
2038794336552579074,2038794336552579074,2026-07-13 04:25:06
|
||||
2038794609677266946,2038794609677266946,2026-07-13 04:25:06
|
||||
2038823764087238657,2038823764087238657,2026-07-13 04:25:06
|
||||
2038874144724709377,2038874144724709377,2026-07-13 04:25:06
|
||||
2038876588456243201,2038876588456243201,2026-07-13 04:25:06
|
||||
2039168887618760705,2039168887618760705,2026-07-13 04:25:06
|
||||
2039178887762243586,2039178887762243586,2026-07-13 04:25:06
|
||||
2039228791415074817,2039228791415074817,2026-07-13 04:25:06
|
||||
2039255603075575809,2039255603075575809,2026-07-13 04:25:06
|
||||
2039529094597275650,2039529094597275650,2026-07-13 04:25:06
|
||||
2039529313787408386,2039529313787408386,2026-07-13 04:25:06
|
||||
2039888175119953921,2039888175119953921,2026-07-13 04:25:06
|
||||
2039960214413471745,2039960214413471745,2026-07-13 04:25:06
|
||||
2039989734378008578,2039989734378008578,2026-07-13 04:25:06
|
||||
2041335223182651394,2041335223182651394,2026-07-13 04:25:06
|
||||
2041356757439836161,2041356757439836161,2026-07-13 04:25:06
|
||||
2041391862191452161,2041391862191452161,2026-07-13 04:25:06
|
||||
2041392156635787266,2041392156635787266,2026-07-13 04:25:06
|
||||
2041401693560336386,2041401693560336386,2026-07-13 04:25:06
|
||||
2041417266923008002,2041417266923008002,2026-07-13 04:25:06
|
||||
2041423591795027970,2041423591795027970,2026-07-13 04:25:06
|
||||
2041436190024626178,2041436190024626178,2026-07-13 04:25:06
|
||||
2041444633997438977,2041444633997438977,2026-07-13 04:25:06
|
||||
2041450408140566529,2041450408140566529,2026-07-13 04:25:06
|
||||
2041450765382021122,2041450765382021122,2026-07-13 04:25:06
|
||||
2041683561602052098,2041683561602052098,2026-07-13 04:25:06
|
||||
2041768001497952258,2041768001497952258,2026-07-13 04:25:06
|
||||
2041785948517920770,2041785948517920770,2026-07-13 04:25:06
|
||||
2041786420909797378,2041786420909797378,2026-07-13 04:25:06
|
||||
2041788526941138946,2041788526941138946,2026-07-13 04:25:06
|
||||
2042042013482446850,2042042013482446850,2026-07-13 04:25:06
|
||||
2042065405682085889,2042065405682085889,2026-07-13 04:25:06
|
||||
2042066461304516610,2042066461304516610,2026-07-13 04:25:06
|
||||
2042074099803189250,2042074099803189250,2026-07-13 04:25:06
|
||||
2042092713847517185,2042092713847517185,2026-07-13 04:25:06
|
||||
2042135635078901762,2042135635078901762,2026-07-13 04:25:06
|
||||
2042181484647510018,2042181484647510018,2026-07-13 04:25:06
|
||||
2042188422290567170,2042188422290567170,2026-07-13 04:25:06
|
||||
2042492894401228802,2042492894401228802,2026-07-13 04:25:06
|
||||
2042506585255407617,2042506585255407617,2026-07-13 04:25:06
|
||||
2042507565183234050,2042507565183234050,2026-07-13 04:25:06
|
||||
2042507841671753729,2042507841671753729,2026-07-13 04:25:06
|
||||
2042543798320066562,2042543798320066562,2026-07-13 04:25:06
|
||||
2042549147739582466,2042549147739582466,2026-07-13 04:25:06
|
||||
2043509686041014274,2043509686041014274,2026-07-13 04:25:06
|
||||
2043516409111867393,2043516409111867393,2026-07-13 04:25:06
|
||||
2043579225168637953,2043579225168637953,2026-07-13 04:25:06
|
||||
2043579478647205890,2043579478647205890,2026-07-13 04:25:06
|
||||
2043584511623262210,2043584511623262210,2026-07-13 04:25:06
|
||||
2043597006576513025,2043597006576513025,2026-07-13 04:25:06
|
||||
2043597209576632321,2043597209576632321,2026-07-13 04:25:06
|
||||
2043614430390611969,2043614430390611969,2026-07-13 04:25:06
|
||||
2043866119743959041,2043866119743959041,2026-07-13 04:25:06
|
||||
2043892428054425602,2043892428054425602,2026-07-13 04:25:06
|
||||
2043950651369287681,2043950651369287681,2026-07-13 04:25:06
|
||||
2044214527134494722,2044214527134494722,2026-07-13 04:25:06
|
||||
2044219277045362689,2044219277045362689,2026-07-13 04:25:06
|
||||
2044219531979354113,2044219531979354113,2026-07-13 04:25:06
|
||||
2044224846707781633,2044224846707781633,2026-07-13 04:25:06
|
||||
2044225041206046722,2044225041206046722,2026-07-13 04:25:06
|
||||
2044228527792549889,2044228527792549889,2026-07-13 04:25:06
|
||||
2044325635715461121,2044325635715461121,2026-07-13 04:25:06
|
||||
2044326361267138562,2044326361267138562,2026-07-13 04:25:06
|
||||
2044349693622448129,2044349693622448129,2026-07-13 04:25:06
|
||||
2044584697564721153,2044584697564721153,2026-07-13 04:25:06
|
||||
2044589059573772290,2044589059573772290,2026-07-13 04:25:06
|
||||
2044594429071421441,2044594429071421441,2026-07-13 04:25:06
|
||||
2044601489251069954,2044601489251069954,2026-07-13 04:25:06
|
||||
2044954470983102465,2044954470983102465,2026-07-13 04:25:06
|
||||
2044954974580600833,2044954974580600833,2026-07-13 04:25:06
|
||||
2045016918100504577,2045016918100504577,2026-07-13 04:25:06
|
||||
2045028018787414018,2045028018787414018,2026-07-13 04:25:06
|
||||
2045028384937570305,2045028384937570305,2026-07-13 04:25:06
|
||||
2045079170379902978,2045079170379902978,2026-07-13 04:25:06
|
||||
2046027029140946946,2046027029140946946,2026-07-13 04:25:06
|
||||
2046027249312546818,2046027249312546818,2026-07-13 04:25:06
|
||||
2046027472663429122,2046027472663429122,2026-07-13 04:25:06
|
||||
2046031726430076930,2046031726430076930,2026-07-13 04:25:06
|
||||
2046031998426497025,2046031998426497025,2026-07-13 04:25:06
|
||||
2046042239058788353,2046042239058788353,2026-07-13 04:25:06
|
||||
2046042502360416258,2046042502360416258,2026-07-13 04:25:06
|
||||
2046117745905057794,2046117745905057794,2026-07-13 04:25:06
|
||||
2046125076105609217,2046125076105609217,2026-07-13 04:25:06
|
||||
2046135925461434370,2046135925461434370,2026-07-13 04:25:06
|
||||
2046139889703665666,2046139889703665666,2026-07-13 04:25:06
|
||||
2046406559676448770,2046406559676448770,2026-07-13 04:25:06
|
||||
2046510744791105537,2046510744791105537,2026-07-13 04:25:06
|
||||
2046516656134111234,2046516656134111234,2026-07-13 04:25:06
|
||||
2046779523676667905,2046779523676667905,2026-07-13 04:25:06
|
||||
2046822816355614722,2046822816355614722,2026-07-13 04:25:06
|
||||
2046823167704072193,2046823167704072193,2026-07-13 04:25:06
|
||||
2046847195005222913,2046847195005222913,2026-07-13 04:25:06
|
||||
2046847463067385857,2046847463067385857,2026-07-13 04:25:06
|
||||
2046847789627506689,2046847789627506689,2026-07-13 04:25:06
|
||||
2047113356913573890,2047113356913573890,2026-07-13 04:25:06
|
||||
2047131857996906497,2047131857996906497,2026-07-13 04:25:06
|
||||
2047140197347000321,2047140197347000321,2026-07-13 04:25:06
|
||||
2047218088554430465,2047218088554430465,2026-07-13 04:25:06
|
||||
2047218292997390338,2047218292997390338,2026-07-13 04:25:06
|
||||
2047502614061023234,2047502614061023234,2026-07-13 04:25:06
|
||||
2047597023632982018,2047597023632982018,2026-07-13 04:25:06
|
||||
2047863267959406593,2047863267959406593,2026-07-13 04:25:06
|
||||
2047871346994216962,2047871346994216962,2026-07-13 04:25:06
|
||||
2048203824132947969,2048203824132947969,2026-07-13 04:25:06
|
||||
2048561320148303873,2048561320148303873,2026-07-13 04:25:06
|
||||
2048564947243991041,2048564947243991041,2026-07-13 04:25:06
|
||||
2048568656107634690,2048568656107634690,2026-07-13 04:25:06
|
||||
2048569021322461186,2048569021322461186,2026-07-13 04:25:06
|
||||
2048603140655906817,2048603140655906817,2026-07-13 04:25:06
|
||||
2048632070523813889,2048632070523813889,2026-07-13 04:25:06
|
||||
2048632514180513794,2048632514180513794,2026-07-13 04:25:06
|
||||
2048632778727849986,2048632778727849986,2026-07-13 04:25:06
|
||||
2048634083470966785,2048634083470966785,2026-07-13 04:25:06
|
||||
2048643564271534081,2048643564271534081,2026-07-13 04:25:06
|
||||
2048650212113350658,2048650212113350658,2026-07-13 04:25:06
|
||||
2048650953028763649,2048650953028763649,2026-07-13 04:25:06
|
||||
2048660258436120578,2048660258436120578,2026-07-13 04:25:06
|
||||
2048683594536943618,2048683594536943618,2026-07-13 04:25:06
|
||||
2048693771994628097,2048693771994628097,2026-07-13 04:25:06
|
||||
2048695108346019842,2048695108346019842,2026-07-13 04:25:06
|
||||
2048699367422656514,2048699367422656514,2026-07-13 04:25:06
|
||||
2049016069863735298,2049016069863735298,2026-07-13 04:25:06
|
||||
2049016904303738881,2049016904303738881,2026-07-13 04:25:06
|
||||
2049300487576715265,2049300487576715265,2026-07-13 04:25:06
|
||||
2049300752895803393,2049300752895803393,2026-07-13 04:25:06
|
||||
2049371591074873345,2049371591074873345,2026-07-13 04:25:06
|
||||
2049420434164383745,2049420434164383745,2026-07-13 04:25:06
|
||||
2049421239034544129,2049421239034544129,2026-07-13 04:25:06
|
||||
2049660965981224961,2049660965981224961,2026-07-13 04:25:06
|
||||
2049663256868126721,2049663256868126721,2026-07-13 04:25:06
|
||||
2049719992001986561,2049719992001986561,2026-07-13 04:25:06
|
||||
2049740163831791618,2049740163831791618,2026-07-13 04:25:06
|
||||
2049775074357772290,2049775074357772290,2026-07-13 04:25:06
|
||||
2050506836109131777,2050506836109131777,2026-07-13 04:25:06
|
||||
2051149329649598465,2051149329649598465,2026-07-13 04:25:06
|
||||
2051254791908851714,2051254791908851714,2026-07-13 04:25:06
|
||||
2051834337796259841,2051834337796259841,2026-07-13 04:25:06
|
||||
2051891915242831873,2051891915242831873,2026-07-13 04:25:06
|
||||
2051900644990353410,2051900644990353410,2026-07-13 04:25:06
|
||||
2051913331560382466,2051913331560382466,2026-07-13 04:25:06
|
||||
2051913896449245185,2051913896449245185,2026-07-13 04:25:06
|
||||
2051931481744048130,2051931481744048130,2026-07-13 04:25:06
|
||||
2051943289523503106,2051943289523503106,2026-07-13 04:25:06
|
||||
2051952080025518081,2051952080025518081,2026-07-13 04:25:06
|
||||
2052185903388655618,2052185903388655618,2026-07-13 04:25:06
|
||||
2052194651486257153,2052194651486257153,2026-07-13 04:25:06
|
||||
2052202157440729089,2052202157440729089,2026-07-13 04:25:06
|
||||
2052237114695450625,2052237114695450625,2026-07-13 04:25:06
|
||||
2052259258498252802,2052259258498252802,2026-07-13 04:25:06
|
||||
2052590460912500738,2052590460912500738,2026-07-13 04:25:06
|
||||
2052649030815285249,2052649030815285249,2026-07-13 04:25:06
|
||||
2052655714149302274,2052655714149302274,2026-07-13 04:25:06
|
||||
2052673538066448386,2052673538066448386,2026-07-13 04:25:06
|
||||
2052930991626616834,2052930991626616834,2026-07-13 04:25:06
|
||||
2052933297227137026,2052933297227137026,2026-07-13 04:25:06
|
||||
2052978521227886594,2052978521227886594,2026-07-13 04:25:06
|
||||
2053635532282085378,2053635532282085378,2026-07-13 04:25:06
|
||||
2053655917786513409,2053655917786513409,2026-07-13 04:25:06
|
||||
2053675281130668034,2053675281130668034,2026-07-13 04:25:06
|
||||
2053677393449271297,2053677393449271297,2026-07-13 04:25:06
|
||||
2053730208204931074,2053730208204931074,2026-07-13 04:25:06
|
||||
2053761803230068737,2053761803230068737,2026-07-13 04:25:06
|
||||
2053762040984190978,2053762040984190978,2026-07-13 04:25:06
|
||||
2054012168793964546,2054012168793964546,2026-07-13 04:25:06
|
||||
2054359415431839746,2054359415431839746,2026-07-13 04:25:06
|
||||
2054376301498417153,2054376301498417153,2026-07-13 04:25:06
|
||||
2054384688424501250,2054384688424501250,2026-07-13 04:25:06
|
||||
2054440060900294658,2054440060900294658,2026-07-13 04:25:06
|
||||
2054464920204558338,2054464920204558338,2026-07-13 04:25:06
|
||||
2054486394311229442,2054486394311229442,2026-07-13 04:25:06
|
||||
2054776211095896065,2054776211095896065,2026-07-13 04:25:06
|
||||
2054776652558974978,2054776652558974978,2026-07-13 04:25:06
|
||||
2054844701366501377,2054844701366501377,2026-07-13 04:25:06
|
||||
2055085781160771585,2055085781160771585,2026-07-13 04:25:06
|
||||
2055106828308267009,2055106828308267009,2026-07-13 04:25:06
|
||||
2055112109159301121,2055112109159301121,2026-07-13 04:25:06
|
||||
2055112711239057409,2055112711239057409,2026-07-13 04:25:06
|
||||
2055168046347796482,2055168046347796482,2026-07-13 04:25:06
|
||||
2055173490231427073,2055173490231427073,2026-07-13 04:25:06
|
||||
2055465643700600833,2055465643700600833,2026-07-13 04:25:06
|
||||
2055470221716307970,2055470221716307970,2026-07-13 04:25:06
|
||||
2056183650890498049,2056183650890498049,2026-07-13 04:25:06
|
||||
2056183912610873345,2056183912610873345,2026-07-13 04:25:06
|
||||
2056209334014787586,2056209334014787586,2026-07-13 04:25:06
|
||||
2056215081519890433,2056215081519890433,2026-07-13 04:25:06
|
||||
2056215646530387970,2056215646530387970,2026-07-13 04:25:06
|
||||
2056216090103201793,2056216090103201793,2026-07-13 04:25:06
|
||||
2056218244654252033,2056218244654252033,2026-07-13 04:25:06
|
||||
2056294013720018946,2056294013720018946,2026-07-13 04:25:06
|
||||
2056559290886090754,2056559290886090754,2026-07-13 04:25:06
|
||||
2056559643404759042,2056559643404759042,2026-07-13 04:25:06
|
||||
2056563444081717250,2056563444081717250,2026-07-13 04:25:06
|
||||
2056589998513942530,2056589998513942530,2026-07-13 04:25:06
|
||||
2056636061388075010,2056636061388075010,2026-07-13 04:25:06
|
||||
2056646358014324737,2056646358014324737,2026-07-13 04:25:06
|
||||
2056979844231294978,2056979844231294978,2026-07-13 04:25:06
|
||||
2056980127267123202,2056980127267123202,2026-07-13 04:25:06
|
||||
2056990424807731201,2056990424807731201,2026-07-13 04:25:06
|
||||
2056998129580601345,2056998129580601345,2026-07-13 04:25:06
|
||||
2057010065437323266,2057010065437323266,2026-07-13 04:25:06
|
||||
2057036088413483010,2057036088413483010,2026-07-13 04:25:06
|
||||
2057268907135954945,2057268907135954945,2026-07-13 04:25:06
|
||||
2057345996757364738,2057345996757364738,2026-07-13 04:25:06
|
||||
2057623657224302593,2057623657224302593,2026-07-13 04:25:06
|
||||
2057667469183250433,2057667469183250433,2026-07-13 04:25:06
|
||||
2057759213082079233,2057759213082079233,2026-07-13 04:25:06
|
||||
2057759484524851201,2057759484524851201,2026-07-13 04:25:06
|
||||
2058711198048415745,2058711198048415745,2026-07-13 04:25:06
|
||||
2058719965737611265,2058719965737611265,2026-07-13 04:25:06
|
||||
2058745963652804609,2058745963652804609,2026-07-13 04:25:06
|
||||
2058817749232873473,2058817749232873473,2026-07-13 04:25:06
|
||||
2058820313919746050,2058820313919746050,2026-07-13 04:25:06
|
||||
2058848885115940866,2058848885115940866,2026-07-13 04:25:06
|
||||
2059074901113532418,2059074901113532418,2026-07-13 04:25:06
|
||||
2059100840887283714,2059100840887283714,2026-07-13 04:25:06
|
||||
2059120570582921217,2059120570582921217,2026-07-13 04:25:06
|
||||
2059148223771799553,2059148223771799553,2026-07-13 04:25:06
|
||||
2059151937257566210,2059151937257566210,2026-07-13 04:25:06
|
||||
2059154054504476673,2059154054504476673,2026-07-13 04:25:06
|
||||
2059169771387842561,2059169771387842561,2026-07-13 04:25:06
|
||||
2059452804619792385,2059452804619792385,2026-07-13 04:25:06
|
||||
2059457101843623938,2059457101843623938,2026-07-13 04:25:06
|
||||
2059541666750754818,2059541666750754818,2026-07-13 04:25:06
|
||||
2059564885247488001,2059564885247488001,2026-07-13 04:25:06
|
||||
2059798955294420994,2059798955294420994,2026-07-13 04:25:06
|
||||
2059799174383890434,2059799174383890434,2026-07-13 04:25:06
|
||||
2059799447294668801,2059799447294668801,2026-07-13 04:25:06
|
||||
2059811979833077762,2059811979833077762,2026-07-13 04:25:06
|
||||
2059812367986552833,2059812367986552833,2026-07-13 04:25:06
|
||||
2059851365094223873,2059851365094223873,2026-07-13 04:25:06
|
||||
2059853607276867586,2059853607276867586,2026-07-13 04:25:06
|
||||
2059855422127042562,2059855422127042562,2026-07-13 04:25:06
|
||||
2060170449275023362,2060170449275023362,2026-07-13 04:25:06
|
||||
2060182652950638594,2060182652950638594,2026-07-13 04:25:06
|
||||
2060202607662297089,2060202607662297089,2026-07-13 04:25:06
|
||||
2060229880692043777,2060229880692043777,2026-07-13 04:25:06
|
||||
2060284686743859202,2060284686743859202,2026-07-13 04:25:06
|
||||
2060286352016764929,2060286352016764929,2026-07-13 04:25:06
|
||||
2060935383927726081,2060935383927726081,2026-07-13 04:25:06
|
||||
2060940551813570561,2060940551813570561,2026-07-13 04:25:06
|
||||
2060941983090450433,2060941983090450433,2026-07-13 04:25:06
|
||||
2061247173567946753,2061247173567946753,2026-07-13 04:25:06
|
||||
2061247514145431553,2061247514145431553,2026-07-13 04:25:06
|
||||
2061266208284188673,2061266208284188673,2026-07-13 04:25:06
|
||||
2061276932976910337,2061276932976910337,2026-07-13 04:25:06
|
||||
2061282850586206209,2061282850586206209,2026-07-13 04:25:06
|
||||
2061283154434170881,2061283154434170881,2026-07-13 04:25:06
|
||||
2061320412201721857,2061320412201721857,2026-07-13 04:25:06
|
||||
2061330385577156609,2061330385577156609,2026-07-13 04:25:06
|
||||
2061368612052770818,2061368612052770818,2026-07-13 04:25:06
|
||||
2061639094236848130,2061639094236848130,2026-07-13 04:25:06
|
||||
2061639328371286018,2061639328371286018,2026-07-13 04:25:06
|
||||
2061642248567365633,2061642248567365633,2026-07-13 04:25:06
|
||||
2061688034466439169,2061688034466439169,2026-07-13 04:25:06
|
||||
2061691287044333569,2061691287044333569,2026-07-13 04:25:06
|
||||
2061725064659443714,2061725064659443714,2026-07-13 04:25:06
|
||||
2061729685394137090,2061729685394137090,2026-07-13 04:25:06
|
||||
2061745759820947457,2061745759820947457,2026-07-13 04:25:06
|
||||
2062038484755652609,2062038484755652609,2026-07-13 04:25:06
|
||||
2062041434550935554,2062041434550935554,2026-07-13 04:25:06
|
||||
2062091919278448642,2062091919278448642,2026-07-13 04:25:06
|
||||
2062720077333766146,2062720077333766146,2026-07-13 04:25:06
|
||||
2062720523100200962,2062720523100200962,2026-07-13 04:25:06
|
||||
2062724293951463426,2062724293951463426,2026-07-13 04:25:06
|
||||
2062783136895049730,2062783136895049730,2026-07-13 04:25:06
|
||||
2063785526842597378,2063785526842597378,2026-07-13 04:25:06
|
||||
2063785941525045250,2063785941525045250,2026-07-13 04:25:06
|
||||
2063810060803088385,2063810060803088385,2026-07-13 04:25:06
|
||||
2063810563419119617,2063810563419119617,2026-07-13 04:25:06
|
||||
2063819764010819585,2063819764010819585,2026-07-13 04:25:06
|
||||
2063825304870952961,2063825304870952961,2026-07-13 04:25:06
|
||||
2063850946689736706,2063850946689736706,2026-07-13 04:25:06
|
||||
2063857054019985409,2063857054019985409,2026-07-13 04:25:06
|
||||
2064151102307934209,2064151102307934209,2026-07-13 04:25:06
|
||||
2064151549391380482,2064151549391380482,2026-07-13 04:25:06
|
||||
2064155419475681282,2064155419475681282,2026-07-13 04:25:06
|
||||
2064160353646518273,2064160353646518273,2026-07-13 04:25:06
|
||||
2064228267510702082,2064228267510702082,2026-07-13 04:25:06
|
||||
2064243474769354754,2064243474769354754,2026-07-13 04:25:06
|
||||
2064258943026962433,2064258943026962433,2026-07-13 04:25:06
|
||||
2064509603655950338,2064509603655950338,2026-07-13 04:25:06
|
||||
2064541283322142721,2064541283322142721,2026-07-13 04:25:06
|
||||
2064550577669120002,2064550577669120002,2026-07-13 04:25:06
|
||||
2064588993496588289,2064588993496588289,2026-07-13 04:25:06
|
||||
2064607601626947586,2064607601626947586,2026-07-13 04:25:06
|
||||
2064607867768119297,2064607867768119297,2026-07-13 04:25:06
|
||||
2064618522978000897,2064618522978000897,2026-07-13 04:25:06
|
||||
2064908229716713473,2064908229716713473,2026-07-13 04:25:06
|
||||
2064908524756639746,2064908524756639746,2026-07-13 04:25:06
|
||||
2064910774036045826,2064910774036045826,2026-07-13 04:25:06
|
||||
2064962316189540353,2064962316189540353,2026-07-13 04:25:06
|
||||
2065241337657794562,2065241337657794562,2026-07-13 04:25:06
|
||||
2065245770831601666,2065245770831601666,2026-07-13 04:25:06
|
||||
2065315527085760514,2065315527085760514,2026-07-13 04:25:06
|
||||
2065335716430979074,2065335716430979074,2026-07-13 04:25:06
|
||||
2065358621302824962,2065358621302824962,2026-07-13 04:25:06
|
||||
2065627001532424194,2065627001532424194,2026-07-13 04:25:06
|
||||
2066348703807676417,2066348703807676417,2026-07-13 04:25:06
|
||||
2066393909701615618,2066393909701615618,2026-07-13 04:25:06
|
||||
2066401206381289474,2066401206381289474,2026-07-13 04:25:06
|
||||
2066417506755256321,2066417506755256321,2026-07-13 04:25:06
|
||||
2066418324455792642,2066418324455792642,2026-07-13 04:25:06
|
||||
2066459878243409921,2066459878243409921,2026-07-13 04:25:06
|
||||
2066695299300827137,2066695299300827137,2026-07-13 04:25:06
|
||||
2066707968586129409,2066707968586129409,2026-07-13 04:25:06
|
||||
2066720622822268930,2066720622822268930,2026-07-13 04:25:06
|
||||
2066720825897885698,2066720825897885698,2026-07-13 04:25:06
|
||||
2066804577089069057,2066804577089069057,2026-07-13 04:25:06
|
||||
2066813464122990594,2066813464122990594,2026-07-13 04:25:06
|
||||
2067079569114636289,2067079569114636289,2026-07-13 04:25:06
|
||||
2067153081321889793,2067153081321889793,2026-07-13 04:25:06
|
||||
2067157169224785922,2067157169224785922,2026-07-13 04:25:06
|
||||
2067434454930661378,2067434454930661378,2026-07-13 04:25:06
|
||||
2067541760104177665,2067541760104177665,2026-07-13 04:25:06
|
||||
2067813845040865281,2067813845040865281,2026-07-13 04:25:06
|
||||
2068866731590000642,2068866731590000642,2026-07-13 04:25:06
|
||||
2068927272735973377,2068927272735973377,2026-07-13 04:25:06
|
||||
2068928053748932609,2068928053748932609,2026-07-13 04:25:06
|
||||
2068984474096082945,2068984474096082945,2026-07-13 04:25:06
|
||||
2068993734808936449,2068993734808936449,2026-07-13 04:25:06
|
||||
2069224945972125698,2069224945972125698,2026-07-13 04:25:06
|
||||
2069254344561893378,2069254344561893378,2026-07-13 04:25:06
|
||||
2069254603555971073,2069254603555971073,2026-07-13 04:25:06
|
||||
2069255657639092226,2069255657639092226,2026-07-13 04:25:06
|
||||
2069256069943369729,2069256069943369729,2026-07-13 04:25:06
|
||||
2069259260785303553,2069259260785303553,2026-07-13 04:25:06
|
||||
2069307389823918082,2069307389823918082,2026-07-13 04:25:06
|
||||
2069339566271864834,2069339566271864834,2026-07-13 04:25:06
|
||||
2069588747825684481,2069588747825684481,2026-07-13 04:25:06
|
||||
2069588957641547778,2069588957641547778,2026-07-13 04:25:06
|
||||
2069620755578724353,2069620755578724353,2026-07-13 04:25:06
|
||||
2069649837485957122,2069649837485957122,2026-07-13 04:25:06
|
||||
2069650573015883777,2069650573015883777,2026-07-13 04:25:06
|
||||
2069654300451905538,2069654300451905538,2026-07-13 04:25:06
|
||||
2069708406289833985,2069708406289833985,2026-07-13 04:25:06
|
||||
2069723443884695554,2069723443884695554,2026-07-13 04:25:06
|
||||
2069950311560880130,2069950311560880130,2026-07-13 04:25:06
|
||||
2069959627147812865,2069959627147812865,2026-07-13 04:25:06
|
||||
2069988899723911169,2069988899723911169,2026-07-13 04:25:06
|
||||
2070012938223853570,2070012938223853570,2026-07-13 04:25:06
|
||||
2070027227420663810,2070027227420663810,2026-07-13 04:25:06
|
||||
2070031932825772034,2070031932825772034,2026-07-13 04:25:06
|
||||
2070037721292447746,2070037721292447746,2026-07-13 04:25:06
|
||||
2070037952545398786,2070037952545398786,2026-07-13 04:25:06
|
||||
2070055648704045057,2070055648704045057,2026-07-13 04:25:06
|
||||
2070067831529775106,2070067831529775106,2026-07-13 04:25:06
|
||||
2070072073929859074,2070072073929859074,2026-07-13 04:25:06
|
||||
2070314417472118786,2070314417472118786,2026-07-13 04:25:06
|
||||
2070346502542958593,2070346502542958593,2026-07-13 04:25:06
|
||||
2070409473088528385,2070409473088528385,2026-07-13 04:25:06
|
||||
2070419316457316354,2070419316457316354,2026-07-13 04:25:06
|
||||
2070693248678731777,2070693248678731777,2026-07-13 04:25:06
|
||||
2070782214769713153,2070782214769713153,2026-07-13 04:25:06
|
||||
2070783460041793537,2070783460041793537,2026-07-13 04:25:06
|
||||
2071405611103002625,2071405611103002625,2026-07-13 04:25:06
|
||||
2071423735831437314,2071423735831437314,2026-07-13 04:25:06
|
||||
2071483680568352769,2071483680568352769,2026-07-13 04:25:06
|
||||
2071485242099343361,2071485242099343361,2026-07-13 04:25:06
|
||||
2071515830608961537,2071515830608961537,2026-07-13 04:25:06
|
||||
2071763119621513217,2071763119621513217,2026-07-13 04:25:06
|
||||
2071870613031198722,2071870613031198722,2026-07-13 04:25:06
|
||||
2071890288897138689,2071890288897138689,2026-07-13 04:25:06
|
||||
2071890990881021954,2071890990881021954,2026-07-13 04:25:06
|
||||
2072121453520322562,2072121453520322562,2026-07-13 04:25:06
|
||||
2072207498945462274,2072207498945462274,2026-07-13 04:25:06
|
||||
2072215735199563777,2072215735199563777,2026-07-13 04:25:06
|
||||
2072239363072950274,2072239363072950274,2026-07-13 04:25:06
|
||||
2072502283904188418,2072502283904188418,2026-07-13 04:25:06
|
||||
2072548747741200385,2072548747741200385,2026-07-13 04:25:06
|
||||
2072548938208739329,2072548938208739329,2026-07-13 04:25:06
|
||||
2072851331538452481,2072851331538452481,2026-07-13 04:25:06
|
||||
2072854065008312321,2072854065008312321,2026-07-13 04:25:06
|
||||
2073940349239918594,2073940349239918594,2026-07-13 04:25:06
|
||||
2073940655948398594,2073940655948398594,2026-07-13 04:25:06
|
||||
2073967180852723713,2073967180852723713,2026-07-13 04:25:06
|
||||
2074000383516835841,2074000383516835841,2026-07-13 04:25:06
|
||||
2074068996307255297,2074068996307255297,2026-07-13 04:25:06
|
||||
2074071128083234818,2074071128083234818,2026-07-13 04:25:06
|
||||
2074071329502101506,2074071329502101506,2026-07-13 04:25:06
|
||||
2074294307762438145,2074294307762438145,2026-07-13 04:25:06
|
||||
2074316631396024321,2074316631396024321,2026-07-13 04:25:06
|
||||
2074382657886322690,2074382657886322690,2026-07-13 04:25:06
|
||||
2074414805682978817,2074414805682978817,2026-07-13 04:25:06
|
||||
2074429429652357122,2074429429652357122,2026-07-13 04:25:06
|
||||
2074436166400835585,2074436166400835585,2026-07-13 04:25:06
|
||||
2074661816600592385,2074661816600592385,2026-07-13 04:25:06
|
||||
2074670821309906946,2074670821309906946,2026-07-13 04:25:06
|
||||
2074674230230482945,2074674230230482945,2026-07-13 04:25:06
|
||||
2074674449722605569,2074674449722605569,2026-07-13 04:25:06
|
||||
2074680181394210817,2074680181394210817,2026-07-13 04:25:06
|
||||
2074694249752526849,2074694249752526849,2026-07-13 04:25:06
|
||||
2074698284974964737,2074698284974964737,2026-07-13 04:25:06
|
||||
2074725403922759681,2074725403922759681,2026-07-13 04:25:06
|
||||
2074772621077741569,2074772621077741569,2026-07-13 04:25:06
|
||||
2074795394999222274,2074795394999222274,2026-07-13 04:25:06
|
||||
2074795650805628929,2074795650805628929,2026-07-13 04:25:06
|
||||
2075022824091385858,2075022824091385858,2026-07-13 04:25:06
|
||||
2075032878081343489,2075032878081343489,2026-07-13 04:25:06
|
||||
2075038766275985410,2075038766275985410,2026-07-13 04:25:06
|
||||
2075393705279979522,2075393705279979522,2026-07-13 04:25:06
|
||||
|
@@ -0,0 +1,244 @@
|
||||
source_id,new_id,migrated_at
|
||||
17621834499418838,17621834499418838,2026-07-13 03:59:09
|
||||
17621834631679690,17621834631679690,2026-07-13 03:59:09
|
||||
17621834641365509,17621834641365509,2026-07-13 03:59:09
|
||||
17621834705413049,17621834705413049,2026-07-13 03:59:09
|
||||
17621834734805921,17621834734805921,2026-07-13 03:59:09
|
||||
17621834761991130,17621834761991130,2026-07-13 03:59:09
|
||||
17621834771821020,17621834771821020,2026-07-13 03:59:09
|
||||
17621834804855651,17621834804855651,2026-07-13 03:59:09
|
||||
17621834853421548,17621834853421548,2026-07-13 03:59:09
|
||||
17621834862981915,17621834862981915,2026-07-13 03:59:09
|
||||
17621834879190838,17621834879190838,2026-07-13 03:59:09
|
||||
17621834889031205,17621834889031205,2026-07-13 03:59:09
|
||||
17621834910537381,17621834910537381,2026-07-13 03:59:09
|
||||
17621834953019702,17621834953019702,2026-07-13 03:59:09
|
||||
17621834980935305,17621834980935305,2026-07-13 03:59:09
|
||||
17621835003208277,17621835003208277,2026-07-13 03:59:09
|
||||
17621835012759553,17621835012759553,2026-07-13 03:59:09
|
||||
17621835059015450,17621835059015450,2026-07-13 03:59:09
|
||||
17621835175237389,17621835175237389,2026-07-13 03:59:09
|
||||
17621835215023780,17621835215023780,2026-07-13 03:59:09
|
||||
17621835224891894,17621835224891894,2026-07-13 03:59:09
|
||||
17621835240166747,17621835240166747,2026-07-13 03:59:09
|
||||
17621835250237114,17621835250237114,2026-07-13 03:59:09
|
||||
17621835297537081,17621835297537081,2026-07-13 03:59:09
|
||||
17621835323683215,17621835323683215,2026-07-13 03:59:09
|
||||
17621835333323582,17621835333323582,2026-07-13 03:59:09
|
||||
17621835362947405,17621835362947405,2026-07-13 03:59:09
|
||||
17621835378646328,17621835378646328,2026-07-13 03:59:09
|
||||
17621835388806695,17621835388806695,2026-07-13 03:59:09
|
||||
17621835418300045,17621835418300045,2026-07-13 03:59:09
|
||||
17621835452538353,17621835452538353,2026-07-13 03:59:09
|
||||
1979719752679018499,1979719752679018499,2026-07-13 03:59:09
|
||||
1979719752679018500,1979719752679018500,2026-07-13 03:59:09
|
||||
1979719752679018501,1979719752679018501,2026-07-13 03:59:09
|
||||
1979719752679018502,1979719752679018502,2026-07-13 03:59:09
|
||||
1979719752679018503,1979719752679018503,2026-07-13 03:59:09
|
||||
1979719752679018504,1979719752679018504,2026-07-13 03:59:09
|
||||
1979719752679018505,1979719752679018505,2026-07-13 03:59:09
|
||||
1979719752679018506,1979719752679018506,2026-07-13 03:59:09
|
||||
1979719752679018507,1979719752679018507,2026-07-13 03:59:09
|
||||
1979719752679018508,1979719752679018508,2026-07-13 03:59:09
|
||||
1979719752679018509,1979719752679018509,2026-07-13 03:59:09
|
||||
1979719752679018511,1979719752679018511,2026-07-13 03:59:09
|
||||
1979719752679018512,1979719752679018512,2026-07-13 03:59:09
|
||||
1979719752679018513,1979719752679018513,2026-07-13 03:59:09
|
||||
1979719752679018514,1979719752679018514,2026-07-13 03:59:09
|
||||
1979719752679018515,1979719752679018515,2026-07-13 03:59:09
|
||||
1979719752679018516,1979719752679018516,2026-07-13 03:59:09
|
||||
1979719752679018517,1979719752679018517,2026-07-13 03:59:09
|
||||
1979719752679018518,1979719752679018518,2026-07-13 03:59:09
|
||||
1979719752679018519,1979719752679018519,2026-07-13 03:59:09
|
||||
1979719752679018520,1979719752679018520,2026-07-13 03:59:09
|
||||
1979719752679018521,1979719752679018521,2026-07-13 03:59:09
|
||||
1979719752679018522,1979719752679018522,2026-07-13 03:59:09
|
||||
1979719752679018523,1979719752679018523,2026-07-13 03:59:09
|
||||
1979719752679018524,1979719752679018524,2026-07-13 03:59:09
|
||||
1979719752679018525,1979719752679018525,2026-07-13 03:59:09
|
||||
1979719752679018526,1979719752679018526,2026-07-13 03:59:09
|
||||
1979719752679018527,1979719752679018527,2026-07-13 03:59:09
|
||||
1979719752679018528,1979719752679018528,2026-07-13 03:59:09
|
||||
1979719752679018529,1979719752679018529,2026-07-13 03:59:09
|
||||
1979719752679018530,1979719752679018530,2026-07-13 03:59:09
|
||||
1979719752679018531,1979719752679018531,2026-07-13 03:59:09
|
||||
1979719752679018532,1979719752679018532,2026-07-13 03:59:09
|
||||
1979719752679018533,1979719752679018533,2026-07-13 03:59:09
|
||||
1979719752679018534,1979719752679018534,2026-07-13 03:59:09
|
||||
1979719752679018535,1979719752679018535,2026-07-13 03:59:09
|
||||
1979719752679018536,1979719752679018536,2026-07-13 03:59:09
|
||||
1979719752679018537,1979719752679018537,2026-07-13 03:59:09
|
||||
1979719752679018538,1979719752679018538,2026-07-13 03:59:09
|
||||
1979719752679018539,1979719752679018539,2026-07-13 03:59:09
|
||||
1979719752679018540,1979719752679018540,2026-07-13 03:59:09
|
||||
1979719752679018542,1979719752679018542,2026-07-13 03:59:09
|
||||
1979719752679018543,1979719752679018543,2026-07-13 03:59:09
|
||||
1979719752679018544,1979719752679018544,2026-07-13 03:59:09
|
||||
1979719752679018545,1979719752679018545,2026-07-13 03:59:09
|
||||
1979719752679018546,1979719752679018546,2026-07-13 03:59:09
|
||||
1979719752679018547,1979719752679018547,2026-07-13 03:59:09
|
||||
1979719752679018548,1979719752679018548,2026-07-13 03:59:09
|
||||
1979719752679018549,1979719752679018549,2026-07-13 03:59:09
|
||||
1979719752679018550,1979719752679018550,2026-07-13 03:59:09
|
||||
1979719752679018551,1979719752679018551,2026-07-13 03:59:09
|
||||
1979719752679018552,1979719752679018552,2026-07-13 03:59:09
|
||||
1979719752679018553,1979719752679018553,2026-07-13 03:59:09
|
||||
1979719752679018554,1979719752679018554,2026-07-13 03:59:09
|
||||
1979719752679018555,1979719752679018555,2026-07-13 03:59:09
|
||||
1979719752679018556,1979719752679018556,2026-07-13 03:59:09
|
||||
1979719752679018557,1979719752679018557,2026-07-13 03:59:09
|
||||
1979719752679018558,1979719752679018558,2026-07-13 03:59:09
|
||||
1979719752679018559,1979719752679018559,2026-07-13 03:59:09
|
||||
1979719752679018560,1979719752679018560,2026-07-13 03:59:09
|
||||
1979719752679018561,1979719752679018561,2026-07-13 03:59:09
|
||||
1979719752679018562,1979719752679018562,2026-07-13 03:59:09
|
||||
1979719752679018563,1979719752679018563,2026-07-13 03:59:09
|
||||
1979719752679018564,1979719752679018564,2026-07-13 03:59:09
|
||||
1979719752679018565,1979719752679018565,2026-07-13 03:59:09
|
||||
1979719752679018566,1979719752679018566,2026-07-13 03:59:09
|
||||
1979719752679018567,1979719752679018567,2026-07-13 03:59:09
|
||||
1979719752679018568,1979719752679018568,2026-07-13 03:59:09
|
||||
1979719752679018569,1979719752679018569,2026-07-13 03:59:09
|
||||
1979719752679018570,1979719752679018570,2026-07-13 03:59:09
|
||||
1979719752679018571,1979719752679018571,2026-07-13 03:59:09
|
||||
1979719752679018572,1979719752679018572,2026-07-13 03:59:09
|
||||
1979719752679018573,1979719752679018573,2026-07-13 03:59:09
|
||||
1979719752679018574,1979719752679018574,2026-07-13 03:59:09
|
||||
1979719752679018575,1979719752679018575,2026-07-13 03:59:09
|
||||
1979719752679018576,1979719752679018576,2026-07-13 03:59:09
|
||||
1979719752679018577,1979719752679018577,2026-07-13 03:59:09
|
||||
1979719752679018578,1979719752679018578,2026-07-13 03:59:09
|
||||
1979719752679018579,1979719752679018579,2026-07-13 03:59:09
|
||||
1979719752679018580,1979719752679018580,2026-07-13 03:59:09
|
||||
1979719752679018581,1979719752679018581,2026-07-13 03:59:09
|
||||
1979719752679018582,1979719752679018582,2026-07-13 03:59:09
|
||||
1979719752679018583,1979719752679018583,2026-07-13 03:59:09
|
||||
1979719752679018584,1979719752679018584,2026-07-13 03:59:09
|
||||
1979719752679018585,1979719752679018585,2026-07-13 03:59:09
|
||||
1979719752679018586,1979719752679018586,2026-07-13 03:59:09
|
||||
1979719752679018587,1979719752679018587,2026-07-13 03:59:09
|
||||
1979719752679018588,1979719752679018588,2026-07-13 03:59:09
|
||||
1979719752679018589,1979719752679018589,2026-07-13 03:59:09
|
||||
1979719752679018590,1979719752679018590,2026-07-13 03:59:09
|
||||
1979719752679018591,1979719752679018591,2026-07-13 03:59:09
|
||||
1979719752679018592,1979719752679018592,2026-07-13 03:59:09
|
||||
1979719752679018593,1979719752679018593,2026-07-13 03:59:09
|
||||
1979719752679018594,1979719752679018594,2026-07-13 03:59:09
|
||||
1979719752679018595,1979719752679018595,2026-07-13 03:59:09
|
||||
1979719752679018596,1979719752679018596,2026-07-13 03:59:09
|
||||
1979719752679018597,1979719752679018597,2026-07-13 03:59:09
|
||||
1979719752679018598,1979719752679018598,2026-07-13 03:59:09
|
||||
1979719752679018599,1979719752679018599,2026-07-13 03:59:09
|
||||
1979719752679018600,1979719752679018600,2026-07-13 03:59:09
|
||||
1979719752679018601,1979719752679018601,2026-07-13 03:59:09
|
||||
1979719752679018602,1979719752679018602,2026-07-13 03:59:09
|
||||
1979719752679018603,1979719752679018603,2026-07-13 03:59:09
|
||||
1979719752679018604,1979719752679018604,2026-07-13 03:59:09
|
||||
1979719752679018605,1979719752679018605,2026-07-13 03:59:09
|
||||
1979719752679018606,1979719752679018606,2026-07-13 03:59:09
|
||||
1979719752679018607,1979719752679018607,2026-07-13 03:59:09
|
||||
1979719752679018608,1979719752679018608,2026-07-13 03:59:09
|
||||
1979719752679018609,1979719752679018609,2026-07-13 03:59:09
|
||||
1979719752679018610,1979719752679018610,2026-07-13 03:59:09
|
||||
1979719752679018611,1979719752679018611,2026-07-13 03:59:09
|
||||
1979719752679018612,1979719752679018612,2026-07-13 03:59:09
|
||||
1979719752679018613,1979719752679018613,2026-07-13 03:59:09
|
||||
1979719752679018614,1979719752679018614,2026-07-13 03:59:09
|
||||
1979719752679018615,1979719752679018615,2026-07-13 03:59:09
|
||||
1979719752679018617,1979719752679018617,2026-07-13 03:59:09
|
||||
1979719752679018618,1979719752679018618,2026-07-13 03:59:09
|
||||
1979719752679018619,1979719752679018619,2026-07-13 03:59:09
|
||||
1979719752679018620,1979719752679018620,2026-07-13 03:59:09
|
||||
1979719752679018622,1979719752679018622,2026-07-13 03:59:09
|
||||
1979719752679018623,1979719752679018623,2026-07-13 03:59:09
|
||||
1979719752679018624,1979719752679018624,2026-07-13 03:59:09
|
||||
1979719752679018625,1979719752679018625,2026-07-13 03:59:09
|
||||
1979719752679018626,1979719752679018626,2026-07-13 03:59:09
|
||||
1979719752679018627,1979719752679018627,2026-07-13 03:59:09
|
||||
1979719752679018628,1979719752679018628,2026-07-13 03:59:09
|
||||
1979719752679018629,1979719752679018629,2026-07-13 03:59:09
|
||||
1979719752679018630,1979719752679018630,2026-07-13 03:59:09
|
||||
1979719752679018631,1979719752679018631,2026-07-13 03:59:09
|
||||
1979719752679018632,1979719752679018632,2026-07-13 03:59:09
|
||||
1979719752679018634,1979719752679018634,2026-07-13 03:59:09
|
||||
1979719752679018635,1979719752679018635,2026-07-13 03:59:09
|
||||
1979719752679018636,1979719752679018636,2026-07-13 03:59:09
|
||||
1979719752679018637,1979719752679018637,2026-07-13 03:59:09
|
||||
1979719752679018638,1979719752679018638,2026-07-13 03:59:09
|
||||
1979719752679018639,1979719752679018639,2026-07-13 03:59:09
|
||||
1979719752679018640,1979719752679018640,2026-07-13 03:59:09
|
||||
1979719752679018641,1979719752679018641,2026-07-13 03:59:09
|
||||
1979719752679018642,1979719752679018642,2026-07-13 03:59:09
|
||||
1979719752679018643,1979719752679018643,2026-07-13 03:59:09
|
||||
1979719752679018644,1979719752679018644,2026-07-13 03:59:09
|
||||
1979719752679018645,1979719752679018645,2026-07-13 03:59:09
|
||||
1979719752679018646,1979719752679018646,2026-07-13 03:59:09
|
||||
1979719752679018647,1979719752679018647,2026-07-13 03:59:09
|
||||
1979719752679018648,1979719752679018648,2026-07-13 03:59:09
|
||||
1979719752679018649,1979719752679018649,2026-07-13 03:59:09
|
||||
1979719752679018650,1979719752679018650,2026-07-13 03:59:09
|
||||
1979719752679018651,1979719752679018651,2026-07-13 03:59:09
|
||||
1979719752679018652,1979719752679018652,2026-07-13 03:59:09
|
||||
1979719752679018653,1979719752679018653,2026-07-13 03:59:09
|
||||
1979719752679018654,1979719752679018654,2026-07-13 03:59:09
|
||||
1979719752679018655,1979719752679018655,2026-07-13 03:59:09
|
||||
1979719752679018656,1979719752679018656,2026-07-13 03:59:09
|
||||
1979719752679018657,1979719752679018657,2026-07-13 03:59:09
|
||||
1979719752679018658,1979719752679018658,2026-07-13 03:59:09
|
||||
1984585940836421634,1984585940836421634,2026-07-13 03:59:09
|
||||
1984830691288498177,1984830691288498177,2026-07-13 03:59:09
|
||||
1985261405410639873,1985261405410639873,2026-07-13 03:59:09
|
||||
1985294360514347010,1985294360514347010,2026-07-13 03:59:09
|
||||
1985361389787234306,1985361389787234306,2026-07-13 03:59:09
|
||||
1985362841708478466,1985362841708478466,2026-07-13 03:59:09
|
||||
1985982174860132354,1985982174860132354,2026-07-13 03:59:09
|
||||
1988798084125704193,1988798084125704193,2026-07-13 03:59:09
|
||||
1989247574934728705,1989247574934728705,2026-07-13 03:59:09
|
||||
1989250614119018498,1989250614119018498,2026-07-13 03:59:09
|
||||
1990300777193361409,1990300777193361409,2026-07-13 03:59:09
|
||||
1991718062105694210,1991718062105694210,2026-07-13 03:59:09
|
||||
1991742227252645889,1991742227252645889,2026-07-13 03:59:09
|
||||
1992822354011209729,1992822354011209729,2026-07-13 03:59:09
|
||||
1992872767309725698,1992872767309725698,2026-07-13 03:59:09
|
||||
1993494198355738625,1993494198355738625,2026-07-13 03:59:09
|
||||
1994344726686056450,1994344726686056450,2026-07-13 03:59:09
|
||||
1998982448109305857,1998982448109305857,2026-07-13 03:59:09
|
||||
2001095433749401601,2001095433749401601,2026-07-13 03:59:09
|
||||
2001124407602974722,2001124407602974722,2026-07-13 03:59:09
|
||||
2001197931139043329,2001197931139043329,2026-07-13 03:59:09
|
||||
2002997351295930369,2002997351295930369,2026-07-13 03:59:09
|
||||
2004065925389275137,2004065925389275137,2026-07-13 03:59:09
|
||||
2004367169047678977,2004367169047678977,2026-07-13 03:59:09
|
||||
2007648446009970689,2007648446009970689,2026-07-13 03:59:09
|
||||
2007673138242523137,2007673138242523137,2026-07-13 03:59:09
|
||||
2009437823186898946,2009437823186898946,2026-07-13 03:59:09
|
||||
2010907181658636289,2010907181658636289,2026-07-13 03:59:09
|
||||
2011989896420098050,2011989896420098050,2026-07-13 03:59:09
|
||||
2012058022314737666,2012058022314737666,2026-07-13 03:59:09
|
||||
2013188410445627394,2013188410445627394,2026-07-13 03:59:09
|
||||
2013847111737245698,2013847111737245698,2026-07-13 03:59:09
|
||||
2017098832521383937,2017098832521383937,2026-07-13 03:59:09
|
||||
2030835109385179137,2030835109385179137,2026-07-13 03:59:09
|
||||
2033461449582145538,2033461449582145538,2026-07-13 03:59:09
|
||||
2034072333228666882,2034072333228666882,2026-07-13 03:59:09
|
||||
2034825067234029570,2034825067234029570,2026-07-13 03:59:09
|
||||
2035881261138669569,2035881261138669569,2026-07-13 03:59:09
|
||||
2035947399805628417,2035947399805628417,2026-07-13 03:59:09
|
||||
2038121327328194562,2038121327328194562,2026-07-13 03:59:09
|
||||
2041421957039878145,2041421957039878145,2026-07-13 03:59:09
|
||||
2042187821519433729,2042187821519433729,2026-07-13 03:59:09
|
||||
2044222106271182849,2044222106271182849,2026-07-13 03:59:09
|
||||
2044313158306983938,2044313158306983938,2026-07-13 03:59:09
|
||||
2046123596405489666,2046123596405489666,2026-07-13 03:59:09
|
||||
2047862937284673537,2047862937284673537,2026-07-13 03:59:09
|
||||
2053727425582022658,2053727425582022658,2026-07-13 03:59:09
|
||||
2055111130447822849,2055111130447822849,2026-07-13 03:59:09
|
||||
2056275395129065473,2056275395129065473,2026-07-13 03:59:09
|
||||
2056589263671881729,2056589263671881729,2026-07-13 03:59:09
|
||||
2059846542546399234,2059846542546399234,2026-07-13 03:59:09
|
||||
2060210343636594689,2060210343636594689,2026-07-13 03:59:09
|
||||
2067151709142753281,2067151709142753281,2026-07-13 03:59:09
|
||||
2068986122356891650,2068986122356891650,2026-07-13 03:59:09
|
||||
2072140588744671233,2072140588744671233,2026-07-13 03:59:09
|
||||
2074413909276327937,2074413909276327937,2026-07-13 03:59:09
|
||||
2074435103505481730,2074435103505481730,2026-07-13 03:59:09
|
||||
|
@@ -0,0 +1,197 @@
|
||||
source_id,new_id,migrated_at
|
||||
17621834465669233,17621834465669233,2026-07-13 04:32:50
|
||||
17621834471451859,17621834471451859,2026-07-13 04:32:50
|
||||
17621834477582274,17621834477582274,2026-07-13 04:32:50
|
||||
17621834483495377,17621834483495377,2026-07-13 04:32:50
|
||||
17621834489405792,17621834489405792,2026-07-13 04:32:50
|
||||
17621834495360277,17621834495360277,2026-07-13 04:32:50
|
||||
17621834504950645,17621834504950645,2026-07-13 04:32:50
|
||||
17621834511129200,17621834511129200,2026-07-13 04:32:50
|
||||
17621834516618234,17621834516618234,2026-07-13 04:32:50
|
||||
17621834522112719,17621834522112719,2026-07-13 04:32:50
|
||||
17621834528657204,17621834528657204,2026-07-13 04:32:50
|
||||
17621834534351689,17621834534351689,2026-07-13 04:32:50
|
||||
17621834539913884,17621834539913884,2026-07-13 04:32:50
|
||||
17621834547238369,17621834547238369,2026-07-13 04:32:50
|
||||
17621834552976925,17621834552976925,2026-07-13 04:32:50
|
||||
17621834558698248,17621834558698248,2026-07-13 04:32:50
|
||||
17621834563977281,17621834563977281,2026-07-13 04:32:50
|
||||
17621834569365837,17621834569365837,2026-07-13 04:32:50
|
||||
17621834575310322,17621834575310322,2026-07-13 04:32:50
|
||||
17621834580923426,17621834580923426,2026-07-13 04:32:50
|
||||
17621834587777911,17621834587777911,2026-07-13 04:32:50
|
||||
17621834593402396,17621834593402396,2026-07-13 04:32:50
|
||||
17621834599181429,17621834599181429,2026-07-13 04:32:50
|
||||
17621834604945915,17621834604945915,2026-07-13 04:32:50
|
||||
17621834610565379,17621834610565379,2026-07-13 04:32:50
|
||||
17621834616329864,17621834616329864,2026-07-13 04:32:50
|
||||
17621834621838897,17621834621838897,2026-07-13 04:32:50
|
||||
17621834627724291,17621834627724291,2026-07-13 04:32:50
|
||||
17621834637244658,17621834637244658,2026-07-13 04:32:50
|
||||
17621834647015026,17621834647015026,2026-07-13 04:32:50
|
||||
17621834654003581,17621834654003581,2026-07-13 04:32:50
|
||||
17621834659543996,17621834659543996,2026-07-13 04:32:50
|
||||
17621834665332551,17621834665332551,2026-07-13 04:32:50
|
||||
17621834670801585,17621834670801585,2026-07-13 04:32:50
|
||||
17621834676802000,17621834676802000,2026-07-13 04:32:50
|
||||
17621834682773717,17621834682773717,2026-07-13 04:32:50
|
||||
17621834689924132,17621834689924132,2026-07-13 04:32:50
|
||||
17621834695143165,17621834695143165,2026-07-13 04:32:50
|
||||
17621834701131720,17621834701131720,2026-07-13 04:32:50
|
||||
17621834711508926,17621834711508926,2026-07-13 04:32:50
|
||||
17621834718421552,17621834718421552,2026-07-13 04:32:50
|
||||
17621834724352875,17621834724352875,2026-07-13 04:32:50
|
||||
17621834730227360,17621834730227360,2026-07-13 04:32:50
|
||||
17621834740491798,17621834740491798,2026-07-13 04:32:50
|
||||
17621834746676283,17621834746676283,2026-07-13 04:32:50
|
||||
17621834752235317,17621834752235317,2026-07-13 04:32:50
|
||||
17621834757962963,17621834757962963,2026-07-13 04:32:50
|
||||
17621834767730169,17621834767730169,2026-07-13 04:32:50
|
||||
17621834777390537,17621834777390537,2026-07-13 04:32:50
|
||||
17621834783079565,17621834783079565,2026-07-13 04:32:50
|
||||
17621834789828120,17621834789828120,2026-07-13 04:32:50
|
||||
17621834795217154,17621834795217154,2026-07-13 04:32:50
|
||||
17621834800921639,17621834800921639,2026-07-13 04:32:50
|
||||
17621834811106076,17621834811106076,2026-07-13 04:32:50
|
||||
17621834818200562,17621834818200562,2026-07-13 04:32:50
|
||||
17621834824115047,17621834824115047,2026-07-13 04:32:50
|
||||
17621834830289532,17621834830289532,2026-07-13 04:32:50
|
||||
17621834836271727,17621834836271727,2026-07-13 04:32:50
|
||||
17621834842106212,17621834842106212,2026-07-13 04:32:50
|
||||
17621834848436627,17621834848436627,2026-07-13 04:32:50
|
||||
17621834859081065,17621834859081065,2026-07-13 04:32:50
|
||||
17621834868448270,17621834868448270,2026-07-13 04:32:50
|
||||
17621834874722755,17621834874722755,2026-07-13 04:32:50
|
||||
17621834885087193,17621834885087193,2026-07-13 04:32:50
|
||||
17621834894753012,17621834894753012,2026-07-13 04:32:50
|
||||
17621834900602046,17621834900602046,2026-07-13 04:32:50
|
||||
17621834906289692,17621834906289692,2026-07-13 04:32:50
|
||||
17621834916400968,17621834916400968,2026-07-13 04:32:50
|
||||
17621834922485454,17621834922485454,2026-07-13 04:32:50
|
||||
17621834928500847,17621834928500847,2026-07-13 04:32:50
|
||||
17621834935589403,17621834935589403,2026-07-13 04:32:50
|
||||
17621834941618436,17621834941618436,2026-07-13 04:32:50
|
||||
17621834948828851,17621834948828851,2026-07-13 04:32:50
|
||||
17621834959079218,17621834959079218,2026-07-13 04:32:50
|
||||
17621834964977774,17621834964977774,2026-07-13 04:32:50
|
||||
17621834970622259,17621834970622259,2026-07-13 04:32:50
|
||||
17621834977269906,17621834977269906,2026-07-13 04:32:50
|
||||
17621834986220273,17621834986220273,2026-07-13 04:32:50
|
||||
17621834992254758,17621834992254758,2026-07-13 04:32:50
|
||||
17621834998082447,17621834998082447,2026-07-13 04:32:50
|
||||
17621835008864154,17621835008864154,2026-07-13 04:32:50
|
||||
17621835018338592,17621835018338592,2026-07-13 04:32:50
|
||||
17621835024157625,17621835024157625,2026-07-13 04:32:50
|
||||
17621835029842110,17621835029842110,2026-07-13 04:32:50
|
||||
17621835035376595,17621835035376595,2026-07-13 04:32:50
|
||||
17621835041181080,17621835041181080,2026-07-13 04:32:50
|
||||
17621835046973275,17621835046973275,2026-07-13 04:32:50
|
||||
17621835053044599,17621835053044599,2026-07-13 04:32:50
|
||||
17621835064498601,17621835064498601,2026-07-13 04:32:50
|
||||
17621835070177156,17621835070177156,2026-07-13 04:32:50
|
||||
17621835076571641,17621835076571641,2026-07-13 04:32:50
|
||||
17621835082420675,17621835082420675,2026-07-13 04:32:50
|
||||
17621835088288322,17621835088288322,2026-07-13 04:32:50
|
||||
17621835093869645,17621835093869645,2026-07-13 04:32:50
|
||||
17621835099837292,17621835099837292,2026-07-13 04:32:50
|
||||
17621835105266325,17621835105266325,2026-07-13 04:32:50
|
||||
17621835111214881,17621835111214881,2026-07-13 04:32:50
|
||||
17621835117239366,17621835117239366,2026-07-13 04:32:50
|
||||
17621835122898399,17621835122898399,2026-07-13 04:32:50
|
||||
17621835129058814,17621835129058814,2026-07-13 04:32:50
|
||||
17621835135627369,17621835135627369,2026-07-13 04:32:50
|
||||
17621835141911855,17621835141911855,2026-07-13 04:32:50
|
||||
17621835147724050,17621835147724050,2026-07-13 04:32:50
|
||||
17621835153778535,17621835153778535,2026-07-13 04:32:50
|
||||
17621835159883020,17621835159883020,2026-07-13 04:32:50
|
||||
17621835165591575,17621835165591575,2026-07-13 04:32:50
|
||||
17621835171520609,17621835171520609,2026-07-13 04:32:50
|
||||
17621835180737815,17621835180737815,2026-07-13 04:32:50
|
||||
17621835185885461,17621835185885461,2026-07-13 04:32:50
|
||||
17621835192009946,17621835192009946,2026-07-13 04:32:50
|
||||
17621835199094432,17621835199094432,2026-07-13 04:32:50
|
||||
17621835205013465,17621835205013465,2026-07-13 04:32:50
|
||||
17621835210972929,17621835210972929,2026-07-13 04:32:50
|
||||
17621835220970135,17621835220970135,2026-07-13 04:32:50
|
||||
17621835230015481,17621835230015481,2026-07-13 04:32:50
|
||||
17621835235775896,17621835235775896,2026-07-13 04:32:50
|
||||
17621835245926263,17621835245926263,2026-07-13 04:32:50
|
||||
17621835255442082,17621835255442082,2026-07-13 04:32:50
|
||||
17621835260951116,17621835260951116,2026-07-13 04:32:50
|
||||
17621835267009671,17621835267009671,2026-07-13 04:32:50
|
||||
17621835274218227,17621835274218227,2026-07-13 04:32:50
|
||||
17621835281642712,17621835281642712,2026-07-13 04:32:50
|
||||
17621835287637675,17621835287637675,2026-07-13 04:32:50
|
||||
17621835293542160,17621835293542160,2026-07-13 04:32:50
|
||||
17621835305712958,17621835305712958,2026-07-13 04:32:50
|
||||
17621835311826062,17621835311826062,2026-07-13 04:32:50
|
||||
17621835318418294,17621835318418294,2026-07-13 04:32:50
|
||||
17621835329088183,17621835329088183,2026-07-13 04:32:50
|
||||
17621835339468551,17621835339468551,2026-07-13 04:32:50
|
||||
17621835345593036,17621835345593036,2026-07-13 04:32:50
|
||||
17621835352526139,17621835352526139,2026-07-13 04:32:50
|
||||
17621835358716554,17621835358716554,2026-07-13 04:32:50
|
||||
17621835368527830,17621835368527830,2026-07-13 04:32:50
|
||||
17621835374062315,17621835374062315,2026-07-13 04:32:50
|
||||
17621835384472683,17621835384472683,2026-07-13 04:32:50
|
||||
17621835394495734,17621835394495734,2026-07-13 04:32:50
|
||||
17621835401064767,17621835401064767,2026-07-13 04:32:50
|
||||
17621835407145182,17621835407145182,2026-07-13 04:32:50
|
||||
17621835412740576,17621835412740576,2026-07-13 04:32:50
|
||||
17621835424001852,17621835424001852,2026-07-13 04:32:50
|
||||
17621835431150407,17621835431150407,2026-07-13 04:32:50
|
||||
17621835437178054,17621835437178054,2026-07-13 04:32:50
|
||||
17621835443137088,17621835443137088,2026-07-13 04:32:50
|
||||
17621835448747502,17621835448747502,2026-07-13 04:32:50
|
||||
17621835458477870,17621835458477870,2026-07-13 04:32:50
|
||||
17621835464552355,17621835464552355,2026-07-13 04:32:50
|
||||
17621835470370910,17621835470370910,2026-07-13 04:32:50
|
||||
1985358586981335041,1985358586981335041,2026-07-13 04:32:50
|
||||
1985358798139375618,1985358798139375618,2026-07-13 04:32:50
|
||||
1985358940309504002,1985358940309504002,2026-07-13 04:32:50
|
||||
1985359108702420994,1985359108702420994,2026-07-13 04:32:50
|
||||
1985359338915184642,1985359338915184642,2026-07-13 04:32:50
|
||||
1985359467114086401,1985359467114086401,2026-07-13 04:32:50
|
||||
1985359601268899841,1985359601268899841,2026-07-13 04:32:50
|
||||
1985359727181905921,1985359727181905921,2026-07-13 04:32:50
|
||||
1985359836556771330,1985359836556771330,2026-07-13 04:32:50
|
||||
1985359980903743489,1985359980903743489,2026-07-13 04:32:50
|
||||
1985360101133467649,1985360101133467649,2026-07-13 04:32:50
|
||||
1985360223233851394,1985360223233851394,2026-07-13 04:32:50
|
||||
1985360355132129282,1985360355132129282,2026-07-13 04:32:50
|
||||
1985360481519091714,1985360481519091714,2026-07-13 04:32:50
|
||||
1985360592210968577,1985360592210968577,2026-07-13 04:32:50
|
||||
1985360708951031810,1985360708951031810,2026-07-13 04:32:50
|
||||
1985360942368243714,1985360942368243714,2026-07-13 04:32:50
|
||||
1985361198686355457,1985361198686355457,2026-07-13 04:32:50
|
||||
1985361471664242689,1985361471664242689,2026-07-13 04:32:50
|
||||
1985361587305398273,1985361587305398273,2026-07-13 04:32:50
|
||||
1985361695291949058,1985361695291949058,2026-07-13 04:32:50
|
||||
1985361805371457537,1985361805371457537,2026-07-13 04:32:50
|
||||
1985361999399960577,1985361999399960577,2026-07-13 04:32:50
|
||||
1985362139703623682,1985362139703623682,2026-07-13 04:32:50
|
||||
1985362272692420610,1985362272692420610,2026-07-13 04:32:50
|
||||
1985362383069724673,1985362383069724673,2026-07-13 04:32:50
|
||||
1985362509964197890,1985362509964197890,2026-07-13 04:32:50
|
||||
1985362627580870657,1985362627580870657,2026-07-13 04:32:50
|
||||
1985362737568104449,1985362737568104449,2026-07-13 04:32:50
|
||||
1985362918724288514,1985362918724288514,2026-07-13 04:32:50
|
||||
1985363057467670529,1985363057467670529,2026-07-13 04:32:50
|
||||
1985363188493533185,1985363188493533185,2026-07-13 04:32:50
|
||||
1985651612584669186,1985651612584669186,2026-07-13 04:32:50
|
||||
1990323507280171009,1990323507280171009,2026-07-13 04:32:50
|
||||
2001103767097446401,2001103767097446401,2026-07-13 04:32:50
|
||||
2002997970530390018,2002997970530390018,2026-07-13 04:32:50
|
||||
2008074277077258241,2008074277077258241,2026-07-13 04:32:50
|
||||
2011990205309616130,2011990205309616130,2026-07-13 04:32:50
|
||||
2034072621033418754,2034072621033418754,2026-07-13 04:32:50
|
||||
2042188073504829442,2042188073504829442,2026-07-13 04:32:50
|
||||
2044224762985279490,2044224762985279490,2026-07-13 04:32:50
|
||||
2046124978441240578,2046124978441240578,2026-07-13 04:32:50
|
||||
2055111659630575618,2055111659630575618,2026-07-13 04:32:50
|
||||
2056276650790436866,2056276650790436866,2026-07-13 04:32:50
|
||||
2056589264162615297,2056589264162615297,2026-07-13 04:32:50
|
||||
2059846543016161281,2059846543016161281,2026-07-13 04:32:50
|
||||
2060210344064413698,2060210344064413698,2026-07-13 04:32:50
|
||||
2074414665756803073,2074414665756803073,2026-07-13 04:32:50
|
||||
2074435103874580481,2074435103874580481,2026-07-13 04:32:50
|
||||
|
@@ -0,0 +1 @@
|
||||
source_id,new_id,migrated_at
|
||||
|
@@ -0,0 +1,72 @@
|
||||
oss_id,biz_type,biz_id,attach_type,source_table,source_field
|
||||
2007648200446054402,crm_customer,2007648446009970689,business_license,crm_customer,business_license_images
|
||||
2007648354662223874,crm_customer,2007648446009970689,business_permit,crm_customer,business_permit_images
|
||||
2007672945690415106,crm_customer,2007673138242523137,business_license,crm_customer,business_license_images
|
||||
2007672964317319170,crm_customer,2007673138242523137,business_permit,crm_customer,business_permit_images
|
||||
2009437778819551233,crm_customer,2009437823186898946,business_license,crm_customer,business_license_images
|
||||
2009437808238399489,crm_customer,2009437823186898946,business_permit,crm_customer,business_permit_images
|
||||
2010907109487247362,crm_customer,2010907181658636289,business_license,crm_customer,business_license_images
|
||||
2010907156463452161,crm_customer,2010907181658636289,business_permit,crm_customer,business_permit_images
|
||||
2011990422742335489,crm_customer,2011989896420098050,business_license,crm_customer,business_license_images
|
||||
2011990443986485250,crm_customer,2011989896420098050,business_permit,crm_customer,business_permit_images
|
||||
2012058001087365122,crm_customer,2012058022314737666,business_license,crm_customer,business_license_images
|
||||
2012058015985532930,crm_customer,2012058022314737666,business_permit,crm_customer,business_permit_images
|
||||
2013188351050088449,crm_customer,2013188410445627394,business_license,crm_customer,business_license_images
|
||||
2013188390526877697,crm_customer,2013188410445627394,business_permit,crm_customer,business_permit_images
|
||||
2013846981638324226,crm_customer,2013847111737245698,business_license,crm_customer,business_license_images
|
||||
2013847056670228482,crm_customer,2013847111737245698,business_permit,crm_customer,business_permit_images
|
||||
2017098744449388545,crm_customer,2017098832521383937,business_license,crm_customer,business_license_images
|
||||
2017098798945980417,crm_customer,2017098832521383937,business_permit,crm_customer,business_permit_images
|
||||
2030835075574894593,crm_customer,2030835109385179137,business_license,crm_customer,business_license_images
|
||||
2030835100744912897,crm_customer,2030835109385179137,business_permit,crm_customer,business_permit_images
|
||||
2033461227216924673,crm_customer,2033461449582145538,business_license,crm_customer,business_license_images
|
||||
2033461254807056386,crm_customer,2033461449582145538,business_permit,crm_customer,business_permit_images
|
||||
2034072267218710529,crm_customer,2034072333228666882,business_license,crm_customer,business_license_images
|
||||
2034072317843959810,crm_customer,2034072333228666882,business_permit,crm_customer,business_permit_images
|
||||
2034825029204275202,crm_customer,2034825067234029570,business_license,crm_customer,business_license_images
|
||||
2034825060829327361,crm_customer,2034825067234029570,business_permit,crm_customer,business_permit_images
|
||||
2035881238204215297,crm_customer,2035881261138669569,business_license,crm_customer,business_license_images
|
||||
2035881255912566786,crm_customer,2035881261138669569,business_permit,crm_customer,business_permit_images
|
||||
2035947326002655234,crm_customer,2035947399805628417,business_license,crm_customer,business_license_images
|
||||
2035947374987931649,crm_customer,2035947399805628417,business_permit,crm_customer,business_permit_images
|
||||
2038120930131800066,crm_customer,2038121327328194562,business_permit,crm_customer,business_permit_images
|
||||
2038121017427849217,crm_customer,2038121327328194562,business_permit,crm_customer,business_permit_images
|
||||
2038121096935075841,crm_customer,2038121327328194562,other_cert,crm_customer,other_cert_images
|
||||
2038121285175439362,crm_customer,2038121327328194562,business_license,crm_customer,business_license_images
|
||||
2038121319841361922,crm_customer,2038121327328194562,other_cert,crm_customer,other_cert_images
|
||||
2041421843818835970,crm_customer,2041421957039878145,business_license,crm_customer,business_license_images
|
||||
2041421920528461825,crm_customer,2041421957039878145,business_permit,crm_customer,business_permit_images
|
||||
2042187735683002370,crm_customer,2042187821519433729,business_license,crm_customer,business_license_images
|
||||
2042187794503921665,crm_customer,2042187821519433729,business_permit,crm_customer,business_permit_images
|
||||
2044221338013102081,crm_customer,2044222106271182849,business_license,crm_customer,business_license_images
|
||||
2044221363644493825,crm_customer,2044222106271182849,business_permit,crm_customer,business_permit_images
|
||||
2044313123708170242,crm_customer,2044313158306983938,business_license,crm_customer,business_license_images
|
||||
2044313153164767233,crm_customer,2044313158306983938,business_permit,crm_customer,business_permit_images
|
||||
2046123565266976770,crm_customer,2046123596405489666,business_license,crm_customer,business_license_images
|
||||
2046123592278294529,crm_customer,2046123596405489666,business_permit,crm_customer,business_permit_images
|
||||
2047862663686029313,crm_customer,2047862937284673537,business_license,crm_customer,business_license_images
|
||||
2047862729897312257,crm_customer,2047862937284673537,business_permit,crm_customer,business_permit_images
|
||||
2047862753242808322,crm_customer,2047862937284673537,other_cert,crm_customer,other_cert_images
|
||||
2053727349535096834,crm_customer,2053727425582022658,business_license,crm_customer,business_license_images
|
||||
2053727406669905922,crm_customer,2053727425582022658,business_permit,crm_customer,business_permit_images
|
||||
2055111084205621249,crm_customer,2055111130447822849,business_license,crm_customer,business_license_images
|
||||
2055111107853107202,crm_customer,2055111130447822849,business_permit,crm_customer,business_permit_images
|
||||
2056275057718280194,crm_customer,2056275395129065473,business_license,crm_customer,business_license_images
|
||||
2056275078127763458,crm_customer,2056275395129065473,business_permit,crm_customer,business_permit_images
|
||||
2056588848666472449,crm_customer,2056589263671881729,business_license,crm_customer,business_license_images
|
||||
2056588874234949633,crm_customer,2056589263671881729,business_permit,crm_customer,business_permit_images
|
||||
2059846470597308418,crm_customer,2059846542546399234,business_license,crm_customer,business_license_images
|
||||
2059846517766451202,crm_customer,2059846542546399234,business_permit,crm_customer,business_permit_images
|
||||
2060209969563398146,crm_customer,2060210343636594689,business_license,crm_customer,business_license_images
|
||||
2060210965911924737,crm_customer,2060210343636594689,business_permit,crm_customer,business_permit_images
|
||||
2067151426710904833,crm_customer,2067151709142753281,business_license,crm_customer,business_license_images
|
||||
2067151611805540353,crm_customer,2067151709142753281,business_permit,crm_customer,business_permit_images
|
||||
2068986092992569345,crm_customer,2068986122356891650,business_license,crm_customer,business_license_images
|
||||
2068986116619083778,crm_customer,2068986122356891650,business_permit,crm_customer,business_permit_images
|
||||
2072140559376154626,crm_customer,2072140588744671233,business_license,crm_customer,business_license_images
|
||||
2072140583371767809,crm_customer,2072140588744671233,business_permit,crm_customer,business_permit_images
|
||||
2074413703742849026,crm_customer,2074413909276327937,business_license,crm_customer,business_license_images
|
||||
2074413732041818113,crm_customer,2074413909276327937,business_permit,crm_customer,business_permit_images
|
||||
2074434855588560898,crm_customer,2074435103505481730,business_license,crm_customer,business_license_images
|
||||
2074434887876313089,crm_customer,2074435103505481730,business_permit,crm_customer,business_permit_images
|
||||
2074434917060280321,crm_customer,2074435103505481730,other_cert,crm_customer,other_cert_images
|
||||
|
@@ -0,0 +1,340 @@
|
||||
source_oss_id,new_id,file_name,original_name,url_relative,migrated_at
|
||||
1975794225295921153,1975794225295921153,2025/10/08/5ac0966ab3a74eadab571ce0bb3b441a.png,d1160924ab18972bd4070ba76f976c899e510fb39c1e.png,2025/10/08/5ac0966ab3a74eadab571ce0bb3b441a.png,2026-07-13 03:54:27
|
||||
1978984901780713474,1978984901780713474,2025/10/17/d601338282a44cf092bf68afe1aef239.jpeg,0b957581a07eaf0508b6dd214e4975cd.jpeg,2025/10/17/d601338282a44cf092bf68afe1aef239.jpeg,2026-07-13 03:54:27
|
||||
1979017901076246530,1979017901076246530,2025/10/17/3582b1f449e24c609cec53320e3db3a1.jpeg,841f821b27cbb45faa55dd86534143e6.jpeg,2025/10/17/3582b1f449e24c609cec53320e3db3a1.jpeg,2026-07-13 03:54:27
|
||||
1979029496477011969,1979029496477011969,2025/10/17/792e37715502443890a63386b6b33b22.jpeg,8700f38ee446faf381d057837455cb31.jpeg,2025/10/17/792e37715502443890a63386b6b33b22.jpeg,2026-07-13 03:54:27
|
||||
1979050339302662145,1979050339302662145,2025/10/17/e664f6d73be04ae59273b3d06448b3bd.jpg,96a47c2fe100e38c5df1f771f639596e.jpg,2025/10/17/e664f6d73be04ae59273b3d06448b3bd.jpg,2026-07-13 03:54:27
|
||||
1979050978841747457,1979050978841747457,2025/10/17/b3ebe857f85d42e0954049a60dc540c5.jpeg,841f821b27cbb45faa55dd86534143e6.jpeg,2025/10/17/b3ebe857f85d42e0954049a60dc540c5.jpeg,2026-07-13 03:54:27
|
||||
1979051128217690113,1979051128217690113,2025/10/17/0b4bb1a1dfa44fea8ff2ae3c3eb428d0.png,1111.png,2025/10/17/0b4bb1a1dfa44fea8ff2ae3c3eb428d0.png,2026-07-13 03:54:27
|
||||
1979150807957798913,1979150807957798913,2025/10/17/d41eccc269e34f61a6238f65613fcdc1.jpg,998ab81861021007dc1e082d0eb1f2db.jpg,2025/10/17/d41eccc269e34f61a6238f65613fcdc1.jpg,2026-07-13 03:54:27
|
||||
1979314266636877825,1979314266636877825,2025/10/18/f35104f61fc749119dada67a856a604a.jpeg,22d66afaa253a7e3e0582e0f0cbafa4d.jpeg,2025/10/18/f35104f61fc749119dada67a856a604a.jpeg,2026-07-13 03:54:27
|
||||
1979317355888574466,1979317355888574466,2025/10/18/0d22a8a53d7149b397de2c1f0d94904b.jpg,96a47c2fe100e38c5df1f771f639596e.jpg,2025/10/18/0d22a8a53d7149b397de2c1f0d94904b.jpg,2026-07-13 03:54:27
|
||||
1979320130278064130,1979320130278064130,2025/10/18/882b3a0cf93a429cade3c24d30db97f8.jpg,96a47c2fe100e38c5df1f771f639596e.jpg,2025/10/18/882b3a0cf93a429cade3c24d30db97f8.jpg,2026-07-13 03:54:27
|
||||
1979321809480306690,1979321809480306690,2025/10/18/d49e4603a3704ef7b9b6852825551e9a.jpeg,8700f38ee446faf381d057837455cb31.jpeg,2025/10/18/d49e4603a3704ef7b9b6852825551e9a.jpeg,2026-07-13 03:54:27
|
||||
1979321891021770753,1979321891021770753,2025/10/18/5d8bf1063f9441259f1cf98244d3546f.jpg,96a47c2fe100e38c5df1f771f639596e.jpg,2025/10/18/5d8bf1063f9441259f1cf98244d3546f.jpg,2026-07-13 03:54:27
|
||||
1979324706393804802,1979324706393804802,2025/10/18/dd18f6317c2e4f11a39e4b1fe109d104.jpg,998ab81861021007dc1e082d0eb1f2db.jpg,2025/10/18/dd18f6317c2e4f11a39e4b1fe109d104.jpg,2026-07-13 03:54:27
|
||||
1979328733588250625,1979328733588250625,2025/10/18/5e5eb26dd41f4b19bb6c1eae4c97e503.jpeg,8700f38ee446faf381d057837455cb31.jpeg,2025/10/18/5e5eb26dd41f4b19bb6c1eae4c97e503.jpeg,2026-07-13 03:54:27
|
||||
1979328818548072450,1979328818548072450,2025/10/18/251fcfe9e803438682c6b6480e8fd668.jpeg,22d66afaa253a7e3e0582e0f0cbafa4d.jpeg,2025/10/18/251fcfe9e803438682c6b6480e8fd668.jpeg,2026-07-13 03:54:27
|
||||
1981226633981333506,1981226633981333506,2025/10/23/41e59a7115ca470e9c5e371ae9d20787.jpg,sx2 (1).jpg,2025/10/23/41e59a7115ca470e9c5e371ae9d20787.jpg,2026-07-13 03:54:27
|
||||
1981353252516139010,1981353252516139010,2025/10/23/8e207ffea32c441d969ceab9c977d260.jpg,sx2.jpg,2025/10/23/8e207ffea32c441d969ceab9c977d260.jpg,2026-07-13 03:54:27
|
||||
1984594783796596738,1984594783796596738,2025/11/01/0048348b3d6c439f99db454c8c05e59a.gif,line.gif,2025/11/01/0048348b3d6c439f99db454c8c05e59a.gif,2026-07-13 03:54:27
|
||||
1984594959667957762,1984594959667957762,2025/11/01/cbec94cb81e4467a9645ae7ddecbc12f.jpg,line.jpg,2025/11/01/cbec94cb81e4467a9645ae7ddecbc12f.jpg,2026-07-13 03:54:27
|
||||
1984595003297107970,1984595003297107970,2025/11/01/44e2d2d29252404e85b866368e54cd9c.jpg,line.jpg,2025/11/01/44e2d2d29252404e85b866368e54cd9c.jpg,2026-07-13 03:54:27
|
||||
1984595041142312962,1984595041142312962,2025/11/01/40eaa91afbd54306a0883db1c842edd1.gif,line.gif,2025/11/01/40eaa91afbd54306a0883db1c842edd1.gif,2026-07-13 03:54:27
|
||||
1984595285607321602,1984595285607321602,2025/11/01/692ed9ad17fa490bb5ef6ca4b0d6b95b.jpg,line.jpg,2025/11/01/692ed9ad17fa490bb5ef6ca4b0d6b95b.jpg,2026-07-13 03:54:27
|
||||
1984595347070652418,1984595347070652418,2025/11/01/19366249d11e467da5d3e21be5fa3666.gif,line.gif,2025/11/01/19366249d11e467da5d3e21be5fa3666.gif,2026-07-13 03:54:27
|
||||
1984595675757285378,1984595675757285378,2025/11/01/5192412c23f743549213cc2de40f34de.jpg,line2.jpg,2025/11/01/5192412c23f743549213cc2de40f34de.jpg,2026-07-13 03:54:27
|
||||
1984596292395470849,1984596292395470849,2025/11/01/e5e25a0bf16d445a849cb3ae2a5a9421.jpg,line2.jpg,2025/11/01/e5e25a0bf16d445a849cb3ae2a5a9421.jpg,2026-07-13 03:54:27
|
||||
1984597536438620161,1984597536438620161,2025/11/01/3bb8a4bfc3ea4a26937564c6406357a7.jpg,line3.jpg,2025/11/01/3bb8a4bfc3ea4a26937564c6406357a7.jpg,2026-07-13 03:54:27
|
||||
1984597906481090561,1984597906481090561,2025/11/01/76c0bdb6fcc3472b8f2990a0981015af.gif,line5.gif,2025/11/01/76c0bdb6fcc3472b8f2990a0981015af.gif,2026-07-13 03:54:27
|
||||
1984598802476699649,1984598802476699649,2025/11/01/541d61bcd9174f1092b6583673805d3d.gif,line66.gif,2025/11/01/541d61bcd9174f1092b6583673805d3d.gif,2026-07-13 03:54:27
|
||||
1984605054451716098,1984605054451716098,2025/11/01/c5964ab271724013918de484e0dc573a.gif,line59.gif,2025/11/01/c5964ab271724013918de484e0dc573a.gif,2026-07-13 03:54:27
|
||||
1984605757169602561,1984605757169602561,2025/11/01/5d4f6ff3073f47c79ad2ffa44f980e82.jpg,line5999.jpg,2025/11/01/5d4f6ff3073f47c79ad2ffa44f980e82.jpg,2026-07-13 03:54:27
|
||||
1984606138960318466,1984606138960318466,2025/11/01/1f21480996c74a8e91d26ad3ad524c03.gif,line99.gif,2025/11/01/1f21480996c74a8e91d26ad3ad524c03.gif,2026-07-13 03:54:27
|
||||
1984606723373666306,1984606723373666306,2025/11/01/82ba6549d9af436bb40c2783f92e6c5e.gif,line88.gif,2025/11/01/82ba6549d9af436bb40c2783f92e6c5e.gif,2026-07-13 03:54:27
|
||||
1984607445796392961,1984607445796392961,2025/11/01/5d163cec8f964aaa9a55e3fed6c1b0b1.gif,line88.gif,2025/11/01/5d163cec8f964aaa9a55e3fed6c1b0b1.gif,2026-07-13 03:54:27
|
||||
1984607836177043458,1984607836177043458,2025/11/01/55ffb4bbd5ae4c6891bb2b4b25c66288.gif,line7.gif,2025/11/01/55ffb4bbd5ae4c6891bb2b4b25c66288.gif,2026-07-13 03:54:27
|
||||
1984608996854206465,1984608996854206465,2025/11/01/9c860a007f6b4e2eb1ba9e84a31f5305.jpg,line567.jpg,2025/11/01/9c860a007f6b4e2eb1ba9e84a31f5305.jpg,2026-07-13 03:54:27
|
||||
1984611587763867650,1984611587763867650,2025/11/01/576ed1b83d9b4ce0acebd7308f2b1e5f.png,bg.png,2025/11/01/576ed1b83d9b4ce0acebd7308f2b1e5f.png,2026-07-13 03:54:27
|
||||
1984879192173133825,1984879192173133825,2025/11/02/b5758f3a4bd84bf3a595649880531c2d.png,"u=4053300555,1298969757&fm=3074&app=3074&f=PNG.png",2025/11/02/b5758f3a4bd84bf3a595649880531c2d.png,2026-07-13 03:54:27
|
||||
1985690964576575489,1985690964576575489,2025/11/04/af729bf630294374a85a97f7aa13094a.txt,tolan.txt,2025/11/04/af729bf630294374a85a97f7aa13094a.txt,2026-07-13 03:54:27
|
||||
1985691004669927425,1985691004669927425,2025/11/04/ca1534af686f4872af10cb81a42a0771.jpeg,1e39566d1c95924f3979549a3028a80b.jpeg,2025/11/04/ca1534af686f4872af10cb81a42a0771.jpeg,2026-07-13 03:54:27
|
||||
1985691118918574081,1985691118918574081,2025/11/04/42056b00f0b644f28d94c56a7b4ded26.jpeg,1e39566d1c95924f3979549a3028a80b.jpeg,2025/11/04/42056b00f0b644f28d94c56a7b4ded26.jpeg,2026-07-13 03:54:27
|
||||
1986007556699176962,1986007556699176962,2025/11/05/730532e54c094513b4bf5afff9baae27.png,山峡电子章新章.png,2025/11/05/730532e54c094513b4bf5afff9baae27.png,2026-07-13 03:54:27
|
||||
1986008223698370561,1986008223698370561,2025/11/05/0356264ba598443f9864db52b89e0bcb.png,山峡电子章.png,2025/11/05/0356264ba598443f9864db52b89e0bcb.png,2026-07-13 03:54:27
|
||||
1986008286382243841,1986008286382243841,2025/11/05/fa6519c5608143048a4f2a38a7275062.png,山峡电子章.png,2025/11/05/fa6519c5608143048a4f2a38a7275062.png,2026-07-13 03:54:27
|
||||
1986232678676578306,1986232678676578306,2025/11/06/9fed8e2713bb4d6abdd2edca932c85b8.jpg,25e66082-bc2a-4b94-94c6-e9d3f4e27202.2.jpg,2025/11/06/9fed8e2713bb4d6abdd2edca932c85b8.jpg,2026-07-13 03:54:27
|
||||
1986233114833862658,1986233114833862658,2025/11/06/2b8909c24b614b9ca39a353a9388a8bc.png,IMG_0552 (1).png,2025/11/06/2b8909c24b614b9ca39a353a9388a8bc.png,2026-07-13 03:54:27
|
||||
1986233334812524545,1986233334812524545,2025/11/06/86ece2d56946462d89d7f7a7656d7bc9.jpg,微信图片_20251019094705_798_56 (2).jpg,2025/11/06/86ece2d56946462d89d7f7a7656d7bc9.jpg,2026-07-13 03:54:27
|
||||
1986257348851286017,1986257348851286017,2025/11/06/404bc3ddfced4b11aa9cdabecce8fcdd.jpg,微信图片_20251019094652_795_56.jpg..jpg,2025/11/06/404bc3ddfced4b11aa9cdabecce8fcdd.jpg,2026-07-13 03:54:27
|
||||
1986258043771961346,1986258043771961346,2025/11/06/1bb8dde4f4ba4c979c90379d049cc6af.jpg,吴春生.jpg,2025/11/06/1bb8dde4f4ba4c979c90379d049cc6af.jpg,2026-07-13 03:54:27
|
||||
1988152103638024194,1988152103638024194,2025/11/11/f2e6fdf08bff48b6bcfc1a6be79e3d5c.pdf,【云栋-嘉达】YD-JD20250709001-硝酸.pdf,2025/11/11/f2e6fdf08bff48b6bcfc1a6be79e3d5c.pdf,2026-07-13 03:54:27
|
||||
1988152807148634113,1988152807148634113,2025/11/11/bc0d5f3024d0495397086ffce9b01def.docx,中新循环模版液碱20290917购销合同.docx,2025/11/11/bc0d5f3024d0495397086ffce9b01def.docx,2026-07-13 03:54:27
|
||||
1988157705143599105,1988157705143599105,2025/11/11/88d9314104cf444e9ea1f2a5d9e1b681.png,山峡电子章.png,2025/11/11/88d9314104cf444e9ea1f2a5d9e1b681.png,2026-07-13 03:54:27
|
||||
1988157764870488066,1988157764870488066,2025/11/11/72b5436046354152a08c02054fb0e3d9.png,山峡电子章.png,2025/11/11/72b5436046354152a08c02054fb0e3d9.png,2026-07-13 03:54:27
|
||||
1988807092656029698,1988807092656029698,2025/11/13/9c9aed35db40410fb73d13f5af1c7879.pdf,【安徽云栋-亿成】YD-YC20251012001-双氧水.pdf,2025/11/13/9c9aed35db40410fb73d13f5af1c7879.pdf,2026-07-13 03:54:27
|
||||
1988811149000982530,1988811149000982530,2025/11/13/c3549eeeb3144fa68e39e8800f614822.pdf,【安徽云栋-亿成】YD-YC20251012001-双氧水.pdf,2025/11/13/c3549eeeb3144fa68e39e8800f614822.pdf,2026-07-13 03:54:27
|
||||
1988811578787119106,1988811578787119106,2025/11/13/e0df3fd00d7240158fcbbfe83f637e2f.pdf,【山峡-海康】SX-X-HK20251112003.盐酸36%pdf.pdf,2025/11/13/e0df3fd00d7240158fcbbfe83f637e2f.pdf,2026-07-13 03:54:27
|
||||
1988811642016251906,1988811642016251906,2025/11/13/2e7aad20933b4ae0b7d86fef783db4cf.pdf,【山峡-亚科】P025B030003-液碱、聚合氯化铝、聚丙稀酰胺、醋酸钠、硫酸、硫酸亚铁.pdf,2025/11/13/2e7aad20933b4ae0b7d86fef783db4cf.pdf,2026-07-13 03:54:27
|
||||
1988812132510744578,1988812132510744578,2025/11/13/18769ccd643f4ecf97b5c19770aeeeb3.pdf,【云栋-嘉达】YD-JD20250709001-硝酸.pdf,2025/11/13/18769ccd643f4ecf97b5c19770aeeeb3.pdf,2026-07-13 03:54:27
|
||||
1988812686326644738,1988812686326644738,2025/11/13/59b5a528439c415bb8dbe5a18c324dfe.pdf,【山峡-腾龙源】SX-TLY-POORD11425110041-甲醛.pdf,2025/11/13/59b5a528439c415bb8dbe5a18c324dfe.pdf,2026-07-13 03:54:27
|
||||
1988812870808911873,1988812870808911873,2025/11/13/4d23ffed9cda4fce9adba0ace7fbf3e8.pdf,【楷昂-山峡】KA-SX20251112-亚硫酸氢钠.pdf,2025/11/13/4d23ffed9cda4fce9adba0ace7fbf3e8.pdf,2026-07-13 03:54:27
|
||||
1988813158374588417,1988813158374588417,2025/11/13/b7537e1dc6aa498baf6ff9725866ff53.pdf,【山峡-海康】SX-X-HK20251112003.盐酸36%pdf.pdf,2025/11/13/b7537e1dc6aa498baf6ff9725866ff53.pdf,2026-07-13 03:54:27
|
||||
1988814002910281729,1988814002910281729,2025/11/13/7d870c9d436b4fd2ae7298179849f8d6.png,Avatar anima zone (2).png,2025/11/13/7d870c9d436b4fd2ae7298179849f8d6.png,2026-07-13 03:54:27
|
||||
1988814316799410178,1988814316799410178,2025/11/13/ab19908164284d96baca044c2fde72e9.pdf,合同-YD-X-JT20251113004.pdf,2025/11/13/ab19908164284d96baca044c2fde72e9.pdf,2026-07-13 03:54:27
|
||||
1988815975428538369,1988815975428538369,2025/11/13/be5f1a7a9fe547a28a899be0d98b501d.pdf,招标文件正文.pdf,2025/11/13/be5f1a7a9fe547a28a899be0d98b501d.pdf,2026-07-13 03:54:27
|
||||
1988819393404616706,1988819393404616706,2025/11/13/a62760746eab48a7b52b6f0a1248f0d7.pdf,【山峡-海康】SX-X-HK20251112003.盐酸36%pdf.pdf,2025/11/13/a62760746eab48a7b52b6f0a1248f0d7.pdf,2026-07-13 03:54:27
|
||||
1988819418583023617,1988819418583023617,2025/11/13/9ff807e7cc3b49ffbe3c71a63a0df287.pdf,【山峡-昊帆】CG10120251110010-亚硝酸钠.pdf.pdf,2025/11/13/9ff807e7cc3b49ffbe3c71a63a0df287.pdf,2026-07-13 03:54:27
|
||||
1988836752286695425,1988836752286695425,2025/11/13/f7788ad92f4d4194a2291dd14cd0523c.pdf,【山峡-昊帆】CG10120251110010-亚硝酸钠.pdf.pdf,2025/11/13/f7788ad92f4d4194a2291dd14cd0523c.pdf,2026-07-13 03:54:27
|
||||
1988861149882003458,1988861149882003458,2025/11/13/cd81323ad9cc4c96a8f5d0d14fd49488.pdf,【山峡-联盛芯能】SX-X-20251113002-氢氧化钾.pdf,2025/11/13/cd81323ad9cc4c96a8f5d0d14fd49488.pdf,2026-07-13 03:54:27
|
||||
1988862000507826178,1988862000507826178,2025/11/13/32aeb924b0544cee97da78845de9243a.pdf,【山峡-联盛芯能】SX-X-20251113002-氢氧化钾.pdf,2025/11/13/32aeb924b0544cee97da78845de9243a.pdf,2026-07-13 03:54:27
|
||||
1989157874299482113,1989157874299482113,2025/11/14/9f11a8efba884301b562736a7c6ff6a9.pdf,【山峡-仁盛】SX-X-JT20251114003-盐酸.pdf,2025/11/14/9f11a8efba884301b562736a7c6ff6a9.pdf,2026-07-13 03:54:27
|
||||
1989157937356648450,1989157937356648450,2025/11/14/1fcb5eb8f6b54a909f7e92249676497b.pdf,【山峡-百谊】SX-X-JT20251114002-硫酸.pdf,2025/11/14/1fcb5eb8f6b54a909f7e92249676497b.pdf,2026-07-13 03:54:27
|
||||
1989158135424266241,1989158135424266241,2025/11/14/236033e1deb5405991f425e5e15822ca.pdf,【山峡-月铜】-SX-X-JT20251114001-硫酸.pdf,2025/11/14/236033e1deb5405991f425e5e15822ca.pdf,2026-07-13 03:54:27
|
||||
1989158420586606593,1989158420586606593,2025/11/14/244c9f21b16044c49558004eca469f3e.pdf,【山峡-联盛芯能】SX-X-20251113002-氢氧化钾.pdf,2025/11/14/244c9f21b16044c49558004eca469f3e.pdf,2026-07-13 03:54:27
|
||||
1989158603542147074,1989158603542147074,2025/11/14/788234e232c843549f94485abaca0e4f.pdf,【山峡-金涛】SX-X-JT20251113003,液碱、次氯酸钠.pdf,2025/11/14/788234e232c843549f94485abaca0e4f.pdf,2026-07-13 03:54:27
|
||||
1990246926071320577,1990246926071320577,2025/11/17/cfc9e106b573401f9e9b8a7d0443c69f.pdf,【山峡-新星华阳】SX-X-JT20251117005-硫酸98%.pdf,2025/11/17/cfc9e106b573401f9e9b8a7d0443c69f.pdf,2026-07-13 03:54:27
|
||||
1990247016081084417,1990247016081084417,2025/11/17/c381aa099e2c461297fb75239990bd5f.pdf,【云栋-联盛芯能】YD-X-JT20251117004-硝酸.pdf,2025/11/17/c381aa099e2c461297fb75239990bd5f.pdf,2026-07-13 03:54:27
|
||||
1990247078978867202,1990247078978867202,2025/11/17/d72e92c80ef241aa96491401a2d91763.pdf,【山峡-联盛芯能】SX-X-JT20251117004-盐酸.pdf,2025/11/17/d72e92c80ef241aa96491401a2d91763.pdf,2026-07-13 03:54:27
|
||||
1990247159291400194,1990247159291400194,2025/11/17/337cab2e078843b8aedb3629b40f7f05.pdf,【山峡-仁盛】SX-X-JT20251117003-盐酸36%.pdf,2025/11/17/337cab2e078843b8aedb3629b40f7f05.pdf,2026-07-13 03:54:27
|
||||
1990247223405531137,1990247223405531137,2025/11/17/f9181a73382042a4b7f4fbd3421e9179.pdf,【云栋-仁盛】-YD-X-JT20251117003-硝酸.pdf,2025/11/17/f9181a73382042a4b7f4fbd3421e9179.pdf,2026-07-13 03:54:27
|
||||
1990247318247133186,1990247318247133186,2025/11/17/57176820679147809db91b5da0a88337.pdf,【山峡-恒星】-SX-X-JT20251117002-盐酸、消泡剂.pdf,2025/11/17/57176820679147809db91b5da0a88337.pdf,2026-07-13 03:54:27
|
||||
1990247364308979713,1990247364308979713,2025/11/17/3ba700e210604df68c4eb8246e8d84e5.pdf,【山峡-光铧帝业】SX-X-JT20251117001-液碱32%.pdf,2025/11/17/3ba700e210604df68c4eb8246e8d84e5.pdf,2026-07-13 03:54:27
|
||||
1990247644475904002,1990247644475904002,2025/11/17/ebd0869c8c5d42d58c0d492d2bfe4c53.pdf,【山峡-光铧帝业】SX-X-JT20251117001-液碱32%.pdf,2025/11/17/ebd0869c8c5d42d58c0d492d2bfe4c53.pdf,2026-07-13 03:54:27
|
||||
1990247729142124546,1990247729142124546,2025/11/17/11539f95cc83449fa1abf6e9b3bc382d.pdf,060-【博宇-山峡】SXX-BY20251106001-二甲苯、无水乙醇、丙酮.pdf,2025/11/17/11539f95cc83449fa1abf6e9b3bc382d.pdf,2026-07-13 03:54:27
|
||||
1990247837107703809,1990247837107703809,2025/11/17/d9f9b6880bfd4a0195eda7a996050dbf.jpg,双【博宇-山峡】SX-C-JT20251114006-甲醇、二氯甲烷.jpg,2025/11/17/d9f9b6880bfd4a0195eda7a996050dbf.jpg,2026-07-13 03:54:27
|
||||
1990248119271116801,1990248119271116801,2025/11/17/a5282b66e98b401884f86e07ccc11939.jpg,双【山峡-金涛】-SX-X-JT20251114005-硫酸分析纯.jpg,2025/11/17/a5282b66e98b401884f86e07ccc11939.jpg,2026-07-13 03:54:27
|
||||
1990248269469143041,1990248269469143041,2025/11/17/20493f209e6f4e14a6b6ce378b7e5df4.pdf,【山峡-海康】-SX-X-JT20251114004-无水硫酸镁.pdf,2025/11/17/20493f209e6f4e14a6b6ce378b7e5df4.pdf,2026-07-13 03:54:27
|
||||
1990258862389415937,1990258862389415937,2025/11/17/5e55de70e77e443b834966bc7c225049.pdf,双【山峡-新星华阳】SX-X-JT20251117005-硫酸98%.pdf,2025/11/17/5e55de70e77e443b834966bc7c225049.pdf,2026-07-13 03:54:27
|
||||
1992775854602203138,1992775854602203138,2025/11/24/b89703f1aa6c4d919063d079328cf4ac.jpg,aa7fbee708777aa4a5b4f557d201aea1.jpg,2025/11/24/b89703f1aa6c4d919063d079328cf4ac.jpg,2026-07-13 03:54:27
|
||||
1992782490448310273,1992782490448310273,2025/11/24/5d021ee5dbcd486f914cbb6eb68e531c.jpg,双【博宇 -山峡】SX-X-JT20251121003 乙二醇.jpg,2025/11/24/5d021ee5dbcd486f914cbb6eb68e531c.jpg,2026-07-13 03:54:27
|
||||
1992879992795283457,1992879992795283457,2025/11/24/a21292b4265d43b4839231245d815de5.pdf,【山峡-奔马】SX-BM20251024001-硫酸 .pdf,2025/11/24/a21292b4265d43b4839231245d815de5.pdf,2026-07-13 03:54:27
|
||||
1992880582552174593,1992880582552174593,2025/11/24/3c46bdd2c6a44adaaa134094546541ba.docx,【山峡-德奥新】SXX-DAX20251124001-硫酸.docx,2025/11/24/3c46bdd2c6a44adaaa134094546541ba.docx,2026-07-13 03:54:27
|
||||
2003272354579009537,2003272354579009537,2025/12/23/52252be08f1741bc8d9168f7732546dc.pdf,双【山峡-奇创】CGD-20251209-0003-盐酸、氨水、磷酸(1).pdf,2025/12/23/52252be08f1741bc8d9168f7732546dc.pdf,2026-07-13 03:54:27
|
||||
2007648200446054402,2007648200446054402,2026/01/04/643c3ed4c40f4c8f83d76948d153da6e.jpg,益行-营业执照.jpg,2026/01/04/643c3ed4c40f4c8f83d76948d153da6e.jpg,2026-07-13 03:54:27
|
||||
2007648354662223874,2007648354662223874,2026/01/04/272e0ad3a7fd46019e0f4a41b370c44f.jpg,益行-营业执照.jpg,2026/01/04/272e0ad3a7fd46019e0f4a41b370c44f.jpg,2026-07-13 03:54:27
|
||||
2007672945690415106,2007672945690415106,2026/01/04/9310c7f7a05348709d9b05584ebee463.jpg,伟达-营业执照.jpg,2026/01/04/9310c7f7a05348709d9b05584ebee463.jpg,2026-07-13 03:54:27
|
||||
2007672964317319170,2007672964317319170,2026/01/04/f3ee5da1e67f44f69fa8bc2abf9a2751.jpg,伟达-许可证.jpg,2026/01/04/f3ee5da1e67f44f69fa8bc2abf9a2751.jpg,2026-07-13 03:54:27
|
||||
2009437778819551233,2009437778819551233,2026/01/09/5f2554cac6fe4a30ba884f0f0d380d1f.jpg,安徽华西-营业执照.jpg,2026/01/09/5f2554cac6fe4a30ba884f0f0d380d1f.jpg,2026-07-13 03:54:27
|
||||
2009437808238399489,2009437808238399489,2026/01/09/dac0f6fc7ab94996ac4b708d533e7f5a.jpg,安徽华西-营业执照.jpg,2026/01/09/dac0f6fc7ab94996ac4b708d533e7f5a.jpg,2026-07-13 03:54:27
|
||||
2010907109487247362,2010907109487247362,2026/01/13/70654569aaf04326b00711f239f03cbe.jpg,合肥玉坤营业执照.jpg,2026/01/13/70654569aaf04326b00711f239f03cbe.jpg,2026-07-13 03:54:27
|
||||
2010907156463452161,2010907156463452161,2026/01/13/be52b748088e45fcb9a5b596d8e9a310.jpg,合肥玉坤营业执照.jpg,2026/01/13/be52b748088e45fcb9a5b596d8e9a310.jpg,2026-07-13 03:54:27
|
||||
2011989862735642625,2011989862735642625,2026/01/16/aec03c7e93bc4c0f8e0c056ab6009660.png,1.png,2026/01/16/aec03c7e93bc4c0f8e0c056ab6009660.png,2026-07-13 03:54:27
|
||||
2011989881819725826,2011989881819725826,2026/01/16/aa1821fbc1a640fe98271362d292e80c.png,2.png,2026/01/16/aa1821fbc1a640fe98271362d292e80c.png,2026-07-13 03:54:27
|
||||
2011990422742335489,2011990422742335489,2026/01/16/2336847e8fdb46afb4c047763bcaf277.jpg,3.jpg,2026/01/16/2336847e8fdb46afb4c047763bcaf277.jpg,2026-07-13 03:54:27
|
||||
2011990443986485250,2011990443986485250,2026/01/16/18fae01a740d4ebb83e83649f91407f3.png,1.png,2026/01/16/18fae01a740d4ebb83e83649f91407f3.png,2026-07-13 03:54:27
|
||||
2012058001087365122,2012058001087365122,2026/01/16/3f99b40a400548fea9bc31b342e2e8d3.jpg,益多营业执照.jpg,2026/01/16/3f99b40a400548fea9bc31b342e2e8d3.jpg,2026-07-13 03:54:27
|
||||
2012058015985532930,2012058015985532930,2026/01/16/c0072ea4b98842c1b7c28441daf378cc.jpg,益多营业执照.jpg,2026/01/16/c0072ea4b98842c1b7c28441daf378cc.jpg,2026-07-13 03:54:27
|
||||
2013188351050088449,2013188351050088449,2026/01/19/dfecba0ed27649b3a4216c24976627c3.pdf,安庆安粮营业执照副本最新版(1).pdf,2026/01/19/dfecba0ed27649b3a4216c24976627c3.pdf,2026-07-13 03:54:27
|
||||
2013188390526877697,2013188390526877697,2026/01/19/c407e304f4cc4ece99827026663ac52d.pdf,安庆安粮营业执照副本最新版(1).pdf,2026/01/19/c407e304f4cc4ece99827026663ac52d.pdf,2026-07-13 03:54:27
|
||||
2013846981638324226,2013846981638324226,2026/01/21/6e241b3578d540db97f7ec6473f6e87a.pdf,飞霖营业执照正本.pdf,2026/01/21/6e241b3578d540db97f7ec6473f6e87a.pdf,2026-07-13 03:54:27
|
||||
2013847056670228482,2013847056670228482,2026/01/21/30778d38d14d4d72b4f340d9261d7c8f.pdf,飞霖(一般危险化学品含易制毒,不含易制爆)危险化学品经营许可证正副本(1).pdf,2026/01/21/30778d38d14d4d72b4f340d9261d7c8f.pdf,2026-07-13 03:54:27
|
||||
2017098744449388545,2017098744449388545,2026/01/30/c9cf0f55cae445829cb8e30d9ae9ffb5.jpg,1.jpg,2026/01/30/c9cf0f55cae445829cb8e30d9ae9ffb5.jpg,2026-07-13 03:54:27
|
||||
2017098798945980417,2017098798945980417,2026/01/30/dbff3441017e4060a06056ebf4a6c610.jpg,2.jpg,2026/01/30/dbff3441017e4060a06056ebf4a6c610.jpg,2026-07-13 03:54:27
|
||||
2027294094384615425,2027294094384615425,2026/02/27/f4a8a9cc9f8f4149b8e4e7210a11983e.jpg,双【山峡-华西】-SX-X-JT20260227002-硫酸92.5%.jpg,2026/02/27/f4a8a9cc9f8f4149b8e4e7210a11983e.jpg,2026-07-13 03:54:27
|
||||
2027294169093558273,2027294169093558273,2026/02/27/2c9878e258394ec6a5d1892fdd647697.pdf,双【山峡-时联】-SX-X-JT20260226004-磷酸.pdf,2026/02/27/2c9878e258394ec6a5d1892fdd647697.pdf,2026-07-13 03:54:27
|
||||
2027294221811765249,2027294221811765249,2026/02/27/5783955770944f1c983d21789541b12c.pdf,双【山峡-海康】SX-X-JT20260226003-盐酸.pdf,2026/02/27/5783955770944f1c983d21789541b12c.pdf,2026-07-13 03:54:27
|
||||
2027294319769735170,2027294319769735170,2026/02/27/e30505aa7e2f41d29919ebf838ae19f4.pdf,双【山峡-腾龙源】-SX-X-JT20260226001-50%硫酸.pdf,2026/02/27/e30505aa7e2f41d29919ebf838ae19f4.pdf,2026-07-13 03:54:27
|
||||
2027295045711482881,2027295045711482881,2026/02/27/c50fbbd4657740a7b76769b3c0dd8f64.pdf,【云栋-亿成】YD-X-JT20260224001-双氧水.pdf,2026/02/27/c50fbbd4657740a7b76769b3c0dd8f64.pdf,2026-07-13 03:54:27
|
||||
2027295195431358465,2027295195431358465,2026/02/27/c603004e8736445a820303936306e462.pdf,双【山峡-金善】-SX-X-JT20260224003-片碱.pdf,2026/02/27/c603004e8736445a820303936306e462.pdf,2026-07-13 03:54:27
|
||||
2027295416919969793,2027295416919969793,2026/02/27/9956497c8fb84436b0c39e3675ebbaa8.pdf,双【山峡-金善】-SX-X-JT20260209005-聚丙稀酰胺.pdf,2026/02/27/9956497c8fb84436b0c39e3675ebbaa8.pdf,2026-07-13 03:54:27
|
||||
2027295682520076289,2027295682520076289,2026/02/27/d0c4b838f80f4f16a3dfac60f8b1ef7d.pdf,双【山峡-金善】-SX-X-JT20260210001-片碱.pdf,2026/02/27/d0c4b838f80f4f16a3dfac60f8b1ef7d.pdf,2026-07-13 03:54:27
|
||||
2030835075574894593,2030835075574894593,2026/03/09/d820bdec892f4f6f8fd5b50ddf472e23.png,1.png,2026/03/09/d820bdec892f4f6f8fd5b50ddf472e23.png,2026-07-13 03:54:27
|
||||
2030835100744912897,2030835100744912897,2026/03/09/39cbd0c1b1e245fca587b267c41696c2.png,1.png,2026/03/09/39cbd0c1b1e245fca587b267c41696c2.png,2026-07-13 03:54:27
|
||||
2033461227216924673,2033461227216924673,2026/03/16/1fdc3d2cbbe540cdab9d44f0c9dfb796.png,四中.png,2026/03/16/1fdc3d2cbbe540cdab9d44f0c9dfb796.png,2026-07-13 03:54:27
|
||||
2033461254807056386,2033461254807056386,2026/03/16/2fc51c9fc06f477793a944ba1087fb64.png,四中.png,2026/03/16/2fc51c9fc06f477793a944ba1087fb64.png,2026-07-13 03:54:27
|
||||
2034072267218710529,2034072267218710529,2026/03/18/bd952567062b4c13ab49041cb5220938.png,1.png,2026/03/18/bd952567062b4c13ab49041cb5220938.png,2026-07-13 03:54:27
|
||||
2034072317843959810,2034072317843959810,2026/03/18/0b63bf7aae074d5a8601e7b9b5fea910.png,1.png,2026/03/18/0b63bf7aae074d5a8601e7b9b5fea910.png,2026-07-13 03:54:27
|
||||
2034825029204275202,2034825029204275202,2026/03/20/ec571f3eb2d74bd5abdd69fb4fac1a0e.png,营业执照(空白).png,2026/03/20/ec571f3eb2d74bd5abdd69fb4fac1a0e.png,2026-07-13 03:54:27
|
||||
2034825060829327361,2034825060829327361,2026/03/20/dc407ae18cf246b1840cdb33da607f6f.png,营业执照(空白).png,2026/03/20/dc407ae18cf246b1840cdb33da607f6f.png,2026-07-13 03:54:27
|
||||
2035881238204215297,2035881238204215297,2026/03/23/5cf1881e04fc44ef90d0de3600697bbb.png,营业执照(空白).png,2026/03/23/5cf1881e04fc44ef90d0de3600697bbb.png,2026-07-13 03:54:27
|
||||
2035881255912566786,2035881255912566786,2026/03/23/77a62052df0c47eeab01cae2f3eff36d.png,营业执照(空白).png,2026/03/23/77a62052df0c47eeab01cae2f3eff36d.png,2026-07-13 03:54:27
|
||||
2035947326002655234,2035947326002655234,2026/03/23/e5f5e6247e5e4153b5f3e2bfd64f5b1c.jpg,常熟爱德盛营业执照.jpg,2026/03/23/e5f5e6247e5e4153b5f3e2bfd64f5b1c.jpg,2026-07-13 03:54:27
|
||||
2035947374987931649,2035947374987931649,2026/03/23/15d417acab504b679c59b5cccbc7260b.jpg,常熟爱德盛营业执照.jpg,2026/03/23/15d417acab504b679c59b5cccbc7260b.jpg,2026-07-13 03:54:27
|
||||
2038120930131800066,2038120930131800066,2026/03/29/75fcd1d346314cf9bf9c5ce893663f2d.jpg,9a55da4b2ecec4e2d2b1e35d8698228a.jpg,2026/03/29/75fcd1d346314cf9bf9c5ce893663f2d.jpg,2026-07-13 03:54:27
|
||||
2038121017427849217,2038121017427849217,2026/03/29/70bd3d51748d4b9284fd1c5e3658b55e.jpg,6a77fadcf206dc664e5a0a50aa464eda.jpg,2026/03/29/70bd3d51748d4b9284fd1c5e3658b55e.jpg,2026-07-13 03:54:27
|
||||
2038121096935075841,2038121096935075841,2026/03/29/9377e0632b104be9b0d24d4e10039f75.jpg,421c78d2aee0f418a65751572473d585.jpg,2026/03/29/9377e0632b104be9b0d24d4e10039f75.jpg,2026-07-13 03:54:27
|
||||
2038121285175439362,2038121285175439362,2026/03/29/77d792c76240408ebc289bdf8a4a715b.jpg,9a55da4b2ecec4e2d2b1e35d8698228a.jpg,2026/03/29/77d792c76240408ebc289bdf8a4a715b.jpg,2026-07-13 03:54:27
|
||||
2038121319841361922,2038121319841361922,2026/03/29/683d92b3a39b4da09beb490966091a21.jpg,75e2891dbf24b2755f431da6806b8593.jpg,2026/03/29/683d92b3a39b4da09beb490966091a21.jpg,2026-07-13 03:54:27
|
||||
2041421773438414850,2041421773438414850,2026/04/07/8655a48920064a2f902387358fe15bc0.png,1.png,2026/04/07/8655a48920064a2f902387358fe15bc0.png,2026-07-13 03:54:27
|
||||
2041421843818835970,2041421843818835970,2026/04/07/376f0edad0334ae9aa3af13c55a507a0.png,2.png,2026/04/07/376f0edad0334ae9aa3af13c55a507a0.png,2026-07-13 03:54:27
|
||||
2041421920528461825,2041421920528461825,2026/04/07/bd9a1a7262444ef88369aec28e9e463a.png,1.png,2026/04/07/bd9a1a7262444ef88369aec28e9e463a.png,2026-07-13 03:54:27
|
||||
2041786029241495554,2041786029241495554,2026/04/08/b100c2e9208643098b611c8b89c03313.png,mceclip0.png,2026/04/08/b100c2e9208643098b611c8b89c03313.png,2026-07-13 03:54:27
|
||||
2042187735683002370,2042187735683002370,2026/04/09/7e81e62ac12e4c9d871c5bc1a91956aa.pdf,安庆新营业执照(1).pdf,2026/04/09/7e81e62ac12e4c9d871c5bc1a91956aa.pdf,2026-07-13 03:54:27
|
||||
2042187794503921665,2042187794503921665,2026/04/09/f0802b21459d4ab0a37773b95c028467.pdf,安庆新营业执照(1).pdf,2026/04/09/f0802b21459d4ab0a37773b95c028467.pdf,2026-07-13 03:54:27
|
||||
2044221338013102081,2044221338013102081,2026/04/15/a5ff1835eda24636a0e068ec0e496013.png,营业执照(空白).png,2026/04/15/a5ff1835eda24636a0e068ec0e496013.png,2026-07-13 03:54:27
|
||||
2044221363644493825,2044221363644493825,2026/04/15/d8b945c6c08f4981a44705f8c2378aa4.png,营业执照(空白).png,2026/04/15/d8b945c6c08f4981a44705f8c2378aa4.png,2026-07-13 03:54:27
|
||||
2044313123708170242,2044313123708170242,2026/04/15/0e59a49850894cb28eb8eb111567a2e6.png,营业执照(空白).png,2026/04/15/0e59a49850894cb28eb8eb111567a2e6.png,2026-07-13 03:54:27
|
||||
2044313153164767233,2044313153164767233,2026/04/15/f6a63e6618f74b0fab6191494bfa3910.png,营业执照(空白).png,2026/04/15/f6a63e6618f74b0fab6191494bfa3910.png,2026-07-13 03:54:27
|
||||
2046123565266976770,2046123565266976770,2026/04/20/2f3cb05f8c5644bbbc0cf3e300d02672.png,营业执照(空白).png,2026/04/20/2f3cb05f8c5644bbbc0cf3e300d02672.png,2026-07-13 03:54:27
|
||||
2046123592278294529,2046123592278294529,2026/04/20/874a33735e8a419ba900663c76f1087c.png,营业执照(空白).png,2026/04/20/874a33735e8a419ba900663c76f1087c.png,2026-07-13 03:54:27
|
||||
2047862663686029313,2047862663686029313,2026/04/25/ec0b1912df2e4015a5053ef98b687e44.jpg,be120fc4fe21bfa22aab8ff0647a8c71.jpg,2026/04/25/ec0b1912df2e4015a5053ef98b687e44.jpg,2026-07-13 03:54:27
|
||||
2047862729897312257,2047862729897312257,2026/04/25/5cf9e4f0a38b4159b00127712d2fe580.jpg,eccf8bf724475a47476b93142d9a5017.jpg,2026/04/25/5cf9e4f0a38b4159b00127712d2fe580.jpg,2026-07-13 03:54:27
|
||||
2047862753242808322,2047862753242808322,2026/04/25/65a8ca75a6c6415d82315ee181bf7a3b.jpg,eccf8bf724475a47476b93142d9a5017.jpg,2026/04/25/65a8ca75a6c6415d82315ee181bf7a3b.jpg,2026-07-13 03:54:27
|
||||
2052931616984760322,2052931616984760322,2026/05/09/4c3fb578622e4af79d7313a3af26d3b3.png,mceclip0.png,2026/05/09/4c3fb578622e4af79d7313a3af26d3b3.png,2026-07-13 03:54:27
|
||||
2053727349535096834,2053727349535096834,2026/05/11/9d76b43509754710b9e7c20b854aad8b.png,金友营业执照.png,2026/05/11/9d76b43509754710b9e7c20b854aad8b.png,2026-07-13 03:54:27
|
||||
2053727406669905922,2053727406669905922,2026/05/11/28c72f9f75d249e3a1c32463d1e177e6.png,金友危险化学品许可证.png,2026/05/11/28c72f9f75d249e3a1c32463d1e177e6.png,2026-07-13 03:54:27
|
||||
2055111084205621249,2055111084205621249,2026/05/15/dcc3a918e2d844ab954459936cb05cc2.jpg,微信图片_20260515101731_1887_55.jpg,2026/05/15/dcc3a918e2d844ab954459936cb05cc2.jpg,2026-07-13 03:54:27
|
||||
2055111107853107202,2055111107853107202,2026/05/15/65c27819f1254e7d91bc3e3e471d67fb.jpg,微信图片_20260515101731_1887_55.jpg,2026/05/15/65c27819f1254e7d91bc3e3e471d67fb.jpg,2026-07-13 03:54:27
|
||||
2056253535716851713,2056253535716851713,2026/05/18/f62b7a1209e64a03b41327c949edd667.pdf,【山峡-安徽海康】SX-X-JT202605005001- 盐酸.pdf,2026/05/18/f62b7a1209e64a03b41327c949edd667.pdf,2026-07-13 03:54:27
|
||||
2056253611872829442,2056253611872829442,2026/05/18/afdd9758a8704436a671a24efea4232b.pdf,双【山峡-安徽海康】SX-X-JT202605005001- 盐酸.pdf,2026/05/18/afdd9758a8704436a671a24efea4232b.pdf,2026-07-13 03:54:27
|
||||
2056253886889148417,2056253886889148417,2026/05/18/4e88e1f5d6444ed3acaee66f6f267bf6.pdf,双 【山峡-安徽海康】-SX-X-JT20260506002-硫酸、盐酸.pdf,2026/05/18/4e88e1f5d6444ed3acaee66f6f267bf6.pdf,2026-07-13 03:54:27
|
||||
2056275057718280194,2056275057718280194,2026/05/18/9765647959f04a5f947509cfe171e1ef.jpg,营业执照.jpg,2026/05/18/9765647959f04a5f947509cfe171e1ef.jpg,2026-07-13 03:54:27
|
||||
2056275078127763458,2056275078127763458,2026/05/18/5b25f7695d7e468493b7bd266edd200e.jpg,危险化学品证件.jpg,2026/05/18/5b25f7695d7e468493b7bd266edd200e.jpg,2026-07-13 03:54:27
|
||||
2056350035914485762,2056350035914485762,2026/05/18/7818ab279a7b44ef8421dc5ef4ea56dd.pdf,Lyrria.pdf,2026/05/18/7818ab279a7b44ef8421dc5ef4ea56dd.pdf,2026-07-13 03:54:27
|
||||
2056350209059549185,2056350209059549185,2026/05/18/09d8651521464243a88fc772e82f8ce4.jpeg,63ccced291602d6f18afb6563639101a.jpeg,2026/05/18/09d8651521464243a88fc772e82f8ce4.jpeg,2026-07-13 03:54:27
|
||||
2056554959004725249,2056554959004725249,2026/05/19/b71f55680a294b3c88a4063c10799c5d.pdf,双【山峡-安徽海康】-SX-X-JT20260509003-硫酸、盐酸.pdf,2026/05/19/b71f55680a294b3c88a4063c10799c5d.pdf,2026-07-13 03:54:27
|
||||
2056555022762340353,2056555022762340353,2026/05/19/190adf3409a84a66bf5a584cfaa121df.pdf,双【山峡-安徽海康】-SX-X-JT20260511007-硫酸.pdf,2026/05/19/190adf3409a84a66bf5a584cfaa121df.pdf,2026-07-13 03:54:27
|
||||
2056555079737765889,2056555079737765889,2026/05/19/1aac5c00871644ff95e41979648f36bd.pdf,双【山峡-安徽海康】-SX-X-JT20260515001-盐酸.pdf,2026/05/19/1aac5c00871644ff95e41979648f36bd.pdf,2026-07-13 03:54:27
|
||||
2056555150705389570,2056555150705389570,2026/05/19/c2a8ab848a1b4ec584d7f3253125d50c.pdf,双【山峡-安徽海康】-SX-X-JT20260515005-硫酸.pdf,2026/05/19/c2a8ab848a1b4ec584d7f3253125d50c.pdf,2026-07-13 03:54:27
|
||||
2056555942514487297,2056555942514487297,2026/05/19/a7f651b202c64e6fbe14f58dc1396020.jpg,双【山峡-桐城金涛】-SX-X-JT20260514003-液碱、次钠.jpg,2026/05/19/a7f651b202c64e6fbe14f58dc1396020.jpg,2026-07-13 03:54:27
|
||||
2056556813046476801,2056556813046476801,2026/05/19/98a56f1a68ff4cc9ba7397aa98c7871d.jpg,双【山峡-安徽恒星】-SX-X-JT20260518004-葡萄糖、消泡剂.jpg,2026/05/19/98a56f1a68ff4cc9ba7397aa98c7871d.jpg,2026-07-13 03:54:27
|
||||
2056558022843133954,2056558022843133954,2026/05/19/096063cb3a6e40be8dafa5abd192f756.jpg,双【山峡-安徽虹泰】-HT20260513-01-次氯酸钠.jpg,2026/05/19/096063cb3a6e40be8dafa5abd192f756.jpg,2026-07-13 03:54:27
|
||||
2056558315282591746,2056558315282591746,2026/05/19/3fb4118ef19745efafa13d3cb4718fd8.pdf,双【山峡-海康】SX-X-JT20260107002-盐酸.pdf,2026/05/19/3fb4118ef19745efafa13d3cb4718fd8.pdf,2026-07-13 03:54:27
|
||||
2056558360870481921,2056558360870481921,2026/05/19/84302037ea6a48e3ada9249bf25dc3b8.pdf,双【山峡-海康】SX-X-JT20260112005-盐酸.pdf,2026/05/19/84302037ea6a48e3ada9249bf25dc3b8.pdf,2026-07-13 03:54:27
|
||||
2056558491237838849,2056558491237838849,2026/05/19/90bc0b3de06748a88a4f6fd7f67103ac.pdf,双【山峡-海康】-SX-X-JT20260302003-盐酸.pdf,2026/05/19/90bc0b3de06748a88a4f6fd7f67103ac.pdf,2026-07-13 03:54:27
|
||||
2056558679713083393,2056558679713083393,2026/05/19/95561920269846f5accc698699d94d4a.pdf,双【山峡-安徽海康】-SX-X-JT20260315002-硫酸.pdf,2026/05/19/95561920269846f5accc698699d94d4a.pdf,2026-07-13 03:54:27
|
||||
2056558755210555393,2056558755210555393,2026/05/19/7bc37bb76feb4c26a73c06873296aa1e.pdf,双【山峡-安徽海康】-SX-X-JT20260315001-盐酸.pdf,2026/05/19/7bc37bb76feb4c26a73c06873296aa1e.pdf,2026-07-13 03:54:27
|
||||
2056558848735145985,2056558848735145985,2026/05/19/a87989e9b6bf4ef09cb46bef3512a287.pdf,双【山峡-安徽海康】-SX-X-JT20260407005-盐酸.pdf,2026/05/19/a87989e9b6bf4ef09cb46bef3512a287.pdf,2026-07-13 03:54:27
|
||||
2056558915747540993,2056558915747540993,2026/05/19/8bf09d8843fe44a4832f94214299ff7c.pdf,双【山峡-安徽海康】-SX-X-JT20260427002-硫酸.pdf,2026/05/19/8bf09d8843fe44a4832f94214299ff7c.pdf,2026-07-13 03:54:27
|
||||
2056558976934047745,2056558976934047745,2026/05/19/b884f6ffe9334443a47c51248814a096.pdf,双【山峡-安徽海康】SX-X-JT20260430002-硫酸.pdf,2026/05/19/b884f6ffe9334443a47c51248814a096.pdf,2026-07-13 03:54:27
|
||||
2056560659659452417,2056560659659452417,2026/05/19/5987f04d79554a18afd56074083fa219.pdf,双【山峡-安庆融创】SX-X-JT20260516001-盐酸.pdf,2026/05/19/5987f04d79554a18afd56074083fa219.pdf,2026-07-13 03:54:27
|
||||
2056560883371044866,2056560883371044866,2026/05/19/7854f1dd3d4e4d8b8c8ead96289b0471.jpg,双【山峡-融创】SX-X-JT20260112002-硫酸.jpg,2026/05/19/7854f1dd3d4e4d8b8c8ead96289b0471.jpg,2026-07-13 03:54:27
|
||||
2056560958205816833,2056560958205816833,2026/05/19/ad150fdfb1d543bd94cd85350e0781ef.jpg,双【山峡-融创】-SX-X-JT20260302002-盐酸、硫酸.jpg,2026/05/19/ad150fdfb1d543bd94cd85350e0781ef.jpg,2026-07-13 03:54:27
|
||||
2056561010454261761,2056561010454261761,2026/05/19/e2dce8355b7d479ab1ce195dd5008fa7.jpg,双【山峡-安庆融创】SX-X-JT20260313004-盐酸.jpg,2026/05/19/e2dce8355b7d479ab1ce195dd5008fa7.jpg,2026-07-13 03:54:27
|
||||
2056561053508792322,2056561053508792322,2026/05/19/da060c71942249059d37b7c278b6ac8c.jpg,双【山峡-安庆融创】SX-X-JT20260323002-盐酸.jpg,2026/05/19/da060c71942249059d37b7c278b6ac8c.jpg,2026-07-13 03:54:27
|
||||
2056561568376385537,2056561568376385537,2026/05/19/b07526f4026c4a00a309dfd906a879a3.pdf,双【山峡-金善】SX-X-JT20260120001-硫酸.pdf,2026/05/19/b07526f4026c4a00a309dfd906a879a3.pdf,2026-07-13 03:54:27
|
||||
2056561625632829442,2056561625632829442,2026/05/19/7bff872898ac4ad0b3d4a2bd0fe585cd.pdf,双【山峡-金善】SX-X-JT20260108002-片碱.pdf,2026/05/19/7bff872898ac4ad0b3d4a2bd0fe585cd.pdf,2026-07-13 03:54:27
|
||||
2056561714229112834,2056561714229112834,2026/05/19/3a01babce5544e6b9b078fd6b097ea64.pdf,双【山峡-金善】SX-X-JT20260120002-聚丙稀酰胺、硫酸亚铁、聚合氯化铝.pdf,2026/05/19/3a01babce5544e6b9b078fd6b097ea64.pdf,2026-07-13 03:54:27
|
||||
2056561747045347330,2056561747045347330,2026/05/19/66660796532f4e39848011622ce69720.pdf,双【山峡-金善】SX-X-JT20260126001-盐酸31%.pdf,2026/05/19/66660796532f4e39848011622ce69720.pdf,2026-07-13 03:54:27
|
||||
2056561791941177345,2056561791941177345,2026/05/19/977be6c7cf0b400a93fbed0fce1be919.pdf,双【山峡-金善】SX-X-JT20260126003-片碱.pdf,2026/05/19/977be6c7cf0b400a93fbed0fce1be919.pdf,2026-07-13 03:54:27
|
||||
2056561840242782210,2056561840242782210,2026/05/19/87de04945a884999b8424f17f006bba7.pdf,双【山峡-金善】SX-X-JT20260202002-片碱.pdf,2026/05/19/87de04945a884999b8424f17f006bba7.pdf,2026-07-13 03:54:27
|
||||
2056562070786895874,2056562070786895874,2026/05/19/41ccfc32268a4884b83e8daebd88c0f6.pdf,双【山峡-金善】-SX-X-JT20260305005-31%盐酸.pdf,2026/05/19/41ccfc32268a4884b83e8daebd88c0f6.pdf,2026-07-13 03:54:27
|
||||
2056562142312361985,2056562142312361985,2026/05/19/f1fea96d2b4249d99cdc1a99e129cc22.pdf,双【山峡-安徽金善】SX-X-JT20260312008-盐酸.pdf,2026/05/19/f1fea96d2b4249d99cdc1a99e129cc22.pdf,2026-07-13 03:54:27
|
||||
2056562217935663105,2056562217935663105,2026/05/19/61b42d0513cf444eab67c00b5ebdb8fc.pdf,双【山峡-安徽金善】SX-X-JT20260316006-盐酸.pdf,2026/05/19/61b42d0513cf444eab67c00b5ebdb8fc.pdf,2026-07-13 03:54:27
|
||||
2056562258918207490,2056562258918207490,2026/05/19/053096184c934518b0a5a51112649485.pdf,双【山峡-安徽金善】-SX-X-JT20260317001-片碱.pdf,2026/05/19/053096184c934518b0a5a51112649485.pdf,2026-07-13 03:54:27
|
||||
2056562318867394562,2056562318867394562,2026/05/19/83ba8bf0a2cc40498e66060f2de23cbf.pdf,双【山峡-安徽金善】SX-X-JT20260317005-氯化钙.pdf,2026/05/19/83ba8bf0a2cc40498e66060f2de23cbf.pdf,2026-07-13 03:54:27
|
||||
2056562363666755586,2056562363666755586,2026/05/19/ab6b746977494685860f765ee50befc4.pdf,双【山峡-安徽金善】-SX-X-JT20260317006-盐酸.pdf,2026/05/19/ab6b746977494685860f765ee50befc4.pdf,2026-07-13 03:54:27
|
||||
2056562446126772225,2056562446126772225,2026/05/19/831756dae4414252a61bfad9bbd008c0.pdf,双【山峡-安徽金善】-SX-X-JT20260324003-氢氧化钾pdf.pdf,2026/05/19/831756dae4414252a61bfad9bbd008c0.pdf,2026-07-13 03:54:27
|
||||
2056562498597515265,2056562498597515265,2026/05/19/13f2c9768cde4fabb3d0284a4ef36ba6.pdf,双【山峡-安徽金善】-SX-X-JT20260402001-盐酸.pdf,2026/05/19/13f2c9768cde4fabb3d0284a4ef36ba6.pdf,2026-07-13 03:54:27
|
||||
2056562533846446082,2056562533846446082,2026/05/19/cbbb48fa7bea4ec08b2466a91263a940.pdf,双【山峡-安徽金善】-SX-X-JT20260402002-盐酸.pdf,2026/05/19/cbbb48fa7bea4ec08b2466a91263a940.pdf,2026-07-13 03:54:27
|
||||
2056562585142784001,2056562585142784001,2026/05/19/3b839f0006244d1aac3c990f9a616cde.pdf,双【山峡-安徽金善】SX-X-JT20260407003-聚合氯化铝、氯化钙.pdf,2026/05/19/3b839f0006244d1aac3c990f9a616cde.pdf,2026-07-13 03:54:27
|
||||
2056562667170787330,2056562667170787330,2026/05/19/4d1ff6d5692e4442a6f44de77c01057b.pdf,双【山峡-安徽金善】-SX-X-JT20260410001-亚硝酸钠、片碱.pdf,2026/05/19/4d1ff6d5692e4442a6f44de77c01057b.pdf,2026-07-13 03:54:27
|
||||
2056563125696294914,2056563125696294914,2026/05/19/8b7a38a0c08f4c939b228950a46acbb9.pdf,双【山峡-安徽金善】-SX-X-JT20260420011-氢氧化钾.pdf,2026/05/19/8b7a38a0c08f4c939b228950a46acbb9.pdf,2026-07-13 03:54:27
|
||||
2056563183724490754,2056563183724490754,2026/05/19/00e43ad8ab9241c182cfc3c86a9fab57.pdf,双【山峡-安徽金善】SX-X-JT20260422001-盐酸.pdf,2026/05/19/00e43ad8ab9241c182cfc3c86a9fab57.pdf,2026-07-13 03:54:27
|
||||
2056571494653980674,2056571494653980674,2026/05/19/608885e42ff64f0d876a46d70e2c18d0.pdf,双【山峡-安庆飞霖】-SX-X-JT20260317004-硫酸.pdf,2026/05/19/608885e42ff64f0d876a46d70e2c18d0.pdf,2026-07-13 03:54:27
|
||||
2056571819045646337,2056571819045646337,2026/05/19/bbcb9715268340668a22e1edbb888e60.pdf,双【山峡-恒星】SX-X-JT20260104001-盐酸31%(2).pdf,2026/05/19/bbcb9715268340668a22e1edbb888e60.pdf,2026-07-13 03:54:27
|
||||
2056571860430843906,2056571860430843906,2026/05/19/d5c8546eb2c94596bb142d4b7f269b2a.jpg,双【山峡-恒星】SX-X-JT20260105005-甲苯.jpg,2026/05/19/d5c8546eb2c94596bb142d4b7f269b2a.jpg,2026-07-13 03:54:27
|
||||
2056571905347645441,2056571905347645441,2026/05/19/6e11eedd67514f718e982b282d083921.jpg,双【山峡-恒星】SX-X-JT20260122004-醋酸钠.jpg,2026/05/19/6e11eedd67514f718e982b282d083921.jpg,2026-07-13 03:54:27
|
||||
2056572005088194561,2056572005088194561,2026/05/19/73a66e369bdd41ea9939487e69e2dadc.jpg,双【山峡-恒星】SX-X-JT20260124001-葡萄糖.jpg,2026/05/19/73a66e369bdd41ea9939487e69e2dadc.jpg,2026-07-13 03:54:27
|
||||
2056572053964419073,2056572053964419073,2026/05/19/9a0952906e2444e69098000eed1d04a5.jpg,双【山峡-恒星】SX-X-JT20260202004-液碱50%.jpg,2026/05/19/9a0952906e2444e69098000eed1d04a5.jpg,2026-07-13 03:54:27
|
||||
2056572140627128321,2056572140627128321,2026/05/19/7ec8bbebfad542c6a240dd0998a80ca2.jpg,双【山峡-安徽恒星】SX-X-JT20260312006-二氯化钙、纯碱.jpg,2026/05/19/7ec8bbebfad542c6a240dd0998a80ca2.jpg,2026-07-13 03:54:27
|
||||
2056572210219020290,2056572210219020290,2026/05/19/6a412015023f44a7bf71b28ab801a7ba.jpg,双【山峡-安徽恒星】-SX-X-JT20260313002-50%液碱.jpg,2026/05/19/6a412015023f44a7bf71b28ab801a7ba.jpg,2026-07-13 03:54:27
|
||||
2056572277038477313,2056572277038477313,2026/05/19/a912d247481047679778628dff4c3620.jpg,双【山峡-安徽恒星】-SX-X-JT20260316004-盐酸.jpg,2026/05/19/a912d247481047679778628dff4c3620.jpg,2026-07-13 03:54:27
|
||||
2056572331992248322,2056572331992248322,2026/05/19/e4365d7f671e4696b9935b43c85ceee9.jpg,双【山峡-安徽恒星】-SX-X-JT20260317007-聚合氯化铝.jpg,2026/05/19/e4365d7f671e4696b9935b43c85ceee9.jpg,2026-07-13 03:54:27
|
||||
2056572366914023425,2056572366914023425,2026/05/19/3386189be290494983dea7a738ba49ec.jpg,双【山峡-安徽恒星】-SX-X-JT20260327002-盐酸.jpg,2026/05/19/3386189be290494983dea7a738ba49ec.jpg,2026-07-13 03:54:27
|
||||
2056572415643447297,2056572415643447297,2026/05/19/e0b85f6e73484b5c8f59eb074fd829ec.jpg,双【山峡-安徽恒星】-SX-X-JT20260330011-食品级葡萄糖.jpg,2026/05/19/e0b85f6e73484b5c8f59eb074fd829ec.jpg,2026-07-13 03:54:27
|
||||
2056572470823710721,2056572470823710721,2026/05/19/7bbcbebc96ad4fb8aa598c6b526586d0.jpg,双【山峡-安徽恒星】SX-X-JT20260401003-49%液碱(用于3月31日和4月1日的订单。).jpg,2026/05/19/7bbcbebc96ad4fb8aa598c6b526586d0.jpg,2026-07-13 03:54:27
|
||||
2056572507213492226,2056572507213492226,2026/05/19/4999ebbfd7914635a436a8024b1ad19a.jpg,双【山峡-安徽恒星】-SX-X-JT20260413009-49%液碱.jpg,2026/05/19/4999ebbfd7914635a436a8024b1ad19a.jpg,2026-07-13 03:54:27
|
||||
2056575383214190594,2056575383214190594,2026/05/19/f4ec14b7da954ca6bbc62a171523cb8d.jpg,双【山峡-安徽恒星】SX-X-JT20260420010-甲苯.jpg,2026/05/19/f4ec14b7da954ca6bbc62a171523cb8d.jpg,2026-07-13 03:54:27
|
||||
2056576210733592578,2056576210733592578,2026/05/19/d2c076e6ad81471a881eb027d6bd4867.jpg,双【山峡-安徽恒星】】SX-X-JT20260327004-50%液碱(800吨)).jpg,2026/05/19/d2c076e6ad81471a881eb027d6bd4867.jpg,2026-07-13 03:54:27
|
||||
2056576719913709570,2056576719913709570,2026/05/19/ffccfbbc92334a438fe0d92766f43f8d.jpg,双【山峡-恒星】-SX-X-JT20260303002-50%液碱.jpg,2026/05/19/ffccfbbc92334a438fe0d92766f43f8d.jpg,2026-07-13 03:54:27
|
||||
2056576794521989122,2056576794521989122,2026/05/19/646109f16786441fa35b69b5e326f998.jpg,双【山峡-恒星】-SX-X-JT20260303003-消泡剂.jpg,2026/05/19/646109f16786441fa35b69b5e326f998.jpg,2026-07-13 03:54:27
|
||||
2056576815388651521,2056576815388651521,2026/05/19/95d1e19d347d4ca9ad290506623b5f38.jpg,双【山峡-恒星】-SX-X-JT20260303002-50%液碱.jpg,2026/05/19/95d1e19d347d4ca9ad290506623b5f38.jpg,2026-07-13 03:54:27
|
||||
2056577115642097666,2056577115642097666,2026/05/19/59f2195d1ca1475bbaf56fd59947f54d.jpg,双【山峡-恒星】SX-X-JT20260206002-盐酸31%.jpg,2026/05/19/59f2195d1ca1475bbaf56fd59947f54d.jpg,2026-07-13 03:54:27
|
||||
2056578632348561410,2056578632348561410,2026/05/19/8f7074ea96bf422ba6d3327e3284456f.jpg,双【山峡-宝红】SX-X-JT20260225003-盐酸、片碱.jpg,2026/05/19/8f7074ea96bf422ba6d3327e3284456f.jpg,2026-07-13 03:54:27
|
||||
2056578803958509569,2056578803958509569,2026/05/19/f74dbeaa651a41c184e5f059ecc19f11.jpg,双【山峡-安徽虹泰】-HT20260429-03-次氯酸钠.jpg,2026/05/19/f74dbeaa651a41c184e5f059ecc19f11.jpg,2026-07-13 03:54:27
|
||||
2056578839920472065,2056578839920472065,2026/05/19/b596bbbecbbc4b059bfc7207ebd2de9e.jpg,双【山峡-安徽虹泰】-HT20260421-03-片碱.jpg,2026/05/19/b596bbbecbbc4b059bfc7207ebd2de9e.jpg,2026-07-13 03:54:27
|
||||
2056578944018903041,2056578944018903041,2026/05/19/e6ccac62d01f42feb857a2397b92c388.jpg,双【山峡-安徽虹泰】-SX-X-JT20260324002-次氯酸钠.jpg,2026/05/19/e6ccac62d01f42feb857a2397b92c388.jpg,2026-07-13 03:54:27
|
||||
2056578982782660610,2056578982782660610,2026/05/19/cb1010bf42914d70b8c707df0e54397e.jpg,双【山峡-安徽虹泰】-SX-X-JT20260312003-次氯酸钠.jpg,2026/05/19/cb1010bf42914d70b8c707df0e54397e.jpg,2026-07-13 03:54:27
|
||||
2056579027837874178,2056579027837874178,2026/05/19/969baaf8161f4e41add7d7f0fe6be52a.jpg,双【山峡-虹泰】SX-JT20260206001-次氯酸钠.jpg,2026/05/19/969baaf8161f4e41add7d7f0fe6be52a.jpg,2026-07-13 03:54:27
|
||||
2056579361809330177,2056579361809330177,2026/05/19/b764860971ed49af9495462412260d87.jpg,双【山峡-安庆鑫琪】-SX-X-JT20260424001-硫酸.jpg,2026/05/19/b764860971ed49af9495462412260d87.jpg,2026-07-13 03:54:27
|
||||
2056579394747199489,2056579394747199489,2026/05/19/30637d4f9f9544018094f28e77a78611.jpg,双【山峡-安庆鑫琪】-SX-X-JT20260414001-盐酸、硫酸.jpg,2026/05/19/30637d4f9f9544018094f28e77a78611.jpg,2026-07-13 03:54:27
|
||||
2056579442897809409,2056579442897809409,2026/05/19/c1ca278575f042e3adcb099c0e08a1cd.jpg,双【山峡-安庆鑫琪】SX-X-JT20260309002-硫酸98%.jpg,2026/05/19/c1ca278575f042e3adcb099c0e08a1cd.jpg,2026-07-13 03:54:27
|
||||
2056579481346994177,2056579481346994177,2026/05/19/0187e699e9fe434194ef7fc32c604119.jpg,双【山峡-鑫琪】-SX-X-JT20260305001-98%硫酸.jpg,2026/05/19/0187e699e9fe434194ef7fc32c604119.jpg,2026-07-13 03:54:27
|
||||
2056579681079750657,2056579681079750657,2026/05/19/7c2d28d8bb1a44af8729d1a596ae63d1.jpg,双【山峡-安庆双启】-SX-X-JT20260420004-硫酸.jpg,2026/05/19/7c2d28d8bb1a44af8729d1a596ae63d1.jpg,2026-07-13 03:54:27
|
||||
2056579723920371714,2056579723920371714,2026/05/19/e875dad16cde4af7951c7ddbd14890b6.jpg,双【山峡-安庆双启】-SX-X-JT20260318002-硫酸.jpg,2026/05/19/e875dad16cde4af7951c7ddbd14890b6.jpg,2026-07-13 03:54:27
|
||||
2056579759647453186,2056579759647453186,2026/05/19/56a2884dc87b4a13b214d1a3c073221a.jpg,双【山峡-双启】-SX-X-JT20260227003-盐酸.jpg,2026/05/19/56a2884dc87b4a13b214d1a3c073221a.jpg,2026-07-13 03:54:27
|
||||
2056588848666472449,2056588848666472449,2026/05/19/ab3f36d04aaf4b89944d5ddcb7592bba.png,2.png,2026/05/19/ab3f36d04aaf4b89944d5ddcb7592bba.png,2026-07-13 03:54:27
|
||||
2056588874234949633,2056588874234949633,2026/05/19/0cf60e5ea8d843d1b91a6e10b3428b81.png,2.png,2026/05/19/0cf60e5ea8d843d1b91a6e10b3428b81.png,2026-07-13 03:54:27
|
||||
2056980631489572865,2056980631489572865,2026/05/20/9a919a6be0b94eb8a0d1e4ef1fbcf74f.pdf,双【山峡-金隆园】-SX-X-JT20260519003-片碱.pdf,2026/05/20/9a919a6be0b94eb8a0d1e4ef1fbcf74f.pdf,2026-07-13 03:54:27
|
||||
2056980707561664513,2056980707561664513,2026/05/20/be8de82dd78547d29495823cce425aa1.pdf,双【山峡-安庆聚信】-SX-X-JT20260519004-硫酸.pdf,2026/05/20/be8de82dd78547d29495823cce425aa1.pdf,2026-07-13 03:54:27
|
||||
2056981278142197762,2056981278142197762,2026/05/20/a96b2e86f9d640449a73272088d1a05e.pdf,双【山峡-安徽仁盛环保】-SX-X-JT20260413004-盐酸31%.pdf,2026/05/20/a96b2e86f9d640449a73272088d1a05e.pdf,2026-07-13 03:54:27
|
||||
2056981382328709121,2056981382328709121,2026/05/20/801eb5b57cfb47abaab074a23ed1b3f5.pdf,双【山峡-安徽仁盛环保】SX-X-JT20260319005-盐酸.pdf,2026/05/20/801eb5b57cfb47abaab074a23ed1b3f5.pdf,2026-07-13 03:54:27
|
||||
2056981455313793026,2056981455313793026,2026/05/20/6e9908f12cd54f0f830539130f93fe58.pdf,双【山峡-安徽仁盛环保】-SX-X-JT20260319006-次氯酸钠.pdf,2026/05/20/6e9908f12cd54f0f830539130f93fe58.pdf,2026-07-13 03:54:27
|
||||
2056981523014053890,2056981523014053890,2026/05/20/9170fd9a72534d98a701ce4dd40882b9.jpg,双【山峡-仁盛】-SX-X-JT20260302008-31%盐酸.jpg,2026/05/20/9170fd9a72534d98a701ce4dd40882b9.jpg,2026-07-13 03:54:27
|
||||
2056981747170242561,2056981747170242561,2026/05/20/4586ccdf32504b7ca699efb084d2ccf4.jpg,双【山峡-鑫祥瑞】SX-X-JT20260113004-硫酸.jpg,2026/05/20/4586ccdf32504b7ca699efb084d2ccf4.jpg,2026-07-13 03:54:27
|
||||
2056982402878369794,2056982402878369794,2026/05/20/d8ef662752ff4b7194d15c3ad7230b61.pdf,双【山峡-安徽腾龙源】-SX-X-JT20260511002-50%硫酸.pdf,2026/05/20/d8ef662752ff4b7194d15c3ad7230b61.pdf,2026-07-13 03:54:27
|
||||
2056982490027618305,2056982490027618305,2026/05/20/92085318c5f74593b2253c132af036a8.jpg,双【山峡-安徽腾龙源】-SX-X-JT20260415006-硫酸.jpg,2026/05/20/92085318c5f74593b2253c132af036a8.jpg,2026-07-13 03:54:27
|
||||
2056982540933885953,2056982540933885953,2026/05/20/eb2a4d5297394ba6bedb5a6fb1442399.pdf,双【山峡-安徽腾龙源】-SX-X-JT20260327001-50%酸.pdf,2026/05/20/eb2a4d5297394ba6bedb5a6fb1442399.pdf,2026-07-13 03:54:27
|
||||
2056982581371170818,2056982581371170818,2026/05/20/0b692dac416047f08ccba663c12aeec1.pdf,双【山峡-腾龙源】-SX-X-JT20260306001-50%硫酸.pdf,2026/05/20/0b692dac416047f08ccba663c12aeec1.pdf,2026-07-13 03:54:27
|
||||
2056983615615234050,2056983615615234050,2026/05/20/a52272772063471cb900e325b0223b71.pdf,双【山峡-华霖】-SX-X-JT20260401004-次氯酸钠.pdf,2026/05/20/a52272772063471cb900e325b0223b71.pdf,2026-07-13 03:54:27
|
||||
2056983664214634497,2056983664214634497,2026/05/20/d24139f7d1c246669a6c9a101a113a25.pdf,双【山峡-华霖】SX-X-JT20260325002-液碱.pdf,2026/05/20/d24139f7d1c246669a6c9a101a113a25.pdf,2026-07-13 03:54:27
|
||||
2056983736914505729,2056983736914505729,2026/05/20/bc208c817abb4bdd8fbd9836ca6efe0c.jpg,双【山峡-华霖】-SX-X-JT20260302005-次氯酸钠。30%硫酸.jpg,2026/05/20/bc208c817abb4bdd8fbd9836ca6efe0c.jpg,2026-07-13 03:54:27
|
||||
2056983802190458882,2056983802190458882,2026/05/20/3b83c24dc29b438bb8b02f446d498b8f.pdf,双【山峡-华霖】SX-X-JT20260106002-液碱.pdf,2026/05/20/3b83c24dc29b438bb8b02f446d498b8f.pdf,2026-07-13 03:54:27
|
||||
2056984382195593217,2056984382195593217,2026/05/20/fdd850dbd91f4d2585ed25d328ec37e7.jpg,双【山峡-安徽仁盛环保】-SX-X-JT20260516002-盐酸31%.jpg,2026/05/20/fdd850dbd91f4d2585ed25d328ec37e7.jpg,2026-07-13 03:54:27
|
||||
2056984416442085377,2056984416442085377,2026/05/20/dd4b82f3f5b64c728a13a960ef76566e.jpg,双【山峡-安徽仁盛环保】-SX-X-JT20260516003-盐酸.jpg,2026/05/20/dd4b82f3f5b64c728a13a960ef76566e.jpg,2026-07-13 03:54:27
|
||||
2056984933310361601,2056984933310361601,2026/05/20/4a9c851138124a999b12ec2f44e8801e.jpg,双【山峡-马鞍山泰硕】-SX-X-JT20260507002-硫酸分析纯.jpg,2026/05/20/4a9c851138124a999b12ec2f44e8801e.jpg,2026-07-13 03:54:27
|
||||
2056984985789493250,2056984985789493250,2026/05/20/86a35ebc4fc5402b9fd34da20f3468ff.jpg,双【山峡-马鞍山泰硕】SX-X-JT20260309013-硫酸分析纯.jpg,2026/05/20/86a35ebc4fc5402b9fd34da20f3468ff.jpg,2026-07-13 03:54:27
|
||||
2057335027784183809,2057335027784183809,2026/05/21/aa56578a485a42f09d01dcd23012d187.pdf,双【云栋-合肥衡工】-YD-X-JT20260422001-硝酸.pdf,2026/05/21/aa56578a485a42f09d01dcd23012d187.pdf,2026-07-13 03:54:27
|
||||
2057335399902834689,2057335399902834689,2026/05/21/439d603b4787410484fa4aac22291ba3.jpg,双【山峡-嘉达】SX-X-JT20260106006-硫酸.jpg,2026/05/21/439d603b4787410484fa4aac22291ba3.jpg,2026-07-13 03:54:27
|
||||
2057335450377089025,2057335450377089025,2026/05/21/b807b0ab847e467aa51a4e17cb640831.jpg,双【山峡-嘉达】SX-X-JT20260121002-盐酸.jpg,2026/05/21/b807b0ab847e467aa51a4e17cb640831.jpg,2026-07-13 03:54:27
|
||||
2057335504412307457,2057335504412307457,2026/05/21/bb0132a152604a9d8da0375eb7d01b2a.jpg,双【山峡-嘉达】SX-X-JT20260202003-盐酸38%.jpg,2026/05/21/bb0132a152604a9d8da0375eb7d01b2a.jpg,2026-07-13 03:54:27
|
||||
2057335555238883330,2057335555238883330,2026/05/21/00a58d825e47457db0fdebd4d236087f.jpg,双【山峡-嘉达】-SX-X-JT20260302009-98%硫酸.jpg,2026/05/21/00a58d825e47457db0fdebd4d236087f.jpg,2026-07-13 03:54:27
|
||||
2057335679016988674,2057335679016988674,2026/05/21/9f649e52da0e42b3a83afac86edd1618.jpg,双【云栋-宿松嘉达】-YD-X-JT20260312003-硝酸.jpg,2026/05/21/9f649e52da0e42b3a83afac86edd1618.jpg,2026-07-13 03:54:27
|
||||
2057335728337809410,2057335728337809410,2026/05/21/3a205eb0407b49188ac958d2fa344176.pdf,双【云栋-宿松嘉达】-YD-X-JT20260410001-硝酸.pdf,2026/05/21/3a205eb0407b49188ac958d2fa344176.pdf,2026-07-13 03:54:27
|
||||
2057336220518412290,2057336220518412290,2026/05/21/ac9b6dd31e6f4984861c9cc44727974b.jpg,双【云栋-宿松嘉达】-YD-X-JT20260507001-硝酸.jpg,2026/05/21/ac9b6dd31e6f4984861c9cc44727974b.jpg,2026-07-13 03:54:27
|
||||
2057336240093229057,2057336240093229057,2026/05/21/016e17da11a84b2885084584cb0e0378.jpg,双【山峡-宿松嘉达】-SX-X-JT20260506003-硫酸.jpg,2026/05/21/016e17da11a84b2885084584cb0e0378.jpg,2026-07-13 03:54:27
|
||||
2057336597330489346,2057336597330489346,2026/05/21/32dbdc3c63a8463e9bae65b874400df8.png,双【山峡-安徽敬同】-SX-X-JT20260430003-硫酸.png,2026/05/21/32dbdc3c63a8463e9bae65b874400df8.png,2026-07-13 03:54:27
|
||||
2057336644562546690,2057336644562546690,2026/05/21/c224a7a98a194e61b775760f0104568a.jpg,双【山峡-安徽敬同】-SX-X-JT20260413002-硫酸 - 副本.jpg,2026/05/21/c224a7a98a194e61b775760f0104568a.jpg,2026-07-13 03:54:27
|
||||
2057336758815387650,2057336758815387650,2026/05/21/6d0f0a3519a44572aa57b5c10714d511.pdf,双【山峡-安徽敬同】-SX-X-JT20260313005-硫酸98%.pdf,2026/05/21/6d0f0a3519a44572aa57b5c10714d511.pdf,2026-07-13 03:54:27
|
||||
2057336816721948673,2057336816721948673,2026/05/21/61526f2f7d37436db25add8739fba35f.pdf,双【山峡-敬同】SX-X-JT20260106001-盐酸.pdf,2026/05/21/61526f2f7d37436db25add8739fba35f.pdf,2026-07-13 03:54:27
|
||||
2057337026336485378,2057337026336485378,2026/05/21/fec37ad03a9e4d65971e5b510f3a375b.jpg,双【山峡-铜陵七彩】-SX-X-JT20260409006-50%硫酸.jpg,2026/05/21/fec37ad03a9e4d65971e5b510f3a375b.jpg,2026-07-13 03:54:27
|
||||
2057337059207245826,2057337059207245826,2026/05/21/a3980f8026e843648f499760154512ef.jpg,双【山峡-铜陵七彩】-SX-X-JT20260309009-硫酸30%.jpg,2026/05/21/a3980f8026e843648f499760154512ef.jpg,2026-07-13 03:54:27
|
||||
2057337601258123266,2057337601258123266,2026/05/21/6a8c3b7b93f24621bb798d62ab535cd7.pdf,双【山峡-昆山富乐】-SX-X-JT20260409005-硫酸.pdf,2026/05/21/6a8c3b7b93f24621bb798d62ab535cd7.pdf,2026-07-13 03:54:27
|
||||
2057337811434696706,2057337811434696706,2026/05/21/d76aba7d78e34ac591348300037c4fbc.pdf,双【山峡-安庆时联】-SX-X-JT20260520001-磷酸、磺酸.pdf,2026/05/21/d76aba7d78e34ac591348300037c4fbc.pdf,2026-07-13 03:54:27
|
||||
2057337914207727618,2057337914207727618,2026/05/21/f0272ed6696145d682693bc49c1a4992.pdf,双【山峡-时联】-SX-X-JT20260228004-片碱.pdf,2026/05/21/f0272ed6696145d682693bc49c1a4992.pdf,2026-07-13 03:54:27
|
||||
2057337961196515330,2057337961196515330,2026/05/21/4ab46836f4144220b2cee54b4f49f939.pdf,双【山峡-时联】SX-X-JT20260210002-聚合氯化铝、片碱.pdf,2026/05/21/4ab46836f4144220b2cee54b4f49f939.pdf,2026-07-13 03:54:27
|
||||
2057337998001532930,2057337998001532930,2026/05/21/8942d5e08e064b9993a602b15ddf08c9.pdf,双【山峡-时联】-SX-X-JT20260205004-磺酸.pdf,2026/05/21/8942d5e08e064b9993a602b15ddf08c9.pdf,2026-07-13 03:54:27
|
||||
2057338054226178050,2057338054226178050,2026/05/21/166df0061c464b6ebe303073bdbbc138.pdf,双【山峡-时联】SX-X-JT20260129001-磷酸(一月所售产品合同)).pdf,2026/05/21/166df0061c464b6ebe303073bdbbc138.pdf,2026-07-13 03:54:27
|
||||
2057338250834178050,2057338250834178050,2026/05/21/0d9975a1d02f40e59425bcf15e7b7d7a.jpg,双【山峡-安徽科邦树脂】SX-X-JT20260326003-(科邦3月产品合同)).jpg,2026/05/21/0d9975a1d02f40e59425bcf15e7b7d7a.jpg,2026-07-13 03:54:27
|
||||
2057339607804768257,2057339607804768257,2026/05/21/c6d8554437284eca85bfc3481df1bc6a.pdf,双【山峡-辰步】SX-X-JT20260427003-盐酸.pdf,2026/05/21/c6d8554437284eca85bfc3481df1bc6a.pdf,2026-07-13 03:54:27
|
||||
2057339664125882369,2057339664125882369,2026/05/21/ae2ad82d9d31465a80c8eed2656d2f72.pdf,双【山峡-安庆辰步】-SX-X-JT20260330012-无水硫酸钠、氯化钠(补辰步3月30日送货).pdf,2026/05/21/ae2ad82d9d31465a80c8eed2656d2f72.pdf,2026-07-13 03:54:27
|
||||
2057340896664055810,2057340896664055810,2026/05/21/3f2d19ca5d8b482abc02168aeb95f6aa.pdf,双【山峡-博曼】SX-X-JT20260202006-盐酸、硫酸.pdf,2026/05/21/3f2d19ca5d8b482abc02168aeb95f6aa.pdf,2026-07-13 03:54:27
|
||||
2057341183969685505,2057341183969685505,2026/05/21/993b67fae73e4a2098dcffafd5f2d8ac.jpg,双【云栋-蓝蓝】YD-X-JT20260129001-双氧水.jpg,2026/05/21/993b67fae73e4a2098dcffafd5f2d8ac.jpg,2026-07-13 03:54:27
|
||||
2057341227020021761,2057341227020021761,2026/05/21/bfc269822a7e45179b02afbbc6893aa2.jpg,双【山峡-蓝蓝】SX-X-JT20260129004-硫酸、葡萄糖.jpg,2026/05/21/bfc269822a7e45179b02afbbc6893aa2.jpg,2026-07-13 03:54:27
|
||||
2057341340249452545,2057341340249452545,2026/05/21/9f24c19442f849cca34ffc0a39178cf8.jpg,双【山峡-安徽蓝蓝】-SX-X-JT20260309014-葡萄糖.jpg,2026/05/21/9f24c19442f849cca34ffc0a39178cf8.jpg,2026-07-13 03:54:27
|
||||
2057341566406324225,2057341566406324225,2026/05/21/d5792d068ecf41a0814cc5ddc9ddceed.jpg,双【山峡-安徽蓝蓝】-SX-X-JT20260309010-片碱.jpg,2026/05/21/d5792d068ecf41a0814cc5ddc9ddceed.jpg,2026-07-13 03:54:27
|
||||
2057343719883632642,2057343719883632642,2026/05/21/57a94007ab0642dc8d77b2f4db93f2fb.jpg,双【山峡-安徽皇成生】-SX-X-JT20260420005-硫酸.jpg,2026/05/21/57a94007ab0642dc8d77b2f4db93f2fb.jpg,2026-07-13 03:54:27
|
||||
2057343873328050177,2057343873328050177,2026/05/21/c78ed99eef364658a1fc0b73a22d7e3a.jpg,双【山峡-安徽皇成生】-SX-X-JT20260518003-硫酸.jpg,2026/05/21/c78ed99eef364658a1fc0b73a22d7e3a.jpg,2026-07-13 03:54:27
|
||||
2057344608233025537,2057344608233025537,2026/05/21/c90500bd0cbb41faae5b824aa179cc77.jpg,双【云栋-安庆亿成】-YD-X-JT20260310001-双氧水.jpg,2026/05/21/c90500bd0cbb41faae5b824aa179cc77.jpg,2026-07-13 03:54:27
|
||||
2057344647156166657,2057344647156166657,2026/05/21/317a0c92283943db86cf9e768497294e.jpg,双【云栋-安庆亿成】-YD-X-JT20260316001-双氧水.jpg,2026/05/21/317a0c92283943db86cf9e768497294e.jpg,2026-07-13 03:54:27
|
||||
2057344688306483202,2057344688306483202,2026/05/21/3d523e82ac2e43a3a573fbf62750507c.jpg,双【云栋-安庆亿成】-YD-X-JT20260327001-双氧水.jpg,2026/05/21/3d523e82ac2e43a3a573fbf62750507c.jpg,2026-07-13 03:54:27
|
||||
2057344761660665858,2057344761660665858,2026/05/21/5a9417605ef942c4a4c423eab95851ed.jpg,双【云栋-亿成】YD-X-JT20260114001-双氧水.jpg,2026/05/21/5a9417605ef942c4a4c423eab95851ed.jpg,2026-07-13 03:54:27
|
||||
2057344790488117249,2057344790488117249,2026/05/21/8177b5ae52204f69956b31474aa23adf.jpg,双【云栋-亿成】YD-X-JT20260109001-双氧水.jpg,2026/05/21/8177b5ae52204f69956b31474aa23adf.jpg,2026-07-13 03:54:27
|
||||
2057345255468658689,2057345255468658689,2026/05/21/e8bdfe8aa0794450b92138383efb14dd.pdf,双【山峡-联盛芯能】SX-X-JT20260119005-氨水.pdf,2026/05/21/e8bdfe8aa0794450b92138383efb14dd.pdf,2026-07-13 03:54:27
|
||||
2057345664291663873,2057345664291663873,2026/05/21/302398d6714e47fc952eeacc6ba3552a.pdf,双【山峡-百谊】SX-X-JT20260204002-盐酸、液碱 双章.pdf,2026/05/21/302398d6714e47fc952eeacc6ba3552a.pdf,2026-07-13 03:54:27
|
||||
2057644302138044418,2057644302138044418,2026/05/22/482b65a02b914ed49120780bccec73b5.jpg,双【山峡-马鞍山泰硕】SX-X-JT20260520002-硫酸.jpg,2026/05/22/482b65a02b914ed49120780bccec73b5.jpg,2026-07-13 03:54:27
|
||||
2057644679545712642,2057644679545712642,2026/05/22/f865e542033e4eae8c60e840a6ac650f.pdf,双【山峡-安徽海康】-SX-X-JT20260520004-盐酸.pdf,2026/05/22/f865e542033e4eae8c60e840a6ac650f.pdf,2026-07-13 03:54:27
|
||||
2057719565324611586,2057719565324611586,2026/05/22/6c04392f03da4ef0b8ca5ad00d60034d.jpg,双【山峡-马鞍山泰硕】SX-X-JT20260520002-硫酸.jpg,2026/05/22/6c04392f03da4ef0b8ca5ad00d60034d.jpg,2026-07-13 03:54:27
|
||||
2057719610023309314,2057719610023309314,2026/05/22/defdc3bb72cd49a7af1dabeedc7a7301.pdf,双【山峡-安庆新星华阳】-SX-X-JT20260522002-纯碱.pdf,2026/05/22/defdc3bb72cd49a7af1dabeedc7a7301.pdf,2026-07-13 03:54:27
|
||||
2057719727354769410,2057719727354769410,2026/05/22/609076c7ff5243eb80149884edc03623.jpg,双【山峡-安庆恩聚】-SX-X-JT20260521001-盐酸.jpg,2026/05/22/609076c7ff5243eb80149884edc03623.jpg,2026-07-13 03:54:27
|
||||
2058822787665719297,2058822787665719297,2026/05/25/8ba64d99011a42e7aa195eb454fdf630.pdf,双【昆山富乐-云栋】-YD-X-JT20260520001-硝酸.pdf,2026/05/25/8ba64d99011a42e7aa195eb454fdf630.pdf,2026-07-13 03:54:27
|
||||
2058823692343537665,2058823692343537665,2026/05/25/3bdbee10bd1147dda63792d654098e7a.jpg,双【山峡-安徽恒星】-SX-X-JT20260522004-液碱.jpg,2026/05/25/3bdbee10bd1147dda63792d654098e7a.jpg,2026-07-13 03:54:27
|
||||
2058850505132306434,2058850505132306434,2026/05/25/f9c9e8c63bc14c47a4207362c55a04a5.jpg,双【山峡-安庆博曼】-SX-X-JT20260525001-硫酸.jpg,2026/05/25/f9c9e8c63bc14c47a4207362c55a04a5.jpg,2026-07-13 03:54:27
|
||||
2059534560026914817,2059534560026914817,2026/05/27/4f7d37e30f584670b4bc0a7715292b5e.pdf,双【山峡-安徽金善】-SX-X-JT20260527002-盐酸.pdf,2026/05/27/4f7d37e30f584670b4bc0a7715292b5e.pdf,2026-07-13 03:54:27
|
||||
2059534824641359874,2059534824641359874,2026/05/27/797732069d35451faabee5d9adb82e07.pdf,双【山峡-安徽金善】-SX-X-JT20260527002-盐酸.pdf,2026/05/27/797732069d35451faabee5d9adb82e07.pdf,2026-07-13 03:54:27
|
||||
2059846470597308418,2059846470597308418,2026/05/28/6702192868e446d2bf5457e5dae7a342.png,营业执照.png,2026/05/28/6702192868e446d2bf5457e5dae7a342.png,2026-07-13 03:54:27
|
||||
2059846517766451202,2059846517766451202,2026/05/28/4e27be4b1bb54b67ac3055f97588be09.png,微信图片_20260528115703_119_10.png,2026/05/28/4e27be4b1bb54b67ac3055f97588be09.png,2026-07-13 03:54:27
|
||||
2059858148487557122,2059858148487557122,2026/05/28/e3c20f38f1cc47a9ac8487caddf5815a.png,94b86c8ca741151271df16f90006898b.png,2026/05/28/e3c20f38f1cc47a9ac8487caddf5815a.png,2026-07-13 03:54:27
|
||||
2059858175305936898,2059858175305936898,2026/05/28/dd8898789d3e4f8b87c0dba03cd32bd3.png,94b86c8ca741151271df16f90006898b.png,2026/05/28/dd8898789d3e4f8b87c0dba03cd32bd3.png,2026-07-13 03:54:27
|
||||
2059872966909063169,2059872966909063169,2026/05/28/a2f53bf8245742e3b251485f3e0fb8c0.pdf,双【山峡-宁国鼎顺-】SX-X-JT20260528006.-盐酸10%、盐酸31%、硫酸30%.pdf,2026/05/28/a2f53bf8245742e3b251485f3e0fb8c0.pdf,2026-07-13 03:54:27
|
||||
2059873018423504897,2059873018423504897,2026/05/28/c637a9bbe7834763b6dd0519e72889a4.jpg,双【山峡-安庆辰步】-SX-X-JT20260528004-盐酸.jpg,2026/05/28/c637a9bbe7834763b6dd0519e72889a4.jpg,2026-07-13 03:54:27
|
||||
2059873252042043393,2059873252042043393,2026/05/28/3fdf0856659a43ae80f931ec2c8496bc.png,双【山峡-安庆辰步】-SX-X-JT20260528004-盐酸.png,2026/05/28/3fdf0856659a43ae80f931ec2c8496bc.png,2026-07-13 03:54:27
|
||||
2059873425791086594,2059873425791086594,2026/05/28/e758fe6731484d87aed1c470726448f0.jpg,双【山峡-安庆双启】-SX-X-JT20260528004-盐酸.jpg,2026/05/28/e758fe6731484d87aed1c470726448f0.jpg,2026-07-13 03:54:27
|
||||
2059874006035296257,2059874006035296257,2026/05/28/0e9a083ff170437483e2fb09abcfe0ff.pdf,双【临泉德利-山峡】-SX-X-JT20260527003-次氯酸钠13%.pdf,2026/05/28/0e9a083ff170437483e2fb09abcfe0ff.pdf,2026-07-13 03:54:27
|
||||
2059913063268315137,2059913063268315137,2026/05/28/69e29e53247040c0816a9c6a59c509a6.pdf,双【云栋-安徽金善】-YD-X-JT20260526001-双氧水.pdf,2026/05/28/69e29e53247040c0816a9c6a59c509a6.pdf,2026-07-13 03:54:27
|
||||
2060209969563398146,2060209969563398146,2026/05/29/ae400164e05b404898314f3b2385952b.png,微信图片_20260529113525_128_10.png,2026/05/29/ae400164e05b404898314f3b2385952b.png,2026-07-13 03:54:27
|
||||
2060210018192158722,2060210018192158722,2026/05/29/a7ec952a1ade454bb4e763b78b1f7677.png,微信图片_20260529113525_128_10.png,2026/05/29/a7ec952a1ade454bb4e763b78b1f7677.png,2026-07-13 03:54:27
|
||||
2060210965911924737,2060210965911924737,2026/05/29/5bf929ae205a4cc5b9c0ac109f2c9008.png,微信图片_20260529120512_129_10.png,2026/05/29/5bf929ae205a4cc5b9c0ac109f2c9008.png,2026-07-13 03:54:27
|
||||
2060239593232101377,2060239593232101377,2026/05/29/8c0dc08730f541789082497ae033526c.jpg,3f3dddb05e470c86a67ccf96b482c534.jpg,2026/05/29/8c0dc08730f541789082497ae033526c.jpg,2026-07-13 03:54:27
|
||||
2060240884041740289,2060240884041740289,2026/05/29/edae709e4c1e41b7acab45839eb5ec40.pdf,双【山峡-安徽腾龙源】SX-X-JT20260526003-硫酸.pdf,2026/05/29/edae709e4c1e41b7acab45839eb5ec40.pdf,2026-07-13 03:54:27
|
||||
2060243065042071554,2060243065042071554,2026/05/29/e66d4588dc604fcda3bf1b6ef7479174.png,双【山峡-安庆禾诚】SX-X-JT20260409001-盐酸.png,2026/05/29/e66d4588dc604fcda3bf1b6ef7479174.png,2026-07-13 03:54:27
|
||||
2060243124676685825,2060243124676685825,2026/05/29/4888748e986d417599343f9e418856e5.png,双【山峡-安庆禾诚】-SX-X-JT20260529001-盐酸.png,2026/05/29/4888748e986d417599343f9e418856e5.png,2026-07-13 03:54:27
|
||||
2060266502305312770,2060266502305312770,2026/05/29/a79622adb13b4ee49a5367864a72cf23.jpg,双【山峡-新美德】-SX-X-JT20260529003-硫酸.jpg,2026/05/29/a79622adb13b4ee49a5367864a72cf23.jpg,2026-07-13 03:54:27
|
||||
2060266724532121602,2060266724532121602,2026/05/29/b1b3fbc94d7c44de833dde1f33549011.pdf,双【山峡-安庆华伦】SX-X-JT20260526006-盐酸.pdf,2026/05/29/b1b3fbc94d7c44de833dde1f33549011.pdf,2026-07-13 03:54:27
|
||||
2060266860498874370,2060266860498874370,2026/05/29/66075f98ca0b4beebafbba45c68146c5.jpg,双【山峡-桐城金涛】-SX-X-JT20260526002-盐酸36%.jpg,2026/05/29/66075f98ca0b4beebafbba45c68146c5.jpg,2026-07-13 03:54:27
|
||||
2060266890442010625,2060266890442010625,2026/05/29/cffd73a2837a46b494deb1cf1cb0b6a1.jpg,双【山峡-桐城金涛】-SX-X-JT20260526001-次氯酸钠.jpg,2026/05/29/cffd73a2837a46b494deb1cf1cb0b6a1.jpg,2026-07-13 03:54:27
|
||||
2060292035936219137,2060292035936219137,2026/05/29/1b470a5bb8fe4014a03bbd4f2c65769f.jpg,3575ce94d99b045edda1935896b692d0.jpg,2026/05/29/1b470a5bb8fe4014a03bbd4f2c65769f.jpg,2026-07-13 03:54:27
|
||||
2060292061815074818,2060292061815074818,2026/05/29/2d9f833f053d481b9575144afbf9ac2d.jpg,3575ce94d99b045edda1935896b692d0.jpg,2026/05/29/2d9f833f053d481b9575144afbf9ac2d.jpg,2026-07-13 03:54:27
|
||||
2067151426710904833,2067151426710904833,2026/06/17/7ab0391018c2475a8d74987ebf3dda36.png,湖北和天顺营业执照.png,2026/06/17/7ab0391018c2475a8d74987ebf3dda36.png,2026-07-13 03:54:27
|
||||
2067151611805540353,2067151611805540353,2026/06/17/9b2592ac8276492eb3942cd70742cf9d.png,湖北和天顺营业执照.png,2026/06/17/9b2592ac8276492eb3942cd70742cf9d.png,2026-07-13 03:54:27
|
||||
2068986092992569345,2068986092992569345,2026/06/22/916a609141d44534bb898b0b61d6422a.png,营业执照(空白).png,2026/06/22/916a609141d44534bb898b0b61d6422a.png,2026-07-13 03:54:27
|
||||
2068986116619083778,2068986116619083778,2026/06/22/c6df2df4d3374517900b99c705f1b5de.png,营业执照(空白).png,2026/06/22/c6df2df4d3374517900b99c705f1b5de.png,2026-07-13 03:54:27
|
||||
2072140559376154626,2072140559376154626,2026/07/01/ba0faa5cf95342e6bae32b5c066ce811.png,营业执照(空白).png,2026/07/01/ba0faa5cf95342e6bae32b5c066ce811.png,2026-07-13 03:54:27
|
||||
2072140583371767809,2072140583371767809,2026/07/01/6b8a75137e5a478f943684fa0a2f9991.png,营业执照(空白).png,2026/07/01/6b8a75137e5a478f943684fa0a2f9991.png,2026-07-13 03:54:27
|
||||
2074413703742849026,2074413703742849026,2026/07/07/249ad646cb9c481ca4123b86220a7a54.jpg,东亨营业执照.jpg,2026/07/07/249ad646cb9c481ca4123b86220a7a54.jpg,2026-07-13 03:54:27
|
||||
2074413732041818113,2074413732041818113,2026/07/07/df6ecb69f01143a8952c516f3cb4a0db.jpg,东亨经营许可证.jpg,2026/07/07/df6ecb69f01143a8952c516f3cb4a0db.jpg,2026-07-13 03:54:27
|
||||
2074434855588560898,2074434855588560898,2026/07/07/7d7826cd8ae144e989485ad64b8b9748.jpg,1.jpg,2026/07/07/7d7826cd8ae144e989485ad64b8b9748.jpg,2026-07-13 03:54:27
|
||||
2074434887876313089,2074434887876313089,2026/07/07/dc24a38a45fa4d3fac9bc28974bfa0d1.jpg,2.jpg,2026/07/07/dc24a38a45fa4d3fac9bc28974bfa0d1.jpg,2026-07-13 03:54:27
|
||||
2074434917060280321,2074434917060280321,2026/07/07/660bc39bba204b4fa7459ed5521568d6.jpg,3.jpg,2026/07/07/660bc39bba204b4fa7459ed5521568d6.jpg,2026-07-13 03:54:27
|
||||
|
@@ -0,0 +1,269 @@
|
||||
oss_id,reason
|
||||
1975794225295921153,no_business_reference
|
||||
1978984901780713474,no_business_reference
|
||||
1979017901076246530,no_business_reference
|
||||
1979029496477011969,no_business_reference
|
||||
1979050339302662145,no_business_reference
|
||||
1979050978841747457,no_business_reference
|
||||
1979051128217690113,no_business_reference
|
||||
1979150807957798913,no_business_reference
|
||||
1979314266636877825,no_business_reference
|
||||
1979317355888574466,no_business_reference
|
||||
1979320130278064130,no_business_reference
|
||||
1979321809480306690,no_business_reference
|
||||
1979321891021770753,no_business_reference
|
||||
1979324706393804802,no_business_reference
|
||||
1979328733588250625,no_business_reference
|
||||
1979328818548072450,no_business_reference
|
||||
1981226633981333506,no_business_reference
|
||||
1981353252516139010,no_business_reference
|
||||
1984594783796596738,no_business_reference
|
||||
1984594959667957762,no_business_reference
|
||||
1984595003297107970,no_business_reference
|
||||
1984595041142312962,no_business_reference
|
||||
1984595285607321602,no_business_reference
|
||||
1984595347070652418,no_business_reference
|
||||
1984595675757285378,no_business_reference
|
||||
1984596292395470849,no_business_reference
|
||||
1984597536438620161,no_business_reference
|
||||
1984597906481090561,no_business_reference
|
||||
1984598802476699649,no_business_reference
|
||||
1984605054451716098,no_business_reference
|
||||
1984605757169602561,no_business_reference
|
||||
1984606138960318466,no_business_reference
|
||||
1984606723373666306,no_business_reference
|
||||
1984607445796392961,no_business_reference
|
||||
1984607836177043458,no_business_reference
|
||||
1984608996854206465,no_business_reference
|
||||
1984611587763867650,no_business_reference
|
||||
1984879192173133825,no_business_reference
|
||||
1985690964576575489,no_business_reference
|
||||
1985691004669927425,no_business_reference
|
||||
1985691118918574081,no_business_reference
|
||||
1986007556699176962,no_business_reference
|
||||
1986008223698370561,no_business_reference
|
||||
1986008286382243841,no_business_reference
|
||||
1986232678676578306,no_business_reference
|
||||
1986233114833862658,no_business_reference
|
||||
1986233334812524545,no_business_reference
|
||||
1986257348851286017,no_business_reference
|
||||
1986258043771961346,no_business_reference
|
||||
1988152103638024194,no_business_reference
|
||||
1988152807148634113,no_business_reference
|
||||
1988157705143599105,no_business_reference
|
||||
1988157764870488066,no_business_reference
|
||||
1988807092656029698,no_business_reference
|
||||
1988811149000982530,no_business_reference
|
||||
1988811578787119106,no_business_reference
|
||||
1988811642016251906,no_business_reference
|
||||
1988812132510744578,no_business_reference
|
||||
1988812686326644738,no_business_reference
|
||||
1988812870808911873,no_business_reference
|
||||
1988813158374588417,no_business_reference
|
||||
1988814002910281729,no_business_reference
|
||||
1988814316799410178,no_business_reference
|
||||
1988815975428538369,no_business_reference
|
||||
1988819393404616706,no_business_reference
|
||||
1988819418583023617,no_business_reference
|
||||
1988836752286695425,no_business_reference
|
||||
1988861149882003458,no_business_reference
|
||||
1988862000507826178,no_business_reference
|
||||
1989157874299482113,no_business_reference
|
||||
1989157937356648450,no_business_reference
|
||||
1989158135424266241,no_business_reference
|
||||
1989158420586606593,no_business_reference
|
||||
1989158603542147074,no_business_reference
|
||||
1990246926071320577,no_business_reference
|
||||
1990247016081084417,no_business_reference
|
||||
1990247078978867202,no_business_reference
|
||||
1990247159291400194,no_business_reference
|
||||
1990247223405531137,no_business_reference
|
||||
1990247318247133186,no_business_reference
|
||||
1990247364308979713,no_business_reference
|
||||
1990247644475904002,no_business_reference
|
||||
1990247729142124546,no_business_reference
|
||||
1990247837107703809,no_business_reference
|
||||
1990248119271116801,no_business_reference
|
||||
1990248269469143041,no_business_reference
|
||||
1990258862389415937,no_business_reference
|
||||
1992775854602203138,no_business_reference
|
||||
1992782490448310273,no_business_reference
|
||||
1992879992795283457,no_business_reference
|
||||
1992880582552174593,no_business_reference
|
||||
2003272354579009537,no_business_reference
|
||||
2011989862735642625,no_business_reference
|
||||
2011989881819725826,no_business_reference
|
||||
2027294094384615425,no_business_reference
|
||||
2027294169093558273,no_business_reference
|
||||
2027294221811765249,no_business_reference
|
||||
2027294319769735170,no_business_reference
|
||||
2027295045711482881,no_business_reference
|
||||
2027295195431358465,no_business_reference
|
||||
2027295416919969793,no_business_reference
|
||||
2027295682520076289,no_business_reference
|
||||
2041421773438414850,no_business_reference
|
||||
2041786029241495554,no_business_reference
|
||||
2052931616984760322,no_business_reference
|
||||
2056253535716851713,no_business_reference
|
||||
2056253611872829442,no_business_reference
|
||||
2056253886889148417,no_business_reference
|
||||
2056350035914485762,no_business_reference
|
||||
2056350209059549185,no_business_reference
|
||||
2056554959004725249,no_business_reference
|
||||
2056555022762340353,no_business_reference
|
||||
2056555079737765889,no_business_reference
|
||||
2056555150705389570,no_business_reference
|
||||
2056555942514487297,no_business_reference
|
||||
2056556813046476801,no_business_reference
|
||||
2056558022843133954,no_business_reference
|
||||
2056558315282591746,no_business_reference
|
||||
2056558360870481921,no_business_reference
|
||||
2056558491237838849,no_business_reference
|
||||
2056558679713083393,no_business_reference
|
||||
2056558755210555393,no_business_reference
|
||||
2056558848735145985,no_business_reference
|
||||
2056558915747540993,no_business_reference
|
||||
2056558976934047745,no_business_reference
|
||||
2056560659659452417,no_business_reference
|
||||
2056560883371044866,no_business_reference
|
||||
2056560958205816833,no_business_reference
|
||||
2056561010454261761,no_business_reference
|
||||
2056561053508792322,no_business_reference
|
||||
2056561568376385537,no_business_reference
|
||||
2056561625632829442,no_business_reference
|
||||
2056561714229112834,no_business_reference
|
||||
2056561747045347330,no_business_reference
|
||||
2056561791941177345,no_business_reference
|
||||
2056561840242782210,no_business_reference
|
||||
2056562070786895874,no_business_reference
|
||||
2056562142312361985,no_business_reference
|
||||
2056562217935663105,no_business_reference
|
||||
2056562258918207490,no_business_reference
|
||||
2056562318867394562,no_business_reference
|
||||
2056562363666755586,no_business_reference
|
||||
2056562446126772225,no_business_reference
|
||||
2056562498597515265,no_business_reference
|
||||
2056562533846446082,no_business_reference
|
||||
2056562585142784001,no_business_reference
|
||||
2056562667170787330,no_business_reference
|
||||
2056563125696294914,no_business_reference
|
||||
2056563183724490754,no_business_reference
|
||||
2056571494653980674,no_business_reference
|
||||
2056571819045646337,no_business_reference
|
||||
2056571860430843906,no_business_reference
|
||||
2056571905347645441,no_business_reference
|
||||
2056572005088194561,no_business_reference
|
||||
2056572053964419073,no_business_reference
|
||||
2056572140627128321,no_business_reference
|
||||
2056572210219020290,no_business_reference
|
||||
2056572277038477313,no_business_reference
|
||||
2056572331992248322,no_business_reference
|
||||
2056572366914023425,no_business_reference
|
||||
2056572415643447297,no_business_reference
|
||||
2056572470823710721,no_business_reference
|
||||
2056572507213492226,no_business_reference
|
||||
2056575383214190594,no_business_reference
|
||||
2056576210733592578,no_business_reference
|
||||
2056576719913709570,no_business_reference
|
||||
2056576794521989122,no_business_reference
|
||||
2056576815388651521,no_business_reference
|
||||
2056577115642097666,no_business_reference
|
||||
2056578632348561410,no_business_reference
|
||||
2056578803958509569,no_business_reference
|
||||
2056578839920472065,no_business_reference
|
||||
2056578944018903041,no_business_reference
|
||||
2056578982782660610,no_business_reference
|
||||
2056579027837874178,no_business_reference
|
||||
2056579361809330177,no_business_reference
|
||||
2056579394747199489,no_business_reference
|
||||
2056579442897809409,no_business_reference
|
||||
2056579481346994177,no_business_reference
|
||||
2056579681079750657,no_business_reference
|
||||
2056579723920371714,no_business_reference
|
||||
2056579759647453186,no_business_reference
|
||||
2056980631489572865,no_business_reference
|
||||
2056980707561664513,no_business_reference
|
||||
2056981278142197762,no_business_reference
|
||||
2056981382328709121,no_business_reference
|
||||
2056981455313793026,no_business_reference
|
||||
2056981523014053890,no_business_reference
|
||||
2056981747170242561,no_business_reference
|
||||
2056982402878369794,no_business_reference
|
||||
2056982490027618305,no_business_reference
|
||||
2056982540933885953,no_business_reference
|
||||
2056982581371170818,no_business_reference
|
||||
2056983615615234050,no_business_reference
|
||||
2056983664214634497,no_business_reference
|
||||
2056983736914505729,no_business_reference
|
||||
2056983802190458882,no_business_reference
|
||||
2056984382195593217,no_business_reference
|
||||
2056984416442085377,no_business_reference
|
||||
2056984933310361601,no_business_reference
|
||||
2056984985789493250,no_business_reference
|
||||
2057335027784183809,no_business_reference
|
||||
2057335399902834689,no_business_reference
|
||||
2057335450377089025,no_business_reference
|
||||
2057335504412307457,no_business_reference
|
||||
2057335555238883330,no_business_reference
|
||||
2057335679016988674,no_business_reference
|
||||
2057335728337809410,no_business_reference
|
||||
2057336220518412290,no_business_reference
|
||||
2057336240093229057,no_business_reference
|
||||
2057336597330489346,no_business_reference
|
||||
2057336644562546690,no_business_reference
|
||||
2057336758815387650,no_business_reference
|
||||
2057336816721948673,no_business_reference
|
||||
2057337026336485378,no_business_reference
|
||||
2057337059207245826,no_business_reference
|
||||
2057337601258123266,no_business_reference
|
||||
2057337811434696706,no_business_reference
|
||||
2057337914207727618,no_business_reference
|
||||
2057337961196515330,no_business_reference
|
||||
2057337998001532930,no_business_reference
|
||||
2057338054226178050,no_business_reference
|
||||
2057338250834178050,no_business_reference
|
||||
2057339607804768257,no_business_reference
|
||||
2057339664125882369,no_business_reference
|
||||
2057340896664055810,no_business_reference
|
||||
2057341183969685505,no_business_reference
|
||||
2057341227020021761,no_business_reference
|
||||
2057341340249452545,no_business_reference
|
||||
2057341566406324225,no_business_reference
|
||||
2057343719883632642,no_business_reference
|
||||
2057343873328050177,no_business_reference
|
||||
2057344608233025537,no_business_reference
|
||||
2057344647156166657,no_business_reference
|
||||
2057344688306483202,no_business_reference
|
||||
2057344761660665858,no_business_reference
|
||||
2057344790488117249,no_business_reference
|
||||
2057345255468658689,no_business_reference
|
||||
2057345664291663873,no_business_reference
|
||||
2057644302138044418,no_business_reference
|
||||
2057644679545712642,no_business_reference
|
||||
2057719565324611586,no_business_reference
|
||||
2057719610023309314,no_business_reference
|
||||
2057719727354769410,no_business_reference
|
||||
2058822787665719297,no_business_reference
|
||||
2058823692343537665,no_business_reference
|
||||
2058850505132306434,no_business_reference
|
||||
2059534560026914817,no_business_reference
|
||||
2059534824641359874,no_business_reference
|
||||
2059858148487557122,no_business_reference
|
||||
2059858175305936898,no_business_reference
|
||||
2059872966909063169,no_business_reference
|
||||
2059873018423504897,no_business_reference
|
||||
2059873252042043393,no_business_reference
|
||||
2059873425791086594,no_business_reference
|
||||
2059874006035296257,no_business_reference
|
||||
2059913063268315137,no_business_reference
|
||||
2060210018192158722,no_business_reference
|
||||
2060239593232101377,no_business_reference
|
||||
2060240884041740289,no_business_reference
|
||||
2060243065042071554,no_business_reference
|
||||
2060243124676685825,no_business_reference
|
||||
2060266502305312770,no_business_reference
|
||||
2060266724532121602,no_business_reference
|
||||
2060266860498874370,no_business_reference
|
||||
2060266890442010625,no_business_reference
|
||||
2060292035936219137,no_business_reference
|
||||
2060292061815074818,no_business_reference
|
||||
|
@@ -0,0 +1,6 @@
|
||||
source_id,source_parent_id,new_id,new_parent_id,category_name,migrated_at
|
||||
1975766404158746625,0,1975766404158746625,0,有机原料,2026-07-12 20:51:37
|
||||
1975766458781167617,0,1975766458781167617,0,无机原料,2026-07-12 20:51:37
|
||||
1975766539550879745,0,1975766539550879745,0,水处理溶剂,2026-07-12 20:51:37
|
||||
1975766588632625154,0,1975766588632625154,0,其他,2026-07-12 20:51:37
|
||||
1975766650771238913,0,1975766650771238913,0,未分类,2026-07-12 20:51:37
|
||||
|
@@ -0,0 +1,240 @@
|
||||
source_id,new_id,product_no,product_name,category_id,migrated_at
|
||||
1,1,SXWL00101,98% 工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2,2,SXWL00102,92% 工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
3,3,SXWL00103,30% 工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
4,4,SXWL00104,50% 工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
5,5,SXWL00105,55% 工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
6,6,SXWL00106,97% 精制硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
7,7,SXWL00201,32% 液碱,1975766458781167617,2026-07-12 20:55:41
|
||||
8,8,SXWL00202,50% 液碱,1975766458781167617,2026-07-12 20:55:41
|
||||
9,9,SXWL00301,片碱(红四方),1975766539550879745,2026-07-12 20:55:41
|
||||
10,10,SXWL00302,片碱(君正),1975766539550879745,2026-07-12 20:55:41
|
||||
11,11,SXWL00401,粒碱,1975766539550879745,2026-07-12 20:55:41
|
||||
12,12,SXWL00501,无水硫酸钠,1975766539550879745,2026-07-12 20:55:41
|
||||
13,13,SXWL00601,31% 盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
14,14,SXWL00602,36% AR盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
15,15,SXWL00701,85% 磷酸,1975766458781167617,2026-07-12 20:55:41
|
||||
16,16,SXWL00801,聚丙烯酰胺(阴离子),1975766539550879745,2026-07-12 20:55:41
|
||||
17,17,SXWL00802,聚丙烯酰胺(阳离子),1975766539550879745,2026-07-12 20:55:41
|
||||
18,18,SXWL00901,工业盐,1975766458781167617,2026-07-12 20:55:41
|
||||
19,19,SXWL01001,纯碱(红四方),1975766458781167617,2026-07-12 20:55:41
|
||||
20,20,SXWL01101,氢氧化钾,1975766458781167617,2026-07-12 20:55:41
|
||||
21,21,SXWL01201,氢氧化钙,1975766539550879745,2026-07-12 20:55:41
|
||||
22,22,SXWL01301,无水硫酸镁,1975766539550879745,2026-07-12 20:55:41
|
||||
23,23,SXWL01401,次氯酸钠,1975766458781167617,2026-07-12 20:55:41
|
||||
24,24,SXWL01402,次氯酸钠,1975766458781167617,2026-07-12 20:55:41
|
||||
25,25,SXWL01501,聚合硫酸铁,1975766539550879745,2026-07-12 20:55:41
|
||||
26,26,SXWL01601,硝酸钾,1975766458781167617,2026-07-12 20:55:41
|
||||
27,27,SXWL01701,葡萄糖,1975766539550879745,2026-07-12 20:55:41
|
||||
28,28,SXWL01702,葡萄糖,1975766539550879745,2026-07-12 20:55:41
|
||||
29,29,SXWL01801,面粉,1975766539550879745,2026-07-12 20:55:41
|
||||
30,30,SXWL01901,一水柠檬酸,1975766458781167617,2026-07-12 20:55:41
|
||||
31,31,SXWL02001,硫酸亚铁,1975766539550879745,2026-07-12 20:55:41
|
||||
32,32,SXWL02101,双环小苏打,1975766539550879745,2026-07-12 20:55:41
|
||||
33,33,SXWL02102,马兰小苏打,1975766539550879745,2026-07-12 20:55:41
|
||||
34,34,SXWL02201,焦亚硫酸钠,1975766539550879745,2026-07-12 20:55:41
|
||||
35,35,SXWL02301,二氯化钙,1975766539550879745,2026-07-12 20:55:41
|
||||
36,36,SXWL02401,二氯甲烷,1975766539550879745,2026-07-12 20:55:41
|
||||
37,37,SXWL02501,过氧化氢,1975766539550879745,2026-07-12 20:55:41
|
||||
38,38,SXWL02601,尿素(红四方),1975766539550879745,2026-07-12 20:55:41
|
||||
39,39,SXWL02602,尿素(阳煤),1975766539550879745,2026-07-12 20:55:41
|
||||
40,40,SXWL02603,尿素(心连心),1975766539550879745,2026-07-12 20:55:41
|
||||
41,41,SXWL02701,大苏打,1975766539550879745,2026-07-12 20:55:41
|
||||
42,42,SXWL02801,亚硫酸氢钠,1975766458781167617,2026-07-12 20:55:41
|
||||
43,43,SXWL02901,聚合氯化铝(荷花),1975766458781167617,2026-07-12 20:55:41
|
||||
44,44,SXWL02902,聚合氯化铝 (理文),1975766458781167617,2026-07-12 20:55:41
|
||||
45,45,SXWL03001,消泡剂,1975766539550879745,2026-07-12 20:55:41
|
||||
46,46,SXWL03101,磺酸,1975766539550879745,2026-07-12 20:55:41
|
||||
47,47,SXWL03201,硅藻土,1975766539550879745,2026-07-12 20:55:41
|
||||
48,48,SXWL03301,氯化铵,1975766539550879745,2026-07-12 20:55:41
|
||||
49,49,SXWL03401,亚硫酸钠,1975766539550879745,2026-07-12 20:55:41
|
||||
50,50,SXWL03501,甲苯,1975766404158746625,2026-07-12 20:55:41
|
||||
51,51,SXWL03601,丙酮,1975766404158746625,2026-07-12 20:55:41
|
||||
52,52,SXWL03801,甲醇,1975766404158746625,2026-07-12 20:55:41
|
||||
53,53,SXWL03901,磷酸二氢钾,1975766539550879745,2026-07-12 20:55:41
|
||||
54,54,SXWL04001,乙酸乙酯,1975766539550879745,2026-07-12 20:55:41
|
||||
55,55,SXWL04101,碳酸氢铵,1975766539550879745,2026-07-12 20:55:41
|
||||
56,56,SXWL04201,漂白精,1975766539550879745,2026-07-12 20:55:41
|
||||
57,57,SXWL04301,乙醇,1975766404158746625,2026-07-12 20:55:41
|
||||
58,58,SXWL04401,氢氟酸,1975766404158746625,2026-07-12 20:55:41
|
||||
59,59,000400002,纯水,1975766588632625154,2026-07-12 20:55:41
|
||||
60,60,000400001,磅差,1975766588632625154,2026-07-12 20:55:41
|
||||
61,61,SXWL00107,50% 精制酸,1975766458781167617,2026-07-12 20:55:41
|
||||
62,62,SXWL04402,磷肥,1975766539550879745,2026-07-12 20:55:41
|
||||
63,63,SXWL00108,60%工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
64,64,SXWL04403,过硫酸铵,1975766458781167617,2026-07-12 20:55:41
|
||||
65,65,SXWL04501,碳酸钾,1975766650771238913,2026-07-12 20:55:41
|
||||
66,66,SXWL04601,氯化亚砜,1975766650771238913,2026-07-12 20:55:41
|
||||
67,67,SXWL00109,35%工业硫酸,1975766650771238913,2026-07-12 20:55:41
|
||||
68,68,SXWL04701,氯化镁,1975766650771238913,2026-07-12 20:55:41
|
||||
69,69,SXWL04702,发烟酸,1975766458781167617,2026-07-12 20:55:41
|
||||
70,70,SXWL01403,次氯酸钠,1975766458781167617,2026-07-12 20:55:41
|
||||
71,71,SXWL03701,氨水,1975766539550879745,2026-07-12 20:55:41
|
||||
72,72,SXWL04703,双氧水(7.5%),1975766650771238913,2026-07-12 20:55:41
|
||||
73,73,SXWL04801,明矾,1975766650771238913,2026-07-12 20:55:41
|
||||
74,74,SXWL04901,阳离子交换树脂,1975766650771238913,2026-07-12 20:55:41
|
||||
75,75,SXWL05001,磷酸三钠,1975766650771238913,2026-07-12 20:55:41
|
||||
76,76,SXWL05101,活性炭,1975766650771238913,2026-07-12 20:55:41
|
||||
77,77,SXWL00110,40%工业硫酸,1975766650771238913,2026-07-12 20:55:41
|
||||
78,78,SXWL00303,片碱(中泰),1975766539550879745,2026-07-12 20:55:41
|
||||
79,79,SXWL02903,聚合氯化铝(嘉施利),1975766650771238913,2026-07-12 20:55:41
|
||||
80,80,SXWL05201,甲酸,1975766650771238913,2026-07-12 20:55:41
|
||||
81,81,SXWL05301,硝酸,1975766650771238913,2026-07-12 20:55:41
|
||||
82,82,SXWL05401,亚硝酸钠,1975766650771238913,2026-07-12 20:55:41
|
||||
83,83,SXWL00112,铁粉,1975766458781167617,2026-07-12 20:55:41
|
||||
84,84,SXWL05402,平平加,1975766404158746625,2026-07-12 20:55:41
|
||||
85,85,000300002,除垢剂,1975766539550879745,2026-07-12 20:55:41
|
||||
86,86,SXWL05501,硫酸氢钠,1975766650771238913,2026-07-12 20:55:41
|
||||
87,87,SXWL07311,AR氢氧化钠,1975766539550879745,2026-07-12 20:55:41
|
||||
88,88,SXWL00804,醋酸钠,1975766650771238913,2026-07-12 20:55:41
|
||||
89,89,SXWL0805,磷酸二氢钠,1975766539550879745,2026-07-12 20:55:41
|
||||
90,90,SXWL07312,聚合氯化铝,1975766458781167617,2026-07-12 20:55:41
|
||||
91,91,SXWL07313,碳酸钙,1975766458781167617,2026-07-12 20:55:41
|
||||
92,92,SXWL07314,过氧化钙,1975766458781167617,2026-07-12 20:55:41
|
||||
93,93,SXWL07315,次氯酸钙,1975766458781167617,2026-07-12 20:55:41
|
||||
94,94,000100002,硼酸,1975766458781167617,2026-07-12 20:55:41
|
||||
95,95,SXWL00609,铬酸酐,1975766650771238913,2026-07-12 20:55:41
|
||||
96,96,SXWL00918,乙脂,1975766650771238913,2026-07-12 20:55:41
|
||||
97,97,SXWL000922,粉末性活炭,1975766650771238913,2026-07-12 20:55:41
|
||||
98,98,SXWL0923,聚丙稀酰胺(阳离子),1975766539550879745,2026-07-12 20:55:41
|
||||
99,99,SXWL00922,聚丙稀酰胺(阳离子),1975766539550879745,2026-07-12 20:55:41
|
||||
100,100,SXWL00925,试剂硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
101,101,SXWL00806,硫化钠,1975766404158746625,2026-07-12 20:55:41
|
||||
102,102,SXWL00923,尿素(昊源),1975766539550879745,2026-07-12 20:55:41
|
||||
103,103,SXWL00807,甲醛,1975766404158746625,2026-07-12 20:55:41
|
||||
104,104,SXWL07316,亚硫酸氢钠(非标),1975766458781167617,2026-07-12 20:55:41
|
||||
105,105,SXWL07317,10%工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
106,106,SXWL04302,乙二醇,1975766404158746625,2026-07-12 20:55:41
|
||||
107,107,SXWL02302,无水氯化钙,1975766539550879745,2026-07-12 20:55:41
|
||||
108,108,SXWL07318,重铬酸钾,1975766404158746625,2026-07-12 20:55:41
|
||||
1988804778813702146,1988804778813702146,PRD202511130d2a,硫酸分析纯,1975766458781167617,2026-07-12 20:55:41
|
||||
1989250381540667393,1989250381540667393,PRD20251114ccce,PAC,1975766539550879745,2026-07-12 20:55:41
|
||||
1990231388993572865,1990231388993572865,PRD202511173a12,硝酸,1975766650771238913,2026-07-12 20:55:41
|
||||
1990232042550022145,1990232042550022145,PRD20251117046b,AR盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
1990250327962243074,1990250327962243074,PRD20251117be8e,硝酸,1975766650771238913,2026-07-12 20:55:41
|
||||
1990301373212348418,1990301373212348418,PRD2025111750ef,草酸,1975766404158746625,2026-07-12 20:55:41
|
||||
1990302029323128833,1990302029323128833,PRD202511179bc7,熟石灰,1975766458781167617,2026-07-12 20:55:41
|
||||
1990303930915704833,1990303930915704833,PRD202511172097,PAC,1975766539550879745,2026-07-12 20:55:41
|
||||
1990335666995286017,1990335666995286017,PRD20251117a59a,氨水,1975766539550879745,2026-07-12 20:55:41
|
||||
1990335805960966145,1990335805960966145,PRD2025111786c2,氨水,1975766539550879745,2026-07-12 20:55:41
|
||||
1991337031787827201,1991337031787827201,PRD202511207c07,硫酸分析纯,1975766458781167617,2026-07-12 20:55:41
|
||||
1991337725781561345,1991337725781561345,PRD2025112009cb,盐酸分析纯,1975766458781167617,2026-07-12 20:55:41
|
||||
1991338228024299521,1991338228024299521,PRD20251120c02f,硫酸铜,1975766539550879745,2026-07-12 20:55:41
|
||||
1991338723648425985,1991338723648425985,PRD202511205696,硫酸亚铁分析纯,1975766539550879745,2026-07-12 20:55:41
|
||||
1991742947397865474,1991742947397865474,PRD202511215b3f,乙二醇 ,1975766458781167617,2026-07-12 20:55:41
|
||||
1991761261868224513,1991761261868224513,PRD20251121b7c5,双氧水,1975766539550879745,2026-07-12 20:55:41
|
||||
1993185151735808002,1993185151735808002,PRD202511257479,七水硫酸亚铁,1975766539550879745,2026-07-12 20:55:41
|
||||
1993204932413210626,1993204932413210626,PRD202511256b7f,36%工业盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
1993205620060962817,1993205620060962817,PRD20251125ed2b,分析纯盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
1993230360720949249,1993230360720949249,PRD20251125f3b6,丙酮,1975766404158746625,2026-07-12 20:55:41
|
||||
1995295211739922434,1995295211739922434,PRD202512011ac4,氢氧化钠,1975766539550879745,2026-07-12 20:55:41
|
||||
1995324628528775170,1995324628528775170,PRD20251201f771,纯碱,1975766458781167617,2026-07-12 20:55:41
|
||||
1995682611859275777,1995682611859275777,PRD2025120241fc,碳酸氢钠 ,1975766539550879745,2026-07-12 20:55:41
|
||||
1996019383604592641,1996019383604592641,PRD20251203456f,木板,1975766588632625154,2026-07-12 20:55:41
|
||||
1996415381422194690,1996415381422194690,PRD202512043adf,片碱,1975766539550879745,2026-07-12 20:55:41
|
||||
1997857883077459969,1997857883077459969,PRD20251208dd97,硫酸分析纯,1975766458781167617,2026-07-12 20:55:41
|
||||
1998311613623156737,1998311613623156737,PRD20251209b9be,液碱,1975766458781167617,2026-07-12 20:55:41
|
||||
2000435894180102146,2000435894180102146,PRD20251215d0db,小防白,1975766539550879745,2026-07-12 20:55:41
|
||||
2000461015125049345,2000461015125049345,PRD20251215ccbf,二甲苯,1975766404158746625,2026-07-12 20:55:41
|
||||
2000461345552318465,2000461345552318465,PRD202512151abd,甲苯,1975766458781167617,2026-07-12 20:55:41
|
||||
2000462005354086401,2000462005354086401,PRD20251215cd74,硝酸银,1975766458781167617,2026-07-12 20:55:41
|
||||
2000462210132590594,2000462210132590594,PRD202512154d54,紫脲酸铵,1975766458781167617,2026-07-12 20:55:41
|
||||
2000462566203834370,2000462566203834370,PRD2025121562c4,碘化钾,1975766458781167617,2026-07-12 20:55:41
|
||||
2000465540594515970,2000465540594515970,PRD202512157bb6,丙酮,1975766404158746625,2026-07-12 20:55:41
|
||||
2001198269824897026,2001198269824897026,PRD2025121736c0,氨水,1975766539550879745,2026-07-12 20:55:41
|
||||
2001524152083337217,2001524152083337217,PRD2025121866d2,pac,1975766539550879745,2026-07-12 20:55:41
|
||||
2003628554868936706,2003628554868936706,PRD2025122459f9,氯化钠,1975766458781167617,2026-07-12 20:55:41
|
||||
2007652434872766465,2007652434872766465,PRD20260104e494,乙醇,1975766404158746625,2026-07-12 20:55:41
|
||||
2007697349707173890,2007697349707173890,PRD2026010408b3,53%工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2008064359116967937,2008064359116967937,PRD20260105a518,盐酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2009438108319879170,2009438108319879170,PRD202601099e37,92.5%工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2010629991163367425,2010629991163367425,PRD20260112243e,吨桶,1975766588632625154,2026-07-12 20:55:41
|
||||
2010882163998425089,2010882163998425089,PRD20260113f98f,除磷剂,1975766458781167617,2026-07-12 20:55:41
|
||||
2014623814197673985,2014623814197673985,PRD20260123be93,磷酸二氢钾,1975766539550879745,2026-07-12 20:55:41
|
||||
2015591547454279681,2015591547454279681,PRD20260126d972,盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2015681617142140929,2015681617142140929,PRD202601266411,盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2015686120767672322,2015686120767672322,PRD202601261dc5,盐酸分析纯,1975766458781167617,2026-07-12 20:55:41
|
||||
2015725300927352834,2015725300927352834,PRD20260126b980,次氯酸钠,1975766458781167617,2026-07-12 20:55:41
|
||||
2016347366126964738,2016347366126964738,PRD20260128f59b,次氯酸钠13%,1975766458781167617,2026-07-12 20:55:41
|
||||
2016350399174987778,2016350399174987778,PRD202601283eb4,硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2016794731757621249,2016794731757621249,PRD202601298fc6,无水硫酸钠,1975766539550879745,2026-07-12 20:55:41
|
||||
2016795445179371521,2016795445179371521,PRD20260129fa0f,碳酸氢钠,1975766539550879745,2026-07-12 20:55:41
|
||||
2018143195338821633,2018143195338821633,PRD20260202a0b9,盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2018967755491561473,2018967755491561473,PRD20260204ea88,硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2027600049513091074,2027600049513091074,PRD20260228b5cc,双氧水,1975766458781167617,2026-07-12 20:55:41
|
||||
2029020920773529601,2029020920773529601,PRD20260304f5cc,磷酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2031629979032985602,2031629979032985602,PRD20260311e3e6,30%液碱,1975766458781167617,2026-07-12 20:55:41
|
||||
2031901129344532481,2031901129344532481,PRD20260312f598,38%盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2032322428801892354,2032322428801892354,PRD20260313e7cc,68%磷酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2032322494312726530,2032322494312726530,PRD202603132a35,98%磷酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2033393394265059330,2033393394265059330,SXWL00924,硫酸分析纯,1975766458781167617,2026-07-12 20:55:41
|
||||
2033461692759502850,2033461692759502850,SXWL00926,分析纯盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2033731042838016002,2033731042838016002,PRD20260317af7f,氯化钙,1975766539550879745,2026-07-12 20:55:41
|
||||
2034461464408584193,2034461464408584193,PRD202603191efc,冰醋酸,1975766404158746625,2026-07-12 20:55:41
|
||||
2034831410875559938,2034831410875559938,PRD202603203d5b,25kg/桶,1975766588632625154,2026-07-12 20:55:41
|
||||
2035881768842391554,2035881768842391554,PRD20260323d923,精制酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2035983649304440834,2035983649304440834,SXWL00927,过氧化氢,1975766539550879745,2026-07-12 20:55:41
|
||||
2035984026108129281,2035984026108129281,PRD20260323c396,量筒,1975766588632625154,2026-07-12 20:55:41
|
||||
2035984616628383746,2035984616628383746,PRD2026032308b4,锌片,1975766588632625154,2026-07-12 20:55:41
|
||||
2035984947395391489,2035984947395391489,SXWL00928,锌片,1975766588632625154,2026-07-12 20:55:41
|
||||
2035984947588329474,2035984947588329474,SXWL00929,氨水,1975766539550879745,2026-07-12 20:55:41
|
||||
2036347213483569153,2036347213483569153,SXWL00930,吨桶,1975766588632625154,2026-07-12 20:55:41
|
||||
2039222752955297794,2039222752955297794,PRD20260401f67b,49%液碱,1975766458781167617,2026-07-12 20:55:41
|
||||
2041391008675753986,2041391008675753986,SXWL00931,磷酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2042188422257012738,2042188422257012738,SXWL00932,工业盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2042543303635464194,2042543303635464194,PRD2026041042ac,滤纸,1975766588632625154,2026-07-12 20:55:41
|
||||
2042543623342092290,2042543623342092290,SXWL00933,滤纸,1975766588632625154,2026-07-12 20:55:41
|
||||
2044302619677782018,2044302619677782018,PRD202604159c70,聚乙二醇单甲醚,1975766588632625154,2026-07-12 20:55:41
|
||||
2044302926235267073,2044302926235267073,PRD20260415f661,乙二胺四乙酸二钠:,1975766588632625154,2026-07-12 20:55:41
|
||||
2044303056816533506,2044303056816533506,PRD202604151e7d,氨水,1975766588632625154,2026-07-12 20:55:41
|
||||
2044303206196670465,2044303206196670465,PRD20260415565f,冰乙酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2044303337419665409,2044303337419665409,PRD20260415c571,氢氟酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2044303444428943362,2044303444428943362,PRD202604156402,六偏磷酸钠,1975766588632625154,2026-07-12 20:55:41
|
||||
2044303602940080130,2044303602940080130,PRD202604153ee3,氟化铵,1975766588632625154,2026-07-12 20:55:41
|
||||
2044303728848891906,2044303728848891906,PRD20260415c7dc,蓖麻油聚氧乙烯醚EL80,1975766588632625154,2026-07-12 20:55:41
|
||||
2044303811992580097,2044303811992580097,PRD202604156946,碳酸铵,1975766588632625154,2026-07-12 20:55:41
|
||||
2046480257297104898,2046480257297104898,PRD20260421bff2,碳酸钠,1975766588632625154,2026-07-12 20:55:41
|
||||
2048631866051493890,2048631866051493890,SXWL00934,硝酸,1975766650771238913,2026-07-12 20:55:41
|
||||
2048631866366066690,2048631866366066690,SXWL00935,双氧水,1975766539550879745,2026-07-12 20:55:41
|
||||
2052202157235208194,2052202157235208194,SXWL00936,试剂硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2052202893570441218,2052202893570441218,PRD202605070eb0,碳粉,1975766588632625154,2026-07-12 20:55:41
|
||||
2052929732802740226,2052929732802740226,SXWL00937,次氯酸钠,1975766458781167617,2026-07-12 20:55:41
|
||||
2052929733171838978,2052929733171838978,SXWL00938,尿素(昊源),1975766539550879745,2026-07-12 20:55:41
|
||||
2052929733549326337,2052929733549326337,SXWL00939,聚合氯化铝,1975766458781167617,2026-07-12 20:55:41
|
||||
2052931567194177537,2052931567194177537,SXWL00940,98% 工业硫酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2056558822311030786,2056558822311030786,PRD202605191687,双氧水,1975766588632625154,2026-07-12 20:55:41
|
||||
2056589779495776257,2056589779495776257,PRD20260519233f,片碱,,2026-07-12 20:55:41
|
||||
2059116006488109057,2059116006488109057,PRD20260526366f,98% 工业硫酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2059168803090821121,2059168803090821121,PRD2026052672b1,10%盐酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2059169035409125378,2059169035409125378,SXWL00941,10%盐酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2059174904058310657,2059174904058310657,PRD202605262432,盐酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2059175278806790146,2059175278806790146,SXWL00942,盐酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2059796527123755009,2059796527123755009,SXWL00943,硝酸,1975766650771238913,2026-07-12 20:55:41
|
||||
2059846634045140993,2059846634045140993,SXWL00950,运费,1975766588632625154,2026-07-12 20:55:41
|
||||
2059901360992382977,2059901360992382977,PRD20260528017d,次氯酸钠,,2026-07-12 20:55:41
|
||||
2060229752782548994,2060229752782548994,SXWL00951,亚硫酸钠,1975766588632625154,2026-07-12 20:55:41
|
||||
2060280030110117889,2060280030110117889,PRD202605295237,36%盐酸,,2026-07-12 20:55:41
|
||||
2060280159806386177,2060280159806386177,PRD20260529f66a,试剂盐酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2060281732267732994,2060281732267732994,PRD20260529e91d,氨水,1975766588632625154,2026-07-12 20:55:41
|
||||
2060281787460579330,2060281787460579330,PRD202605293610,氨水,1975766588632625154,2026-07-12 20:55:41
|
||||
2060282538849169409,2060282538849169409,PRD202605299a00,试剂氨水,,2026-07-12 20:55:41
|
||||
2060282619430137857,2060282619430137857,PRD202605293eeb,试剂氨水,,2026-07-12 20:55:41
|
||||
2060282715597139969,2060282715597139969,PRD20260529a466,试剂硝酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2060282814905675777,2060282814905675777,PRD2026052907e3,试剂硝酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2061246282865549313,2061246282865549313,PRD202606012158,硝酸,,2026-07-12 20:55:41
|
||||
2064909083790254081,2064909083790254081,SXWL1B1C0503,36% AR盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2066454718901362690,2066454718901362690,PRD20260615EEC9,尿素,1975766588632625154,2026-07-12 20:55:41
|
||||
2066800567816790018,2066800567816790018,PRD2026061688EF,氨基磺酸,1975766588632625154,2026-07-12 20:55:41
|
||||
2066800631704428546,2066800631704428546,PRD202606168903,工业用酒精,1975766588632625154,2026-07-12 20:55:41
|
||||
2066800957073367042,2066800957073367042,PRD20260616D750,苯骈三氮唑BTA,1975766588632625154,2026-07-12 20:55:41
|
||||
2070428004832223233,2070428004832223233,SXWL79930E76,硫酸分析纯,1975766458781167617,2026-07-12 20:55:41
|
||||
2070697001876168706,2070697001876168706,SXWL12A6EF05,工业盐酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2071483680526409729,2071483680526409729,SXWL9F26B972,盐酸分析纯,1975766458781167617,2026-07-12 20:55:41
|
||||
2072142588345548802,2072142588345548802,SXWLED1CC6F1,硝酸,1975766650771238913,2026-07-12 20:55:41
|
||||
2072142588483960833,2072142588483960833,SXWL6065555B,片碱(君正),1975766539550879745,2026-07-12 20:55:41
|
||||
2072142588685287426,2072142588685287426,SXWL0B2B0E29,磷酸,1975766458781167617,2026-07-12 20:55:41
|
||||
2072579584348094466,2072579584348094466,SXWLF9494CDF,磷酸三钠,1975766650771238913,2026-07-12 20:55:41
|
||||
2072579584457146370,2072579584457146370,SXWL2ED12068,片碱(红四方),1975766539550879745,2026-07-12 20:55:41
|
||||
2072579584553615361,2072579584553615361,SXWL7F54DC04,工业盐,1975766458781167617,2026-07-12 20:55:41
|
||||
2072579584788496386,2072579584788496386,SXWL3CDF2454,消泡剂,1975766539550879745,2026-07-12 20:55:41
|
||||
2072580213070069762,2072580213070069762,SXWL7E07E89C,氢氧化钠,1975766539550879745,2026-07-12 20:55:41
|
||||
|
@@ -0,0 +1,240 @@
|
||||
product_id,old_product_no,new_product_no,product_name,category_id,seq,renumbered_at
|
||||
1,SXWL00101,SXWL000001,98% 工业硫酸,1975766458781167617,1,2026-07-12 21:06:30
|
||||
2,SXWL00102,SXWL000002,92% 工业硫酸,1975766458781167617,2,2026-07-12 21:06:30
|
||||
3,SXWL00103,SXWL000003,30% 工业硫酸,1975766458781167617,3,2026-07-12 21:06:30
|
||||
4,SXWL00104,SXWL000004,50% 工业硫酸,1975766458781167617,4,2026-07-12 21:06:30
|
||||
5,SXWL00105,SXWL000005,55% 工业硫酸,1975766458781167617,5,2026-07-12 21:06:30
|
||||
6,SXWL00106,SXWL000006,97% 精制硫酸,1975766458781167617,6,2026-07-12 21:06:30
|
||||
7,SXWL00201,SXWL000007,32% 液碱,1975766458781167617,7,2026-07-12 21:06:30
|
||||
8,SXWL00202,SXWL000008,50% 液碱,1975766458781167617,8,2026-07-12 21:06:30
|
||||
9,SXWL00301,SXWL000009,片碱(红四方),1975766539550879745,9,2026-07-12 21:06:30
|
||||
10,SXWL00302,SXWL000010,片碱(君正),1975766539550879745,10,2026-07-12 21:06:30
|
||||
11,SXWL00401,SXWL000011,粒碱,1975766539550879745,11,2026-07-12 21:06:30
|
||||
12,SXWL00501,SXWL000012,无水硫酸钠,1975766539550879745,12,2026-07-12 21:06:30
|
||||
13,SXWL00601,SXWL000013,31% 盐酸,1975766458781167617,13,2026-07-12 21:06:30
|
||||
14,SXWL00602,SXWL000014,36% AR盐酸,1975766458781167617,14,2026-07-12 21:06:30
|
||||
15,SXWL00701,SXWL000015,85% 磷酸,1975766458781167617,15,2026-07-12 21:06:30
|
||||
16,SXWL00801,SXWL000016,聚丙烯酰胺(阴离子),1975766539550879745,16,2026-07-12 21:06:30
|
||||
17,SXWL00802,SXWL000017,聚丙烯酰胺(阳离子),1975766539550879745,17,2026-07-12 21:06:30
|
||||
18,SXWL00901,SXWL000018,工业盐,1975766458781167617,18,2026-07-12 21:06:30
|
||||
19,SXWL01001,SXWL000019,纯碱(红四方),1975766458781167617,19,2026-07-12 21:06:30
|
||||
20,SXWL01101,SXWL000020,氢氧化钾,1975766458781167617,20,2026-07-12 21:06:30
|
||||
21,SXWL01201,SXWL000021,氢氧化钙,1975766539550879745,21,2026-07-12 21:06:30
|
||||
22,SXWL01301,SXWL000022,无水硫酸镁,1975766539550879745,22,2026-07-12 21:06:30
|
||||
23,SXWL01401,SXWL000023,次氯酸钠,1975766458781167617,23,2026-07-12 21:06:30
|
||||
24,SXWL01402,SXWL000024,次氯酸钠,1975766458781167617,24,2026-07-12 21:06:30
|
||||
25,SXWL01501,SXWL000025,聚合硫酸铁,1975766539550879745,25,2026-07-12 21:06:30
|
||||
26,SXWL01601,SXWL000026,硝酸钾,1975766458781167617,26,2026-07-12 21:06:30
|
||||
27,SXWL01701,SXWL000027,葡萄糖,1975766539550879745,27,2026-07-12 21:06:30
|
||||
28,SXWL01702,SXWL000028,葡萄糖,1975766539550879745,28,2026-07-12 21:06:30
|
||||
29,SXWL01801,SXWL000029,面粉,1975766539550879745,29,2026-07-12 21:06:30
|
||||
30,SXWL01901,SXWL000030,一水柠檬酸,1975766458781167617,30,2026-07-12 21:06:30
|
||||
31,SXWL02001,SXWL000031,硫酸亚铁,1975766539550879745,31,2026-07-12 21:06:30
|
||||
32,SXWL02101,SXWL000032,双环小苏打,1975766539550879745,32,2026-07-12 21:06:30
|
||||
33,SXWL02102,SXWL000033,马兰小苏打,1975766539550879745,33,2026-07-12 21:06:30
|
||||
34,SXWL02201,SXWL000034,焦亚硫酸钠,1975766539550879745,34,2026-07-12 21:06:30
|
||||
35,SXWL02301,SXWL000035,二氯化钙,1975766539550879745,35,2026-07-12 21:06:30
|
||||
36,SXWL02401,SXWL000036,二氯甲烷,1975766539550879745,36,2026-07-12 21:06:30
|
||||
37,SXWL02501,SXWL000037,过氧化氢,1975766539550879745,37,2026-07-12 21:06:30
|
||||
38,SXWL02601,SXWL000038,尿素(红四方),1975766539550879745,38,2026-07-12 21:06:30
|
||||
39,SXWL02602,SXWL000039,尿素(阳煤),1975766539550879745,39,2026-07-12 21:06:30
|
||||
40,SXWL02603,SXWL000040,尿素(心连心),1975766539550879745,40,2026-07-12 21:06:30
|
||||
41,SXWL02701,SXWL000041,大苏打,1975766539550879745,41,2026-07-12 21:06:30
|
||||
42,SXWL02801,SXWL000042,亚硫酸氢钠,1975766458781167617,42,2026-07-12 21:06:30
|
||||
43,SXWL02901,SXWL000043,聚合氯化铝(荷花),1975766458781167617,43,2026-07-12 21:06:30
|
||||
44,SXWL02902,SXWL000044,聚合氯化铝 (理文),1975766458781167617,44,2026-07-12 21:06:30
|
||||
45,SXWL03001,SXWL000045,消泡剂,1975766539550879745,45,2026-07-12 21:06:30
|
||||
46,SXWL03101,SXWL000046,磺酸,1975766539550879745,46,2026-07-12 21:06:30
|
||||
47,SXWL03201,SXWL000047,硅藻土,1975766539550879745,47,2026-07-12 21:06:30
|
||||
48,SXWL03301,SXWL000048,氯化铵,1975766539550879745,48,2026-07-12 21:06:30
|
||||
49,SXWL03401,SXWL000049,亚硫酸钠,1975766539550879745,49,2026-07-12 21:06:30
|
||||
50,SXWL03501,SXWL000050,甲苯,1975766404158746625,50,2026-07-12 21:06:30
|
||||
51,SXWL03601,SXWL000051,丙酮,1975766404158746625,51,2026-07-12 21:06:30
|
||||
52,SXWL03801,SXWL000052,甲醇,1975766404158746625,52,2026-07-12 21:06:30
|
||||
53,SXWL03901,SXWL000053,磷酸二氢钾,1975766539550879745,53,2026-07-12 21:06:30
|
||||
54,SXWL04001,SXWL000054,乙酸乙酯,1975766539550879745,54,2026-07-12 21:06:30
|
||||
55,SXWL04101,SXWL000055,碳酸氢铵,1975766539550879745,55,2026-07-12 21:06:30
|
||||
56,SXWL04201,SXWL000056,漂白精,1975766539550879745,56,2026-07-12 21:06:30
|
||||
57,SXWL04301,SXWL000057,乙醇,1975766404158746625,57,2026-07-12 21:06:30
|
||||
58,SXWL04401,SXWL000058,氢氟酸,1975766404158746625,58,2026-07-12 21:06:30
|
||||
59,000400002,SXWL000059,纯水,1975766588632625154,59,2026-07-12 21:06:30
|
||||
60,000400001,SXWL000060,磅差,1975766588632625154,60,2026-07-12 21:06:30
|
||||
61,SXWL00107,SXWL000061,50% 精制酸,1975766458781167617,61,2026-07-12 21:06:30
|
||||
62,SXWL04402,SXWL000062,磷肥,1975766539550879745,62,2026-07-12 21:06:30
|
||||
63,SXWL00108,SXWL000063,60%工业硫酸,1975766458781167617,63,2026-07-12 21:06:30
|
||||
64,SXWL04403,SXWL000064,过硫酸铵,1975766458781167617,64,2026-07-12 21:06:30
|
||||
65,SXWL04501,SXWL000065,碳酸钾,1975766650771238913,65,2026-07-12 21:06:30
|
||||
66,SXWL04601,SXWL000066,氯化亚砜,1975766650771238913,66,2026-07-12 21:06:30
|
||||
67,SXWL00109,SXWL000067,35%工业硫酸,1975766650771238913,67,2026-07-12 21:06:30
|
||||
68,SXWL04701,SXWL000068,氯化镁,1975766650771238913,68,2026-07-12 21:06:30
|
||||
69,SXWL04702,SXWL000069,发烟酸,1975766458781167617,69,2026-07-12 21:06:30
|
||||
70,SXWL01403,SXWL000070,次氯酸钠,1975766458781167617,70,2026-07-12 21:06:30
|
||||
71,SXWL03701,SXWL000071,氨水,1975766539550879745,71,2026-07-12 21:06:30
|
||||
72,SXWL04703,SXWL000072,双氧水(7.5%),1975766650771238913,72,2026-07-12 21:06:30
|
||||
73,SXWL04801,SXWL000073,明矾,1975766650771238913,73,2026-07-12 21:06:30
|
||||
74,SXWL04901,SXWL000074,阳离子交换树脂,1975766650771238913,74,2026-07-12 21:06:30
|
||||
75,SXWL05001,SXWL000075,磷酸三钠,1975766650771238913,75,2026-07-12 21:06:30
|
||||
76,SXWL05101,SXWL000076,活性炭,1975766650771238913,76,2026-07-12 21:06:30
|
||||
77,SXWL00110,SXWL000077,40%工业硫酸,1975766650771238913,77,2026-07-12 21:06:30
|
||||
78,SXWL00303,SXWL000078,片碱(中泰),1975766539550879745,78,2026-07-12 21:06:30
|
||||
79,SXWL02903,SXWL000079,聚合氯化铝(嘉施利),1975766650771238913,79,2026-07-12 21:06:30
|
||||
80,SXWL05201,SXWL000080,甲酸,1975766650771238913,80,2026-07-12 21:06:30
|
||||
81,SXWL05301,SXWL000081,硝酸,1975766650771238913,81,2026-07-12 21:06:30
|
||||
82,SXWL05401,SXWL000082,亚硝酸钠,1975766650771238913,82,2026-07-12 21:06:30
|
||||
83,SXWL00112,SXWL000083,铁粉,1975766458781167617,83,2026-07-12 21:06:30
|
||||
84,SXWL05402,SXWL000084,平平加,1975766404158746625,84,2026-07-12 21:06:30
|
||||
85,000300002,SXWL000085,除垢剂,1975766539550879745,85,2026-07-12 21:06:30
|
||||
86,SXWL05501,SXWL000086,硫酸氢钠,1975766650771238913,86,2026-07-12 21:06:30
|
||||
87,SXWL07311,SXWL000087,AR氢氧化钠,1975766539550879745,87,2026-07-12 21:06:30
|
||||
88,SXWL00804,SXWL000088,醋酸钠,1975766650771238913,88,2026-07-12 21:06:30
|
||||
89,SXWL0805,SXWL000089,磷酸二氢钠,1975766539550879745,89,2026-07-12 21:06:30
|
||||
90,SXWL07312,SXWL000090,聚合氯化铝,1975766458781167617,90,2026-07-12 21:06:30
|
||||
91,SXWL07313,SXWL000091,碳酸钙,1975766458781167617,91,2026-07-12 21:06:30
|
||||
92,SXWL07314,SXWL000092,过氧化钙,1975766458781167617,92,2026-07-12 21:06:30
|
||||
93,SXWL07315,SXWL000093,次氯酸钙,1975766458781167617,93,2026-07-12 21:06:30
|
||||
94,000100002,SXWL000094,硼酸,1975766458781167617,94,2026-07-12 21:06:30
|
||||
95,SXWL00609,SXWL000095,铬酸酐,1975766650771238913,95,2026-07-12 21:06:30
|
||||
96,SXWL00918,SXWL000096,乙脂,1975766650771238913,96,2026-07-12 21:06:30
|
||||
97,SXWL000922,SXWL000097,粉末性活炭,1975766650771238913,97,2026-07-12 21:06:30
|
||||
98,SXWL0923,SXWL000098,聚丙稀酰胺(阳离子),1975766539550879745,98,2026-07-12 21:06:30
|
||||
99,SXWL00922,SXWL000099,聚丙稀酰胺(阳离子),1975766539550879745,99,2026-07-12 21:06:30
|
||||
100,SXWL00925,SXWL000100,试剂硫酸,1975766458781167617,100,2026-07-12 21:06:30
|
||||
101,SXWL00806,SXWL000101,硫化钠,1975766404158746625,101,2026-07-12 21:06:30
|
||||
102,SXWL00923,SXWL000102,尿素(昊源),1975766539550879745,102,2026-07-12 21:06:30
|
||||
103,SXWL00807,SXWL000103,甲醛,1975766404158746625,103,2026-07-12 21:06:30
|
||||
104,SXWL07316,SXWL000104,亚硫酸氢钠(非标),1975766458781167617,104,2026-07-12 21:06:30
|
||||
105,SXWL07317,SXWL000105,10%工业硫酸,1975766458781167617,105,2026-07-12 21:06:30
|
||||
106,SXWL04302,SXWL000106,乙二醇,1975766404158746625,106,2026-07-12 21:06:30
|
||||
107,SXWL02302,SXWL000107,无水氯化钙,1975766539550879745,107,2026-07-12 21:06:30
|
||||
108,SXWL07318,SXWL000108,重铬酸钾,1975766404158746625,108,2026-07-12 21:06:30
|
||||
1988804778813702146,PRD202511130d2a,SXWL000109,硫酸分析纯,1975766458781167617,109,2026-07-12 21:06:30
|
||||
1989250381540667393,PRD20251114ccce,SXWL000110,PAC,1975766539550879745,110,2026-07-12 21:06:30
|
||||
1990231388993572865,PRD202511173a12,SXWL000111,硝酸,1975766650771238913,111,2026-07-12 21:06:30
|
||||
1990232042550022145,PRD20251117046b,SXWL000112,AR盐酸,1975766458781167617,112,2026-07-12 21:06:30
|
||||
1990250327962243074,PRD20251117be8e,SXWL000113,硝酸,1975766650771238913,113,2026-07-12 21:06:30
|
||||
1990301373212348418,PRD2025111750ef,SXWL000114,草酸,1975766404158746625,114,2026-07-12 21:06:30
|
||||
1990302029323128833,PRD202511179bc7,SXWL000115,熟石灰,1975766458781167617,115,2026-07-12 21:06:30
|
||||
1990303930915704833,PRD202511172097,SXWL000116,PAC,1975766539550879745,116,2026-07-12 21:06:30
|
||||
1990335666995286017,PRD20251117a59a,SXWL000117,氨水,1975766539550879745,117,2026-07-12 21:06:30
|
||||
1990335805960966145,PRD2025111786c2,SXWL000118,氨水,1975766539550879745,118,2026-07-12 21:06:30
|
||||
1991337031787827201,PRD202511207c07,SXWL000119,硫酸分析纯,1975766458781167617,119,2026-07-12 21:06:30
|
||||
1991337725781561345,PRD2025112009cb,SXWL000120,盐酸分析纯,1975766458781167617,120,2026-07-12 21:06:30
|
||||
1991338228024299521,PRD20251120c02f,SXWL000121,硫酸铜,1975766539550879745,121,2026-07-12 21:06:30
|
||||
1991338723648425985,PRD202511205696,SXWL000122,硫酸亚铁分析纯,1975766539550879745,122,2026-07-12 21:06:30
|
||||
1991742947397865474,PRD202511215b3f,SXWL000123,乙二醇 ,1975766458781167617,123,2026-07-12 21:06:30
|
||||
1991761261868224513,PRD20251121b7c5,SXWL000124,双氧水,1975766539550879745,124,2026-07-12 21:06:30
|
||||
1993185151735808002,PRD202511257479,SXWL000125,七水硫酸亚铁,1975766539550879745,125,2026-07-12 21:06:30
|
||||
1993204932413210626,PRD202511256b7f,SXWL000126,36%工业盐酸,1975766458781167617,126,2026-07-12 21:06:30
|
||||
1993205620060962817,PRD20251125ed2b,SXWL000127,分析纯盐酸,1975766458781167617,127,2026-07-12 21:06:30
|
||||
1993230360720949249,PRD20251125f3b6,SXWL000128,丙酮,1975766404158746625,128,2026-07-12 21:06:30
|
||||
1995295211739922434,PRD202512011ac4,SXWL000129,氢氧化钠,1975766539550879745,129,2026-07-12 21:06:30
|
||||
1995324628528775170,PRD20251201f771,SXWL000130,纯碱,1975766458781167617,130,2026-07-12 21:06:30
|
||||
1995682611859275777,PRD2025120241fc,SXWL000131,碳酸氢钠 ,1975766539550879745,131,2026-07-12 21:06:30
|
||||
1996019383604592641,PRD20251203456f,SXWL000132,木板,1975766588632625154,132,2026-07-12 21:06:30
|
||||
1996415381422194690,PRD202512043adf,SXWL000133,片碱,1975766539550879745,133,2026-07-12 21:06:30
|
||||
1997857883077459969,PRD20251208dd97,SXWL000134,硫酸分析纯,1975766458781167617,134,2026-07-12 21:06:30
|
||||
1998311613623156737,PRD20251209b9be,SXWL000135,液碱,1975766458781167617,135,2026-07-12 21:06:30
|
||||
2000435894180102146,PRD20251215d0db,SXWL000136,小防白,1975766539550879745,136,2026-07-12 21:06:30
|
||||
2000461015125049345,PRD20251215ccbf,SXWL000137,二甲苯,1975766404158746625,137,2026-07-12 21:06:30
|
||||
2000461345552318465,PRD202512151abd,SXWL000138,甲苯,1975766458781167617,138,2026-07-12 21:06:30
|
||||
2000462005354086401,PRD20251215cd74,SXWL000139,硝酸银,1975766458781167617,139,2026-07-12 21:06:30
|
||||
2000462210132590594,PRD202512154d54,SXWL000140,紫脲酸铵,1975766458781167617,140,2026-07-12 21:06:30
|
||||
2000462566203834370,PRD2025121562c4,SXWL000141,碘化钾,1975766458781167617,141,2026-07-12 21:06:30
|
||||
2000465540594515970,PRD202512157bb6,SXWL000142,丙酮,1975766404158746625,142,2026-07-12 21:06:30
|
||||
2001198269824897026,PRD2025121736c0,SXWL000143,氨水,1975766539550879745,143,2026-07-12 21:06:30
|
||||
2001524152083337217,PRD2025121866d2,SXWL000144,pac,1975766539550879745,144,2026-07-12 21:06:30
|
||||
2003628554868936706,PRD2025122459f9,SXWL000145,氯化钠,1975766458781167617,145,2026-07-12 21:06:30
|
||||
2007652434872766465,PRD20260104e494,SXWL000146,乙醇,1975766404158746625,146,2026-07-12 21:06:30
|
||||
2007697349707173890,PRD2026010408b3,SXWL000147,53%工业硫酸,1975766458781167617,147,2026-07-12 21:06:30
|
||||
2008064359116967937,PRD20260105a518,SXWL000148,盐酸,1975766588632625154,148,2026-07-12 21:06:30
|
||||
2009438108319879170,PRD202601099e37,SXWL000149,92.5%工业硫酸,1975766458781167617,149,2026-07-12 21:06:30
|
||||
2010629991163367425,PRD20260112243e,SXWL000150,吨桶,1975766588632625154,150,2026-07-12 21:06:30
|
||||
2010882163998425089,PRD20260113f98f,SXWL000151,除磷剂,1975766458781167617,151,2026-07-12 21:06:30
|
||||
2014623814197673985,PRD20260123be93,SXWL000152,磷酸二氢钾,1975766539550879745,152,2026-07-12 21:06:30
|
||||
2015591547454279681,PRD20260126d972,SXWL000153,盐酸,1975766458781167617,153,2026-07-12 21:06:30
|
||||
2015681617142140929,PRD202601266411,SXWL000154,盐酸,1975766458781167617,154,2026-07-12 21:06:30
|
||||
2015686120767672322,PRD202601261dc5,SXWL000155,盐酸分析纯,1975766458781167617,155,2026-07-12 21:06:30
|
||||
2015725300927352834,PRD20260126b980,SXWL000156,次氯酸钠,1975766458781167617,156,2026-07-12 21:06:30
|
||||
2016347366126964738,PRD20260128f59b,SXWL000157,次氯酸钠13%,1975766458781167617,157,2026-07-12 21:06:30
|
||||
2016350399174987778,PRD202601283eb4,SXWL000158,硫酸,1975766458781167617,158,2026-07-12 21:06:30
|
||||
2016794731757621249,PRD202601298fc6,SXWL000159,无水硫酸钠,1975766539550879745,159,2026-07-12 21:06:30
|
||||
2016795445179371521,PRD20260129fa0f,SXWL000160,碳酸氢钠,1975766539550879745,160,2026-07-12 21:06:30
|
||||
2018143195338821633,PRD20260202a0b9,SXWL000161,盐酸,1975766458781167617,161,2026-07-12 21:06:30
|
||||
2018967755491561473,PRD20260204ea88,SXWL000162,硫酸,1975766458781167617,162,2026-07-12 21:06:30
|
||||
2027600049513091074,PRD20260228b5cc,SXWL000163,双氧水,1975766458781167617,163,2026-07-12 21:06:30
|
||||
2029020920773529601,PRD20260304f5cc,SXWL000164,磷酸,1975766458781167617,164,2026-07-12 21:06:30
|
||||
2031629979032985602,PRD20260311e3e6,SXWL000165,30%液碱,1975766458781167617,165,2026-07-12 21:06:30
|
||||
2031901129344532481,PRD20260312f598,SXWL000166,38%盐酸,1975766458781167617,166,2026-07-12 21:06:30
|
||||
2032322428801892354,PRD20260313e7cc,SXWL000167,68%磷酸,1975766458781167617,167,2026-07-12 21:06:30
|
||||
2032322494312726530,PRD202603132a35,SXWL000168,98%磷酸,1975766458781167617,168,2026-07-12 21:06:30
|
||||
2033393394265059330,SXWL00924,SXWL000169,硫酸分析纯,1975766458781167617,169,2026-07-12 21:06:30
|
||||
2033461692759502850,SXWL00926,SXWL000170,分析纯盐酸,1975766458781167617,170,2026-07-12 21:06:30
|
||||
2033731042838016002,PRD20260317af7f,SXWL000171,氯化钙,1975766539550879745,171,2026-07-12 21:06:30
|
||||
2034461464408584193,PRD202603191efc,SXWL000172,冰醋酸,1975766404158746625,172,2026-07-12 21:06:30
|
||||
2034831410875559938,PRD202603203d5b,SXWL000173,25kg/桶,1975766588632625154,173,2026-07-12 21:06:30
|
||||
2035881768842391554,PRD20260323d923,SXWL000174,精制酸,1975766458781167617,174,2026-07-12 21:06:30
|
||||
2035983649304440834,SXWL00927,SXWL000175,过氧化氢,1975766539550879745,175,2026-07-12 21:06:30
|
||||
2035984026108129281,PRD20260323c396,SXWL000176,量筒,1975766588632625154,176,2026-07-12 21:06:30
|
||||
2035984616628383746,PRD2026032308b4,SXWL000177,锌片,1975766588632625154,177,2026-07-12 21:06:30
|
||||
2035984947395391489,SXWL00928,SXWL000178,锌片,1975766588632625154,178,2026-07-12 21:06:30
|
||||
2035984947588329474,SXWL00929,SXWL000179,氨水,1975766539550879745,179,2026-07-12 21:06:30
|
||||
2036347213483569153,SXWL00930,SXWL000180,吨桶,1975766588632625154,180,2026-07-12 21:06:30
|
||||
2039222752955297794,PRD20260401f67b,SXWL000181,49%液碱,1975766458781167617,181,2026-07-12 21:06:30
|
||||
2041391008675753986,SXWL00931,SXWL000182,磷酸,1975766458781167617,182,2026-07-12 21:06:30
|
||||
2042188422257012738,SXWL00932,SXWL000183,工业盐酸,1975766458781167617,183,2026-07-12 21:06:30
|
||||
2042543303635464194,PRD2026041042ac,SXWL000184,滤纸,1975766588632625154,184,2026-07-12 21:06:30
|
||||
2042543623342092290,SXWL00933,SXWL000185,滤纸,1975766588632625154,185,2026-07-12 21:06:30
|
||||
2044302619677782018,PRD202604159c70,SXWL000186,聚乙二醇单甲醚,1975766588632625154,186,2026-07-12 21:06:30
|
||||
2044302926235267073,PRD20260415f661,SXWL000187,乙二胺四乙酸二钠:,1975766588632625154,187,2026-07-12 21:06:30
|
||||
2044303056816533506,PRD202604151e7d,SXWL000188,氨水,1975766588632625154,188,2026-07-12 21:06:30
|
||||
2044303206196670465,PRD20260415565f,SXWL000189,冰乙酸,1975766588632625154,189,2026-07-12 21:06:30
|
||||
2044303337419665409,PRD20260415c571,SXWL000190,氢氟酸,1975766588632625154,190,2026-07-12 21:06:30
|
||||
2044303444428943362,PRD202604156402,SXWL000191,六偏磷酸钠,1975766588632625154,191,2026-07-12 21:06:30
|
||||
2044303602940080130,PRD202604153ee3,SXWL000192,氟化铵,1975766588632625154,192,2026-07-12 21:06:30
|
||||
2044303728848891906,PRD20260415c7dc,SXWL000193,蓖麻油聚氧乙烯醚EL80,1975766588632625154,193,2026-07-12 21:06:30
|
||||
2044303811992580097,PRD202604156946,SXWL000194,碳酸铵,1975766588632625154,194,2026-07-12 21:06:30
|
||||
2046480257297104898,PRD20260421bff2,SXWL000195,碳酸钠,1975766588632625154,195,2026-07-12 21:06:30
|
||||
2048631866051493890,SXWL00934,SXWL000196,硝酸,1975766650771238913,196,2026-07-12 21:06:30
|
||||
2048631866366066690,SXWL00935,SXWL000197,双氧水,1975766539550879745,197,2026-07-12 21:06:30
|
||||
2052202157235208194,SXWL00936,SXWL000198,试剂硫酸,1975766458781167617,198,2026-07-12 21:06:30
|
||||
2052202893570441218,PRD202605070eb0,SXWL000199,碳粉,1975766588632625154,199,2026-07-12 21:06:30
|
||||
2052929732802740226,SXWL00937,SXWL000200,次氯酸钠,1975766458781167617,200,2026-07-12 21:06:30
|
||||
2052929733171838978,SXWL00938,SXWL000201,尿素(昊源),1975766539550879745,201,2026-07-12 21:06:30
|
||||
2052929733549326337,SXWL00939,SXWL000202,聚合氯化铝,1975766458781167617,202,2026-07-12 21:06:30
|
||||
2052931567194177537,SXWL00940,SXWL000203,98% 工业硫酸,1975766458781167617,203,2026-07-12 21:06:30
|
||||
2056558822311030786,PRD202605191687,SXWL000204,双氧水,1975766588632625154,204,2026-07-12 21:06:30
|
||||
2056589779495776257,PRD20260519233f,SXWL000205,片碱,,205,2026-07-12 21:06:30
|
||||
2059116006488109057,PRD20260526366f,SXWL000206,98% 工业硫酸,1975766588632625154,206,2026-07-12 21:06:30
|
||||
2059168803090821121,PRD2026052672b1,SXWL000207,10%盐酸,1975766588632625154,207,2026-07-12 21:06:30
|
||||
2059169035409125378,SXWL00941,SXWL000208,10%盐酸,1975766588632625154,208,2026-07-12 21:06:30
|
||||
2059174904058310657,PRD202605262432,SXWL000209,盐酸,1975766588632625154,209,2026-07-12 21:06:30
|
||||
2059175278806790146,SXWL00942,SXWL000210,盐酸,1975766588632625154,210,2026-07-12 21:06:30
|
||||
2059796527123755009,SXWL00943,SXWL000211,硝酸,1975766650771238913,211,2026-07-12 21:06:30
|
||||
2059846634045140993,SXWL00950,SXWL000212,运费,1975766588632625154,212,2026-07-12 21:06:30
|
||||
2059901360992382977,PRD20260528017d,SXWL000213,次氯酸钠,,213,2026-07-12 21:06:30
|
||||
2060229752782548994,SXWL00951,SXWL000214,亚硫酸钠,1975766588632625154,214,2026-07-12 21:06:30
|
||||
2060280030110117889,PRD202605295237,SXWL000215,36%盐酸,,215,2026-07-12 21:06:30
|
||||
2060280159806386177,PRD20260529f66a,SXWL000216,试剂盐酸,1975766588632625154,216,2026-07-12 21:06:30
|
||||
2060281732267732994,PRD20260529e91d,SXWL000217,氨水,1975766588632625154,217,2026-07-12 21:06:30
|
||||
2060281787460579330,PRD202605293610,SXWL000218,氨水,1975766588632625154,218,2026-07-12 21:06:30
|
||||
2060282538849169409,PRD202605299a00,SXWL000219,试剂氨水,,219,2026-07-12 21:06:30
|
||||
2060282619430137857,PRD202605293eeb,SXWL000220,试剂氨水,,220,2026-07-12 21:06:30
|
||||
2060282715597139969,PRD20260529a466,SXWL000221,试剂硝酸,1975766588632625154,221,2026-07-12 21:06:30
|
||||
2060282814905675777,PRD2026052907e3,SXWL000222,试剂硝酸,1975766588632625154,222,2026-07-12 21:06:30
|
||||
2061246282865549313,PRD202606012158,SXWL000223,硝酸,,223,2026-07-12 21:06:30
|
||||
2064909083790254081,SXWL1B1C0503,SXWL000224,36% AR盐酸,1975766458781167617,224,2026-07-12 21:06:30
|
||||
2066454718901362690,PRD20260615EEC9,SXWL000225,尿素,1975766588632625154,225,2026-07-12 21:06:30
|
||||
2066800567816790018,PRD2026061688EF,SXWL000226,氨基磺酸,1975766588632625154,226,2026-07-12 21:06:30
|
||||
2066800631704428546,PRD202606168903,SXWL000227,工业用酒精,1975766588632625154,227,2026-07-12 21:06:30
|
||||
2066800957073367042,PRD20260616D750,SXWL000228,苯骈三氮唑BTA,1975766588632625154,228,2026-07-12 21:06:30
|
||||
2070428004832223233,SXWL79930E76,SXWL000229,硫酸分析纯,1975766458781167617,229,2026-07-12 21:06:30
|
||||
2070697001876168706,SXWL12A6EF05,SXWL000230,工业盐酸,1975766458781167617,230,2026-07-12 21:06:30
|
||||
2071483680526409729,SXWL9F26B972,SXWL000231,盐酸分析纯,1975766458781167617,231,2026-07-12 21:06:30
|
||||
2072142588345548802,SXWLED1CC6F1,SXWL000232,硝酸,1975766650771238913,232,2026-07-12 21:06:30
|
||||
2072142588483960833,SXWL6065555B,SXWL000233,片碱(君正),1975766539550879745,233,2026-07-12 21:06:30
|
||||
2072142588685287426,SXWL0B2B0E29,SXWL000234,磷酸,1975766458781167617,234,2026-07-12 21:06:30
|
||||
2072579584348094466,SXWLF9494CDF,SXWL000235,磷酸三钠,1975766650771238913,235,2026-07-12 21:06:30
|
||||
2072579584457146370,SXWL2ED12068,SXWL000236,片碱(红四方),1975766539550879745,236,2026-07-12 21:06:30
|
||||
2072579584553615361,SXWL7F54DC04,SXWL000237,工业盐,1975766458781167617,237,2026-07-12 21:06:30
|
||||
2072579584788496386,SXWL3CDF2454,SXWL000238,消泡剂,1975766539550879745,238,2026-07-12 21:06:30
|
||||
2072580213070069762,SXWL7E07E89C,SXWL000239,氢氧化钠,1975766539550879745,239,2026-07-12 21:06:30
|
||||
|
@@ -0,0 +1,934 @@
|
||||
source_id,new_id,migrated_at
|
||||
1985983281787289602,1985983281787289602,2026-07-13 04:18:49
|
||||
1988156071621574657,1988156071621574657,2026-07-13 04:18:49
|
||||
1988421273625706498,1988421273625706498,2026-07-13 04:18:49
|
||||
1988485749855109122,1988485749855109122,2026-07-13 04:18:49
|
||||
1988507085302284289,1988507085302284289,2026-07-13 04:18:49
|
||||
1988509034672177154,1988509034672177154,2026-07-13 04:18:49
|
||||
1988524656130932737,1988524656130932737,2026-07-13 04:18:49
|
||||
1988796890460340226,1988796890460340226,2026-07-13 04:18:49
|
||||
1988802815401279489,1988802815401279489,2026-07-13 04:18:49
|
||||
1988805238790438913,1988805238790438913,2026-07-13 04:18:49
|
||||
1988871614347522049,1988871614347522049,2026-07-13 04:18:49
|
||||
1989141601045884929,1989141601045884929,2026-07-13 04:18:49
|
||||
1989145498577711105,1989145498577711105,2026-07-13 04:18:49
|
||||
1989148910333636610,1989148910333636610,2026-07-13 04:18:49
|
||||
1989153311618150402,1989153311618150402,2026-07-13 04:18:49
|
||||
1989170105917550594,1989170105917550594,2026-07-13 04:18:49
|
||||
1989201507253923841,1989201507253923841,2026-07-13 04:18:49
|
||||
1989250849700491265,1989250849700491265,2026-07-13 04:18:49
|
||||
1990219389458927617,1990219389458927617,2026-07-13 04:18:49
|
||||
1990220345944788994,1990220345944788994,2026-07-13 04:18:49
|
||||
1990231630442876929,1990231630442876929,2026-07-13 04:18:49
|
||||
1990233309766701058,1990233309766701058,2026-07-13 04:18:49
|
||||
1990238117236002817,1990238117236002817,2026-07-13 04:18:49
|
||||
1990238530253312001,1990238530253312001,2026-07-13 04:18:49
|
||||
1990244558697091074,1990244558697091074,2026-07-13 04:18:49
|
||||
1990250006057799682,1990250006057799682,2026-07-13 04:18:49
|
||||
1990250646838398977,1990250646838398977,2026-07-13 04:18:49
|
||||
1990304334915260417,1990304334915260417,2026-07-13 04:18:49
|
||||
1990322208111284226,1990322208111284226,2026-07-13 04:18:49
|
||||
1990333479426674689,1990333479426674689,2026-07-13 04:18:49
|
||||
1990337355412361217,1990337355412361217,2026-07-13 04:18:49
|
||||
1990657368610525185,1990657368610525185,2026-07-13 04:18:49
|
||||
1990657833670758401,1990657833670758401,2026-07-13 04:18:49
|
||||
1990661761808420865,1990661761808420865,2026-07-13 04:18:49
|
||||
1990688262050238465,1990688262050238465,2026-07-13 04:18:49
|
||||
1991314659554840577,1991314659554840577,2026-07-13 04:18:49
|
||||
1991339220140773377,1991339220140773377,2026-07-13 04:18:49
|
||||
1991388966934941698,1991388966934941698,2026-07-13 04:18:49
|
||||
1991389934166609922,1991389934166609922,2026-07-13 04:18:49
|
||||
1991393798827675650,1991393798827675650,2026-07-13 04:18:49
|
||||
1991409371007553537,1991409371007553537,2026-07-13 04:18:49
|
||||
1991670323795857410,1991670323795857410,2026-07-13 04:18:49
|
||||
1991697818289049601,1991697818289049601,2026-07-13 04:18:49
|
||||
1991743473103540225,1991743473103540225,2026-07-13 04:18:49
|
||||
1991758586627887106,1991758586627887106,2026-07-13 04:18:49
|
||||
1991761680031944706,1991761680031944706,2026-07-13 04:18:49
|
||||
1991762137039114242,1991762137039114242,2026-07-13 04:18:49
|
||||
1991763388309049346,1991763388309049346,2026-07-13 04:18:49
|
||||
1991763625522106370,1991763625522106370,2026-07-13 04:18:49
|
||||
1992770517862068225,1992770517862068225,2026-07-13 04:18:49
|
||||
1992772394595004418,1992772394595004418,2026-07-13 04:18:49
|
||||
1992775570689765378,1992775570689765378,2026-07-13 04:18:49
|
||||
1992775774767820801,1992775774767820801,2026-07-13 04:18:49
|
||||
1992822850843295745,1992822850843295745,2026-07-13 04:18:49
|
||||
1992873168176136194,1992873168176136194,2026-07-13 04:18:49
|
||||
1993122319539355649,1993122319539355649,2026-07-13 04:18:49
|
||||
1993137225483403266,1993137225483403266,2026-07-13 04:18:49
|
||||
1993185841128390657,1993185841128390657,2026-07-13 04:18:49
|
||||
1993186432265207810,1993186432265207810,2026-07-13 04:18:49
|
||||
1993186881311588354,1993186881311588354,2026-07-13 04:18:49
|
||||
1993205291269472258,1993205291269472258,2026-07-13 04:18:49
|
||||
1993205909887369218,1993205909887369218,2026-07-13 04:18:49
|
||||
1993211493810421761,1993211493810421761,2026-07-13 04:18:49
|
||||
1993212100831068161,1993212100831068161,2026-07-13 04:18:49
|
||||
1993213691684438017,1993213691684438017,2026-07-13 04:18:49
|
||||
1993216529139482626,1993216529139482626,2026-07-13 04:18:49
|
||||
1993229721374801922,1993229721374801922,2026-07-13 04:18:49
|
||||
1993230925471399937,1993230925471399937,2026-07-13 04:18:49
|
||||
1993232422670155777,1993232422670155777,2026-07-13 04:18:49
|
||||
1993548194810413058,1993548194810413058,2026-07-13 04:18:49
|
||||
1993556780571672578,1993556780571672578,2026-07-13 04:18:49
|
||||
1993857638366691330,1993857638366691330,2026-07-13 04:18:49
|
||||
1993885614198210562,1993885614198210562,2026-07-13 04:18:49
|
||||
1993930321888526338,1993930321888526338,2026-07-13 04:18:49
|
||||
1993931197717921794,1993931197717921794,2026-07-13 04:18:49
|
||||
1993943383613882369,1993943383613882369,2026-07-13 04:18:49
|
||||
1993945126053593089,1993945126053593089,2026-07-13 04:18:49
|
||||
1994297695015780354,1994297695015780354,2026-07-13 04:18:49
|
||||
1994300743633059841,1994300743633059841,2026-07-13 04:18:49
|
||||
1994684863420809218,1994684863420809218,2026-07-13 04:18:49
|
||||
1994686158881931265,1994686158881931265,2026-07-13 04:18:49
|
||||
1994686898383863809,1994686898383863809,2026-07-13 04:18:49
|
||||
1995295795620593666,1995295795620593666,2026-07-13 04:18:49
|
||||
1995297126389366785,1995297126389366785,2026-07-13 04:18:49
|
||||
1995300523691720706,1995300523691720706,2026-07-13 04:18:49
|
||||
1995301508916953090,1995301508916953090,2026-07-13 04:18:49
|
||||
1995303379530399745,1995303379530399745,2026-07-13 04:18:49
|
||||
1995325428646789121,1995325428646789121,2026-07-13 04:18:49
|
||||
1995329701904367617,1995329701904367617,2026-07-13 04:18:49
|
||||
1995361785188433922,1995361785188433922,2026-07-13 04:18:49
|
||||
1995362845370073090,1995362845370073090,2026-07-13 04:18:49
|
||||
1995380628480835585,1995380628480835585,2026-07-13 04:18:49
|
||||
1995391554890219522,1995391554890219522,2026-07-13 04:18:49
|
||||
1995682810006585346,1995682810006585346,2026-07-13 04:18:49
|
||||
1995743880037515265,1995743880037515265,2026-07-13 04:18:49
|
||||
1995780453407899650,1995780453407899650,2026-07-13 04:18:49
|
||||
1995783065339412481,1995783065339412481,2026-07-13 04:18:49
|
||||
1996019808965738497,1996019808965738497,2026-07-13 04:18:49
|
||||
1996045629252157441,1996045629252157441,2026-07-13 04:18:49
|
||||
1996054250417537026,1996054250417537026,2026-07-13 04:18:49
|
||||
1996057424893296641,1996057424893296641,2026-07-13 04:18:49
|
||||
1996091040931233793,1996091040931233793,2026-07-13 04:18:49
|
||||
1996094239570378753,1996094239570378753,2026-07-13 04:18:49
|
||||
1996104691952107521,1996104691952107521,2026-07-13 04:18:49
|
||||
1996113834322673666,1996113834322673666,2026-07-13 04:18:49
|
||||
1996387018750017538,1996387018750017538,2026-07-13 04:18:49
|
||||
1996395708651651073,1996395708651651073,2026-07-13 04:18:49
|
||||
1996416045686702081,1996416045686702081,2026-07-13 04:18:49
|
||||
1996836203160911874,1996836203160911874,2026-07-13 04:18:49
|
||||
1996838828669386753,1996838828669386753,2026-07-13 04:18:49
|
||||
1997835531962793985,1997835531962793985,2026-07-13 04:18:49
|
||||
1997842813484253185,1997842813484253185,2026-07-13 04:18:49
|
||||
1997844883239059458,1997844883239059458,2026-07-13 04:18:49
|
||||
1997848003687989249,1997848003687989249,2026-07-13 04:18:49
|
||||
1997858368849166338,1997858368849166338,2026-07-13 04:18:49
|
||||
1997925000715943937,1997925000715943937,2026-07-13 04:18:49
|
||||
1997931529569550338,1997931529569550338,2026-07-13 04:18:49
|
||||
1997960625670307842,1997960625670307842,2026-07-13 04:18:49
|
||||
1998190561622474754,1998190561622474754,2026-07-13 04:18:49
|
||||
1998194714293813249,1998194714293813249,2026-07-13 04:18:49
|
||||
1998218920008073217,1998218920008073217,2026-07-13 04:18:49
|
||||
1998275961372262402,1998275961372262402,2026-07-13 04:18:49
|
||||
1998282298189660162,1998282298189660162,2026-07-13 04:18:49
|
||||
1998311859430342657,1998311859430342657,2026-07-13 04:18:49
|
||||
1998568918650437634,1998568918650437634,2026-07-13 04:18:49
|
||||
1998639498196140034,1998639498196140034,2026-07-13 04:18:49
|
||||
1998672978686754817,1998672978686754817,2026-07-13 04:18:49
|
||||
1998950495234539521,1998950495234539521,2026-07-13 04:18:49
|
||||
1998951252990083073,1998951252990083073,2026-07-13 04:18:49
|
||||
1998951609988268034,1998951609988268034,2026-07-13 04:18:49
|
||||
1998952017498456066,1998952017498456066,2026-07-13 04:18:49
|
||||
1998952376451186689,1998952376451186689,2026-07-13 04:18:49
|
||||
1998952748804718594,1998952748804718594,2026-07-13 04:18:49
|
||||
1998953487618785282,1998953487618785282,2026-07-13 04:18:49
|
||||
1998957490423447554,1998957490423447554,2026-07-13 04:18:49
|
||||
1998982942458363905,1998982942458363905,2026-07-13 04:18:49
|
||||
1999001194257432577,1999001194257432577,2026-07-13 04:18:49
|
||||
1999046310749782018,1999046310749782018,2026-07-13 04:18:49
|
||||
1999055835045281793,1999055835045281793,2026-07-13 04:18:49
|
||||
1999306799937470466,1999306799937470466,2026-07-13 04:18:49
|
||||
1999312979208421378,1999312979208421378,2026-07-13 04:18:49
|
||||
1999313939397853185,1999313939397853185,2026-07-13 04:18:49
|
||||
2000371667398541313,2000371667398541313,2026-07-13 04:18:49
|
||||
2000384173445726210,2000384173445726210,2026-07-13 04:18:49
|
||||
2000396751953707009,2000396751953707009,2026-07-13 04:18:49
|
||||
2000434500165419009,2000434500165419009,2026-07-13 04:18:49
|
||||
2000436405805498369,2000436405805498369,2026-07-13 04:18:49
|
||||
2000461592567463937,2000461592567463937,2026-07-13 04:18:49
|
||||
2000465030906888194,2000465030906888194,2026-07-13 04:18:49
|
||||
2000465867796365314,2000465867796365314,2026-07-13 04:18:49
|
||||
2000744269379932162,2000744269379932162,2026-07-13 04:18:49
|
||||
2000795000262758401,2000795000262758401,2026-07-13 04:18:49
|
||||
2000798030215385089,2000798030215385089,2026-07-13 04:18:49
|
||||
2000798428946894850,2000798428946894850,2026-07-13 04:18:49
|
||||
2001095896913809410,2001095896913809410,2026-07-13 04:18:49
|
||||
2001097403755270145,2001097403755270145,2026-07-13 04:18:49
|
||||
2001101419507748865,2001101419507748865,2026-07-13 04:18:49
|
||||
2001103301768777729,2001103301768777729,2026-07-13 04:18:49
|
||||
2001118884509913090,2001118884509913090,2026-07-13 04:18:49
|
||||
2001119488800067585,2001119488800067585,2026-07-13 04:18:49
|
||||
2001127724781539329,2001127724781539329,2026-07-13 04:18:49
|
||||
2001160059920977922,2001160059920977922,2026-07-13 04:18:49
|
||||
2001199185848307714,2001199185848307714,2026-07-13 04:18:49
|
||||
2001203117072977922,2001203117072977922,2026-07-13 04:18:49
|
||||
2001211666964549633,2001211666964549633,2026-07-13 04:18:49
|
||||
2001523563920281601,2001523563920281601,2026-07-13 04:18:49
|
||||
2001524637251063810,2001524637251063810,2026-07-13 04:18:49
|
||||
2001570536564117505,2001570536564117505,2026-07-13 04:18:49
|
||||
2001920714475229186,2001920714475229186,2026-07-13 04:18:49
|
||||
2001927951155384321,2001927951155384321,2026-07-13 04:18:49
|
||||
2001935560134545410,2001935560134545410,2026-07-13 04:18:49
|
||||
2002912938637840386,2002912938637840386,2026-07-13 04:18:49
|
||||
2002913717218103297,2002913717218103297,2026-07-13 04:18:49
|
||||
2002914172899872769,2002914172899872769,2026-07-13 04:18:49
|
||||
2002915159077212161,2002915159077212161,2026-07-13 04:18:49
|
||||
2002928513242025985,2002928513242025985,2026-07-13 04:18:49
|
||||
2002977908444549121,2002977908444549121,2026-07-13 04:18:49
|
||||
2003356110300041218,2003356110300041218,2026-07-13 04:18:49
|
||||
2003629444694724609,2003629444694724609,2026-07-13 04:18:49
|
||||
2003630152907149314,2003630152907149314,2026-07-13 04:18:49
|
||||
2003636914116808705,2003636914116808705,2026-07-13 04:18:49
|
||||
2003639894157217794,2003639894157217794,2026-07-13 04:18:49
|
||||
2003644511892983810,2003644511892983810,2026-07-13 04:18:49
|
||||
2003664435780702209,2003664435780702209,2026-07-13 04:18:49
|
||||
2003665717304152065,2003665717304152065,2026-07-13 04:18:49
|
||||
2003672098316931073,2003672098316931073,2026-07-13 04:18:49
|
||||
2003698156726571010,2003698156726571010,2026-07-13 04:18:49
|
||||
2003708124087373825,2003708124087373825,2026-07-13 04:18:49
|
||||
2004003335317409794,2004003335317409794,2026-07-13 04:18:49
|
||||
2004019245763710977,2004019245763710977,2026-07-13 04:18:49
|
||||
2004058660183658497,2004058660183658497,2026-07-13 04:18:49
|
||||
2004092844923080706,2004092844923080706,2026-07-13 04:18:49
|
||||
2004369010103865346,2004369010103865346,2026-07-13 04:18:49
|
||||
2004484789642121218,2004484789642121218,2026-07-13 04:18:49
|
||||
2004750775104491522,2004750775104491522,2026-07-13 04:18:49
|
||||
2005445030143774722,2005445030143774722,2026-07-13 04:18:49
|
||||
2005826622578151425,2005826622578151425,2026-07-13 04:18:49
|
||||
2005830373347086338,2005830373347086338,2026-07-13 04:18:49
|
||||
2005830670018596866,2005830670018596866,2026-07-13 04:18:49
|
||||
2005830931831246849,2005830931831246849,2026-07-13 04:18:49
|
||||
2005832674061242370,2005832674061242370,2026-07-13 04:18:49
|
||||
2005891128402563073,2005891128402563073,2026-07-13 04:18:49
|
||||
2005891441377333249,2005891441377333249,2026-07-13 04:18:49
|
||||
2005896788687114242,2005896788687114242,2026-07-13 04:18:49
|
||||
2005935720443334657,2005935720443334657,2026-07-13 04:18:49
|
||||
2005936050082074626,2005936050082074626,2026-07-13 04:18:49
|
||||
2005941460994281474,2005941460994281474,2026-07-13 04:18:49
|
||||
2007620514667433985,2007620514667433985,2026-07-13 04:18:49
|
||||
2007621216017977345,2007621216017977345,2026-07-13 04:18:49
|
||||
2007652785097150466,2007652785097150466,2026-07-13 04:18:49
|
||||
2007674166346125314,2007674166346125314,2026-07-13 04:18:49
|
||||
2007697509837312002,2007697509837312002,2026-07-13 04:18:49
|
||||
2007976548556738561,2007976548556738561,2026-07-13 04:18:49
|
||||
2007985080815456258,2007985080815456258,2026-07-13 04:18:49
|
||||
2008003156244041729,2008003156244041729,2026-07-13 04:18:49
|
||||
2008003725515952130,2008003725515952130,2026-07-13 04:18:49
|
||||
2008004042773106690,2008004042773106690,2026-07-13 04:18:49
|
||||
2008005920428789761,2008005920428789761,2026-07-13 04:18:49
|
||||
2008025688355508225,2008025688355508225,2026-07-13 04:18:49
|
||||
2008064613254041602,2008064613254041602,2026-07-13 04:18:49
|
||||
2008065012836995073,2008065012836995073,2026-07-13 04:18:49
|
||||
2008074933846544386,2008074933846544386,2026-07-13 04:18:49
|
||||
2008336038082777090,2008336038082777090,2026-07-13 04:18:49
|
||||
2008342305694158850,2008342305694158850,2026-07-13 04:18:49
|
||||
2008381057950945281,2008381057950945281,2026-07-13 04:18:49
|
||||
2008429056597037057,2008429056597037057,2026-07-13 04:18:49
|
||||
2008430180221718530,2008430180221718530,2026-07-13 04:18:49
|
||||
2008438185336115202,2008438185336115202,2026-07-13 04:18:49
|
||||
2008465168958885889,2008465168958885889,2026-07-13 04:18:49
|
||||
2008465861060988929,2008465861060988929,2026-07-13 04:18:49
|
||||
2008479488304353282,2008479488304353282,2026-07-13 04:18:49
|
||||
2008733268866371586,2008733268866371586,2026-07-13 04:18:49
|
||||
2008778951820447746,2008778951820447746,2026-07-13 04:18:49
|
||||
2008779351206268929,2008779351206268929,2026-07-13 04:18:49
|
||||
2008829465937448961,2008829465937448961,2026-07-13 04:18:49
|
||||
2009132619858055170,2009132619858055170,2026-07-13 04:18:49
|
||||
2009184624324513794,2009184624324513794,2026-07-13 04:18:49
|
||||
2009438392622387202,2009438392622387202,2026-07-13 04:18:49
|
||||
2009461346454343681,2009461346454343681,2026-07-13 04:18:49
|
||||
2009510555278774274,2009510555278774274,2026-07-13 04:18:49
|
||||
2009513299020484609,2009513299020484609,2026-07-13 04:18:49
|
||||
2010524757195886594,2010524757195886594,2026-07-13 04:18:49
|
||||
2010532081046261762,2010532081046261762,2026-07-13 04:18:49
|
||||
2010532536673505281,2010532536673505281,2026-07-13 04:18:49
|
||||
2010596844950392834,2010596844950392834,2026-07-13 04:18:49
|
||||
2010607233138298882,2010607233138298882,2026-07-13 04:18:49
|
||||
2010609009858056193,2010609009858056193,2026-07-13 04:18:49
|
||||
2010882547227787265,2010882547227787265,2026-07-13 04:18:49
|
||||
2010908513434042369,2010908513434042369,2026-07-13 04:18:49
|
||||
2010912604939845633,2010912604939845633,2026-07-13 04:18:49
|
||||
2011000329453928450,2011000329453928450,2026-07-13 04:18:49
|
||||
2011317278910152705,2011317278910152705,2026-07-13 04:18:49
|
||||
2011333328502489090,2011333328502489090,2026-07-13 04:18:49
|
||||
2011342422084911105,2011342422084911105,2026-07-13 04:18:49
|
||||
2011343297264189442,2011343297264189442,2026-07-13 04:18:49
|
||||
2011351709628727298,2011351709628727298,2026-07-13 04:18:49
|
||||
2011368736393232386,2011368736393232386,2026-07-13 04:18:49
|
||||
2011374595143860225,2011374595143860225,2026-07-13 04:18:49
|
||||
2011601456226598914,2011601456226598914,2026-07-13 04:18:49
|
||||
2011998926567866369,2011998926567866369,2026-07-13 04:18:49
|
||||
2012001212245442562,2012001212245442562,2026-07-13 04:18:49
|
||||
2012006806918496257,2012006806918496257,2026-07-13 04:18:49
|
||||
2012054552702582785,2012054552702582785,2026-07-13 04:18:49
|
||||
2012058677196587010,2012058677196587010,2026-07-13 04:18:49
|
||||
2012070457092308994,2012070457092308994,2026-07-13 04:18:49
|
||||
2012091335221936129,2012091335221936129,2026-07-13 04:18:49
|
||||
2013062383639691265,2013062383639691265,2026-07-13 04:18:49
|
||||
2013062721218248705,2013062721218248705,2026-07-13 04:18:49
|
||||
2013077545465643009,2013077545465643009,2026-07-13 04:18:49
|
||||
2013141033655435265,2013141033655435265,2026-07-13 04:18:49
|
||||
2013156607966019586,2013156607966019586,2026-07-13 04:18:49
|
||||
2013188757864022018,2013188757864022018,2026-07-13 04:18:49
|
||||
2013443156888748033,2013443156888748033,2026-07-13 04:18:49
|
||||
2013451531215142914,2013451531215142914,2026-07-13 04:18:49
|
||||
2013451829774090241,2013451829774090241,2026-07-13 04:18:49
|
||||
2013487974323027970,2013487974323027970,2026-07-13 04:18:49
|
||||
2013780149468364802,2013780149468364802,2026-07-13 04:18:49
|
||||
2013797345766637570,2013797345766637570,2026-07-13 04:18:49
|
||||
2013847498301079553,2013847498301079553,2026-07-13 04:18:49
|
||||
2013911558963036162,2013911558963036162,2026-07-13 04:18:49
|
||||
2014209453452918785,2014209453452918785,2026-07-13 04:18:49
|
||||
2014235322447790081,2014235322447790081,2026-07-13 04:18:49
|
||||
2014235690703486977,2014235690703486977,2026-07-13 04:18:49
|
||||
2014239523697557505,2014239523697557505,2026-07-13 04:18:49
|
||||
2014263409268981762,2014263409268981762,2026-07-13 04:18:49
|
||||
2014263799867736066,2014263799867736066,2026-07-13 04:18:49
|
||||
2014275468564070401,2014275468564070401,2026-07-13 04:18:49
|
||||
2014518758718799873,2014518758718799873,2026-07-13 04:18:49
|
||||
2014591667168575489,2014591667168575489,2026-07-13 04:18:49
|
||||
2014611120405053442,2014611120405053442,2026-07-13 04:18:49
|
||||
2014624678031360001,2014624678031360001,2026-07-13 04:18:49
|
||||
2015591651514961921,2015591651514961921,2026-07-13 04:18:49
|
||||
2015597249233080322,2015597249233080322,2026-07-13 04:18:49
|
||||
2015602677660700673,2015602677660700673,2026-07-13 04:18:49
|
||||
2015618870425604097,2015618870425604097,2026-07-13 04:18:49
|
||||
2015619139934801921,2015619139934801921,2026-07-13 04:18:49
|
||||
2015659742852730881,2015659742852730881,2026-07-13 04:18:49
|
||||
2015672373219086338,2015672373219086338,2026-07-13 04:18:49
|
||||
2015681860835397634,2015681860835397634,2026-07-13 04:18:49
|
||||
2015687316177866754,2015687316177866754,2026-07-13 04:18:49
|
||||
2015711573956022273,2015711573956022273,2026-07-13 04:18:49
|
||||
2015725434197168130,2015725434197168130,2026-07-13 04:18:49
|
||||
2015954274102202370,2015954274102202370,2026-07-13 04:18:49
|
||||
2016027314479616002,2016027314479616002,2026-07-13 04:18:49
|
||||
2016032827468599297,2016032827468599297,2026-07-13 04:18:49
|
||||
2016037550804357121,2016037550804357121,2026-07-13 04:18:49
|
||||
2016046322536861697,2016046322536861697,2026-07-13 04:18:49
|
||||
2016050792666681345,2016050792666681345,2026-07-13 04:18:49
|
||||
2016052490806153218,2016052490806153218,2026-07-13 04:18:49
|
||||
2016309855694540801,2016309855694540801,2026-07-13 04:18:49
|
||||
2016326957939740674,2016326957939740674,2026-07-13 04:18:49
|
||||
2016345650321084417,2016345650321084417,2026-07-13 04:18:49
|
||||
2016348088407085058,2016348088407085058,2026-07-13 04:18:49
|
||||
2016351592269926402,2016351592269926402,2026-07-13 04:18:49
|
||||
2016390756856156162,2016390756856156162,2026-07-13 04:18:49
|
||||
2016404052246188033,2016404052246188033,2026-07-13 04:18:49
|
||||
2016695984927199234,2016695984927199234,2026-07-13 04:18:49
|
||||
2016777224644644866,2016777224644644866,2026-07-13 04:18:49
|
||||
2016777594519343105,2016777594519343105,2026-07-13 04:18:49
|
||||
2016780376815095809,2016780376815095809,2026-07-13 04:18:49
|
||||
2016784263613698049,2016784263613698049,2026-07-13 04:18:49
|
||||
2016795530747367425,2016795530747367425,2026-07-13 04:18:49
|
||||
2016798914749583362,2016798914749583362,2026-07-13 04:18:49
|
||||
2018124071682363393,2018124071682363393,2026-07-13 04:18:49
|
||||
2018137095495405569,2018137095495405569,2026-07-13 04:18:49
|
||||
2018143386070601729,2018143386070601729,2026-07-13 04:18:49
|
||||
2018144818551246849,2018144818551246849,2026-07-13 04:18:49
|
||||
2018157728249860097,2018157728249860097,2026-07-13 04:18:49
|
||||
2018165869066768386,2018165869066768386,2026-07-13 04:18:49
|
||||
2018196237991989250,2018196237991989250,2026-07-13 04:18:49
|
||||
2018210742608252930,2018210742608252930,2026-07-13 04:18:49
|
||||
2018227918723534850,2018227918723534850,2026-07-13 04:18:49
|
||||
2018241258216673281,2018241258216673281,2026-07-13 04:18:49
|
||||
2018493016201416706,2018493016201416706,2026-07-13 04:18:49
|
||||
2018511205413081089,2018511205413081089,2026-07-13 04:18:49
|
||||
2018525594388189186,2018525594388189186,2026-07-13 04:18:49
|
||||
2018609574328324097,2018609574328324097,2026-07-13 04:18:49
|
||||
2018609897692385281,2018609897692385281,2026-07-13 04:18:49
|
||||
2018613342415540225,2018613342415540225,2026-07-13 04:18:49
|
||||
2018857323611213825,2018857323611213825,2026-07-13 04:18:49
|
||||
2018866010341953537,2018866010341953537,2026-07-13 04:18:49
|
||||
2018941616895217666,2018941616895217666,2026-07-13 04:18:49
|
||||
2018968227036188673,2018968227036188673,2026-07-13 04:18:49
|
||||
2018974586028871681,2018974586028871681,2026-07-13 04:18:49
|
||||
2019295968809897985,2019295968809897985,2026-07-13 04:18:49
|
||||
2019596432424226818,2019596432424226818,2026-07-13 04:18:49
|
||||
2019695641810882562,2019695641810882562,2026-07-13 04:18:49
|
||||
2020673706875604993,2020673706875604993,2026-07-13 04:18:49
|
||||
2020674894576668673,2020674894576668673,2026-07-13 04:18:49
|
||||
2020675291173277698,2020675291173277698,2026-07-13 04:18:49
|
||||
2020679447778873346,2020679447778873346,2026-07-13 04:18:49
|
||||
2020682731474309121,2020682731474309121,2026-07-13 04:18:49
|
||||
2020684026184650753,2020684026184650753,2026-07-13 04:18:49
|
||||
2020693380761833473,2020693380761833473,2026-07-13 04:18:49
|
||||
2020694364686831618,2020694364686831618,2026-07-13 04:18:49
|
||||
2020801578990751746,2020801578990751746,2026-07-13 04:18:49
|
||||
2020802192839725058,2020802192839725058,2026-07-13 04:18:49
|
||||
2021081158062362626,2021081158062362626,2026-07-13 04:18:49
|
||||
2021100348605386754,2021100348605386754,2026-07-13 04:18:49
|
||||
2021414064106426369,2021414064106426369,2026-07-13 04:18:49
|
||||
2021424963194114050,2021424963194114050,2026-07-13 04:18:49
|
||||
2021465788062027777,2021465788062027777,2026-07-13 04:18:49
|
||||
2021466869936607233,2021466869936607233,2026-07-13 04:18:49
|
||||
2021882098067623938,2021882098067623938,2026-07-13 04:18:49
|
||||
2026101425012658177,2026101425012658177,2026-07-13 04:18:49
|
||||
2026102594376224769,2026102594376224769,2026-07-13 04:18:49
|
||||
2026161828912615426,2026161828912615426,2026-07-13 04:18:49
|
||||
2026191460458221570,2026191460458221570,2026-07-13 04:18:49
|
||||
2026459787927670785,2026459787927670785,2026-07-13 04:18:49
|
||||
2026467277625020418,2026467277625020418,2026-07-13 04:18:49
|
||||
2026521278416605186,2026521278416605186,2026-07-13 04:18:49
|
||||
2026575288989306881,2026575288989306881,2026-07-13 04:18:49
|
||||
2026587163433029633,2026587163433029633,2026-07-13 04:18:49
|
||||
2027187873086361601,2027187873086361601,2026-07-13 04:18:49
|
||||
2027253398789345281,2027253398789345281,2026-07-13 04:18:49
|
||||
2027318063540129794,2027318063540129794,2026-07-13 04:18:49
|
||||
2027544405678411778,2027544405678411778,2026-07-13 04:18:49
|
||||
2027558353186246657,2027558353186246657,2026-07-13 04:18:49
|
||||
2027576781506793474,2027576781506793474,2026-07-13 04:18:49
|
||||
2027578929154019330,2027578929154019330,2026-07-13 04:18:49
|
||||
2027602110053011458,2027602110053011458,2026-07-13 04:18:49
|
||||
2027644512964890625,2027644512964890625,2026-07-13 04:18:49
|
||||
2027645024732893186,2027645024732893186,2026-07-13 04:18:49
|
||||
2028271478344699905,2028271478344699905,2026-07-13 04:18:49
|
||||
2028281765768646657,2028281765768646657,2026-07-13 04:18:49
|
||||
2028281929405222913,2028281929405222913,2026-07-13 04:18:49
|
||||
2028282611579408385,2028282611579408385,2026-07-13 04:18:49
|
||||
2028291519832313857,2028291519832313857,2026-07-13 04:18:49
|
||||
2028355227791052802,2028355227791052802,2026-07-13 04:18:49
|
||||
2028355426366181378,2028355426366181378,2026-07-13 04:18:49
|
||||
2028356053477543938,2028356053477543938,2026-07-13 04:18:49
|
||||
2028394279659556866,2028394279659556866,2026-07-13 04:18:49
|
||||
2028405805216878593,2028405805216878593,2026-07-13 04:18:49
|
||||
2028407450789138433,2028407450789138433,2026-07-13 04:18:49
|
||||
2028640521270513665,2028640521270513665,2026-07-13 04:18:49
|
||||
2028713503347101697,2028713503347101697,2026-07-13 04:18:49
|
||||
2029005760541413378,2029005760541413378,2026-07-13 04:18:49
|
||||
2029021278707044354,2029021278707044354,2026-07-13 04:18:49
|
||||
2029021786930860034,2029021786930860034,2026-07-13 04:18:49
|
||||
2029026635990880257,2029026635990880257,2026-07-13 04:18:49
|
||||
2029085232334557186,2029085232334557186,2026-07-13 04:18:49
|
||||
2029383391124312065,2029383391124312065,2026-07-13 04:18:49
|
||||
2029396057813340161,2029396057813340161,2026-07-13 04:18:49
|
||||
2029424017224159234,2029424017224159234,2026-07-13 04:18:49
|
||||
2029453910649524225,2029453910649524225,2026-07-13 04:18:49
|
||||
2029460037076439042,2029460037076439042,2026-07-13 04:18:49
|
||||
2029791702193721346,2029791702193721346,2026-07-13 04:18:49
|
||||
2030807991217524738,2030807991217524738,2026-07-13 04:18:49
|
||||
2030808708082798593,2030808708082798593,2026-07-13 04:18:49
|
||||
2030810760108281858,2030810760108281858,2026-07-13 04:18:49
|
||||
2030819432481918978,2030819432481918978,2026-07-13 04:18:49
|
||||
2030819890042736641,2030819890042736641,2026-07-13 04:18:49
|
||||
2030823640950083585,2030823640950083585,2026-07-13 04:18:49
|
||||
2030828564689686530,2030828564689686530,2026-07-13 04:18:49
|
||||
2030829417903394818,2030829417903394818,2026-07-13 04:18:49
|
||||
2030900610333372417,2030900610333372417,2026-07-13 04:18:49
|
||||
2030903825477103618,2030903825477103618,2026-07-13 04:18:49
|
||||
2030903933404934145,2030903933404934145,2026-07-13 04:18:49
|
||||
2030921143510855682,2030921143510855682,2026-07-13 04:18:49
|
||||
2030921930274205697,2030921930274205697,2026-07-13 04:18:49
|
||||
2030925588357410818,2030925588357410818,2026-07-13 04:18:49
|
||||
2030929735395799042,2030929735395799042,2026-07-13 04:18:49
|
||||
2031211817779044353,2031211817779044353,2026-07-13 04:18:49
|
||||
2031238235304992770,2031238235304992770,2026-07-13 04:18:49
|
||||
2031245135052513281,2031245135052513281,2026-07-13 04:18:49
|
||||
2031245621075877890,2031245621075877890,2026-07-13 04:18:49
|
||||
2031255390356480001,2031255390356480001,2026-07-13 04:18:49
|
||||
2031255396459192322,2031255396459192322,2026-07-13 04:18:49
|
||||
2031261208355250178,2031261208355250178,2026-07-13 04:18:49
|
||||
2031269511768547330,2031269511768547330,2026-07-13 04:18:49
|
||||
2031277805824352257,2031277805824352257,2026-07-13 04:18:49
|
||||
2031293523605299201,2031293523605299201,2026-07-13 04:18:49
|
||||
2031555411257827329,2031555411257827329,2026-07-13 04:18:49
|
||||
2031565792613212162,2031565792613212162,2026-07-13 04:18:49
|
||||
2031573955638960129,2031573955638960129,2026-07-13 04:18:49
|
||||
2031630101754126337,2031630101754126337,2026-07-13 04:18:49
|
||||
2031640621236330497,2031640621236330497,2026-07-13 04:18:49
|
||||
2031660087437402114,2031660087437402114,2026-07-13 04:18:49
|
||||
2031899366700859393,2031899366700859393,2026-07-13 04:18:49
|
||||
2031899511869915138,2031899511869915138,2026-07-13 04:18:49
|
||||
2031901617448271873,2031901617448271873,2026-07-13 04:18:49
|
||||
2031901870595489793,2031901870595489793,2026-07-13 04:18:49
|
||||
2031907170845179906,2031907170845179906,2026-07-13 04:18:49
|
||||
2031973300632797185,2031973300632797185,2026-07-13 04:18:49
|
||||
2031984049908334593,2031984049908334593,2026-07-13 04:18:49
|
||||
2031987696616587265,2031987696616587265,2026-07-13 04:18:49
|
||||
2031994082255683585,2031994082255683585,2026-07-13 04:18:49
|
||||
2031994920244068354,2031994920244068354,2026-07-13 04:18:49
|
||||
2032000850356584449,2032000850356584449,2026-07-13 04:18:49
|
||||
2032028013646561282,2032028013646561282,2026-07-13 04:18:49
|
||||
2032030610054955010,2032030610054955010,2026-07-13 04:18:49
|
||||
2032030876674277378,2032030876674277378,2026-07-13 04:18:49
|
||||
2032322800761159681,2032322800761159681,2026-07-13 04:18:49
|
||||
2032331597156171778,2032331597156171778,2026-07-13 04:18:49
|
||||
2032339428974510082,2032339428974510082,2026-07-13 04:18:49
|
||||
2032342907927379970,2032342907927379970,2026-07-13 04:18:49
|
||||
2032346532049305601,2032346532049305601,2026-07-13 04:18:49
|
||||
2032379736030429185,2032379736030429185,2026-07-13 04:18:49
|
||||
2032387078457376770,2032387078457376770,2026-07-13 04:18:49
|
||||
2033341202715865090,2033341202715865090,2026-07-13 04:18:49
|
||||
2033343278086844417,2033343278086844417,2026-07-13 04:18:49
|
||||
2033349444565168130,2033349444565168130,2026-07-13 04:18:49
|
||||
2033355535566991362,2033355535566991362,2026-07-13 04:18:49
|
||||
2033362090484002818,2033362090484002818,2026-07-13 04:18:49
|
||||
2033393394302808066,2033393394302808066,2026-07-13 04:18:49
|
||||
2033467180851097601,2033467180851097601,2026-07-13 04:18:49
|
||||
2033470949114474497,2033470949114474497,2026-07-13 04:18:49
|
||||
2033472324418367490,2033472324418367490,2026-07-13 04:18:49
|
||||
2033474490990292993,2033474490990292993,2026-07-13 04:18:49
|
||||
2033711151665868801,2033711151665868801,2026-07-13 04:18:49
|
||||
2033711533456584705,2033711533456584705,2026-07-13 04:18:49
|
||||
2033711686443823105,2033711686443823105,2026-07-13 04:18:49
|
||||
2033716116182495233,2033716116182495233,2026-07-13 04:18:49
|
||||
2033731230549897217,2033731230549897217,2026-07-13 04:18:49
|
||||
2033770066306887681,2033770066306887681,2026-07-13 04:18:49
|
||||
2033771091436728321,2033771091436728321,2026-07-13 04:18:49
|
||||
2033846111093616641,2033846111093616641,2026-07-13 04:18:49
|
||||
2034068358999797762,2034068358999797762,2026-07-13 04:18:49
|
||||
2034069334146117633,2034069334146117633,2026-07-13 04:18:49
|
||||
2034195872627781634,2034195872627781634,2026-07-13 04:18:49
|
||||
2034428134019526658,2034428134019526658,2026-07-13 04:18:49
|
||||
2034461895889219586,2034461895889219586,2026-07-13 04:18:49
|
||||
2034462240770060289,2034462240770060289,2026-07-13 04:18:49
|
||||
2034498188526448642,2034498188526448642,2026-07-13 04:18:49
|
||||
2034500524497924097,2034500524497924097,2026-07-13 04:18:49
|
||||
2034505693692391426,2034505693692391426,2026-07-13 04:18:49
|
||||
2034505807173480450,2034505807173480450,2026-07-13 04:18:49
|
||||
2034505928875405313,2034505928875405313,2026-07-13 04:18:49
|
||||
2034527196618125313,2034527196618125313,2026-07-13 04:18:49
|
||||
2034825933299085314,2034825933299085314,2026-07-13 04:18:49
|
||||
2034859568953782273,2034859568953782273,2026-07-13 04:18:49
|
||||
2034904867818663937,2034904867818663937,2026-07-13 04:18:49
|
||||
2035878300710825985,2035878300710825985,2026-07-13 04:18:49
|
||||
2035878696141418498,2035878696141418498,2026-07-13 04:18:49
|
||||
2035880660019408897,2035880660019408897,2026-07-13 04:18:49
|
||||
2035881895313240066,2035881895313240066,2026-07-13 04:18:49
|
||||
2035919304935567362,2035919304935567362,2026-07-13 04:18:49
|
||||
2035919582707544065,2035919582707544065,2026-07-13 04:18:49
|
||||
2035945474548789250,2035945474548789250,2026-07-13 04:18:49
|
||||
2035945693696978945,2035945693696978945,2026-07-13 04:18:49
|
||||
2035948768079867906,2035948768079867906,2026-07-13 04:18:49
|
||||
2035951298990010369,2035951298990010369,2026-07-13 04:18:49
|
||||
2035951763790196738,2035951763790196738,2026-07-13 04:18:49
|
||||
2035951999585579010,2035951999585579010,2026-07-13 04:18:49
|
||||
2035992345774354434,2035992345774354434,2026-07-13 04:18:49
|
||||
2035992707436605441,2035992707436605441,2026-07-13 04:18:49
|
||||
2035995062462803970,2035995062462803970,2026-07-13 04:18:49
|
||||
2035999370491162625,2035999370491162625,2026-07-13 04:18:49
|
||||
2036003321097711618,2036003321097711618,2026-07-13 04:18:49
|
||||
2036253856228929538,2036253856228929538,2026-07-13 04:18:49
|
||||
2036255322809266177,2036255322809266177,2026-07-13 04:18:49
|
||||
2036330271834075137,2036330271834075137,2026-07-13 04:18:49
|
||||
2036365524397158402,2036365524397158402,2026-07-13 04:18:49
|
||||
2036681237200596993,2036681237200596993,2026-07-13 04:18:49
|
||||
2036728821197795329,2036728821197795329,2026-07-13 04:18:49
|
||||
2036728962289987586,2036728962289987586,2026-07-13 04:18:49
|
||||
2036983568878235649,2036983568878235649,2026-07-13 04:18:49
|
||||
2037090663661268993,2037090663661268993,2026-07-13 04:18:49
|
||||
2037093843363131393,2037093843363131393,2026-07-13 04:18:49
|
||||
2037104727674286081,2037104727674286081,2026-07-13 04:18:49
|
||||
2037107013079232514,2037107013079232514,2026-07-13 04:18:49
|
||||
2037359799796723713,2037359799796723713,2026-07-13 04:18:49
|
||||
2037369229846212610,2037369229846212610,2026-07-13 04:18:49
|
||||
2037423430861287426,2037423430861287426,2026-07-13 04:18:49
|
||||
2037445608533094401,2037445608533094401,2026-07-13 04:18:49
|
||||
2037447071367917570,2037447071367917570,2026-07-13 04:18:49
|
||||
2037467422063816705,2037467422063816705,2026-07-13 04:18:49
|
||||
2038414226297155586,2038414226297155586,2026-07-13 04:18:49
|
||||
2038414889596973058,2038414889596973058,2026-07-13 04:18:49
|
||||
2038415434583863298,2038415434583863298,2026-07-13 04:18:49
|
||||
2038419596340064258,2038419596340064258,2026-07-13 04:18:49
|
||||
2038429427134328834,2038429427134328834,2026-07-13 04:18:49
|
||||
2038444253223022594,2038444253223022594,2026-07-13 04:18:49
|
||||
2038471093593534466,2038471093593534466,2026-07-13 04:18:49
|
||||
2038472312688963585,2038472312688963585,2026-07-13 04:18:49
|
||||
2038476353900867585,2038476353900867585,2026-07-13 04:18:49
|
||||
2038492574989905921,2038492574989905921,2026-07-13 04:18:49
|
||||
2038498560542732290,2038498560542732290,2026-07-13 04:18:49
|
||||
2038513076777218049,2038513076777218049,2026-07-13 04:18:49
|
||||
2038522933915906049,2038522933915906049,2026-07-13 04:18:49
|
||||
2038539018924945410,2038539018924945410,2026-07-13 04:18:49
|
||||
2038540911218749442,2038540911218749442,2026-07-13 04:18:49
|
||||
2038548787005976578,2038548787005976578,2026-07-13 04:18:49
|
||||
2038791473977847810,2038791473977847810,2026-07-13 04:18:49
|
||||
2038792380308221954,2038792380308221954,2026-07-13 04:18:49
|
||||
2038820675988975618,2038820675988975618,2026-07-13 04:18:49
|
||||
2038873139350040577,2038873139350040577,2026-07-13 04:18:49
|
||||
2039168530733821953,2039168530733821953,2026-07-13 04:18:49
|
||||
2039171746032742402,2039171746032742402,2026-07-13 04:18:49
|
||||
2039223385003356162,2039223385003356162,2026-07-13 04:18:49
|
||||
2039527691946520578,2039527691946520578,2026-07-13 04:18:49
|
||||
2039527784019881985,2039527784019881985,2026-07-13 04:18:49
|
||||
2039886747274014722,2039886747274014722,2026-07-13 04:18:49
|
||||
2039958618766012417,2039958618766012417,2026-07-13 04:18:49
|
||||
2039987290570977282,2039987290570977282,2026-07-13 04:18:49
|
||||
2041330025487888386,2041330025487888386,2026-07-13 04:18:49
|
||||
2041355992486866946,2041355992486866946,2026-07-13 04:18:49
|
||||
2041388092460068866,2041388092460068866,2026-07-13 04:18:49
|
||||
2041391008734474241,2041391008734474241,2026-07-13 04:18:49
|
||||
2041394530490216449,2041394530490216449,2026-07-13 04:18:49
|
||||
2041416367710367746,2041416367710367746,2026-07-13 04:18:49
|
||||
2041435826147782658,2041435826147782658,2026-07-13 04:18:49
|
||||
2041444271517298690,2041444271517298690,2026-07-13 04:18:49
|
||||
2041446507198771202,2041446507198771202,2026-07-13 04:18:49
|
||||
2041450043189981186,2041450043189981186,2026-07-13 04:18:49
|
||||
2041681997902606337,2041681997902606337,2026-07-13 04:18:49
|
||||
2041764119275335681,2041764119275335681,2026-07-13 04:18:49
|
||||
2041784106744508417,2041784106744508417,2026-07-13 04:18:49
|
||||
2041785698403184641,2041785698403184641,2026-07-13 04:18:49
|
||||
2042041652206071810,2042041652206071810,2026-07-13 04:18:49
|
||||
2042056523672940545,2042056523672940545,2026-07-13 04:18:49
|
||||
2042066093543747585,2042066093543747585,2026-07-13 04:18:49
|
||||
2042073403942989826,2042073403942989826,2026-07-13 04:18:49
|
||||
2042090801702072322,2042090801702072322,2026-07-13 04:18:49
|
||||
2042135009641066498,2042135009641066498,2026-07-13 04:18:49
|
||||
2042180718083928065,2042180718083928065,2026-07-13 04:18:49
|
||||
2042492563822964738,2042492563822964738,2026-07-13 04:18:49
|
||||
2042501619832811521,2042501619832811521,2026-07-13 04:18:49
|
||||
2042501858572595201,2042501858572595201,2026-07-13 04:18:49
|
||||
2042502354519683073,2042502354519683073,2026-07-13 04:18:49
|
||||
2042502610183483393,2042502610183483393,2026-07-13 04:18:49
|
||||
2042502771332837377,2042502771332837377,2026-07-13 04:18:49
|
||||
2042543623375646722,2042543623375646722,2026-07-13 04:18:49
|
||||
2043494795729137666,2043494795729137666,2026-07-13 04:18:49
|
||||
2043502447595057153,2043502447595057153,2026-07-13 04:18:49
|
||||
2043516159412367361,2043516159412367361,2026-07-13 04:18:49
|
||||
2043559655422783490,2043559655422783490,2026-07-13 04:18:49
|
||||
2043574463597604866,2043574463597604866,2026-07-13 04:18:49
|
||||
2043575661025259522,2043575661025259522,2026-07-13 04:18:49
|
||||
2043578769109381121,2043578769109381121,2026-07-13 04:18:49
|
||||
2043581800861364225,2043581800861364225,2026-07-13 04:18:49
|
||||
2043585707419332609,2043585707419332609,2026-07-13 04:18:49
|
||||
2043588461349007361,2043588461349007361,2026-07-13 04:18:49
|
||||
2043595420068442114,2043595420068442114,2026-07-13 04:18:49
|
||||
2043595781189627906,2043595781189627906,2026-07-13 04:18:49
|
||||
2043865018609135617,2043865018609135617,2026-07-13 04:18:49
|
||||
2043890438423408642,2043890438423408642,2026-07-13 04:18:49
|
||||
2043950197184884738,2043950197184884738,2026-07-13 04:18:49
|
||||
2044214139157180417,2044214139157180417,2026-07-13 04:18:49
|
||||
2044218447298785281,2044218447298785281,2026-07-13 04:18:49
|
||||
2044219196028186625,2044219196028186625,2026-07-13 04:18:49
|
||||
2044222683839426561,2044222683839426561,2026-07-13 04:18:49
|
||||
2044223020486848514,2044223020486848514,2026-07-13 04:18:49
|
||||
2044227970369548289,2044227970369548289,2026-07-13 04:18:49
|
||||
2044320372983820289,2044320372983820289,2026-07-13 04:18:49
|
||||
2044324763182788609,2044324763182788609,2026-07-13 04:18:49
|
||||
2044325764480593922,2044325764480593922,2026-07-13 04:18:49
|
||||
2044347682495623169,2044347682495623169,2026-07-13 04:18:49
|
||||
2044583595360350210,2044583595360350210,2026-07-13 04:18:49
|
||||
2044591481868218370,2044591481868218370,2026-07-13 04:18:49
|
||||
2044598054430666754,2044598054430666754,2026-07-13 04:18:49
|
||||
2044634930432667650,2044634930432667650,2026-07-13 04:18:49
|
||||
2044636088333201410,2044636088333201410,2026-07-13 04:18:49
|
||||
2044950444921024513,2044950444921024513,2026-07-13 04:18:49
|
||||
2044973672984965121,2044973672984965121,2026-07-13 04:18:49
|
||||
2045015393886236674,2045015393886236674,2026-07-13 04:18:49
|
||||
2045027174989918210,2045027174989918210,2026-07-13 04:18:49
|
||||
2045027239343124482,2045027239343124482,2026-07-13 04:18:49
|
||||
2045027523683381249,2045027523683381249,2026-07-13 04:18:49
|
||||
2045028351068565505,2045028351068565505,2026-07-13 04:18:49
|
||||
2045077892975259649,2045077892975259649,2026-07-13 04:18:49
|
||||
2046024319104663554,2046024319104663554,2026-07-13 04:18:49
|
||||
2046024548210130946,2046024548210130946,2026-07-13 04:18:49
|
||||
2046026101297987585,2046026101297987585,2026-07-13 04:18:49
|
||||
2046029134090158082,2046029134090158082,2026-07-13 04:18:49
|
||||
2046030770539806722,2046030770539806722,2026-07-13 04:18:49
|
||||
2046038424888754177,2046038424888754177,2026-07-13 04:18:49
|
||||
2046040755688652802,2046040755688652802,2026-07-13 04:18:49
|
||||
2046124384666206209,2046124384666206209,2026-07-13 04:18:49
|
||||
2046139706894925826,2046139706894925826,2026-07-13 04:18:49
|
||||
2046480135813283842,2046480135813283842,2026-07-13 04:18:49
|
||||
2046509747524026370,2046509747524026370,2026-07-13 04:18:49
|
||||
2046516222791204866,2046516222791204866,2026-07-13 04:18:49
|
||||
2046523638853353474,2046523638853353474,2026-07-13 04:18:49
|
||||
2046564215233871874,2046564215233871874,2026-07-13 04:18:49
|
||||
2046763261441507330,2046763261441507330,2026-07-13 04:18:49
|
||||
2046773631774261249,2046773631774261249,2026-07-13 04:18:49
|
||||
2046778667531141122,2046778667531141122,2026-07-13 04:18:49
|
||||
2046818123181096962,2046818123181096962,2026-07-13 04:18:49
|
||||
2046818451544768514,2046818451544768514,2026-07-13 04:18:49
|
||||
2046822089457565697,2046822089457565697,2026-07-13 04:18:49
|
||||
2046837499095580674,2046837499095580674,2026-07-13 04:18:49
|
||||
2046845366276096002,2046845366276096002,2026-07-13 04:18:49
|
||||
2046846607987212290,2046846607987212290,2026-07-13 04:18:49
|
||||
2047112728833327105,2047112728833327105,2026-07-13 04:18:49
|
||||
2047139601030217730,2047139601030217730,2026-07-13 04:18:49
|
||||
2047215524983242754,2047215524983242754,2026-07-13 04:18:49
|
||||
2047215840529121282,2047215840529121282,2026-07-13 04:18:49
|
||||
2047476240084533250,2047476240084533250,2026-07-13 04:18:49
|
||||
2047501355505582081,2047501355505582081,2026-07-13 04:18:49
|
||||
2047508860348563457,2047508860348563457,2026-07-13 04:18:49
|
||||
2047596114723110913,2047596114723110913,2026-07-13 04:18:49
|
||||
2048560123660173314,2048560123660173314,2026-07-13 04:18:49
|
||||
2048564668968697857,2048564668968697857,2026-07-13 04:18:49
|
||||
2048567558953205762,2048567558953205762,2026-07-13 04:18:49
|
||||
2048568167471218690,2048568167471218690,2026-07-13 04:18:49
|
||||
2048597839684796417,2048597839684796417,2026-07-13 04:18:49
|
||||
2048604463396782082,2048604463396782082,2026-07-13 04:18:49
|
||||
2048631866403815426,2048631866403815426,2026-07-13 04:18:49
|
||||
2048632273733648385,2048632273733648385,2026-07-13 04:18:49
|
||||
2048632496283418625,2048632496283418625,2026-07-13 04:18:49
|
||||
2048633221172396033,2048633221172396033,2026-07-13 04:18:49
|
||||
2048633786329694210,2048633786329694210,2026-07-13 04:18:49
|
||||
2048642933012004866,2048642933012004866,2026-07-13 04:18:49
|
||||
2048643059902283778,2048643059902283778,2026-07-13 04:18:49
|
||||
2048646869211119617,2048646869211119617,2026-07-13 04:18:49
|
||||
2048649042900779009,2048649042900779009,2026-07-13 04:18:49
|
||||
2048659532259491842,2048659532259491842,2026-07-13 04:18:49
|
||||
2048694526088544257,2048694526088544257,2026-07-13 04:18:49
|
||||
2048697175898816513,2048697175898816513,2026-07-13 04:18:49
|
||||
2049293919548309505,2049293919548309505,2026-07-13 04:18:49
|
||||
2049295088089792514,2049295088089792514,2026-07-13 04:18:49
|
||||
2049364288380567553,2049364288380567553,2026-07-13 04:18:49
|
||||
2049417740825624577,2049417740825624577,2026-07-13 04:18:49
|
||||
2049660376429854721,2049660376429854721,2026-07-13 04:18:49
|
||||
2049661915089305602,2049661915089305602,2026-07-13 04:18:49
|
||||
2049679623738589185,2049679623738589185,2026-07-13 04:18:49
|
||||
2049719008857128962,2049719008857128962,2026-07-13 04:18:49
|
||||
2049739745143783426,2049739745143783426,2026-07-13 04:18:49
|
||||
2049771942932348930,2049771942932348930,2026-07-13 04:18:49
|
||||
2051833566426005506,2051833566426005506,2026-07-13 04:18:49
|
||||
2051891212692717569,2051891212692717569,2026-07-13 04:18:49
|
||||
2051896739220914178,2051896739220914178,2026-07-13 04:18:49
|
||||
2051912963577315329,2051912963577315329,2026-07-13 04:18:49
|
||||
2051937071828533250,2051937071828533250,2026-07-13 04:18:49
|
||||
2051946510845444097,2051946510845444097,2026-07-13 04:18:49
|
||||
2052182649959317506,2052182649959317506,2026-07-13 04:18:49
|
||||
2052192453834539010,2052192453834539010,2026-07-13 04:18:49
|
||||
2052230484016726018,2052230484016726018,2026-07-13 04:18:49
|
||||
2052236443845885953,2052236443845885953,2026-07-13 04:18:49
|
||||
2052259021960478722,2052259021960478722,2026-07-13 04:18:49
|
||||
2052259879368491009,2052259879368491009,2026-07-13 04:18:49
|
||||
2052320625381048322,2052320625381048322,2026-07-13 04:18:49
|
||||
2052635344272850946,2052635344272850946,2026-07-13 04:18:49
|
||||
2052653385333309441,2052653385333309441,2026-07-13 04:18:49
|
||||
2052927282939133953,2052927282939133953,2026-07-13 04:18:49
|
||||
2052929733582880769,2052929733582880769,2026-07-13 04:18:49
|
||||
2052930482236784641,2052930482236784641,2026-07-13 04:18:49
|
||||
2052930658280112129,2052930658280112129,2026-07-13 04:18:49
|
||||
2052931567231926273,2052931567231926273,2026-07-13 04:18:49
|
||||
2052978058449354753,2052978058449354753,2026-07-13 04:18:49
|
||||
2053033084869902338,2053033084869902338,2026-07-13 04:18:49
|
||||
2053634505747152898,2053634505747152898,2026-07-13 04:18:49
|
||||
2053654729452109826,2053654729452109826,2026-07-13 04:18:49
|
||||
2053655677234790401,2053655677234790401,2026-07-13 04:18:49
|
||||
2053673850575208450,2053673850575208450,2026-07-13 04:18:49
|
||||
2053728175569715202,2053728175569715202,2026-07-13 04:18:49
|
||||
2053761002222862337,2053761002222862337,2026-07-13 04:18:49
|
||||
2053761150231461890,2053761150231461890,2026-07-13 04:18:49
|
||||
2053764314661863425,2053764314661863425,2026-07-13 04:18:49
|
||||
2053776494127955970,2053776494127955970,2026-07-13 04:18:49
|
||||
2054011616156663810,2054011616156663810,2026-07-13 04:18:49
|
||||
2054358386044780545,2054358386044780545,2026-07-13 04:18:49
|
||||
2054375585362952194,2054375585362952194,2026-07-13 04:18:49
|
||||
2054439378965184513,2054439378965184513,2026-07-13 04:18:49
|
||||
2054464385590181890,2054464385590181890,2026-07-13 04:18:49
|
||||
2054485889606434818,2054485889606434818,2026-07-13 04:18:49
|
||||
2054843920424845313,2054843920424845313,2026-07-13 04:18:49
|
||||
2055085313424572418,2055085313424572418,2026-07-13 04:18:49
|
||||
2055093783653728258,2055093783653728258,2026-07-13 04:18:49
|
||||
2055104550398541826,2055104550398541826,2026-07-13 04:18:49
|
||||
2055127525231378434,2055127525231378434,2026-07-13 04:18:49
|
||||
2055167266156920834,2055167266156920834,2026-07-13 04:18:49
|
||||
2055168321099874306,2055168321099874306,2026-07-13 04:18:49
|
||||
2056182440531804162,2056182440531804162,2026-07-13 04:18:49
|
||||
2056182737853431810,2056182737853431810,2026-07-13 04:18:49
|
||||
2056207743983501314,2056207743983501314,2026-07-13 04:18:49
|
||||
2056214509370687490,2056214509370687490,2026-07-13 04:18:49
|
||||
2056214935990124546,2056214935990124546,2026-07-13 04:18:49
|
||||
2056558525924732930,2056558525924732930,2026-07-13 04:18:49
|
||||
2056559041278865410,2056559041278865410,2026-07-13 04:18:49
|
||||
2056563268248104962,2056563268248104962,2026-07-13 04:18:49
|
||||
2056646147934220290,2056646147934220290,2026-07-13 04:18:49
|
||||
2056977006281322497,2056977006281322497,2026-07-13 04:18:49
|
||||
2056977991598829569,2056977991598829569,2026-07-13 04:18:49
|
||||
2056979157841833986,2056979157841833986,2026-07-13 04:18:49
|
||||
2056987886586916865,2056987886586916865,2026-07-13 04:18:49
|
||||
2056995930553151489,2056995930553151489,2026-07-13 04:18:49
|
||||
2057034441050255361,2057034441050255361,2026-07-13 04:18:49
|
||||
2057041653059514369,2057041653059514369,2026-07-13 04:18:49
|
||||
2057343614367526913,2057343614367526913,2026-07-13 04:18:49
|
||||
2057622856070295553,2057622856070295553,2026-07-13 04:18:49
|
||||
2057664385673555970,2057664385673555970,2026-07-13 04:18:49
|
||||
2057755891222671361,2057755891222671361,2026-07-13 04:18:49
|
||||
2057758891483820034,2057758891483820034,2026-07-13 04:18:49
|
||||
2058709162917588994,2058709162917588994,2026-07-13 04:18:49
|
||||
2058745673406967810,2058745673406967810,2026-07-13 04:18:49
|
||||
2058817426548289538,2058817426548289538,2026-07-13 04:18:49
|
||||
2058848347787849730,2058848347787849730,2026-07-13 04:18:49
|
||||
2058848462804054017,2058848462804054017,2026-07-13 04:18:49
|
||||
2059074620485234690,2059074620485234690,2026-07-13 04:18:49
|
||||
2059099804604788738,2059099804604788738,2026-07-13 04:18:49
|
||||
2059107471658283010,2059107471658283010,2026-07-13 04:18:49
|
||||
2059115438495461378,2059115438495461378,2026-07-13 04:18:49
|
||||
2059147463424176129,2059147463424176129,2026-07-13 04:18:49
|
||||
2059151055342235650,2059151055342235650,2026-07-13 04:18:49
|
||||
2059153689922990081,2059153689922990081,2026-07-13 04:18:49
|
||||
2059169035442679809,2059169035442679809,2026-07-13 04:18:49
|
||||
2059175278840344577,2059175278840344577,2026-07-13 04:18:49
|
||||
2059451607582208001,2059451607582208001,2026-07-13 04:18:49
|
||||
2059456742110752770,2059456742110752770,2026-07-13 04:18:49
|
||||
2059457098421071874,2059457098421071874,2026-07-13 04:18:49
|
||||
2059563592240033794,2059563592240033794,2026-07-13 04:18:49
|
||||
2059796527157309442,2059796527157309442,2026-07-13 04:18:49
|
||||
2059797217606856706,2059797217606856706,2026-07-13 04:18:49
|
||||
2059797736886857730,2059797736886857730,2026-07-13 04:18:49
|
||||
2059798109815009282,2059798109815009282,2026-07-13 04:18:49
|
||||
2059809429704634370,2059809429704634370,2026-07-13 04:18:49
|
||||
2059810588934762497,2059810588934762497,2026-07-13 04:18:49
|
||||
2059853536158248962,2059853536158248962,2026-07-13 04:18:49
|
||||
2059859387753394177,2059859387753394177,2026-07-13 04:18:49
|
||||
2060169950949765122,2060169950949765122,2026-07-13 04:18:49
|
||||
2060180190923550721,2060180190923550721,2026-07-13 04:18:49
|
||||
2060201834769510401,2060201834769510401,2026-07-13 04:18:49
|
||||
2061245625710387202,2061245625710387202,2026-07-13 04:18:49
|
||||
2061246910652194818,2061246910652194818,2026-07-13 04:18:49
|
||||
2061264989587218433,2061264989587218433,2026-07-13 04:18:49
|
||||
2061279795673276418,2061279795673276418,2026-07-13 04:18:49
|
||||
2061279964833751042,2061279964833751042,2026-07-13 04:18:49
|
||||
2061317978964336641,2061317978964336641,2026-07-13 04:18:49
|
||||
2061329975101595649,2061329975101595649,2026-07-13 04:18:49
|
||||
2061364997175091201,2061364997175091201,2026-07-13 04:18:49
|
||||
2061387043883950081,2061387043883950081,2026-07-13 04:18:49
|
||||
2061638501636218881,2061638501636218881,2026-07-13 04:18:49
|
||||
2061639076423639042,2061639076423639042,2026-07-13 04:18:49
|
||||
2061640959615803393,2061640959615803393,2026-07-13 04:18:49
|
||||
2061689548706652161,2061689548706652161,2026-07-13 04:18:49
|
||||
2061722722480398338,2061722722480398338,2026-07-13 04:18:49
|
||||
2061729267616292866,2061729267616292866,2026-07-13 04:18:49
|
||||
2061744931315884034,2061744931315884034,2026-07-13 04:18:49
|
||||
2061745434397483010,2061745434397483010,2026-07-13 04:18:49
|
||||
2062038284758654977,2062038284758654977,2026-07-13 04:18:49
|
||||
2062039258537631746,2062039258537631746,2026-07-13 04:18:49
|
||||
2062090976289857537,2062090976289857537,2026-07-13 04:18:49
|
||||
2062100283261689857,2062100283261689857,2026-07-13 04:18:49
|
||||
2062100686086840322,2062100686086840322,2026-07-13 04:18:49
|
||||
2062716907916337154,2062716907916337154,2026-07-13 04:18:49
|
||||
2062720124578406402,2062720124578406402,2026-07-13 04:18:49
|
||||
2062722263354679298,2062722263354679298,2026-07-13 04:18:49
|
||||
2062767214297849857,2062767214297849857,2026-07-13 04:18:49
|
||||
2063782791292362753,2063782791292362753,2026-07-13 04:18:49
|
||||
2063782962696790017,2063782962696790017,2026-07-13 04:18:49
|
||||
2063783494471622658,2063783494471622658,2026-07-13 04:18:49
|
||||
2063806800499286018,2063806800499286018,2026-07-13 04:18:49
|
||||
2063818092807168002,2063818092807168002,2026-07-13 04:18:49
|
||||
2063819167891169281,2063819167891169281,2026-07-13 04:18:49
|
||||
2063822862854889473,2063822862854889473,2026-07-13 04:18:49
|
||||
2063850472553029634,2063850472553029634,2026-07-13 04:18:49
|
||||
2063856343492304897,2063856343492304897,2026-07-13 04:18:49
|
||||
2064149461982748674,2064149461982748674,2026-07-13 04:18:49
|
||||
2064149816409825281,2064149816409825281,2026-07-13 04:18:49
|
||||
2064154888187387906,2064154888187387906,2026-07-13 04:18:49
|
||||
2064227028723015682,2064227028723015682,2026-07-13 04:18:49
|
||||
2064230977668620290,2064230977668620290,2026-07-13 04:18:49
|
||||
2064258200047951874,2064258200047951874,2026-07-13 04:18:49
|
||||
2064508780255354882,2064508780255354882,2026-07-13 04:18:49
|
||||
2064550320000442369,2064550320000442369,2026-07-13 04:18:49
|
||||
2064586518207111169,2064586518207111169,2026-07-13 04:18:49
|
||||
2064601301597790210,2064601301597790210,2026-07-13 04:18:49
|
||||
2064606873260892161,2064606873260892161,2026-07-13 04:18:49
|
||||
2064607083580071938,2064607083580071938,2026-07-13 04:18:49
|
||||
2064618197520982017,2064618197520982017,2026-07-13 04:18:49
|
||||
2064907222462996481,2064907222462996481,2026-07-13 04:18:49
|
||||
2064908292723548162,2064908292723548162,2026-07-13 04:18:49
|
||||
2064908950763708418,2064908950763708418,2026-07-13 04:18:49
|
||||
2064909083823808514,2064909083823808514,2026-07-13 04:18:49
|
||||
2064910298754293761,2064910298754293761,2026-07-13 04:18:49
|
||||
2064960587653947394,2064960587653947394,2026-07-13 04:18:49
|
||||
2065238723020955650,2065238723020955650,2026-07-13 04:18:49
|
||||
2065244912249184257,2065244912249184257,2026-07-13 04:18:49
|
||||
2065308755818160129,2065308755818160129,2026-07-13 04:18:49
|
||||
2066343894975225858,2066343894975225858,2026-07-13 04:18:49
|
||||
2066386845667401729,2066386845667401729,2026-07-13 04:18:49
|
||||
2066399390532870145,2066399390532870145,2026-07-13 04:18:49
|
||||
2066410878865743873,2066410878865743873,2026-07-13 04:18:49
|
||||
2066415494319808514,2066415494319808514,2026-07-13 04:18:49
|
||||
2066421247353004034,2066421247353004034,2026-07-13 04:18:49
|
||||
2066455021784637442,2066455021784637442,2026-07-13 04:18:49
|
||||
2066690815317221377,2066690815317221377,2026-07-13 04:18:49
|
||||
2066704946946613249,2066704946946613249,2026-07-13 04:18:49
|
||||
2066718409949421570,2066718409949421570,2026-07-13 04:18:49
|
||||
2066719579136827394,2066719579136827394,2026-07-13 04:18:49
|
||||
2066802017238228994,2066802017238228994,2026-07-13 04:18:49
|
||||
2066813220660420609,2066813220660420609,2026-07-13 04:18:49
|
||||
2067044366086283265,2067044366086283265,2026-07-13 04:18:49
|
||||
2067079183595184129,2067079183595184129,2026-07-13 04:18:49
|
||||
2067081330797813762,2067081330797813762,2026-07-13 04:18:49
|
||||
2067147233333846018,2067147233333846018,2026-07-13 04:18:49
|
||||
2067152449378689026,2067152449378689026,2026-07-13 04:18:49
|
||||
2067535372669919234,2067535372669919234,2026-07-13 04:18:49
|
||||
2068866280698126338,2068866280698126338,2026-07-13 04:18:49
|
||||
2068927496187518978,2068927496187518978,2026-07-13 04:18:49
|
||||
2068983356720914434,2068983356720914434,2026-07-13 04:18:49
|
||||
2068988043650113538,2068988043650113538,2026-07-13 04:18:49
|
||||
2068993218041323522,2068993218041323522,2026-07-13 04:18:49
|
||||
2069223141964226561,2069223141964226561,2026-07-13 04:18:49
|
||||
2069247504818085890,2069247504818085890,2026-07-13 04:18:49
|
||||
2069247739040604162,2069247739040604162,2026-07-13 04:18:49
|
||||
2069254829574430721,2069254829574430721,2026-07-13 04:18:49
|
||||
2069255067391467521,2069255067391467521,2026-07-13 04:18:49
|
||||
2069255758138810370,2069255758138810370,2026-07-13 04:18:49
|
||||
2069327132010192898,2069327132010192898,2026-07-13 04:18:49
|
||||
2069338266373169154,2069338266373169154,2026-07-13 04:18:49
|
||||
2069358882157469698,2069358882157469698,2026-07-13 04:18:49
|
||||
2069588101609267201,2069588101609267201,2026-07-13 04:18:49
|
||||
2069588340013506562,2069588340013506562,2026-07-13 04:18:49
|
||||
2069619545123561473,2069619545123561473,2026-07-13 04:18:49
|
||||
2069648852260724737,2069648852260724737,2026-07-13 04:18:49
|
||||
2069649990888431618,2069649990888431618,2026-07-13 04:18:49
|
||||
2069652376734375937,2069652376734375937,2026-07-13 04:18:49
|
||||
2069694597185642497,2069694597185642497,2026-07-13 04:18:49
|
||||
2069723098609590274,2069723098609590274,2026-07-13 04:18:49
|
||||
2069949950733295618,2069949950733295618,2026-07-13 04:18:49
|
||||
2069958309381382146,2069958309381382146,2026-07-13 04:18:49
|
||||
2069976796409602049,2069976796409602049,2026-07-13 04:18:49
|
||||
2069983181495050242,2069983181495050242,2026-07-13 04:18:49
|
||||
2070033888063496194,2070033888063496194,2026-07-13 04:18:49
|
||||
2070055258939957250,2070055258939957250,2026-07-13 04:18:49
|
||||
2070067397029240834,2070067397029240834,2026-07-13 04:18:49
|
||||
2070071457987928066,2070071457987928066,2026-07-13 04:18:49
|
||||
2070308558507581442,2070308558507581442,2026-07-13 04:18:49
|
||||
2070345969123958785,2070345969123958785,2026-07-13 04:18:49
|
||||
2070380019133947905,2070380019133947905,2026-07-13 04:18:49
|
||||
2070386291887546369,2070386291887546369,2026-07-13 04:18:49
|
||||
2070415092558307329,2070415092558307329,2026-07-13 04:18:49
|
||||
2070427997961953281,2070427997961953281,2026-07-13 04:18:49
|
||||
2071403271767695361,2071403271767695361,2026-07-13 04:18:49
|
||||
2071481933963698177,2071481933963698177,2026-07-13 04:18:49
|
||||
2071514791260430338,2071514791260430338,2026-07-13 04:18:49
|
||||
2071761154535563266,2071761154535563266,2026-07-13 04:18:49
|
||||
2071761365701992450,2071761365701992450,2026-07-13 04:18:49
|
||||
2071885398045073410,2071885398045073410,2026-07-13 04:18:49
|
||||
2071890420719919106,2071890420719919106,2026-07-13 04:18:49
|
||||
2072120019026411522,2072120019026411522,2026-07-13 04:18:49
|
||||
2072125448326447105,2072125448326447105,2026-07-13 04:18:49
|
||||
2072142588735619073,2072142588735619073,2026-07-13 04:18:49
|
||||
2072205622241886210,2072205622241886210,2026-07-13 04:18:49
|
||||
2072214115132866561,2072214115132866561,2026-07-13 04:18:49
|
||||
2072214988412125185,2072214988412125185,2026-07-13 04:18:49
|
||||
2072238448538517506,2072238448538517506,2026-07-13 04:18:49
|
||||
2072546744302534657,2072546744302534657,2026-07-13 04:18:49
|
||||
2072547087509848066,2072547087509848066,2026-07-13 04:18:49
|
||||
2072850319733915649,2072850319733915649,2026-07-13 04:18:49
|
||||
2073938136228659201,2073938136228659201,2026-07-13 04:18:49
|
||||
2073938309306613761,2073938309306613761,2026-07-13 04:18:49
|
||||
2073952121745276929,2073952121745276929,2026-07-13 04:18:49
|
||||
2073962551955914754,2073962551955914754,2026-07-13 04:18:49
|
||||
2073998470469615618,2073998470469615618,2026-07-13 04:18:49
|
||||
2074044261762564097,2074044261762564097,2026-07-13 04:18:49
|
||||
2074070079540789249,2074070079540789249,2026-07-13 04:18:49
|
||||
2074070200177360897,2074070200177360897,2026-07-13 04:18:49
|
||||
2074070834033164289,2074070834033164289,2026-07-13 04:18:49
|
||||
2074294022713344002,2074294022713344002,2026-07-13 04:18:49
|
||||
2074311158563307521,2074311158563307521,2026-07-13 04:18:49
|
||||
2074382308681154561,2074382308681154561,2026-07-13 04:18:49
|
||||
2074424336890691585,2074424336890691585,2026-07-13 04:18:49
|
||||
2074661250486992897,2074661250486992897,2026-07-13 04:18:49
|
||||
2074669984223297538,2074669984223297538,2026-07-13 04:18:49
|
||||
2074671645704552450,2074671645704552450,2026-07-13 04:18:49
|
||||
2074674051662184450,2074674051662184450,2026-07-13 04:18:49
|
||||
2074679892968701954,2074679892968701954,2026-07-13 04:18:49
|
||||
2074693718208380930,2074693718208380930,2026-07-13 04:18:49
|
||||
2074694158702575618,2074694158702575618,2026-07-13 04:18:49
|
||||
2074724734423760898,2074724734423760898,2026-07-13 04:18:49
|
||||
2074748445113679874,2074748445113679874,2026-07-13 04:18:49
|
||||
2074770468674174977,2074770468674174977,2026-07-13 04:18:49
|
||||
2074793037276086273,2074793037276086273,2026-07-13 04:18:49
|
||||
2074793274912768001,2074793274912768001,2026-07-13 04:18:49
|
||||
2074793784919162881,2074793784919162881,2026-07-13 04:18:49
|
||||
2074793991698350081,2074793991698350081,2026-07-13 04:18:49
|
||||
2075032029305208833,2075032029305208833,2026-07-13 04:18:49
|
||||
2075133740795527169,2075133740795527169,2026-07-13 04:18:49
|
||||
2075387517955964929,2075387517955964929,2026-07-13 04:18:49
|
||||
|
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"generated_at": "2026-07-12T19:39:46",
|
||||
"removed_old_roles": 6,
|
||||
"module_menu_roots": [
|
||||
"CRM00000000000000000000000000001",
|
||||
"BX00000000000000000000000000001",
|
||||
"DB00000000000000000000000000001",
|
||||
"PL_MENU_ROOT"
|
||||
],
|
||||
"subtree_menu_count": 144,
|
||||
"leaf_menu_count": 107,
|
||||
"menu_grants_per_role": {
|
||||
"管理员": 107,
|
||||
"销售主管": 107,
|
||||
"销售计划员": 107,
|
||||
"销售实录员": 107,
|
||||
"销售办证员": 107
|
||||
},
|
||||
"user_role_assignments": [
|
||||
{
|
||||
"user_no": "吴良萍",
|
||||
"role_name": "管理员",
|
||||
"status": "inserted"
|
||||
},
|
||||
{
|
||||
"user_no": "吴九华",
|
||||
"role_name": "管理员",
|
||||
"status": "inserted"
|
||||
},
|
||||
{
|
||||
"user_no": "汪璇",
|
||||
"role_name": "管理员",
|
||||
"status": "inserted"
|
||||
},
|
||||
{
|
||||
"user_no": "方金强",
|
||||
"role_name": "销售主管",
|
||||
"status": "inserted"
|
||||
},
|
||||
{
|
||||
"user_no": "吴九华",
|
||||
"role_name": "销售主管",
|
||||
"status": "inserted"
|
||||
},
|
||||
{
|
||||
"user_no": "程欢欢",
|
||||
"role_name": "销售计划员",
|
||||
"status": "inserted"
|
||||
},
|
||||
{
|
||||
"user_no": "郑丽娜",
|
||||
"role_name": "销售实录员",
|
||||
"status": "inserted"
|
||||
},
|
||||
{
|
||||
"user_no": "刘丹",
|
||||
"role_name": "销售办证员",
|
||||
"status": "inserted"
|
||||
}
|
||||
],
|
||||
"new_roles": {
|
||||
"管理员": "R65CAAE057914CCCAE2A81BE627A5001",
|
||||
"销售主管": "R65CAAE057914CCCAE2A81BE627A5002",
|
||||
"销售计划员": "R65CAAE057914CCCAE2A81BE627A5003",
|
||||
"销售实录员": "R65CAAE057914CCCAE2A81BE627A5004",
|
||||
"销售办证员": "R65CAAE057914CCCAE2A81BE627A5005"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
user_no,nick_name,phone_no,dept_name,initial_password,new_user_id
|
||||
刘丹,刘丹,13865565378,销售部,5811,2C0E880DFAA243189D800A3059930176
|
||||
刘端,刘端,18749617637,生产现场部,6939,7FAF8526615A49ECB7BEC72D0CA9FF2C
|
||||
刘茂生,刘茂生,18955618780,生产现场部,4267,2ABE4F0837CF45B9A2DA5A74CF27AA5C
|
||||
刘道银,刘道银,15855555833,生产现场部,1650,08522A6338BE4D358456F95723E6FCBF
|
||||
吴九华,吴九华,18656008189,安庆市山峡化工有限公司,4300,56D1C9DA5F6747DDAD25C248A156A524
|
||||
吴春生,吴春生,18805561555,生产现场部,5996,EDD98825DCCB46A082317615EAF6938B
|
||||
吴祚权,吴祚权,19855069273,生产现场部,3909,3750E0024772402D8A0BD5787435E2D5
|
||||
吴自国,吴自国,15155081585,生产现场部,4275,58B275B718484890A80CD5F62DDF783E
|
||||
吴自寨,吴自寨,13855607262,生产现场部,3389,0207FAF9F494479AA3F2D8B0A038F114
|
||||
吴良萍,吴良萍,18855101814,人力资源部,9319,035B8D7AAD534D50B0D2947755F55327
|
||||
宋健,宋健,18297798890,生产现场部,0586,3607B82A7F7A40D89F74882A2A9ACB48
|
||||
方金强,方金强,18110402102,销售部,7643,02584218205246EEB5F2AC96DF465A9D
|
||||
方长彪,方长彪,13225569301,生产现场部,3497,7B77364824494995BE9475DFB3B01CC6
|
||||
李勤,李勤,13470794894,生产现场部,3974,72BF945572DA407AAE8F47A9D753CF1E
|
||||
汪华胜,汪华胜,13976616618,生产现场部,7365,9DE3D0F49ED744998422F682826ADB24
|
||||
汪璇,汪璇,18895395317,财务部门,4143,CC2EED9A86F44D11AFFD0AD381893093
|
||||
沈卫斌,沈卫斌,18756693937,生产现场部,3728,6D0BF07141DD4087A1856F1D25825D98
|
||||
潘光荣,潘光荣,13955614150,生产现场部,5712,99E7C53701DF4195A0332C32231EAE70
|
||||
王伍云,王伍云,18815716809,生产现场部,8053,C3EBA2DA5FA341219D1BE1CDCC0433D9
|
||||
王晓阳,王晓阳,19939016266,生产现场部,5978,6B8EC23039A54212A86BE21CEC07E676
|
||||
程欢欢,程欢欢,18855677446,销售部,2265,1526E7C20FA549A7986E49700F20FA81
|
||||
胡银池,胡银池,13955508997,生产现场部,7608,8FD40F6B23724C7087B4BF7E12D4E9B1
|
||||
郑丽娜,郑丽娜,13522116225,销售部,2696,6DEE2EED43D847DC84BED76A39532DDF
|
||||
郭奇,郭奇,13805683372,生产现场部,1499,D54FB4F65008414BA1F1967B0E7DEAEA
|
||||
黄天宝,黄天宝,13865153716,生产现场部,6851,E6CAAC1EC04748B1A1F6B5EE7E01F2C9
|
||||
|
@@ -0,0 +1,26 @@
|
||||
seq,user_no,nick_name,phone_no,sources,bx_roles,crm_roles,dept_id,dept_name,remark
|
||||
1,吴九华,吴九华,18656008189,bx+crm,总经理,销售主管,b13c2be2-4e71-11f1-9f47-00163e3bdd96,安庆市山峡化工有限公司,公司层级
|
||||
2,汪璇,汪璇,18895395317,bx+crm,财务人员,行政,F65CAAE057914CCCAE2A81BE627A43EF,财务部门,
|
||||
3,刘茂生,刘茂生,18955618780,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
4,吴良萍,吴良萍,18855101814,bx+crm,员工,行政,C65CAAE057914CCCAE2A81BE627A43ED,人力资源部,
|
||||
5,方金强,方金强,18110402102,bx+crm,员工,销售主管,E65CAAE057914CCCAE2A81BE627A43EA,销售部,
|
||||
6,黄天宝,黄天宝,13865153716,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
7,程欢欢,程欢欢,18855677446,bx+crm,员工,销售人员;行政,E65CAAE057914CCCAE2A81BE627A43EA,销售部,
|
||||
8,刘丹,刘丹,13865565378,bx,员工,,E65CAAE057914CCCAE2A81BE627A43EA,销售部,
|
||||
9,郑丽娜,郑丽娜,13522116225,bx+crm,员工,销售人员,E65CAAE057914CCCAE2A81BE627A43EA,销售部,
|
||||
10,李勤,李勤,13470794894,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
11,吴春生,吴春生,18805561555,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
12,吴自国,吴自国,15155081585,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
13,潘光荣,潘光荣,13955614150,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
14,刘道银,刘道银,15855555833,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
15,汪华胜,汪华胜,13976616618,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
16,王晓阳,王晓阳,19939016266,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
17,郭奇,郭奇,13805683372,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
18,刘端,刘端,18749617637,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
19,方长彪,方长彪,13225569301,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
20,吴自寨,吴自寨,13855607262,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
21,吴祚权,吴祚权,19855069273,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
22,沈卫斌,沈卫斌,18756693937,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
23,王伍云,王伍云,18815716809,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
24,胡银池,胡银池,13955508997,bx,员工,,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,
|
||||
25,宋健,宋健,18297798890,crm,,销售人员,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,仅 CRM
|
||||
|
@@ -0,0 +1,26 @@
|
||||
new_user_id,user_no,nick_name,phone_no,bx_user_id,crm_user_id,dibang_user_id,password_source,status,remark
|
||||
,吴九华,吴九华,18656008189,16,1988153817824903170,,bx,1,
|
||||
,汪璇,汪璇,18895395317,17,1984880722460753922,,bx,1,
|
||||
,刘茂生,刘茂生,18955618780,18,,,bx,1,仅bx
|
||||
,吴良萍,吴良萍,18855101814,19,1984881464336662529,,bx,1,
|
||||
,方金强,方金强,18110402102,20,1984880121521848321,,bx,1,
|
||||
,黄天宝,黄天宝,13865153716,21,,,bx,1,仅bx
|
||||
,程欢欢,程欢欢,18855677446,22,1984881038509948929,,bx,1,
|
||||
,刘丹,刘丹,13865565378,23,,,bx,1,仅bx
|
||||
,郑丽娜,郑丽娜,13522116225,24,1993942552906809345,,bx,1,
|
||||
,李勤,李勤,13470794894,26,,,bx,1,仅bx
|
||||
,吴春生,吴春生,18805561555,27,,,bx,1,仅bx
|
||||
,吴自国,吴自国,15155081585,28,,,bx,1,仅bx
|
||||
,潘光荣,潘光荣,13955614150,29,,,bx,1,仅bx
|
||||
,刘道银,刘道银,15855555833,30,,,bx,1,仅bx
|
||||
,汪华胜,汪华胜,13976616618,31,,,bx,1,仅bx
|
||||
,王晓阳,王晓阳,19939016266,32,,,bx,1,仅bx
|
||||
,郭奇,郭奇,13805683372,33,,,bx,1,仅bx
|
||||
,刘端,刘端,18749617637,34,,,bx,1,仅bx
|
||||
,方长彪,方长彪,13225569301,35,,,bx,1,仅bx
|
||||
,吴自寨,吴自寨,13855607262,36,,,bx,1,仅bx
|
||||
,吴祚权,吴祚权,19855069273,37,,,bx,1,仅bx
|
||||
,沈卫斌,沈卫斌,18756693937,45,,,bx,1,仅bx
|
||||
,王伍云,王伍云,18815716809,47,,,bx,1,仅bx
|
||||
,胡银池,胡银池,13955508997,48,,,bx,1,仅bx
|
||||
,宋健,宋健,18297798890,,1984880895001837569,,crm,1,仅CRM
|
||||
|
@@ -0,0 +1,26 @@
|
||||
new_user_id,user_no,nick_name,phone_no,dept_id,dept_name,bx_user_id,crm_user_id,dibang_user_id,password_hash_algo,status,sources,bx_roles,crm_roles,portal_roles
|
||||
2C0E880DFAA243189D800A3059930176,刘丹,刘丹,13865565378,E65CAAE057914CCCAE2A81BE627A43EA,销售部,23,,,bcrypt,1,bx,员工,,员工
|
||||
7FAF8526615A49ECB7BEC72D0CA9FF2C,刘端,刘端,18749617637,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,34,,,bcrypt,1,bx,员工,,员工
|
||||
2ABE4F0837CF45B9A2DA5A74CF27AA5C,刘茂生,刘茂生,18955618780,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,18,,,bcrypt,1,bx,员工,,员工
|
||||
08522A6338BE4D358456F95723E6FCBF,刘道银,刘道银,15855555833,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,30,,,bcrypt,1,bx,员工,,员工
|
||||
56D1C9DA5F6747DDAD25C248A156A524,吴九华,吴九华,18656008189,b13c2be2-4e71-11f1-9f47-00163e3bdd96,安庆市山峡化工有限公司,16,1988153817824903170,,bcrypt,1,"bx,crm",总经理,销售主管,"总经理,销售主管"
|
||||
EDD98825DCCB46A082317615EAF6938B,吴春生,吴春生,18805561555,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,27,,,bcrypt,1,bx,员工,,员工
|
||||
3750E0024772402D8A0BD5787435E2D5,吴祚权,吴祚权,19855069273,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,37,,,bcrypt,1,bx,员工,,员工
|
||||
58B275B718484890A80CD5F62DDF783E,吴自国,吴自国,15155081585,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,28,,,bcrypt,1,bx,员工,,员工
|
||||
0207FAF9F494479AA3F2D8B0A038F114,吴自寨,吴自寨,13855607262,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,36,,,bcrypt,1,bx,员工,,员工
|
||||
035B8D7AAD534D50B0D2947755F55327,吴良萍,吴良萍,18855101814,C65CAAE057914CCCAE2A81BE627A43ED,人力资源部,19,1984881464336662529,,bcrypt,1,"bx,crm",员工,行政,"员工,行政"
|
||||
3607B82A7F7A40D89F74882A2A9ACB48,宋健,宋健,18297798890,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,,1984880895001837569,,bcrypt,1,crm,,销售人员,销售人员
|
||||
02584218205246EEB5F2AC96DF465A9D,方金强,方金强,18110402102,E65CAAE057914CCCAE2A81BE627A43EA,销售部,20,1984880121521848321,,bcrypt,1,"bx,crm",员工,销售主管,"员工,销售主管"
|
||||
7B77364824494995BE9475DFB3B01CC6,方长彪,方长彪,13225569301,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,35,,,bcrypt,1,bx,员工,,员工
|
||||
72BF945572DA407AAE8F47A9D753CF1E,李勤,李勤,13470794894,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,26,,,bcrypt,1,bx,员工,,员工
|
||||
9DE3D0F49ED744998422F682826ADB24,汪华胜,汪华胜,13976616618,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,31,,,bcrypt,1,bx,员工,,员工
|
||||
CC2EED9A86F44D11AFFD0AD381893093,汪璇,汪璇,18895395317,F65CAAE057914CCCAE2A81BE627A43EF,财务部门,17,1984880722460753922,,bcrypt,1,"bx,crm",财务人员,行政,"行政,财务人员"
|
||||
6D0BF07141DD4087A1856F1D25825D98,沈卫斌,沈卫斌,18756693937,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,45,,,bcrypt,1,bx,员工,,员工
|
||||
99E7C53701DF4195A0332C32231EAE70,潘光荣,潘光荣,13955614150,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,29,,,bcrypt,1,bx,员工,,员工
|
||||
C3EBA2DA5FA341219D1BE1CDCC0433D9,王伍云,王伍云,18815716809,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,47,,,bcrypt,1,bx,员工,,员工
|
||||
6B8EC23039A54212A86BE21CEC07E676,王晓阳,王晓阳,19939016266,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,32,,,bcrypt,1,bx,员工,,员工
|
||||
1526E7C20FA549A7986E49700F20FA81,程欢欢,程欢欢,18855677446,E65CAAE057914CCCAE2A81BE627A43EA,销售部,22,1984881038509948929,,bcrypt,1,"bx,crm",员工,销售人员、行政,"员工,行政,销售人员"
|
||||
8FD40F6B23724C7087B4BF7E12D4E9B1,胡银池,胡银池,13955508997,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,48,,,bcrypt,1,bx,员工,,员工
|
||||
6DEE2EED43D847DC84BED76A39532DDF,郑丽娜,郑丽娜,13522116225,E65CAAE057914CCCAE2A81BE627A43EA,销售部,24,1993942552906809345,,bcrypt,1,"bx,crm",员工,销售人员,"员工,销售人员"
|
||||
D54FB4F65008414BA1F1967B0E7DEAEA,郭奇,郭奇,13805683372,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,33,,,bcrypt,1,bx,员工,,员工
|
||||
E6CAAC1EC04748B1A1F6B5EE7E01F2C9,黄天宝,黄天宝,13865153716,D65CAAE057914CCCAE2A81BE627A43EE,生产现场部,21,,,bcrypt,1,bx,员工,,员工
|
||||
|
@@ -0,0 +1,466 @@
|
||||
{
|
||||
"generated_at": "2026-07-12T19:34:00",
|
||||
"count": 25,
|
||||
"users": [
|
||||
{
|
||||
"new_user_id": "2C0E880DFAA243189D800A3059930176",
|
||||
"user_no": "刘丹",
|
||||
"nick_name": "刘丹",
|
||||
"phone_no": "13865565378",
|
||||
"dept_id": "E65CAAE057914CCCAE2A81BE627A43EA",
|
||||
"dept_name": "销售部",
|
||||
"bx_user_id": 23,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "7FAF8526615A49ECB7BEC72D0CA9FF2C",
|
||||
"user_no": "刘端",
|
||||
"nick_name": "刘端",
|
||||
"phone_no": "18749617637",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 34,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "2ABE4F0837CF45B9A2DA5A74CF27AA5C",
|
||||
"user_no": "刘茂生",
|
||||
"nick_name": "刘茂生",
|
||||
"phone_no": "18955618780",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 18,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "08522A6338BE4D358456F95723E6FCBF",
|
||||
"user_no": "刘道银",
|
||||
"nick_name": "刘道银",
|
||||
"phone_no": "15855555833",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 30,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "56D1C9DA5F6747DDAD25C248A156A524",
|
||||
"user_no": "吴九华",
|
||||
"nick_name": "吴九华",
|
||||
"phone_no": "18656008189",
|
||||
"dept_id": "b13c2be2-4e71-11f1-9f47-00163e3bdd96",
|
||||
"dept_name": "安庆市山峡化工有限公司",
|
||||
"bx_user_id": 16,
|
||||
"crm_user_id": 1988153817824903170,
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx,crm",
|
||||
"bx_roles": "总经理",
|
||||
"crm_roles": "销售主管",
|
||||
"portal_roles": "总经理,销售主管"
|
||||
},
|
||||
{
|
||||
"new_user_id": "EDD98825DCCB46A082317615EAF6938B",
|
||||
"user_no": "吴春生",
|
||||
"nick_name": "吴春生",
|
||||
"phone_no": "18805561555",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 27,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "3750E0024772402D8A0BD5787435E2D5",
|
||||
"user_no": "吴祚权",
|
||||
"nick_name": "吴祚权",
|
||||
"phone_no": "19855069273",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 37,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "58B275B718484890A80CD5F62DDF783E",
|
||||
"user_no": "吴自国",
|
||||
"nick_name": "吴自国",
|
||||
"phone_no": "15155081585",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 28,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "0207FAF9F494479AA3F2D8B0A038F114",
|
||||
"user_no": "吴自寨",
|
||||
"nick_name": "吴自寨",
|
||||
"phone_no": "13855607262",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 36,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "035B8D7AAD534D50B0D2947755F55327",
|
||||
"user_no": "吴良萍",
|
||||
"nick_name": "吴良萍",
|
||||
"phone_no": "18855101814",
|
||||
"dept_id": "C65CAAE057914CCCAE2A81BE627A43ED",
|
||||
"dept_name": "人力资源部",
|
||||
"bx_user_id": 19,
|
||||
"crm_user_id": 1984881464336662529,
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx,crm",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "行政",
|
||||
"portal_roles": "员工,行政"
|
||||
},
|
||||
{
|
||||
"new_user_id": "3607B82A7F7A40D89F74882A2A9ACB48",
|
||||
"user_no": "宋健",
|
||||
"nick_name": "宋健",
|
||||
"phone_no": "18297798890",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": "",
|
||||
"crm_user_id": 1984880895001837569,
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "crm",
|
||||
"bx_roles": "",
|
||||
"crm_roles": "销售人员",
|
||||
"portal_roles": "销售人员"
|
||||
},
|
||||
{
|
||||
"new_user_id": "02584218205246EEB5F2AC96DF465A9D",
|
||||
"user_no": "方金强",
|
||||
"nick_name": "方金强",
|
||||
"phone_no": "18110402102",
|
||||
"dept_id": "E65CAAE057914CCCAE2A81BE627A43EA",
|
||||
"dept_name": "销售部",
|
||||
"bx_user_id": 20,
|
||||
"crm_user_id": 1984880121521848321,
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx,crm",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "销售主管",
|
||||
"portal_roles": "员工,销售主管"
|
||||
},
|
||||
{
|
||||
"new_user_id": "7B77364824494995BE9475DFB3B01CC6",
|
||||
"user_no": "方长彪",
|
||||
"nick_name": "方长彪",
|
||||
"phone_no": "13225569301",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 35,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "72BF945572DA407AAE8F47A9D753CF1E",
|
||||
"user_no": "李勤",
|
||||
"nick_name": "李勤",
|
||||
"phone_no": "13470794894",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 26,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "9DE3D0F49ED744998422F682826ADB24",
|
||||
"user_no": "汪华胜",
|
||||
"nick_name": "汪华胜",
|
||||
"phone_no": "13976616618",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 31,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "CC2EED9A86F44D11AFFD0AD381893093",
|
||||
"user_no": "汪璇",
|
||||
"nick_name": "汪璇",
|
||||
"phone_no": "18895395317",
|
||||
"dept_id": "F65CAAE057914CCCAE2A81BE627A43EF",
|
||||
"dept_name": "财务部门",
|
||||
"bx_user_id": 17,
|
||||
"crm_user_id": 1984880722460753922,
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx,crm",
|
||||
"bx_roles": "财务人员",
|
||||
"crm_roles": "行政",
|
||||
"portal_roles": "行政,财务人员"
|
||||
},
|
||||
{
|
||||
"new_user_id": "6D0BF07141DD4087A1856F1D25825D98",
|
||||
"user_no": "沈卫斌",
|
||||
"nick_name": "沈卫斌",
|
||||
"phone_no": "18756693937",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 45,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "99E7C53701DF4195A0332C32231EAE70",
|
||||
"user_no": "潘光荣",
|
||||
"nick_name": "潘光荣",
|
||||
"phone_no": "13955614150",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 29,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "C3EBA2DA5FA341219D1BE1CDCC0433D9",
|
||||
"user_no": "王伍云",
|
||||
"nick_name": "王伍云",
|
||||
"phone_no": "18815716809",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 47,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "6B8EC23039A54212A86BE21CEC07E676",
|
||||
"user_no": "王晓阳",
|
||||
"nick_name": "王晓阳",
|
||||
"phone_no": "19939016266",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 32,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "1526E7C20FA549A7986E49700F20FA81",
|
||||
"user_no": "程欢欢",
|
||||
"nick_name": "程欢欢",
|
||||
"phone_no": "18855677446",
|
||||
"dept_id": "E65CAAE057914CCCAE2A81BE627A43EA",
|
||||
"dept_name": "销售部",
|
||||
"bx_user_id": 22,
|
||||
"crm_user_id": 1984881038509948929,
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx,crm",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "销售人员、行政",
|
||||
"portal_roles": "员工,行政,销售人员"
|
||||
},
|
||||
{
|
||||
"new_user_id": "8FD40F6B23724C7087B4BF7E12D4E9B1",
|
||||
"user_no": "胡银池",
|
||||
"nick_name": "胡银池",
|
||||
"phone_no": "13955508997",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 48,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "6DEE2EED43D847DC84BED76A39532DDF",
|
||||
"user_no": "郑丽娜",
|
||||
"nick_name": "郑丽娜",
|
||||
"phone_no": "13522116225",
|
||||
"dept_id": "E65CAAE057914CCCAE2A81BE627A43EA",
|
||||
"dept_name": "销售部",
|
||||
"bx_user_id": 24,
|
||||
"crm_user_id": 1993942552906809345,
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx,crm",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "销售人员",
|
||||
"portal_roles": "员工,销售人员"
|
||||
},
|
||||
{
|
||||
"new_user_id": "D54FB4F65008414BA1F1967B0E7DEAEA",
|
||||
"user_no": "郭奇",
|
||||
"nick_name": "郭奇",
|
||||
"phone_no": "13805683372",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 33,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
},
|
||||
{
|
||||
"new_user_id": "E6CAAC1EC04748B1A1F6B5EE7E01F2C9",
|
||||
"user_no": "黄天宝",
|
||||
"nick_name": "黄天宝",
|
||||
"phone_no": "13865153716",
|
||||
"dept_id": "D65CAAE057914CCCAE2A81BE627A43EE",
|
||||
"dept_name": "生产现场部",
|
||||
"bx_user_id": 21,
|
||||
"crm_user_id": "",
|
||||
"dibang_user_id": "",
|
||||
"password_hash_algo": "bcrypt",
|
||||
"status": "1",
|
||||
"sources": "bx",
|
||||
"bx_roles": "员工",
|
||||
"crm_roles": "",
|
||||
"portal_roles": "员工"
|
||||
}
|
||||
],
|
||||
"bx_id_to_user": {
|
||||
"23": "2C0E880DFAA243189D800A3059930176",
|
||||
"34": "7FAF8526615A49ECB7BEC72D0CA9FF2C",
|
||||
"18": "2ABE4F0837CF45B9A2DA5A74CF27AA5C",
|
||||
"30": "08522A6338BE4D358456F95723E6FCBF",
|
||||
"16": "56D1C9DA5F6747DDAD25C248A156A524",
|
||||
"27": "EDD98825DCCB46A082317615EAF6938B",
|
||||
"37": "3750E0024772402D8A0BD5787435E2D5",
|
||||
"28": "58B275B718484890A80CD5F62DDF783E",
|
||||
"36": "0207FAF9F494479AA3F2D8B0A038F114",
|
||||
"19": "035B8D7AAD534D50B0D2947755F55327",
|
||||
"20": "02584218205246EEB5F2AC96DF465A9D",
|
||||
"35": "7B77364824494995BE9475DFB3B01CC6",
|
||||
"26": "72BF945572DA407AAE8F47A9D753CF1E",
|
||||
"31": "9DE3D0F49ED744998422F682826ADB24",
|
||||
"17": "CC2EED9A86F44D11AFFD0AD381893093",
|
||||
"45": "6D0BF07141DD4087A1856F1D25825D98",
|
||||
"29": "99E7C53701DF4195A0332C32231EAE70",
|
||||
"47": "C3EBA2DA5FA341219D1BE1CDCC0433D9",
|
||||
"32": "6B8EC23039A54212A86BE21CEC07E676",
|
||||
"22": "1526E7C20FA549A7986E49700F20FA81",
|
||||
"48": "8FD40F6B23724C7087B4BF7E12D4E9B1",
|
||||
"24": "6DEE2EED43D847DC84BED76A39532DDF",
|
||||
"33": "D54FB4F65008414BA1F1967B0E7DEAEA",
|
||||
"21": "E6CAAC1EC04748B1A1F6B5EE7E01F2C9"
|
||||
},
|
||||
"crm_id_to_user": {
|
||||
"1988153817824903170": "56D1C9DA5F6747DDAD25C248A156A524",
|
||||
"1984881464336662529": "035B8D7AAD534D50B0D2947755F55327",
|
||||
"1984880895001837569": "3607B82A7F7A40D89F74882A2A9ACB48",
|
||||
"1984880121521848321": "02584218205246EEB5F2AC96DF465A9D",
|
||||
"1984880722460753922": "CC2EED9A86F44D11AFFD0AD381893093",
|
||||
"1984881038509948929": "1526E7C20FA549A7986E49700F20FA81",
|
||||
"1993942552906809345": "6DEE2EED43D847DC84BED76A39532DDF"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
# P0-1:字典数据
|
||||
|
||||
> **结论(2026-07-12)**:sx 与门户快照 **同名类型下字典项无差异**,**无需批量导入**;仅做验收确认。
|
||||
|
||||
---
|
||||
|
||||
## 1. 分析过程
|
||||
|
||||
### 1.1 工具
|
||||
|
||||
```bash
|
||||
cd backend && source venv/bin/activate
|
||||
python scripts/compare_dict_snapshots.py
|
||||
```
|
||||
|
||||
脚本对比:
|
||||
|
||||
- 源:`docs/sql/sx.sql`(`sys_dict_type` / `sys_dict_data`)
|
||||
- 目标:`docs/sql/shanxia2.0.sql`
|
||||
|
||||
### 1.2 对比结果摘要
|
||||
|
||||
| 指标 | sx.sql | shanxia2.0.sql |
|
||||
|------|--------|----------------|
|
||||
| 字典类型数 | 240 | 276 |
|
||||
| 字典项数 | 4658 | 4771 |
|
||||
| 类型码一致 | 239/240 | — |
|
||||
| 同名类型下项差异 | **0** | — |
|
||||
|
||||
说明:
|
||||
|
||||
- sx 多 1 个无效类型 `0` / `cw_attachment_type`(0 项),可忽略。
|
||||
- 门户多 37 个类型(`pl_*` 运输、`wf_*` 工作流、`crm_pool_*`、门户别名等),为 2.0 新增能力,非迁移缺口。
|
||||
- 报销、地磅**无独立字典表**;状态多在代码或字段枚举中。
|
||||
|
||||
### 1.3 决策
|
||||
|
||||
| 决策项 | 结论 |
|
||||
|--------|------|
|
||||
| 是否执行批量 INSERT | **否** |
|
||||
| 生产切换前动作 | 对账 + 抽 5 个 CRM 业务用到的 dict_type 在门户 API 可查 |
|
||||
|
||||
---
|
||||
|
||||
## 2. 验收标准
|
||||
|
||||
- [ ] `GET /api/web/admin/dict-data/all` 含 `sys_normal_disable`、`crm_*` 等 CRM 页用到的类型
|
||||
- [ ] 产品分类页 `sys_normal_disable`:0=正常、1=停用 与源语义一致
|
||||
- [ ] 无业务页因缺字典项白屏或显示 raw value
|
||||
|
||||
---
|
||||
|
||||
## 3. 执行日志
|
||||
|
||||
若仅做验收、无写库操作,在 `logs/` 追加:
|
||||
|
||||
`logs/YYYY-MM-DD-HHMM-dict-verify.md`
|
||||
|
||||
记录:对比脚本输出摘要、API 抽样 dict_type 列表、验收人。
|
||||
|
||||
**本步骤无 `mappings/` 产物。**
|
||||
@@ -0,0 +1,79 @@
|
||||
# P0-4:用户同步
|
||||
|
||||
> **前置**:部门(step-02)、角色菜单(step-03)
|
||||
> **规则**:`user_no` = 中文名;管理员保留 `admin`
|
||||
> **映射表**:[../mappings/user_mapping.csv](../mappings/user_mapping.csv)
|
||||
|
||||
---
|
||||
|
||||
## 1. 目标
|
||||
|
||||
将 sx `bx_user`、sx CRM `sys_user`、dibang `users` 合并写入门户 `sys_user`,并生成全局 `user_mapping.csv` 供 P1/P2 使用。
|
||||
|
||||
---
|
||||
|
||||
## 2. 执行前检查
|
||||
|
||||
```sql
|
||||
-- 目标库:确认仅 admin 存在
|
||||
SELECT id, user_no, nick_name FROM sys_user WHERE del_flag = 0;
|
||||
|
||||
-- 源库 sx:统计有效用户
|
||||
SELECT COUNT(*) FROM bx_user WHERE del_flag = 0;
|
||||
SELECT COUNT(*) FROM sys_user WHERE del_flag = '0';
|
||||
|
||||
-- 源库 dibang:活跃账号
|
||||
SELECT id, username, role FROM users WHERE is_active = 1;
|
||||
```
|
||||
|
||||
人工审核 [02-user-unification.md](../02-user-unification.md) §3.1(吴九华手机号等)。
|
||||
|
||||
---
|
||||
|
||||
## 3. 执行步骤(计划)
|
||||
|
||||
| 步骤 | 操作 | 状态 |
|
||||
|------|------|------|
|
||||
| 1 | 备份目标库 `mysqldump shanxia2.0` | 未执行 |
|
||||
| 2 | 审核并定稿 `user_mapping.csv` | 初稿已生成 |
|
||||
| 3 | 开发/运行 `backend/scripts/migrate_users.py --dry-run` | 待开发 |
|
||||
| 4 | 写入 `sys_user` + `sys_user_role` | 未执行 |
|
||||
| 5 | 回填 `user_mapping.csv` 的 `new_user_id` | 未执行 |
|
||||
| 6 | 验收:中文名登录 + 角色菜单 | 未执行 |
|
||||
|
||||
---
|
||||
|
||||
## 4. 验收标准
|
||||
|
||||
- [ ] `sys_user` 有效用户数 = 映射表行数(约 25 员工 + admin,地磅账号按需)
|
||||
- [ ] 每名员工可用 **中文名** `user_no` 登录
|
||||
- [ ] `admin` 仍可登录且为超级管理员
|
||||
- [ ] 地磅操作员可登录且仅见地磅菜单
|
||||
- [ ] `user_mapping.csv` 中每条 bx/crm 源 ID 均有 `new_user_id`
|
||||
- [ ] 无重复 `user_no`(冲突已按手机后四位处理)
|
||||
|
||||
---
|
||||
|
||||
## 5. 执行日志模板
|
||||
|
||||
执行后在 `logs/` 新建 `YYYY-MM-DD-HHMM-users.md`:
|
||||
|
||||
```markdown
|
||||
## 批次:YYYY-MM-DD HH:MM
|
||||
|
||||
### 环境
|
||||
- 目标库:
|
||||
- 操作人:
|
||||
|
||||
### 执行命令
|
||||
(粘贴命令,密码脱敏)
|
||||
|
||||
### 行数对比
|
||||
| 表 | 执行前 | 执行后 | 预期 |
|
||||
|----|--------|--------|------|
|
||||
|
||||
### 抽样登录
|
||||
| user_no | 结果 |
|
||||
|
||||
### 问题与处理
|
||||
```
|
||||
@@ -0,0 +1,145 @@
|
||||
# P1-1:CRM 产品分类
|
||||
|
||||
> **前置**:P0-4 用户;全局 ID 策略见 [05-id-preservation-policy.md](../05-id-preservation-policy.md)
|
||||
> **设计**:[superpowers 设计](../../superpowers/specs/2026-07-12-crm-product-category-data-migration-design.md)
|
||||
> **计划**:[superpowers 计划](../../superpowers/plans/2026-07-12-crm-product-category-data-migration.md)
|
||||
> **下游**:P1-1b 产品(`crm_product.category_id` 依赖本步 mapping)
|
||||
|
||||
---
|
||||
|
||||
## 1. 目标
|
||||
|
||||
将 sx `crm_product_category` 写入门户 `crm_product_category`,并生成:
|
||||
|
||||
`docs/data-migration/mappings/crm_product_category_id_mapping.csv`
|
||||
|
||||
---
|
||||
|
||||
## 2. 源数据快照(docs/sql/sx.sql)
|
||||
|
||||
| source_id | category_name | parent_id | sort | status |
|
||||
|-----------|---------------|-----------|------|--------|
|
||||
| 1975766404158746625 | 有机原料 | 0 | 0 | 0 |
|
||||
| 1975766458781167617 | 无机原料 | 0 | 1 | 0 |
|
||||
| 1975766539550879745 | 水处理溶剂 | 0 | 2 | 0 |
|
||||
| 1975766588632625154 | 其他 | 0 | 3 | 0 |
|
||||
| 1975766650771238913 | 未分类 | 0 | 4 | 0 |
|
||||
|
||||
生产执行前须在** live sx 库**再 `COUNT(*)` 核对(快照可能滞后)。
|
||||
|
||||
---
|
||||
|
||||
## 3. 执行前检查
|
||||
|
||||
```sql
|
||||
-- 目标:应为空
|
||||
SELECT COUNT(*) FROM crm_product_category WHERE tenant_no='shanxia2.0' AND del_flag=0;
|
||||
|
||||
-- 源
|
||||
SELECT id, category_name, parent_id, sort, status, del_flag
|
||||
FROM crm_product_category ORDER BY sort;
|
||||
|
||||
-- 用户映射文件存在
|
||||
-- docs/data-migration/mappings/user_mapping_result.csv
|
||||
```
|
||||
|
||||
确认门户 admin 存在:
|
||||
|
||||
```sql
|
||||
SELECT id, user_no FROM sys_user WHERE user_no='admin' AND del_flag=0;
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. 执行步骤
|
||||
|
||||
| 步骤 | 操作 | 状态 |
|
||||
|------|------|------|
|
||||
| 1 | 备份目标库 `mysqldump shanxia2.0` | 跳过(执行前 0 行) |
|
||||
| 2 | `migrate_crm_product_category.py --dry-run` | ✅ 2026-07-12 |
|
||||
| 3 | 审阅 dry-run 输出(5 行映射、admin create_by) | ✅ |
|
||||
| 4 | 正式执行 + `--mapping-out` | ✅ 插入 5 行 |
|
||||
| 5 | SQL + 界面验收 | SQL ✅;界面待人工 |
|
||||
| 6 | 追加 `logs/` 批次记录 | ✅ `logs/2026-07-12-2051-product-category.md` |
|
||||
|
||||
### 4.1 命令(脚本就绪后)
|
||||
|
||||
```bash
|
||||
cd backend && source venv/bin/activate
|
||||
|
||||
# 预览
|
||||
ENV_FILE=.env.production python scripts/migrate_crm_product_category.py \
|
||||
--dry-run \
|
||||
--source-url "$SX_SOURCE_DATABASE_URL" \
|
||||
--user-mapping ../docs/data-migration/mappings/user_mapping_result.csv
|
||||
|
||||
# 正式
|
||||
ENV_FILE=.env.production python scripts/migrate_crm_product_category.py \
|
||||
--source-url "$SX_SOURCE_DATABASE_URL" \
|
||||
--user-mapping ../docs/data-migration/mappings/user_mapping_result.csv \
|
||||
--mapping-out ../docs/data-migration/mappings/crm_product_category_id_mapping.csv
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. 字段映射速查
|
||||
|
||||
| 源 | 目标 | 说明 |
|
||||
|----|------|------|
|
||||
| id | id | **原样保留** `str(source_id)` |
|
||||
| parent_id | parent_id | 0→'0',否则 `str(source_parent_id)` |
|
||||
| sort | order_num | 直接 |
|
||||
| status | status | **0/1 不反转**(sys_normal_disable) |
|
||||
| tenant_id | tenant_no | `shanxia2.0` |
|
||||
| create_by | create_by | user_mapping;1→admin |
|
||||
|
||||
---
|
||||
|
||||
## 6. 验收标准
|
||||
|
||||
- [x] 目标有效行数 = 源有效行数(5)
|
||||
- [x] 5 个分类名称、排序与源一致
|
||||
- [x] 全部为顶级 `parent_id='0'`,`level=1`
|
||||
- [x] 状态均为 `0`(正常)
|
||||
- [x] mapping CSV 5 行,`source_id` = `new_id`
|
||||
- [ ] 产品分类页树形列表正常展示(待人工登录确认)
|
||||
|
||||
---
|
||||
|
||||
## 7. 二次移植说明
|
||||
|
||||
再次移植时:
|
||||
|
||||
1. 保留历史 `logs/` 与 mapping CSV,**新批次只追加**
|
||||
2. 默认脚本 **skip 已映射 source_id**;若源数据有变更,使用 `--update`
|
||||
3. 若目标库已有手工新增分类,勿 `--force` 清库;增量只迁源库有而 mapping 无的行
|
||||
|
||||
---
|
||||
|
||||
## 8. 执行日志模板
|
||||
|
||||
执行后在 `logs/` 新建 `YYYY-MM-DD-HHMM-product-category.md`:
|
||||
|
||||
```markdown
|
||||
## 批次:YYYY-MM-DD HH:MM
|
||||
|
||||
### 环境
|
||||
- 目标库:
|
||||
- 源库 sx:
|
||||
- 操作人:
|
||||
|
||||
### 执行命令
|
||||
(脱敏)
|
||||
|
||||
### 行数对比
|
||||
| 表 | 源 | 执行前 | 执行后 |
|
||||
|
||||
### mapping 抽样
|
||||
| source_id | new_id | category_name |
|
||||
|
||||
### 界面验收
|
||||
- 路径:/#/crm/product-category
|
||||
- 结果:
|
||||
|
||||
### 问题与处理
|
||||
```
|
||||
@@ -0,0 +1,112 @@
|
||||
# P1-1b:CRM 产品
|
||||
|
||||
> **前置**:P1-1a 产品分类;P0 用户 mapping
|
||||
> **全局 ID**:[05-id-preservation-policy.md](../05-id-preservation-policy.md)
|
||||
> **下游**:客户/报价/合同等引用 `crm_product.id`
|
||||
|
||||
---
|
||||
|
||||
## 1. 目标
|
||||
|
||||
将 sx `crm_product` 写入门户 `crm_product`,并生成:
|
||||
|
||||
`docs/data-migration/mappings/crm_product_id_mapping.csv`
|
||||
|
||||
**数据来源**:仅从原 CRM(`sx.crm_product`)全量迁入 `del_flag=0` 行;**不**合并地磅 `cargos`、报销产品表。
|
||||
|
||||
---
|
||||
|
||||
## 2. 源数据规模(live sx,2026-07-12)
|
||||
|
||||
| 指标 | 值 |
|
||||
|------|-----|
|
||||
| 有效产品行 | 239 |
|
||||
| 产品分类(已迁) | 5 |
|
||||
| sx.sql 快照 INSERT | ~240(与 live 差 1 条删除/滞后) |
|
||||
|
||||
---
|
||||
|
||||
## 3. 执行前检查
|
||||
|
||||
```sql
|
||||
-- 目标:应为空(首次执行)
|
||||
SELECT COUNT(*) FROM crm_product WHERE tenant_no='shanxia2.0' AND del_flag=0;
|
||||
|
||||
-- 分类已就绪
|
||||
SELECT COUNT(*) FROM crm_product_category WHERE del_flag=0;
|
||||
|
||||
-- 源
|
||||
SELECT COUNT(*) FROM crm_product WHERE del_flag=0;
|
||||
```
|
||||
|
||||
确认文件存在:
|
||||
|
||||
- `docs/data-migration/mappings/user_mapping_result.csv`
|
||||
- `docs/data-migration/mappings/crm_product_category_id_mapping.csv`
|
||||
|
||||
---
|
||||
|
||||
## 4. 执行步骤
|
||||
|
||||
| 步骤 | 操作 | 状态 |
|
||||
|------|------|------|
|
||||
| 1 | 备份目标库 `mysqldump shanxia2.0` | 跳过(执行前 0 行) |
|
||||
| 2 | `migrate_crm_product.py --dry-run` | ✅ 2026-07-12 |
|
||||
| 3 | 审阅 dry-run(239 行、category_id 抽样) | ✅ |
|
||||
| 4 | 正式执行 + `--mapping-out` | ✅ 插入 239 行 |
|
||||
| 5 | SQL + 界面验收 | SQL ✅(脚本);界面待人工 |
|
||||
| 6 | 追加 `logs/` 批次记录 | ✅ `logs/2026-07-12-2055-product.md` |
|
||||
|
||||
### 4.1 命令
|
||||
|
||||
```bash
|
||||
cd backend
|
||||
|
||||
venv/bin/python scripts/migrate_crm_product.py --dry-run \
|
||||
--env-file .env.production \
|
||||
--user-mapping ../docs/data-migration/mappings/user_mapping_result.csv
|
||||
|
||||
venv/bin/python scripts/migrate_crm_product.py \
|
||||
--env-file .env.production \
|
||||
--user-mapping ../docs/data-migration/mappings/user_mapping_result.csv \
|
||||
--mapping-out ../docs/data-migration/mappings/crm_product_id_mapping.csv
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. 字段映射速查
|
||||
|
||||
| 源 | 目标 | 说明 |
|
||||
|----|------|------|
|
||||
| id | id | **原样保留** `str(source_id)` |
|
||||
| category_id | category_id | **原样保留** `str(source_id)` |
|
||||
| product_no | product_no | 直接 |
|
||||
| name | name | 直接 |
|
||||
| cost | cost_price | 重命名 |
|
||||
| status | status | 保持 `on`/`off` |
|
||||
| is_toxic / is_explosive | 默认 0 | 源表无字段 |
|
||||
| tenant_id | tenant_no | `shanxia2.0` |
|
||||
| create_by | create_by | user_mapping;1→admin |
|
||||
|
||||
---
|
||||
|
||||
## 6. 验收标准
|
||||
|
||||
- [x] 目标有效行数 = 源有效行数(239)
|
||||
- [x] mapping CSV 239 行,`source_id` = `new_id`
|
||||
- [x] 抽样 `category_id` 落在已迁 5 个分类 id 内
|
||||
- [ ] 产品列表页正常展示、分类全路径正确(待人工)
|
||||
|
||||
---
|
||||
|
||||
## 7. 与地磅的关系(说明)
|
||||
|
||||
地磅业务表(计划/出入库/地磅单)存的是**货物名称文本**,无 `cargo_id` / `product_id` 外键;门户 2.0 地磅方案 A 继续存名称文本,CRM 产品仅作下拉来源。详见迁移问答与 `docs/db-migration/00-migration-plan.md`。
|
||||
|
||||
---
|
||||
|
||||
## 8. 二次移植说明
|
||||
|
||||
1. 保留历史 `logs/` 与 mapping CSV,新批次只追加
|
||||
2. 默认 skip 已映射 `source_id`;源数据变更用 `--update`
|
||||
3. 勿 `--force` 清库;增量只迁 mapping 中不存在的源行
|
||||
@@ -0,0 +1,66 @@
|
||||
# P1-1c:CRM 产品编号统一
|
||||
|
||||
> **前置**:P1-1b 产品主表已迁入
|
||||
> **设计**:[superpowers 设计](../../superpowers/specs/2026-07-12-crm-product-no-renumber-design.md)
|
||||
> **下游**:报价/合同明细 `product_no` 快照经 `crm_product_no_mapping.csv` 转换
|
||||
|
||||
---
|
||||
|
||||
## 1. 目标
|
||||
|
||||
将 `crm_product.product_no` 统一为 **`SXWL` + 6 位流水**(`SXWL000001` …),并生成:
|
||||
|
||||
`docs/data-migration/mappings/crm_product_no_mapping.csv`
|
||||
|
||||
**`product_id` 不变**。
|
||||
|
||||
---
|
||||
|
||||
## 2. 执行步骤
|
||||
|
||||
| 步骤 | 操作 | 状态 |
|
||||
|------|------|------|
|
||||
| 1 | `renumber_crm_product_no.py --dry-run` | ✅ 2026-07-12 |
|
||||
| 2 | `--apply` + `--mapping-out` | ✅ 更新 239 行 |
|
||||
| 3 | SQL 验收 | ✅ 非标准编号 0 |
|
||||
| 4 | 追加 `logs/` | ✅ `logs/2026-07-12-2106-product-no-renumber.md` |
|
||||
|
||||
### 命令
|
||||
|
||||
```bash
|
||||
cd backend
|
||||
|
||||
venv/bin/python scripts/renumber_crm_product_no.py --dry-run --env-file .env.production
|
||||
|
||||
venv/bin/python scripts/renumber_crm_product_no.py --apply --env-file .env.production \
|
||||
--mapping-out ../docs/data-migration/mappings/crm_product_no_mapping.csv
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. 映射 CSV 列
|
||||
|
||||
| 列 | 说明 |
|
||||
|----|------|
|
||||
| `product_id` | 不变 |
|
||||
| `old_product_no` | 重编号前 |
|
||||
| `new_product_no` | 重编号后 |
|
||||
| `product_name` / `category_id` | 审计 |
|
||||
| `seq` / `renumbered_at` | 流水与时间 |
|
||||
|
||||
后续脚本用法:
|
||||
|
||||
```python
|
||||
new_no = by_product_id[product_id]["new_product_no"]
|
||||
# 或
|
||||
new_no = by_old_no.get(old_product_no)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. 验收标准
|
||||
|
||||
- [x] 239 条均为 `SXWL` + 6 位数字
|
||||
- [x] 映射 CSV 239 行
|
||||
- [x] `product_id` 未变
|
||||
- [ ] 产品列表页展示新编号(待人工)
|
||||
@@ -0,0 +1,67 @@
|
||||
# 山峡 2.0 门户 — 迁移用户账号与初始密码
|
||||
|
||||
> **生成时间**:2026-07-12
|
||||
> **环境**:生产库 `shanxia2.0`
|
||||
> **说明**:登录账号 `user_no` 为**中文姓名**;初始密码为 4 位数字,入库时已 bcrypt 加密。
|
||||
> **保密**:本文档含明文密码,请勿提交版本库或对外传播。
|
||||
|
||||
---
|
||||
|
||||
## 安庆市山峡化工有限公司
|
||||
|
||||
| 序号 | 登录账号 | 姓名 | 手机 | 初始密码 |
|
||||
|------|----------|------|------|----------|
|
||||
| 1 | 吴九华 | 吴九华 | 18656008189 | 4300 |
|
||||
|
||||
## 财务部门
|
||||
|
||||
| 序号 | 登录账号 | 姓名 | 手机 | 初始密码 |
|
||||
|------|----------|------|------|----------|
|
||||
| 2 | 汪璇 | 汪璇 | 18895395317 | 4143 |
|
||||
|
||||
## 人力资源部
|
||||
|
||||
| 序号 | 登录账号 | 姓名 | 手机 | 初始密码 |
|
||||
|------|----------|------|------|----------|
|
||||
| 3 | 吴良萍 | 吴良萍 | 18855101814 | 9319 |
|
||||
|
||||
## 销售部
|
||||
|
||||
| 序号 | 登录账号 | 姓名 | 手机 | 初始密码 |
|
||||
|------|----------|------|------|----------|
|
||||
| 4 | 方金强 | 方金强 | 18110402102 | 7643 |
|
||||
| 5 | 程欢欢 | 程欢欢 | 18855677446 | 2265 |
|
||||
| 6 | 刘丹 | 刘丹 | 13865565378 | 5811 |
|
||||
| 7 | 郑丽娜 | 郑丽娜 | 13522116225 | 2696 |
|
||||
|
||||
## 生产现场部
|
||||
|
||||
| 序号 | 登录账号 | 姓名 | 手机 | 初始密码 |
|
||||
|------|----------|------|------|----------|
|
||||
| 8 | 刘茂生 | 刘茂生 | 18955618780 | 4267 |
|
||||
| 9 | 黄天宝 | 黄天宝 | 13865153716 | 6851 |
|
||||
| 10 | 李勤 | 李勤 | 13470794894 | 3974 |
|
||||
| 11 | 吴春生 | 吴春生 | 18805561555 | 5996 |
|
||||
| 12 | 吴自国 | 吴自国 | 15155081585 | 4275 |
|
||||
| 13 | 潘光荣 | 潘光荣 | 13955614150 | 5712 |
|
||||
| 14 | 刘道银 | 刘道银 | 15855555833 | 1650 |
|
||||
| 15 | 汪华胜 | 汪华胜 | 13976616618 | 7365 |
|
||||
| 16 | 王晓阳 | 王晓阳 | 19939016266 | 5978 |
|
||||
| 17 | 郭奇 | 郭奇 | 13805683372 | 1499 |
|
||||
| 18 | 刘端 | 刘端 | 18749617637 | 6939 |
|
||||
| 19 | 方长彪 | 方长彪 | 13225569301 | 3497 |
|
||||
| 20 | 吴自寨 | 吴自寨 | 13855607262 | 3389 |
|
||||
| 21 | 吴祚权 | 吴祚权 | 19855069273 | 3909 |
|
||||
| 22 | 沈卫斌 | 沈卫斌 | 18756693937 | 3728 |
|
||||
| 23 | 王伍云 | 王伍云 | 18815716809 | 8053 |
|
||||
| 24 | 胡银池 | 胡银池 | 13955508997 | 7608 |
|
||||
| 25 | 宋健 | 宋健 | 18297798890 | 0586 |
|
||||
|
||||
---
|
||||
|
||||
## 汇总
|
||||
|
||||
- **本次导入**:25 人(不含已有 `admin`)
|
||||
- **密码策略**:随机 4 位数字 + bcrypt(与门户 `get_password_hash` 一致)
|
||||
- **映射文件**:`mappings/user_mapping_result.json` / `.csv`
|
||||
- **机器可读密码清单**:`mappings/user_import_credentials.csv`
|
||||
+2386
-21
File diff suppressed because it is too large.
Load diff
+446
-1599
File diff suppressed because it is too large.
Load diff
+56655
-20
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,109 @@
|
||||
# CRM 产品分类数据移植 Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development or superpowers:executing-plans. Steps use checkbox (`- [ ]`) syntax.
|
||||
|
||||
**Goal:** 将 sx 库 `crm_product_category` 迁入 shanxia2.0,产出 ID 映射表,并完整留痕供二次移植。
|
||||
|
||||
**Architecture:** 独立 Python 脚本;**主键原样保留**(bigint→同值字符串);拓扑序保证 `parent_id` 有效。
|
||||
|
||||
**Tech Stack:** Python 3.9 · SQLAlchemy raw SQL · `legacy_id_to_str` · CSV mapping
|
||||
|
||||
> **全局 ID 策略**:[05-id-preservation-policy.md](../../data-migration/05-id-preservation-policy.md)
|
||||
> **设计文档**: `docs/superpowers/specs/2026-07-12-crm-product-category-data-migration-design.md`
|
||||
> **操作手册**: `docs/data-migration/phase-1-crm/step-01-product-category.md`
|
||||
|
||||
---
|
||||
|
||||
## File Map
|
||||
|
||||
| 文件 | 职责 |
|
||||
|------|------|
|
||||
| `backend/scripts/migrate_crm_product_category.py` | 迁移主脚本 |
|
||||
| `docs/data-migration/mappings/crm_product_category_id_mapping.csv` | 恒等映射 source_id=new_id |
|
||||
| `docs/data-migration/mappings/crm_id_mapping.csv` | 汇总映射(本步追加 category 段) |
|
||||
| `docs/data-migration/phase-1-crm/logs/*.md` | 执行批次日志 |
|
||||
|
||||
---
|
||||
|
||||
## Task 1: 脚本骨架与 dry-run
|
||||
|
||||
**Files:**
|
||||
- Create: `backend/scripts/migrate_crm_product_category.py`
|
||||
|
||||
- [ ] **1.1** 解析 CLI:`--dry-run`、`--source-url`、`--user-mapping`、`--mapping-out`、`--update`
|
||||
- [ ] **1.2** 连接源/目标库;统计源 `del_flag=0` 行数
|
||||
- [ ] **1.3** 加载 `user_mapping_result.csv`:`crm_user_id` → `new_user_id`;`1` → admin
|
||||
- [ ] **1.4** dry-run 打印 5 条字段映射预览,不写库
|
||||
|
||||
**验证:**
|
||||
|
||||
```bash
|
||||
cd backend && source venv/bin/activate
|
||||
ENV_FILE=.env.production python scripts/migrate_crm_product_category.py --dry-run
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Task 2: 拓扑插入与 mapping 写出
|
||||
|
||||
**Files:**
|
||||
- Modify: `backend/scripts/migrate_crm_product_category.py`
|
||||
|
||||
- [ ] **2.1** 实现 `topo_sort_categories(rows)`:父 id 先于子 id
|
||||
- [ ] **2.2** 逐行转换字段;`id`/`parent_id` 用 `str(bigint)` 原样保留
|
||||
- [ ] **2.3** INSERT 目标表;事务提交
|
||||
- [ ] **2.4** 写出 `crm_product_category_id_mapping.csv`
|
||||
|
||||
**验证:**
|
||||
|
||||
```sql
|
||||
SELECT category_name, parent_id, status, order_num, level
|
||||
FROM crm_product_category WHERE tenant_no='shanxia2.0' AND del_flag=0
|
||||
ORDER BY order_num;
|
||||
-- 预期 5 行,名称与 sx 一致
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Task 3: 幂等与二次移植
|
||||
|
||||
- [ ] **3.1** 若 mapping 已有 `source_id` 且目标行存在 → skip(默认)
|
||||
- [ ] **3.2** `--update`:更新 `category_name`、`order_num`、`status`、`parent_id`、`level`
|
||||
- [ ] **3.3** 日志输出 inserted / skipped / warnings 统计
|
||||
|
||||
---
|
||||
|
||||
## Task 4: 留痕与文档回写
|
||||
|
||||
**Files:**
|
||||
- Create: `docs/data-migration/phase-1-crm/logs/YYYY-MM-DD-HHMM-product-category.md`
|
||||
- Modify: `docs/data-migration/README.md` 状态表
|
||||
|
||||
- [ ] **4.1** 按 `03-process-logging.md` 模板追加日志
|
||||
- [ ] **4.2** 更新 README「P1-1 产品分类」为「已执行 / 待执行」
|
||||
- [ ] **4.3** 将 category mapping 合并进 `crm_id_mapping.csv`(列:`entity,source_id,new_id,remark`)
|
||||
|
||||
---
|
||||
|
||||
## Task 5: 界面验收
|
||||
|
||||
- [ ] **5.1** 登录门户,打开产品分类树形页
|
||||
- [ ] **5.2** 确认 5 个节点、排序、状态 Tag
|
||||
- [ ] **5.3** 在 step-01 日志中记录截图路径或文字结论
|
||||
|
||||
---
|
||||
|
||||
## 后续步骤(本计划不包含)
|
||||
|
||||
- **P1-1b** `crm_product` + `category_id` 外键(依赖本步 mapping)
|
||||
- 参考:`docs/superpowers/plans/2026-05-30-crm-iteration1-product.md`(代码移植;数据同步另写 step-02)
|
||||
|
||||
---
|
||||
|
||||
## 执行顺序提醒
|
||||
|
||||
```
|
||||
P0 用户 ✅ → P1-1 产品分类(本计划)→ P1-1b 产品 → P1-2 客户 → …
|
||||
```
|
||||
|
||||
字典 P0-1:**无需导入**(见 `phase-0-foundation/step-01-dict.md`)。
|
||||
@@ -48,10 +48,10 @@
|
||||
|
||||
| 决策点 | 结论 | 理由 |
|
||||
|--------|------|------|
|
||||
| 主键策略 | 统一 `VARCHAR(64) UUID` | 与一体化公共字段规范一致 |
|
||||
| 主键策略 | `VARCHAR(64)`,数据迁移 **原样保留源 id** | 见 `docs/data-migration/05-id-preservation-policy.md` |
|
||||
| 租户字段 | 统一 `tenant_no VARCHAR(64)` | 与一体化 sys_* 表一致 |
|
||||
| 用户/部门引用 | `VARCHAR(64)` 指向 sys_user/sys_dept | 复用一体化用户体系 |
|
||||
| 附件策略 | 新建 `sys_oss`(基于 CRM `sys_oss` 结构,id→UUID + 加 `tenant_no` + `biz_type`/`biz_id`),全系统共用 | 与 CRM 源表同名同字段,方便迁移;报销/地磅等也复用 |
|
||||
| 附件策略 | 新建 `sys_oss`(基于 CRM `sys_oss` 结构,id→`str(oss_id)` + 加 `tenant_no` + `biz_type`/`biz_id`),全系统共用 | 与 CRM 源表同名同字段,方便迁移;报销/地磅等也复用 |
|
||||
| 字典策略 | 复用一体化 `sys_dict_data`/`sys_dict_type`,CRM 字典数据迁移 SQL 插入 | 字典功能相同,避免两套字典割裂 |
|
||||
| 工作流 | 复用 `wf_*` 引擎 | 合同审批、报价审批走统一工作流 |
|
||||
| 字典数据 | 编写迁移 SQL 脚本导入 `sys_dict_data` | CRM 使用的行业/来源/等级等字典需导入 |
|
||||
@@ -77,7 +77,7 @@
|
||||
`del_flag` SMALLINT NOT NULL DEFAULT 0 COMMENT '删除标记:0-正常 1-已删除',
|
||||
```
|
||||
|
||||
**主键**:`id VARCHAR(64) NOT NULL` UUID 值。
|
||||
**主键**:`id VARCHAR(64) NOT NULL`;生产数据迁移时写入 `str(源id)`(见 05-id-preservation-policy)。
|
||||
|
||||
---
|
||||
|
||||
@@ -273,7 +273,7 @@ CREATE TABLE `crm_product_tag_relation` (
|
||||
|
||||
#### sys_oss(统一附件表,基于 CRM sys_oss 结构,全系统共用)
|
||||
|
||||
> 采用 CRM 系统 `sys_oss` 的字段模型,仅将 `oss_id`(bigint)改为 `id`(VARCHAR UUID),新增 `tenant_no`,新增 `biz_type`/`biz_id` 关联字段。
|
||||
> 采用 CRM 系统 `sys_oss` 的字段模型,仅将 `oss_id`(bigint)改为 `id`(`str(oss_id)`),新增 `tenant_no`,新增 `biz_type`/`biz_id` 关联字段。
|
||||
> 此表为 CRM、报销、地磅等所有子系统的**统一附件存储**,通过 `biz_type` 区分业务归属。
|
||||
> 方便后续从 CRM 直接迁移 sys_oss 数据(字段名完全一致,仅 id 类型转换)。
|
||||
|
||||
@@ -296,10 +296,10 @@ CREATE TABLE `sys_oss` (
|
||||
-- 公共字段
|
||||
`order_num` INT DEFAULT NULL COMMENT '排序号',
|
||||
`remark` VARCHAR(512) DEFAULT NULL COMMENT '备注',
|
||||
`create_by` VARCHAR(64) DEFAULT NULL COMMENT '创建人id(原 sys_oss.create_by bigint→UUID)',
|
||||
`create_dept_id` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '创建人部门ID(原 sys_oss.create_dept bigint→UUID)',
|
||||
`create_by` VARCHAR(64) DEFAULT NULL COMMENT '创建人id(经 user_mapping)',
|
||||
`create_dept_id` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '创建人部门ID',
|
||||
`create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` VARCHAR(64) DEFAULT NULL COMMENT '更新人id(原 sys_oss.update_by bigint→UUID)',
|
||||
`update_by` VARCHAR(64) DEFAULT NULL COMMENT '更新人id(经 user_mapping)',
|
||||
`update_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`del_flag` SMALLINT NOT NULL DEFAULT 0 COMMENT '删除标记:0-正常 1-已删除',
|
||||
PRIMARY KEY (`id`),
|
||||
@@ -1024,12 +1024,14 @@ CRM 管理
|
||||
|
||||
### 7.1 主键映射
|
||||
|
||||
| CRM (bigint) | 一体化 (VARCHAR UUID) | 说明 |
|
||||
|---------------|----------------------|------|
|
||||
| `id` (AUTO_INCREMENT) | `id` (UUID) | 需建立映射表 `crm_id_mapping(old_id, new_id, table_name)` |
|
||||
| `owner_user_id` (bigint) | `owner_user_id` (VARCHAR) | 需映射到 sys_user.id |
|
||||
| `customer_id` (bigint) | `customer_id` (VARCHAR) | 先迁移客户,再迁移子表时查映射表 |
|
||||
| `create_by` (bigint) | `create_by` (VARCHAR) | 映射到 sys_user.id |
|
||||
> **修订(2026-07-12)**:生产数据同步以 `docs/data-migration/05-id-preservation-policy.md` 为准——**业务主键原样保留**(`bigint` → 同值 `VARCHAR` 字符串),不再统一生成 UUID。用户外键仍经 `user_mapping` 转换。
|
||||
|
||||
| CRM (bigint) | 一体化 (VARCHAR) | 说明 |
|
||||
|---------------|------------------|------|
|
||||
| `id` (AUTO_INCREMENT) | `id` (`str(id)`) | 恒等映射;`crm_id_mapping` 用于审计 |
|
||||
| `owner_user_id` (bigint) | `owner_user_id` (VARCHAR) | **例外**:映射到 `sys_user.id`(门户 UUID) |
|
||||
| `customer_id` (bigint) | `customer_id` (VARCHAR) | `str(customer_id)`;先迁客户再迁子表 |
|
||||
| `create_by` (bigint) | `create_by` (VARCHAR) | **例外**:映射到 `sys_user.id` |
|
||||
|
||||
### 7.2 租户字段
|
||||
|
||||
@@ -1050,17 +1052,17 @@ CRM 附件: sys_oss 表
|
||||
service → 存储服务商(minio)
|
||||
|
||||
目标: sys_oss 统一附件表(与 CRM 源表同名同结构)
|
||||
id (VARCHAR UUID) ← oss_id 映射
|
||||
id (VARCHAR) ← str(oss_id),原样保留
|
||||
tenant_no ← tenant_id 改名
|
||||
biz_type / biz_id ← 业务关联字段(需根据 CRM 中的附件关联逻辑补充)
|
||||
file_name / original_name / file_suffix / url ← 字段名完全一致,直接复制
|
||||
create_by (VARCHAR) ← create_by (bigint) UUID 映射
|
||||
create_dept_id (VARCHAR) ← create_dept (bigint) UUID 映射
|
||||
create_by (VARCHAR) ← create_by (bigint) 经 user_mapping
|
||||
create_dept_id (VARCHAR) ← create_dept (bigint) 经 dept_mapping(若有)
|
||||
service ← 字段完全一致,直接复制
|
||||
|
||||
迁移优势:
|
||||
1. 字段名完全一致(file_name/original_name/file_suffix/url/service),直接 INSERT
|
||||
2. 只需 oss_id→UUID、tenant_id→tenant_no、create_by/create_dept 的 UUID 映射
|
||||
2. 只需 oss_id→str(oss_id)、tenant_id→tenant_no、create_by/create_dept 的用户 UUID 映射
|
||||
3. 未来报销系统(bx_*)、地磅系统的附件同样写入此表,用 biz_type 区分
|
||||
4. 报销迁移时 bx_attachment 的数据也可映射到此表
|
||||
```
|
||||
@@ -1148,37 +1150,37 @@ CRM: create_dept (bigint) → CRM 的 sys_dept
|
||||
|
||||
| CRM 原始表 | 新表 | 变更说明 |
|
||||
|------------|------|----------|
|
||||
| crm_product_category | crm_product_category | 主键改 UUID,公共字段统一 |
|
||||
| crm_product | crm_product | 主键改 UUID,category_id 改 VARCHAR |
|
||||
| crm_product_price | crm_product_price | 主键改 UUID,product_id 改 VARCHAR |
|
||||
| crm_product_price_history | crm_product_price_history | 主键改 UUID |
|
||||
| crm_product_stock_log | crm_product_stock_log | 主键改 UUID |
|
||||
| crm_product_tag | crm_product_tag | 主键改 UUID |
|
||||
| crm_product_tag_relation | crm_product_tag_relation | 主键改 UUID,关联 ID 改 VARCHAR |
|
||||
| crm_product_category | crm_product_category | 主键原样保留 str(id),公共字段统一 |
|
||||
| crm_product | crm_product | 主键原样保留 str(id),category_id 改 VARCHAR |
|
||||
| crm_product_price | crm_product_price | 主键原样保留 str(id),product_id 改 VARCHAR |
|
||||
| crm_product_price_history | crm_product_price_history | 主键原样保留 str(id) |
|
||||
| crm_product_stock_log | crm_product_stock_log | 主键原样保留 str(id) |
|
||||
| crm_product_tag | crm_product_tag | 主键原样保留 str(id) |
|
||||
| crm_product_tag_relation | crm_product_tag_relation | 主键原样保留 str(id),关联 ID 改 VARCHAR |
|
||||
| crm_product_attachment | **删除** → 复用 sys_oss | biz_type='crm_product' |
|
||||
| crm_customer | crm_customer | 主键改 UUID,owner/create 改 VARCHAR |
|
||||
| crm_customer_follow | crm_customer_follow | 主键改 UUID |
|
||||
| crm_customer_pool | crm_customer_pool | 主键改 UUID |
|
||||
| crm_customer_pool_rule | crm_customer_pool_rule | 主键改 UUID |
|
||||
| crm_customer_tag | crm_customer_tag | 主键改 UUID |
|
||||
| crm_customer_tag_relation | crm_customer_tag_relation | 主键改 UUID |
|
||||
| crm_contact | crm_contact | 主键改 UUID |
|
||||
| crm_clue | crm_clue | 主键改 UUID |
|
||||
| crm_clue_follow | crm_clue_follow | 主键改 UUID |
|
||||
| crm_opportunity | crm_opportunity | 主键改 UUID |
|
||||
| crm_opportunity_follow | crm_opportunity_follow | 主键改 UUID |
|
||||
| crm_opportunity_product | crm_opportunity_product | 主键改 UUID |
|
||||
| crm_opportunity_stage_log | crm_opportunity_stage_log | 主键改 UUID |
|
||||
| crm_quote | crm_quote | 主键改 UUID |
|
||||
| crm_quote_product | crm_quote_product | 主键改 UUID |
|
||||
| crm_quote_approval | crm_quote_approval | 主键改 UUID |
|
||||
| crm_quote_share_log | crm_quote_share_log | 主键改 UUID |
|
||||
| crm_contract | crm_contract | 主键改 UUID |
|
||||
| crm_contract_product | crm_contract_product | 主键改 UUID |
|
||||
| crm_contract_product_price_tier | crm_contract_product_price_tier | 主键改 UUID |
|
||||
| crm_contract_approval | crm_contract_approval | 主键改 UUID |
|
||||
| crm_contract_change | crm_contract_change | 主键改 UUID |
|
||||
| crm_contract_template | crm_contract_template | 主键改 UUID |
|
||||
| crm_customer | crm_customer | 主键原样保留 str(id),owner/create 用户外键经 mapping |
|
||||
| crm_customer_follow | crm_customer_follow | 主键原样保留 str(id) |
|
||||
| crm_customer_pool | crm_customer_pool | 主键原样保留 str(id) |
|
||||
| crm_customer_pool_rule | crm_customer_pool_rule | 主键原样保留 str(id) |
|
||||
| crm_customer_tag | crm_customer_tag | 主键原样保留 str(id) |
|
||||
| crm_customer_tag_relation | crm_customer_tag_relation | 主键原样保留 str(id) |
|
||||
| crm_contact | crm_contact | 主键原样保留 str(id) |
|
||||
| crm_clue | crm_clue | 主键原样保留 str(id) |
|
||||
| crm_clue_follow | crm_clue_follow | 主键原样保留 str(id) |
|
||||
| crm_opportunity | crm_opportunity | 主键原样保留 str(id) |
|
||||
| crm_opportunity_follow | crm_opportunity_follow | 主键原样保留 str(id) |
|
||||
| crm_opportunity_product | crm_opportunity_product | 主键原样保留 str(id) |
|
||||
| crm_opportunity_stage_log | crm_opportunity_stage_log | 主键原样保留 str(id) |
|
||||
| crm_quote | crm_quote | 主键原样保留 str(id) |
|
||||
| crm_quote_product | crm_quote_product | 主键原样保留 str(id) |
|
||||
| crm_quote_approval | crm_quote_approval | 主键原样保留 str(id) |
|
||||
| crm_quote_share_log | crm_quote_share_log | 主键原样保留 str(id) |
|
||||
| crm_contract | crm_contract | 主键原样保留 str(id) |
|
||||
| crm_contract_product | crm_contract_product | 主键原样保留 str(id) |
|
||||
| crm_contract_product_price_tier | crm_contract_product_price_tier | 主键原样保留 str(id) |
|
||||
| crm_contract_approval | crm_contract_approval | 主键原样保留 str(id) |
|
||||
| crm_contract_change | crm_contract_change | 主键原样保留 str(id) |
|
||||
| crm_contract_template | crm_contract_template | 主键原样保留 str(id) |
|
||||
|
||||
### B. 参考文件清单
|
||||
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
# CRM 产品分类数据移植设计
|
||||
|
||||
> **日期**:2026-07-12
|
||||
> **范围**:仅 `crm_product_category` 表(P1 第一步)
|
||||
> **权威业务设计**:`docs/superpowers/specs/2026-05-30-crm-migration-design.md` §4.1、§7.6 第 4 步
|
||||
> **数据操作手册**:`docs/data-migration/phase-1-crm/step-01-product-category.md`
|
||||
|
||||
---
|
||||
|
||||
## 1. 背景与目标
|
||||
|
||||
山峡 1.0 CRM 产品分类在 sx 库中为 **bigint 主键 + 若依树字段**;门户 2.0 已具备产品分类 **前后端能力**(`web-admin/src/views/crm/product-category/`、`backend/app/crud/crm/product.py`),但目标表 **当前无业务数据**。
|
||||
|
||||
目标:
|
||||
|
||||
1. 将 sx `crm_product_category` 迁入门户 `crm_product_category`
|
||||
2. 生成 `crm_product_category_id_mapping.csv`,供 **产品(step-02)** 及报价/合同行项目 `category_id` 使用
|
||||
3. 脚本可 `--dry-run`、可重复执行、全过程写入 `phase-1-crm/logs/`
|
||||
|
||||
---
|
||||
|
||||
## 2. 源数据概况(sx.sql 快照)
|
||||
|
||||
| 项 | 值 |
|
||||
|----|-----|
|
||||
| 有效行数(INSERT) | **5** |
|
||||
| 树深度 | 仅顶级(`parent_id = 0`) |
|
||||
| 分类名称 | 有机原料、无机原料、水处理溶剂、其他、未分类 |
|
||||
| `create_by` | 均为 `1`(CRM 若依管理员) |
|
||||
| `tenant_id` | `000000` |
|
||||
|
||||
后续若生产库存在子分类,脚本须按 **父先于子** 拓扑排序插入(本快照无子节点)。
|
||||
|
||||
## 3.1 主键策略
|
||||
|
||||
遵循全局策略:[05-id-preservation-policy.md](../../data-migration/05-id-preservation-policy.md)(2026-07-12 确认)。
|
||||
|
||||
与地磅 `migrate_dibang_data.py` 一致:**源 bigint 主键原样写入目标 VARCHAR**。
|
||||
|
||||
| 源 id | 目标 id |
|
||||
|-------|---------|
|
||||
| `1975766404158746625` | `"1975766404158746625"` |
|
||||
|
||||
好处:
|
||||
|
||||
- `crm_product.category_id`、报价/合同行 `category_id` 可直接 `str(源值)` 写入,**无需查 category mapping**
|
||||
- `crm_product_category_id_mapping.csv` 仍为恒等映射,便于审计与二次移植对账
|
||||
|
||||
注意:用户相关外键仍经 `user_mapping`;业务实体 id 均原样保留。
|
||||
|
||||
---
|
||||
|
||||
## 3. 表结构差异
|
||||
|
||||
| 源字段 (sx) | 目标字段 (shanxia2.0) | 转换规则 |
|
||||
|-------------|----------------------|----------|
|
||||
| `id` bigint | `id` varchar(64) | **原样保留**:`str(source_id)`(如 `1975766404158746625`);mapping 为恒等映射 |
|
||||
| `parent_id` bigint | `parent_id` varchar(64) | `0`→`'0'`;否则 `str(parent_id)`(与源同值) |
|
||||
| `category_name` | `category_name` | 原样 |
|
||||
| — | `category_code` | NULL(源无此列) |
|
||||
| `ancestors` | — | **丢弃**;门户用 `parent_id` + `level` 组树 |
|
||||
| `sort` | `order_num` | 原样 |
|
||||
| `status` varchar | `status` char(1) | **保持若依语义**:`0`=正常、`1`=停用(见 §4) |
|
||||
| — | `level` | `parent_id=0` → `1`;否则父 level+1 |
|
||||
| `tenant_id` | `tenant_no` | 固定 `'shanxia2.0'` |
|
||||
| `create_dept` bigint | `create_dept_id` | 默认 `''`(或后续 dept_mapping) |
|
||||
| `create_by` bigint | `create_by` varchar(64) | 经 `user_mapping_result.csv` 的 `crm_user_id` |
|
||||
| `create_time` | `create_time` | 原样 |
|
||||
| `update_by` | `update_by` | 同 create_by 映射 |
|
||||
| `update_time` | `update_time` | 原样 |
|
||||
| `del_flag` | `del_flag` | 原样(0/1) |
|
||||
| `remark` | `remark` | 原样 |
|
||||
| `version` | — | 丢弃 |
|
||||
|
||||
---
|
||||
|
||||
## 4. 状态字段语义(重要)
|
||||
|
||||
产品分类页使用字典 **`sys_normal_disable`**(与若依一致):
|
||||
|
||||
- `0` = 正常(启用)
|
||||
- `1` = 停用
|
||||
|
||||
前端默认 `formData.status = '0'`(`product-category/index.vue`)。
|
||||
|
||||
源数据 5 条均为 `status='0'` → 目标 **仍为 `'0'`**,**不要**按 Model 注释「1启用 0停用」做反转。
|
||||
|
||||
---
|
||||
|
||||
## 5. 用户 ID 映射
|
||||
|
||||
依赖 P0 产物:`docs/data-migration/mappings/user_mapping_result.csv`
|
||||
|
||||
| 源 `create_by` | 处理 |
|
||||
|----------------|------|
|
||||
| `1`(若依 admin) | 映射到门户 `sys_user.user_no='admin'` 的 `id` |
|
||||
| 其他 CRM `sys_user.user_id` | 查 `crm_user_id` 列 → `new_user_id` |
|
||||
| 无匹配 | `create_by`/`update_by` 置 NULL,日志 WARNING |
|
||||
|
||||
源 5 条分类的 `create_by=1`、`update_by=1` → 预期写入门户 admin UUID。
|
||||
|
||||
---
|
||||
|
||||
## 6. 依赖与阻塞
|
||||
|
||||
| 依赖 | 状态 | 说明 |
|
||||
|------|------|------|
|
||||
| P0 用户映射 | ✅ 已有 `user_mapping_result.csv` | create_by 转换 |
|
||||
| P0 字典 | ✅ 无需导入 | `sys_normal_disable` 已对齐 |
|
||||
| P0 部门 | 可选 | `create_dept_id` 可暂空 |
|
||||
| 目标表 DDL | ✅ `shanxia2.0.sql` 已存在 | 与 `CrmProductCategory` ORM 一致 |
|
||||
|
||||
**不依赖**产品、客户、附件。
|
||||
|
||||
---
|
||||
|
||||
## 7. 脚本设计 `migrate_crm_product_category.py`
|
||||
|
||||
### 7.1 接口
|
||||
|
||||
```bash
|
||||
cd backend && source venv/bin/activate
|
||||
ENV_FILE=.env.production python scripts/migrate_crm_product_category.py --dry-run \
|
||||
--source-url mysql+pymysql://user:***@host:3306/sx \
|
||||
--user-mapping ../docs/data-migration/mappings/user_mapping_result.csv
|
||||
|
||||
ENV_FILE=.env.production python scripts/migrate_crm_product_category.py \
|
||||
--mapping-out ../docs/data-migration/mappings/crm_product_category_id_mapping.csv
|
||||
```
|
||||
|
||||
环境变量:
|
||||
|
||||
- `DATABASE_URL` / `ENV_FILE`:目标库
|
||||
- `SX_SOURCE_DATABASE_URL`:默认源库(可覆盖 `--source-url`)
|
||||
|
||||
### 7.2 算法
|
||||
|
||||
1. 读源表 `WHERE del_flag = 0`(可选 `--include-deleted`)
|
||||
2. 按 `parent_id` 拓扑排序(Kahn 或递归:父节点先于子节点)
|
||||
3. 对每行:
|
||||
- `new_id = str(source_id)`(**恒等**,非 `generate_uuid()`)
|
||||
- 若目标已存在同 `id` → **SKIP**(默认)或 `--update` 覆盖非主键字段
|
||||
- 否则 INSERT
|
||||
4. 写 mapping CSV:`source_id` 与 `new_id` **相同**
|
||||
5. 打印 stats:inserted / skipped / warnings
|
||||
|
||||
### 7.3 幂等策略
|
||||
|
||||
| 模式 | 行为 |
|
||||
|------|------|
|
||||
| 默认 | mapping 存在则 skip |
|
||||
| `--update` | 按 source_id 更新名称、排序、状态、parent、level |
|
||||
| `--force` | 测试库:软删目标租户下已有分类后重灌(**禁止生产默认开启**) |
|
||||
|
||||
---
|
||||
|
||||
## 8. 验收
|
||||
|
||||
### 8.1 数据
|
||||
|
||||
```sql
|
||||
-- 源
|
||||
SELECT COUNT(*) FROM crm_product_category WHERE del_flag = 0; -- 预期 5
|
||||
|
||||
-- 目标
|
||||
SELECT COUNT(*) FROM crm_product_category WHERE tenant_no='shanxia2.0' AND del_flag=0;
|
||||
|
||||
SELECT id, parent_id, category_name, order_num, status, level
|
||||
FROM crm_product_category WHERE tenant_no='shanxia2.0' ORDER BY order_num;
|
||||
```
|
||||
|
||||
### 8.2 界面
|
||||
|
||||
- 路径:`/#/crm/product-category`(或菜单「产品分类」)
|
||||
- 账号:方金强 / 销售主管权限账号
|
||||
- 预期:5 个顶级节点,名称与源一致,状态显示「正常」
|
||||
|
||||
### 8.3 下游
|
||||
|
||||
- `mappings/crm_product_category_id_mapping.csv` 行数 = 源有效行数
|
||||
- step-02 产品迁移脚本可读取该文件转换 `crm_product.category_id`
|
||||
|
||||
---
|
||||
|
||||
## 9. 风险
|
||||
|
||||
| 风险 | 对策 |
|
||||
|------|------|
|
||||
| 生产库分类数 > 快照 5 条 | 脚本按全量 SELECT,不仅依赖 sx.sql |
|
||||
| 同名分类重复灌入 | 幂等靠 source_id mapping;二次移植先加载 mapping |
|
||||
| status 误反转 | 固定走 `sys_normal_disable` 语义,单测 5 条 |
|
||||
| create_by=1 无映射 | 显式 fallback 到 admin |
|
||||
| 子分类 parent 未先插入 | 拓扑排序 + 孤儿检测报错 |
|
||||
|
||||
---
|
||||
|
||||
## 10. 不在本步范围
|
||||
|
||||
- `crm_product` 及产品附件
|
||||
- `category_code` 自动生成(源无数据,保持 NULL)
|
||||
- 部门 `create_dept_id` 精细映射(可后续增强)
|
||||
@@ -0,0 +1,232 @@
|
||||
# CRM 产品编号统一化与映射表设计
|
||||
|
||||
> **日期**:2026-07-12
|
||||
> **范围**:P1-1c — 已迁入的 `crm_product` 编号重整 + 映射产物
|
||||
> **前置**:P1-1b 产品主表已迁入(239 条,`crm_product_id_mapping.csv`)
|
||||
> **权威编号规则**:`backend/app/crud/crm/product.py` → `SXWL` + **6 位纯数字流水**(如 `SXWL000001`)
|
||||
> **全局 ID 策略**:[05-id-preservation-policy.md](../../data-migration/05-id-preservation-policy.md) — **`product_id` 不变**,仅 `product_no` 变更
|
||||
|
||||
---
|
||||
|
||||
## 1. 背景与问题
|
||||
|
||||
### 1.1 现状(迁移后目标库)
|
||||
|
||||
239 条产品已从 sx 原样迁入 `crm_product`(id、`product_no` 均保持源值)。对 `crm_product_id_mapping.csv` 中 `product_no` 的统计:
|
||||
|
||||
| 编号形态 | 条数 | 示例 |
|
||||
|----------|------|------|
|
||||
| 旧式分类编码 `SXWL` + 非 6 位流水 | 124 | `SXWL00101`(分类 001 + 序号 01) |
|
||||
| 报价自动新增 `PRD` + 日期 + 随机 | 98 | `PRD202511130d2a` |
|
||||
| 其他非标准 | 16 | `000400002`、`000100002` |
|
||||
| 已符合新规则 `SXWL` + 6 位 | 1 | (极少数) |
|
||||
|
||||
**结论**:绝大多数编号不符合门户 2.0 的 `SXWL000001` 规范;且旧编号会干扰 `generate_product_no()` 的 `_max_sxwl_product_seq()`(把 `SXWL00101` 解析为流水 101)。
|
||||
|
||||
### 1.2 业务关联方式(回顾)
|
||||
|
||||
| 表 | 关联字段 | `product_no` 角色 |
|
||||
|----|----------|-------------------|
|
||||
| `crm_quote_product` | **`product_id`**(主) | 多为 `NULL`,编号非主关联 |
|
||||
| `crm_contract_product` | **`product_id`**(主) | 冗余快照,常有旧编号如 `SXWL00101` |
|
||||
|
||||
后续 P1 报价/合同迁移:**`product_id` 仍 `str(源值)` 直写**;明细行 `product_no` 应写入**统一后的新编号**(经映射表转换)。
|
||||
|
||||
### 1.3 目标
|
||||
|
||||
1. 将 `crm_product.product_no` 全部规范为 `SXWL` + 6 位递增流水(租户 `shanxia2.0` 内唯一)。
|
||||
2. 生成**中间映射表**(文件 + 可选脚本内存结构),记录 `旧编号 → 新编号`,并带 `product_id` 便于按主键查。
|
||||
3. 全过程可 dry-run、可审计、可二次执行;与 `03-process-logging.md` 留痕规范一致。
|
||||
|
||||
---
|
||||
|
||||
## 2. 方案对比
|
||||
|
||||
### 方案 A:CSV 映射 + 批量 UPDATE 主表(推荐)
|
||||
|
||||
| 项 | 说明 |
|
||||
|----|------|
|
||||
| 映射产物 | `docs/data-migration/mappings/crm_product_no_mapping.csv` |
|
||||
| 执行 | `renumber_crm_product_no.py`:生成映射 → `--apply` 更新 `crm_product.product_no` |
|
||||
| 优点 | 与现有 `*_id_mapping.csv` 体系一致;Git 可 diff;迁移脚本直接 `csv.DictReader` |
|
||||
| 缺点 | 非 SQL 联表;大批量脚本需加载到 dict |
|
||||
|
||||
### 方案 B:目标库临时/持久映射表
|
||||
|
||||
| 项 | 说明 |
|
||||
|----|------|
|
||||
| 映射产物 | 如 `migration_crm_product_no_map`(仅迁移用,不进业务菜单) |
|
||||
| 优点 | 迁移 SQL 可 `JOIN` |
|
||||
| 缺点 | 多一张表的生命周期管理;与当前「映射放 mappings/」习惯不一致 |
|
||||
|
||||
### 方案 C:仅改主表、不保留映射
|
||||
|
||||
| 项 | 说明 |
|
||||
|----|------|
|
||||
| 做法 | 直接 UPDATE,旧编号丢失 |
|
||||
| 缺点 | 合同明细快照、导出对账、二次移植无法还原;**不可接受** |
|
||||
|
||||
**推荐:方案 A**。若后续单次迁移 SQL 极复杂,可在脚本内将 CSV 导入**会话级临时表**,不写入 `shanxia2.0.sql` 基线。
|
||||
|
||||
---
|
||||
|
||||
## 3. 新编号分配规则
|
||||
|
||||
### 3.1 格式
|
||||
|
||||
```
|
||||
SXWL + 6位十进制流水(左补零)
|
||||
范围:SXWL000001 … SXWL999999
|
||||
```
|
||||
|
||||
与 `generate_product_no()` 完全一致。
|
||||
|
||||
### 3.2 分配顺序(默认)
|
||||
|
||||
按 **`product_id` 数值升序** 依次分配 `000001`、`000002`、…、`000239`。
|
||||
|
||||
理由:
|
||||
|
||||
- 与全局「id 原样保留」一致,稳定可复现;
|
||||
- 实现简单,二次执行结果 deterministic;
|
||||
- 不试图保留旧分类段含义(旧 `SXWL00101` 语义废弃)。
|
||||
|
||||
**可选变体**(需产品确认后改脚本常量):按 `category_id` + `product_name` 排序后再编号。
|
||||
|
||||
### 3.3 不变项
|
||||
|
||||
| 字段 | 策略 |
|
||||
|------|------|
|
||||
| `crm_product.id` | **不变** |
|
||||
| `product_name`、`category_id` 等 | **不变** |
|
||||
| `barcode` | **不变**(与编号独立) |
|
||||
|
||||
---
|
||||
|
||||
## 4. 中间映射表结构
|
||||
|
||||
### 4.1 文件路径
|
||||
|
||||
```
|
||||
docs/data-migration/mappings/crm_product_no_mapping.csv
|
||||
```
|
||||
|
||||
与 `crm_product_id_mapping.csv` 并列;**不替代** id 映射(id 仍为恒等映射)。
|
||||
|
||||
### 4.2 列定义
|
||||
|
||||
| 列名 | 类型 | 说明 |
|
||||
|------|------|------|
|
||||
| `product_id` | string | `crm_product.id`(源 = 目标,不变) |
|
||||
| `old_product_no` | string | 迁移后、重编号前的编号(来自当前库或 id_mapping 快照) |
|
||||
| `new_product_no` | string | 统一后的 `SXWL00000N` |
|
||||
| `product_name` | string | 审计用 |
|
||||
| `category_id` | string | 审计用 |
|
||||
| `seq` | int | 新流水序号 1…N |
|
||||
| `renumbered_at` | datetime | 执行时间(正式 apply 时写入) |
|
||||
|
||||
### 4.3 示例
|
||||
|
||||
```csv
|
||||
product_id,old_product_no,new_product_no,product_name,category_id,seq,renumbered_at
|
||||
1,SXWL00101,SXWL000001,98% 工业硫酸,1975766458781167617,1,2026-07-12 21:00:00
|
||||
2,SXWL00102,SXWL000002,92% 工业硫酸,1975766458781167617,2,2026-07-12 21:00:00
|
||||
1988804778813702146,PRD202511130d2a,SXWL000125,硫酸分析纯,1975766458781167617,125,2026-07-12 21:00:00
|
||||
```
|
||||
|
||||
### 4.4 查询约定(供后续迁移脚本)
|
||||
|
||||
```python
|
||||
# 按 product_id(首选 — 报价/合同明细外键)
|
||||
new_no = by_id[product_id]["new_product_no"]
|
||||
|
||||
# 按 old_product_no(兜底 — 仅文本引用、无 id 的场景)
|
||||
new_no = by_old_no.get(old_product_no) or by_id[product_id]["new_product_no"]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. 执行流程(P1-1c)
|
||||
|
||||
```
|
||||
步骤 1 dry-run 生成映射预览(不写库)
|
||||
步骤 2 人工审阅:239 行、新编号连续、无重复 new_product_no
|
||||
步骤 3 --apply 事务内批量 UPDATE crm_product.product_no
|
||||
步骤 4 写出 crm_product_no_mapping.csv(含 renumbered_at)
|
||||
步骤 5 追加 phase-1-crm/logs/YYYY-MM-DD-HHMM-product-no-renumber.md
|
||||
步骤 6 验收 SQL + 产品列表页抽样
|
||||
```
|
||||
|
||||
### 5.1 脚本要求
|
||||
|
||||
- 路径:`backend/scripts/renumber_crm_product_no.py`
|
||||
- 参数:`--dry-run`(默认)、`--apply`、`--env-file`、`--mapping-out`
|
||||
- 幂等:`--apply` 时若 `product_no` 已等于 `new_product_no` → SKIP
|
||||
- 安全:检测 `new_product_no` 冲突、UPDATE 行数与映射行数一致
|
||||
- **禁止**修改 `id` 或删除行
|
||||
|
||||
### 5.2 与自动生成逻辑的衔接
|
||||
|
||||
重编号完成后,租户内最大流水应为 `239`(或当前产品总数),此后新建产品调用 `generate_product_no()` 将从 `SXWL000240` 起,行为正确。
|
||||
|
||||
建议在脚本 apply 后输出一行:`next_auto_seq = max(seq)+1`。
|
||||
|
||||
---
|
||||
|
||||
## 6. 下游数据移植如何使用映射
|
||||
|
||||
| 下游步骤 | `product_id` | `product_no` 字段处理 |
|
||||
|----------|--------------|------------------------|
|
||||
| P1 报价明细 `crm_quote_product` | `str(源 product_id)` | 多为 NULL;若有值则 `by_id` 或 `by_old_no` 转新编号;**推荐按 id 填 `new_product_no`** |
|
||||
| P1 合同明细 `crm_contract_product` | `str(源 product_id)` | 源快照 `product_no` 经 `by_old_no` 或 `by_id` → **写入 `new_product_no`** |
|
||||
| P3 地磅(方案 A 文本) | 可选 `product_id` | 名称文本仍快照;若未来按编号对接则查映射 |
|
||||
| 导出/打印模板 | — | 展示新编号;历史对账用映射 CSV |
|
||||
|
||||
**重要**:报价/合同业务逻辑以 **`product_id` 为准**;映射表主要服务 **`product_no` 快照字段** 与人工对账,不改变 id 外键策略。
|
||||
|
||||
---
|
||||
|
||||
## 7. 风险与缓解
|
||||
|
||||
| 风险 | 缓解 |
|
||||
|------|------|
|
||||
| 重编号后运营人员仍记旧号 | 映射 CSV 长期保留;产品页展示新号;可提供「旧编号」只读列(可选,非本步必须) |
|
||||
| `uk_product_no` 唯一约束冲突 | 先分配全新号再 UPDATE;单事务;dry-run 检测冲突 |
|
||||
| 二次全量移植覆盖编号 | 二次移植产品后**重新跑 P1-1c**;映射文件按批次追加或带 `batch_id`(见 logs) |
|
||||
| 旧 PRD 编号无业务含义 | 全部纳入统一流水,不保留 PRD 前缀 |
|
||||
|
||||
---
|
||||
|
||||
## 8. 验收标准
|
||||
|
||||
- [ ] `crm_product` 有效行数仍为 239
|
||||
- [ ] 所有 `product_no` 匹配 `^SXWL[0-9]{6}$`
|
||||
- [ ] `new_product_no` 租户内无重复
|
||||
- [ ] `crm_product_no_mapping.csv` 239 行,且 `old_product_no` 与重编号前一致
|
||||
- [ ] 任意抽样:`by_id[product_id].new_product_no` = 库中 `crm_product.product_no`
|
||||
- [ ] `generate_product_no()` 下一条为 `SXWL000240`(或 N+1)
|
||||
|
||||
---
|
||||
|
||||
## 9. 不在本步范围
|
||||
|
||||
- 修改 sx 源库
|
||||
- 回溯更新 sx 中报价/合同历史(仅门户侧处理)
|
||||
- 产品 `barcode` 重整
|
||||
- 门户产品列表增加「旧编号」展示(可另开需求)
|
||||
|
||||
---
|
||||
|
||||
## 10. 文档与计划衔接
|
||||
|
||||
| 文档 | 动作 |
|
||||
|------|------|
|
||||
| `docs/data-migration/04-execution-order.md` | 增加 **P1-1c 产品编号统一**(在 P1-1b 之后、客户之前) |
|
||||
| `docs/data-migration/phase-1-crm/step-03-product-no-renumber.md` | 实施时编写操作手册 |
|
||||
| `docs/superpowers/plans/2026-07-12-crm-product-no-renumber.md` | 用户批准本设计后编写实现计划 |
|
||||
|
||||
---
|
||||
|
||||
## 11. 待产品确认(1 项)
|
||||
|
||||
**新编号排序**:默认按 `product_id` 升序分配 `SXWL000001` 起。是否改为按**分类 + 产品名称**排序?(默认维持 id 升序,除非另有要求。)
|
||||
+5630
-259
File diff suppressed because it is too large.
Load diff
@@ -725,10 +725,34 @@
|
||||
"723": "Community 723",
|
||||
"724": "Community 724",
|
||||
"725": "Community 725",
|
||||
"726": "Community 726",
|
||||
"727": "Community 727",
|
||||
"728": "Community 728",
|
||||
"729": "Community 729",
|
||||
"730": "Community 730",
|
||||
"731": "Community 731",
|
||||
"732": "Community 732",
|
||||
"733": "Community 733",
|
||||
"734": "Community 734",
|
||||
"735": "Community 735",
|
||||
"737": "Community 737"
|
||||
"736": "Community 736",
|
||||
"737": "Community 737",
|
||||
"738": "Community 738",
|
||||
"739": "Community 739",
|
||||
"740": "Community 740",
|
||||
"741": "Community 741",
|
||||
"742": "Community 742",
|
||||
"743": "Community 743",
|
||||
"744": "Community 744",
|
||||
"745": "Community 745",
|
||||
"746": "Community 746",
|
||||
"747": "Community 747",
|
||||
"748": "Community 748",
|
||||
"749": "Community 749",
|
||||
"750": "Community 750",
|
||||
"751": "Community 751",
|
||||
"752": "Community 752",
|
||||
"753": "Community 753",
|
||||
"754": "Community 754",
|
||||
"755": "Community 755"
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_web_admin_src_locales_langs_zh_json", "label": "zh.json", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L1"}, {"id": "langs_zh_httpmsg", "label": "httpMsg", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L2"}, {"id": "langs_zh_httpmsg_unauthorized", "label": "unauthorized", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L3"}, {"id": "langs_zh_httpmsg_forbidden", "label": "forbidden", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L4"}, {"id": "langs_zh_httpmsg_notfound", "label": "notFound", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L5"}, {"id": "langs_zh_httpmsg_methodnotallowed", "label": "methodNotAllowed", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L6"}, {"id": "langs_zh_httpmsg_requesttimeout", "label": "requestTimeout", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L7"}, {"id": "langs_zh_httpmsg_internalservererror", "label": "internalServerError", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L8"}, {"id": "langs_zh_httpmsg_badgateway", "label": "badGateway", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L9"}, {"id": "langs_zh_httpmsg_serviceunavailable", "label": "serviceUnavailable", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L10"}, {"id": "langs_zh_httpmsg_gatewaytimeout", "label": "gatewayTimeout", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L11"}, {"id": "langs_zh_httpmsg_requestcancelled", "label": "requestCancelled", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L12"}, {"id": "langs_zh_httpmsg_networkerror", "label": "networkError", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L13"}, {"id": "langs_zh_httpmsg_requestfailed", "label": "requestFailed", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L14"}, {"id": "langs_zh_httpmsg_requestconfigerror", "label": "requestConfigError", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L15"}, {"id": "langs_zh_topbar", "label": "topBar", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L17"}, {"id": "langs_zh_topbar_search", "label": "search", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L18"}, {"id": "langs_zh_search_title", "label": "title", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L19"}, {"id": "langs_zh_topbar_user", "label": "user", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L21"}, {"id": "langs_zh_user_usercenter", "label": "userCenter", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L22"}, {"id": "langs_zh_user_docs", "label": "docs", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L23"}, {"id": "langs_zh_user_github", "label": "github", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L24"}, {"id": "langs_zh_user_lockscreen", "label": "lockScreen", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L25"}, {"id": "langs_zh_user_changepassword", "label": "changePassword", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L26"}, {"id": "langs_zh_user_logout", "label": "logout", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/zh.json", "source_location": "L27"}, {"id": "lanLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_web_admin_src_locales_langs_en_json", "label": "en.json", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L1"}, {"id": "langs_en_httpmsg", "label": "httpMsg", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L2"}, {"id": "langs_en_httpmsg_unauthorized", "label": "unauthorized", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L3"}, {"id": "langs_en_httpmsg_forbidden", "label": "forbidden", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L4"}, {"id": "langs_en_httpmsg_notfound", "label": "notFound", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L5"}, {"id": "langs_en_httpmsg_methodnotallowed", "label": "methodNotAllowed", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L6"}, {"id": "langs_en_httpmsg_requesttimeout", "label": "requestTimeout", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L7"}, {"id": "langs_en_httpmsg_internalservererror", "label": "internalServerError", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L8"}, {"id": "langs_en_httpmsg_badgateway", "label": "badGateway", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L9"}, {"id": "langs_en_httpmsg_serviceunavailable", "label": "serviceUnavailable", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L10"}, {"id": "langs_en_httpmsg_gatewaytimeout", "label": "gatewayTimeout", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L11"}, {"id": "langs_en_httpmsg_requestcancelled", "label": "requestCancelled", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L12"}, {"id": "langs_en_httpmsg_networkerror", "label": "networkError", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L13"}, {"id": "langs_en_httpmsg_requestfailed", "label": "requestFailed", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L14"}, {"id": "langs_en_httpmsg_requestconfigerror", "label": "requestConfigError", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L15"}, {"id": "langs_en_topbar", "label": "topBar", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L17"}, {"id": "langs_en_topbar_search", "label": "search", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L18"}, {"id": "langs_en_search_title", "label": "title", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L19"}, {"id": "langs_en_topbar_user", "label": "user", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L21"}, {"id": "langs_en_user_usercenter", "label": "userCenter", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L22"}, {"id": "langs_en_user_docs", "label": "docs", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L23"}, {"id": "langs_en_user_github", "label": "github", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L24"}, {"id": "langs_en_user_lockscreen", "label": "lockScreen", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L25"}, {"id": "langs_en_user_changepassword", "label": "changePassword", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L26"}, {"id": "langs_en_user_logout", "label": "logout", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/web-admin/src/locales/langs/en.json", "source_location": "L27"}, {"id": "lanLine truncated
|
||||
+4848
-3969
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,183 @@
|
||||
/**
|
||||
* 完整模拟 MenuProcessor 过滤链
|
||||
* 用法: npx tsx scripts/simulate-menu-filter-full.ts
|
||||
*/
|
||||
import { asyncRoutes } from '../src/router/routes/asyncRoutes'
|
||||
import type { AppRouteRecord } from '../src/types/router'
|
||||
|
||||
const RoutesAlias = { Layout: '/index/index' }
|
||||
|
||||
const menuCodesFromApi = [
|
||||
'bx:advanceApply:list', 'bx:advanceApply:submit', 'bx:advanceApprove:approve', 'bx:advanceApprove:list',
|
||||
'bx:advanceIssue:issue', 'bx:advanceIssue:list', 'bx:expenseItem:add', 'bx:expenseItem:edit',
|
||||
'bx:expenseItem:list', 'bx:expenseItem:remove', 'bx:payment:list', 'bx:payment:pay',
|
||||
'bx:reimburseApply:list', 'bx:reimburseApply:submit', 'bx:reimburseApprove:list', 'bx:viewAll:list',
|
||||
'bx:viewMine:list', 'bx:viewTodo:list', 'bx:workflowAdvance:list', 'bx:workflowReimburse:list',
|
||||
'crm:clue:add', 'crm:clue:assign', 'crm:clue:convert', 'crm:clue:edit', 'crm:clue:export',
|
||||
'crm:clue:follow', 'crm:clue:import', 'crm:clue:invalid', 'crm:clue:list', 'crm:clue:query',
|
||||
'crm:clue:remove', 'crm:contract:list', 'crm:customer:add', 'crm:customer:deal', 'crm:customer:edit',
|
||||
'crm:customer:list', 'crm:customer:query', 'crm:customer:remove', 'crm:customer:toPool',
|
||||
'crm:customer:transfer', 'crm:customerPool:assign', 'crm:customerPool:claim', 'crm:customerPool:list',
|
||||
'crm:opportunity:add', 'crm:opportunity:assign', 'crm:opportunity:edit', 'crm:opportunity:export',
|
||||
'crm:opportunity:follow', 'crm:opportunity:list', 'crm:opportunity:query', 'crm:opportunity:remove',
|
||||
'crm:product:list', 'crm:productCategory:list', 'crm:quote:list', 'db:dashboard:list', 'db:inventory:add',
|
||||
'db:inventory:edit', 'db:inventory:list', 'db:inventory:query', 'db:inventory:remove', 'db:plan:add',
|
||||
'db:plan:edit', 'db:plan:list', 'db:plan:query', 'db:plan:remove', 'db:weighing:add', 'db:weighing:edit',
|
||||
'db:weighing:list', 'db:weighing:query', 'db:weighing:remove', 'db:weighing:void', 'pl:carrier:list',
|
||||
'pl:document:list', 'pl:driver:list', 'pl:freight-approval:list', 'pl:freight-approval:query',
|
||||
'pl:freight-disburse:list', 'pl:freight-disburse:query', 'pl:freight:approve', 'pl:freight:create',
|
||||
'pl:freight:disburse', 'pl:freight:edit', 'pl:freight:list', 'pl:freight:query', 'pl:freight:submit',
|
||||
'pl:freight:withdraw', 'pl:plan-archive:archive', 'pl:plan-archive:edit', 'pl:plan-archive:list',
|
||||
'pl:plan-archive:query', 'pl:plan-cert:list', 'pl:plan:list', 'pl:self-vehicle:list',
|
||||
'pl:transport-address:list', 'pl:vehicle-maintenance-apply:add', 'pl:vehicle-maintenance-apply:cancel',
|
||||
'pl:vehicle-maintenance-apply:edit', 'pl:vehicle-maintenance-apply:list', 'pl:vehicle-maintenance-apply:query',
|
||||
'pl:vehicle-maintenance-apply:remove', 'pl:vehicle-maintenance-process:add', 'pl:vehicle-maintenance-process:edit',
|
||||
'pl:vehicle-maintenance-process:list', 'pl:vehicle-maintenance-process:query', 'pl:vehicle-maintenance-process:remove',
|
||||
'pl:vehicle-recharge-apply:add', 'pl:vehicle-recharge-apply:cancel', 'pl:vehicle-recharge-apply:edit',
|
||||
'pl:vehicle-recharge-apply:list', 'pl:vehicle-recharge-apply:query', 'pl:vehicle-recharge-apply:remove',
|
||||
'pl:vehicle-recharge-record:add', 'pl:vehicle-recharge-record:edit', 'pl:vehicle-recharge-record:list',
|
||||
'pl:vehicle-recharge-record:query', 'pl:vehicle-recharge-record:remove', 'pl:vehicle-urea-apply:add',
|
||||
'pl:vehicle-urea-apply:cancel', 'pl:vehicle-urea-apply:edit', 'pl:vehicle-urea-apply:list',
|
||||
'pl:vehicle-urea-apply:query', 'pl:vehicle-urea-apply:remove', 'pl:vehicle-urea-disburse:add',
|
||||
'pl:vehicle-urea-disburse:edit', 'pl:vehicle-urea-disburse:list', 'pl:vehicle-urea-disburse:query',
|
||||
'pl:vehicle-urea-disburse:remove', 'pl:vehicle:list'
|
||||
]
|
||||
|
||||
function normalizeMenuCode(input: unknown): string {
|
||||
const raw = String(input ?? '').trim()
|
||||
if (!raw) return ''
|
||||
return raw
|
||||
.replace(/[\s-]+/g, '_')
|
||||
.replace(/([a-z0-9])([A-Z])/g, '$1_$2')
|
||||
.toLowerCase()
|
||||
}
|
||||
|
||||
function filterMenuByRoles(menu: AppRouteRecord[], roles: string[]): AppRouteRecord[] {
|
||||
return menu.reduce((acc: AppRouteRecord[], item) => {
|
||||
const itemRoles = item.meta?.roles
|
||||
const hasPermission = !itemRoles || itemRoles.some((role) => roles?.includes(role))
|
||||
if (hasPermission) {
|
||||
const filteredItem = { ...item }
|
||||
if (filteredItem.children?.length) {
|
||||
filteredItem.children = filterMenuByRoles(filteredItem.children, roles)
|
||||
}
|
||||
acc.push(filteredItem)
|
||||
}
|
||||
return acc
|
||||
}, [])
|
||||
}
|
||||
|
||||
function filterMenuByCodes(menu: AppRouteRecord[], codes: Set<string>): AppRouteRecord[] {
|
||||
return menu.reduce((acc: AppRouteRecord[], item) => {
|
||||
const rawCode = (item.meta as any)?.menuCode ?? item.name
|
||||
const code = normalizeMenuCode(rawCode)
|
||||
const hasSelfPermission = !!code && codes.has(code)
|
||||
const filteredChildren = item.children?.length
|
||||
? filterMenuByCodes(item.children, codes)
|
||||
: item.children
|
||||
const shouldKeep =
|
||||
hasSelfPermission || (Array.isArray(filteredChildren) && filteredChildren.length > 0)
|
||||
if (shouldKeep) {
|
||||
acc.push({ ...item, children: filteredChildren })
|
||||
}
|
||||
return acc
|
||||
}, [])
|
||||
}
|
||||
|
||||
function filterDashboardMenus(menuList: AppRouteRecord[]): AppRouteRecord[] {
|
||||
return menuList
|
||||
.filter((item) => {
|
||||
const path = String(item.path ?? '')
|
||||
const title = String(item.meta?.title ?? '')
|
||||
const name = String(item.name ?? '')
|
||||
return !(path === '/dashboard' || title === '控制台' || name === 'Dashboard')
|
||||
})
|
||||
.map((item) => {
|
||||
if (!item.children?.length) return item
|
||||
return { ...item, children: filterDashboardMenus(item.children) }
|
||||
})
|
||||
}
|
||||
|
||||
function filterEmptyMenus(menuList: AppRouteRecord[]): AppRouteRecord[] {
|
||||
return menuList
|
||||
.map((item) => {
|
||||
if (item.children?.length) {
|
||||
return { ...item, children: filterEmptyMenus(item.children) }
|
||||
}
|
||||
return item
|
||||
})
|
||||
.filter((item) => {
|
||||
if (Array.isArray(item.children)) {
|
||||
return item.children.length > 0
|
||||
}
|
||||
if (item.meta?.isIframe === true || item.meta?.link) return true
|
||||
if (item.component && item.component !== '' && item.component !== RoutesAlias.Layout) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
})
|
||||
}
|
||||
|
||||
function countLeaves(menu: AppRouteRecord[]): number {
|
||||
let n = 0
|
||||
for (const item of menu) {
|
||||
if (item.children?.length) n += countLeaves(item.children)
|
||||
else if (item.component && item.component !== RoutesAlias.Layout) n++
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
function topLevelSummary(menu: AppRouteRecord[]) {
|
||||
return menu.map((m) => ({
|
||||
path: m.path,
|
||||
title: m.meta?.title,
|
||||
childGroups: m.children?.length ?? 0,
|
||||
leaves: m.children ? countLeaves(m.children) : 0
|
||||
}))
|
||||
}
|
||||
|
||||
// simulate scenarios
|
||||
for (const roles of [['admin'], ['common'], ['R_ADMIN'], undefined as string[] | undefined]) {
|
||||
let menuList = [...asyncRoutes]
|
||||
if (roles?.length && !roles.includes('super_admin')) {
|
||||
menuList = filterMenuByRoles(menuList, roles)
|
||||
}
|
||||
const codeSet = new Set(menuCodesFromApi.map(normalizeMenuCode))
|
||||
const afterRoles = menuList.length
|
||||
const filtered = filterMenuByCodes(menuList, codeSet)
|
||||
let afterCodes = filtered
|
||||
if (!(filtered.length > 0 || codeSet.size === 0)) {
|
||||
afterCodes = menuList // fail-open
|
||||
}
|
||||
const final = filterEmptyMenus(filterDashboardMenus(afterCodes))
|
||||
console.log('\n=== roles:', roles, '===')
|
||||
console.log('after role filter top modules:', afterRoles)
|
||||
console.log('after code filter top modules:', filtered.length)
|
||||
console.log('after code filter summary:', topLevelSummary(filtered))
|
||||
console.log('FINAL top modules:', final.length)
|
||||
console.log(topLevelSummary(final))
|
||||
}
|
||||
|
||||
// debug filterEmptyMenus step by step for admin
|
||||
{
|
||||
let menuList = filterMenuByRoles([...asyncRoutes], ['admin'])
|
||||
const codeSet = new Set(menuCodesFromApi.map(normalizeMenuCode))
|
||||
menuList = filterMenuByCodes(menuList, codeSet)
|
||||
menuList = filterDashboardMenus(menuList)
|
||||
console.log('\n=== DEBUG filterEmptyMenus ===')
|
||||
for (const top of menuList) {
|
||||
console.log('TOP', top.path, 'children', top.children?.length)
|
||||
if (top.children?.length) {
|
||||
for (const c of top.children) {
|
||||
console.log(' L2', c.path, 'component', c.component, 'children', c.children?.length)
|
||||
if (c.children?.length) {
|
||||
for (const g of c.children.slice(0, 3)) {
|
||||
console.log(' L3', g.path, 'component', g.component, 'menuCode', (g.meta as any)?.menuCode)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
const afterEmpty = filterEmptyMenus(menuList)
|
||||
console.log('after filterEmptyMenus tops:', afterEmpty.length)
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* 模拟 MenuProcessor 过滤逻辑,排查菜单被滤空原因。
|
||||
* 用法: node scripts/simulate-menu-filter.mjs
|
||||
*/
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
function normalizeMenuCode(input) {
|
||||
const raw = String(input ?? '').trim()
|
||||
if (!raw) return ''
|
||||
const withUnderscore = raw
|
||||
.replace(/[\s-]+/g, '_')
|
||||
.replace(/([a-z0-9])([A-Z])/g, '$1_$2')
|
||||
return withUnderscore.toLowerCase()
|
||||
}
|
||||
|
||||
function filterMenuByRoles(menu, roles) {
|
||||
return menu.reduce((acc, item) => {
|
||||
const itemRoles = item.meta?.roles
|
||||
const hasPermission = !itemRoles || itemRoles.some((role) => roles?.includes(role))
|
||||
if (hasPermission) {
|
||||
const filteredItem = { ...item }
|
||||
if (filteredItem.children?.length) {
|
||||
filteredItem.children = filterMenuByRoles(filteredItem.children, roles)
|
||||
}
|
||||
acc.push(filteredItem)
|
||||
}
|
||||
return acc
|
||||
}, [])
|
||||
}
|
||||
|
||||
function filterMenuByCodes(menu, codes, level = 1) {
|
||||
return menu.reduce((acc, item) => {
|
||||
const rawCode = item.meta?.menuCode ?? item.name
|
||||
const code = normalizeMenuCode(rawCode)
|
||||
const hasSelfPermission = !!code && codes.has(code)
|
||||
const filteredChildren = item.children?.length
|
||||
? filterMenuByCodes(item.children, codes, level + 1)
|
||||
: item.children
|
||||
const shouldKeep =
|
||||
hasSelfPermission || (Array.isArray(filteredChildren) && filteredChildren.length > 0)
|
||||
if (shouldKeep) {
|
||||
acc.push({ ...item, children: filteredChildren })
|
||||
}
|
||||
return acc
|
||||
}, [])
|
||||
}
|
||||
|
||||
const Layout = '/index/index'
|
||||
|
||||
function filterEmptyMenus(menuList) {
|
||||
return menuList
|
||||
.map((item) => {
|
||||
if (item.children?.length) {
|
||||
return { ...item, children: filterEmptyMenus(item.children) }
|
||||
}
|
||||
return item
|
||||
})
|
||||
.filter((item) => {
|
||||
if ('children' in item) {
|
||||
return Array.isArray(item.children) && item.children.length > 0
|
||||
}
|
||||
if (item.meta?.isIframe === true || item.meta?.link) return true
|
||||
if (item.component && item.component !== '' && item.component !== Layout) return true
|
||||
return false
|
||||
})
|
||||
}
|
||||
|
||||
function extractMenuCodesFromFile(content) {
|
||||
const re = /menuCode:\s*['"]([^'"]+)['"]/g
|
||||
const codes = []
|
||||
let m
|
||||
while ((m = re.exec(content))) codes.push(m[1])
|
||||
return codes
|
||||
}
|
||||
|
||||
const menuCodesFromApi = [
|
||||
'bx:advanceApply:list', 'bx:advanceApply:submit', 'bx:advanceApprove:approve', 'bx:advanceApprove:list',
|
||||
'bx:advanceIssue:issue', 'bx:advanceIssue:list', 'bx:expenseItem:add', 'bx:expenseItem:edit',
|
||||
'bx:expenseItem:list', 'bx:expenseItem:remove', 'bx:payment:list', 'bx:payment:pay',
|
||||
'bx:reimburseApply:list', 'bx:reimburseApply:submit', 'bx:reimburseApprove:list', 'bx:viewAll:list',
|
||||
'bx:viewMine:list', 'bx:viewTodo:list', 'bx:workflowAdvance:list', 'bx:workflowReimburse:list',
|
||||
'crm:clue:add', 'crm:clue:assign', 'crm:clue:convert', 'crm:clue:edit', 'crm:clue:export',
|
||||
'crm:clue:follow', 'crm:clue:import', 'crm:clue:invalid', 'crm:clue:list', 'crm:clue:query',
|
||||
'crm:clue:remove', 'crm:contract:list', 'crm:customer:add', 'crm:customer:deal', 'crm:customer:edit',
|
||||
'crm:customer:list', 'crm:customer:query', 'crm:customer:remove', 'crm:customer:toPool',
|
||||
'crm:customer:transfer', 'crm:customerPool:assign', 'crm:customerPool:claim', 'crm:customerPool:list',
|
||||
'crm:opportunity:add', 'crm:opportunity:assign', 'crm:opportunity:edit', 'crm:opportunity:export',
|
||||
'crm:opportunity:follow', 'crm:opportunity:list', 'crm:opportunity:query', 'crm:opportunity:remove',
|
||||
'crm:product:list', 'crm:productCategory:list', 'crm:quote:list', 'db:dashboard:list', 'db:inventory:add',
|
||||
'db:inventory:edit', 'db:inventory:list', 'db:inventory:query', 'db:inventory:remove', 'db:plan:add',
|
||||
'db:plan:edit', 'db:plan:list', 'db:plan:query', 'db:plan:remove', 'db:weighing:add', 'db:weighing:edit',
|
||||
'db:weighing:list', 'db:weighing:query', 'db:weighing:remove', 'db:weighing:void', 'pl:carrier:list',
|
||||
'pl:document:list', 'pl:driver:list', 'pl:freight-approval:list', 'pl:freight-approval:query',
|
||||
'pl:freight-disburse:list', 'pl:freight-disburse:query', 'pl:freight:approve', 'pl:freight:create',
|
||||
'pl:freight:disburse', 'pl:freight:edit', 'pl:freight:list', 'pl:freight:query', 'pl:freight:submit',
|
||||
'pl:freight:withdraw', 'pl:plan-archive:archive', 'pl:plan-archive:edit', 'pl:plan-archive:list',
|
||||
'pl:plan-archive:query', 'pl:plan-cert:list', 'pl:plan:list', 'pl:self-vehicle:list',
|
||||
'pl:transport-address:list', 'pl:vehicle-maintenance-apply:add', 'pl:vehicle-maintenance-apply:cancel',
|
||||
'pl:vehicle-maintenance-apply:edit', 'pl:vehicle-maintenance-apply:list', 'pl:vehicle-maintenance-apply:query',
|
||||
'pl:vehicle-maintenance-apply:remove', 'pl:vehicle-maintenance-process:add', 'pl:vehicle-maintenance-process:edit',
|
||||
'pl:vehicle-maintenance-process:list', 'pl:vehicle-maintenance-process:query', 'pl:vehicle-maintenance-process:remove',
|
||||
'pl:vehicle-recharge-apply:add', 'pl:vehicle-recharge-apply:cancel', 'pl:vehicle-recharge-apply:edit',
|
||||
'pl:vehicle-recharge-apply:list', 'pl:vehicle-recharge-apply:query', 'pl:vehicle-recharge-apply:remove',
|
||||
'pl:vehicle-recharge-record:add', 'pl:vehicle-recharge-record:edit', 'pl:vehicle-recharge-record:list',
|
||||
'pl:vehicle-recharge-record:query', 'pl:vehicle-recharge-record:remove', 'pl:vehicle-urea-apply:add',
|
||||
'pl:vehicle-urea-apply:cancel', 'pl:vehicle-urea-apply:edit', 'pl:vehicle-urea-apply:list',
|
||||
'pl:vehicle-urea-apply:query', 'pl:vehicle-urea-apply:remove', 'pl:vehicle-urea-disburse:add',
|
||||
'pl:vehicle-urea-disburse:edit', 'pl:vehicle-urea-disburse:list', 'pl:vehicle-urea-disburse:query',
|
||||
'pl:vehicle-urea-disburse:remove', 'pl:vehicle:list'
|
||||
]
|
||||
|
||||
const sqxp = fs.readFileSync(path.join(__dirname, '../src/router/modules/sqxp.ts'), 'utf8')
|
||||
const pl = fs.readFileSync(path.join(__dirname, '../src/router/modules/pl.ts'), 'utf8')
|
||||
const routeMenuCodes = [...extractMenuCodesFromFile(sqxp), ...extractMenuCodesFromFile(pl)]
|
||||
|
||||
const apiSet = new Set(menuCodesFromApi.map(normalizeMenuCode))
|
||||
const missingInApi = routeMenuCodes.filter((c) => !apiSet.has(normalizeMenuCode(c)))
|
||||
const listPermsInApi = menuCodesFromApi.filter((c) => c.endsWith(':list'))
|
||||
|
||||
console.log('API menuCodes count:', menuCodesFromApi.length)
|
||||
console.log('Route menuCode count:', routeMenuCodes.length)
|
||||
console.log('Route codes NOT in API (normalized):', missingInApi.length)
|
||||
missingInApi.slice(0, 30).forEach((c) => console.log(' -', c, '->', normalizeMenuCode(c)))
|
||||
|
||||
// Build minimal tree from route files is hard; import compiled - skip, use dynamic import of ts not available
|
||||
// Instead eval route structure counts from grep
|
||||
|
||||
console.log('\nList perms in API:', listPermsInApi.length)
|
||||
@@ -18,6 +18,7 @@ export async function fetchLogin(params: { username: string; password: string })
|
||||
realName: string
|
||||
phone: string
|
||||
role: string
|
||||
roles?: string[]
|
||||
regionId: string
|
||||
regionName: string
|
||||
avatarUrl?: string | null
|
||||
@@ -39,6 +40,7 @@ export function fetchGetUserInfo() {
|
||||
realName: string
|
||||
phone: string
|
||||
role: string
|
||||
roles?: string[]
|
||||
regionId: string
|
||||
regionName: string
|
||||
regionIds?: string[]
|
||||
|
||||
@@ -72,13 +72,37 @@ export class MenuProcessor {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析 Web 端角色(优先使用后端 current-user/login 的 role 字段)。
|
||||
* 避免 Pinia 持久化的旧 roles(模板/demo 遗留)覆盖真实 role 导致菜单被滤空。
|
||||
*/
|
||||
private resolveWebRoles(info: Api.Auth.UserInfo | Record<string, any> | undefined): string[] | undefined {
|
||||
const webRole = String(info?.role ?? '').trim()
|
||||
if (webRole) {
|
||||
return [webRole]
|
||||
}
|
||||
if (info?.roles?.length) {
|
||||
return info.roles
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否超级管理员(跳过后端 menuCodes 过滤)
|
||||
*/
|
||||
private isSuperAdminRole(info: Api.Auth.UserInfo | Record<string, any> | undefined): boolean {
|
||||
const webRole = String(info?.role ?? '').trim()
|
||||
if (webRole === 'super_admin') return true
|
||||
return Array.isArray(info?.roles) && info.roles.includes('super_admin')
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理前端控制模式的菜单
|
||||
*/
|
||||
private async processFrontendMenu(): Promise<AppRouteRecord[]> {
|
||||
const userStore = useUserStore()
|
||||
const info = userStore.info
|
||||
const roles = info?.roles?.length ? info.roles : info?.role ? [info.role] : undefined
|
||||
const roles = this.resolveWebRoles(info)
|
||||
|
||||
let menuList = [...asyncRoutes]
|
||||
|
||||
@@ -90,14 +114,23 @@ export class MenuProcessor {
|
||||
}
|
||||
}
|
||||
|
||||
// 静态菜单模式下,admin 按后端返回的 menuCodes 过滤菜单
|
||||
if (info?.role === 'admin') {
|
||||
// 静态菜单模式下,非 super_admin 按后端返回的 menuCodes 过滤菜单
|
||||
if (!this.isSuperAdminRole(info)) {
|
||||
const perm = await fetchGetMenuCodes()
|
||||
const codeSet = new Set(
|
||||
(perm?.menuCodes || []).map((x) => this.normalizeMenuCode(x)).filter(Boolean)
|
||||
)
|
||||
if (!perm?.all) {
|
||||
menuList = this.filterMenuByCodes(menuList, codeSet)
|
||||
const filtered = this.filterMenuByCodes(menuList, codeSet)
|
||||
// 有 menuCodes 但过滤后为空,多为 roles/menuCode 配置异常,保留角色过滤结果便于排查
|
||||
if (filtered.length > 0 || codeSet.size === 0) {
|
||||
menuList = filtered
|
||||
} else {
|
||||
console.warn(
|
||||
'[MenuProcessor] menuCodes 非空但过滤后菜单为空,保留角色过滤后的菜单树',
|
||||
codeSet.size
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,9 +212,9 @@ export class MenuProcessor {
|
||||
return item
|
||||
})
|
||||
.filter((item) => {
|
||||
// 如果定义了 children 属性(即使是空数组),说明这是一个目录菜单,应该保留
|
||||
if ('children' in item) {
|
||||
return true
|
||||
// 仅当 children 为数组时视为目录;勿用 `'children' in item`(spread 后叶子常为 children: undefined)
|
||||
if (Array.isArray(item.children)) {
|
||||
return item.children.length > 0
|
||||
}
|
||||
|
||||
// 如果有外链或 iframe,保留
|
||||
|
||||
Loaded 100 of 104 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user