chore(AdminCost): 移除 COS4 数据结构迁移的一次性脚本与参考资料

This commit is contained in:
lianjianwei2024
2026-11-01 15:27:27 +08:00
parent 386e1ad624
commit f0b1033b12
69 changed files with 5936 additions and 42964 deletions

View File

@@ -4,7 +4,8 @@
import json
import sqlite3
from api_harness import fixture_file, get, post, server # noqa: F401
from api_harness import (drop_sessions, fixture_file, get, # noqa: F401
post, server)
BILLS = [
("010101001001", "镀锌钢管DN25", "1、螺纹连接", "m", 10, 100),
@@ -25,6 +26,8 @@ def _q(db, sql, args=()):
def _setup(server):
# 决策 242:同名重导会被拒——先走真实删除清掉旧会话(等后台清完)再导
drop_sessions(server, "分组工程G")
pa = fixture_file(server, "grp.cos4", "分组工程G", BILLS)
sid = post(server, "/api/audit",
{"path": str(pa), "name": "分组工程G", "province": "广东省",