SNAPSHOT W7 已部署稳定态 — 凯迪ERP+OA一体化平台 (MET 73.3%)

恢复点(restore point)。别人改崩后可 git reset --hard 回到此提交。

== 此快照内容 ==
- 后端 oa-backend: 734 控制器 / 711 实体 (Spring Boot 3.2.5 + SQLite, 端口8091)
- 前端 modern-ui/app: Vue3+Vite, 约700页 (构建产物已在 oa-backend/src/main/resources/static)
- 数据库 oa-backend/data/oa.db: 含全部演示数据 (强制入库, 6.6MB)
- 交接文档 go.md + go-code-reference/endpoints/entities/database.md
- 多代理建设脚本 .claude/wf-*.js

== 状态 ==
- 对 凯迪科技ERP_20260507.xlsx 合规 MET ~73.3% (PARTIAL 75: 34可建+6种子/bug+35外部硬天花板)
- 安全: 5轮红队+5轮复检, default-deny分级鉴权, 连续零可利用
- W3~W7 累计补完436缺口; W8末轮(40缺口)为半成品(源码树可编译但未集成)
- 运行: cd oa-backend; java -jar build/libs/oa-backend-0.1.0.jar --server.port=8091; admin/123456

== 排除(gitignore, 可再生) ==
node_modules / oa-backend/build / .jdks / *.log / Backup-ERP-* / 弃用的OFBiz核心(只保留modern-ui)
完整文件夹备份见同目录 Backup-ERP-20260615-191517/ (含上述全部, 仅缺 node_modules)

时间戳: 20260615-191517

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Qiufeng
2026-06-15 19:19:15 +08:00
co-authored by Claude Opus 4.8
commit 5e51dc3f56
10584 changed files with 2501339 additions and 0 deletions
+437
View File
@@ -0,0 +1,437 @@
{
"sensitiveRead": [
"/api/oa/archive-borrows",
"/api/oa/audit-settlement-agg",
"/api/oa/auditor-profiles",
"/api/oa/branch-cost-entries",
"/api/oa/branch-monthly-pnl",
"/api/oa/compliance-violations",
"/api/oa/cost-ctrl-deep",
"/api/oa/cost-estimates",
"/api/oa/crm-biz-achiev-link",
"/api/oa/crm-pnl-monthly",
"/api/oa/csl-customers",
"/api/oa/decl-cross-dept",
"/api/oa/decl-finance-data",
"/api/oa/ehs-special-equip",
"/api/oa/external-regulations",
"/api/oa/fert-customer-profiles",
"/api/oa/fert-raw-material-catalog",
"/api/oa/fin-audit-export",
"/api/oa/fin-budget-plans",
"/api/oa/fin-period-ext",
"/api/oa/financial-guarantees",
"/api/oa/food-batches/waste-rate — 已在 AuthInterceptor SENSITIVE_READ_PREFIXES 中以 /api/oa/food-batches 前缀覆盖,无需额外配置",
"/api/oa/ip-infringement-cases",
"/api/oa/it-cross-dept",
"/api/oa/it-inspection-reports",
"/api/oa/legal-credit-invest",
"/api/oa/litigation-documents",
"/api/oa/publish-channels",
"/api/oa/qhse-cross-dept-sync",
"/api/oa/qual-cert-changes",
"/api/oa/qual-safety-accidents",
"/api/oa/rd-after-sales-feedback",
"/api/oa/rd-dev-cross-dept",
"/api/oa/stl-forex-risks",
"/api/oa/stl-fund-plan-submissions",
"/api/oa/stl-internal-settle-rules",
"/api/oa/stl-payment-refunds",
"GET /api/oa/financings/{id}/legal-reviews — 落入 FINANCE_PREFIXES + SENSITIVE_READ_PREFIXES,需 ADMIN/APPROVER",
"GET /api/oa/legal-risk-events/by-financing/{id} — 落入 SENSITIVE_READ_PREFIXES,需 ADMIN/APPROVER",
"POST /api/oa/financings/{id}/legal-reviews/link — FINANCE_PREFIXES 写口,需 ADMIN/APPROVER",
"POST /api/oa/financings/{id}/push-cost-alloc — FINANCE_PREFIXES 写口,需 ADMIN/APPROVER",
"admin-ai-actionsAI 行动日志,需加入 AuthInterceptor SELF_SERVICE_WRITE_PREFIXES,见 sharedFileSnippets",
"admin-cleaning-supplies(保洁物资台账,默认 APPROVER_OR_ADMIN",
"admin-conference-materials(会务物料清单,含物料规划数据,默认 APPROVER_OR_ADMIN",
"admin-conference-staff(现场人员安排含联系电话 PII,默认 APPROVER_OR_ADMIN",
"admin-equip-setups(设备调试记录,默认 APPROVER_OR_ADMIN",
"admin-recurring-bookings(周期预订规则,默认 APPROVER_OR_ADMIN"
],
"nav": {
"rd": [
{
"key": "devgantt",
"label": "WBS可视化甘特图",
"kind": "board",
"path": "/rd/devgantt"
},
{
"key": "aftersalesfeedback",
"label": "售后改进需求反馈",
"kind": "list",
"path": "/rd/aftersalesfeedback"
},
{
"key": "declfinancedata",
"label": "申报财务数据自动采集",
"kind": "report",
"path": "/rd/declfinancedata"
},
{
"key": "declcrossdept",
"label": "申报跨部门接口联动",
"kind": "list",
"path": "/rd/declcrossdept"
}
],
"lab": [
{
"key": "lab-samples",
"label": "检测样品",
"kind": "page",
"path": "/lab/samples"
},
{
"key": "lab-instruments",
"label": "仪器设备",
"kind": "page",
"path": "/lab/instruments"
}
],
"design": [
{
"key": "cslcustomer",
"label": "CSL客户关系管理",
"kind": "list",
"path": "/design/cslcustomer"
}
],
"supervision": [
{
"key": "surveyverify",
"label": "测量放线成果复核(控制网/轴线/标高)",
"kind": "list",
"path": "/supervision/surveyverify"
},
{
"key": "safetytrainlink",
"label": "安全培训与持证联动预警",
"kind": "list",
"path": "/supervision/safetytrainlink"
},
{
"key": "logautoagg",
"label": "监理日志自动聚合(一键带入当日事件)",
"kind": "list",
"path": "/supervision/logautoagg"
},
{
"key": "auditquery",
"label": "审计只读查询端口(建设单位/审计机构)",
"kind": "list",
"path": "/supervision/auditquery"
}
],
"mfg": [
{
"key": "workorders",
"label": "生产工单",
"kind": "list",
"path": "/mfg/workorders"
},
{
"key": "crossdept",
"label": "跨部门数据聚合",
"kind": "list",
"path": "/mfg/crossdept"
},
{
"key": "fertrawcatalog",
"label": "原料理化特性档案",
"kind": "list",
"path": "/mfg/fertrawcatalog"
},
{
"key": "fertcustomer",
"label": "客户档案管理",
"kind": "list",
"path": "/mfg/fertcustomer"
}
],
"ehs": [
{
"key": "special-equip",
"label": "特种设备台账",
"kind": "list",
"path": "/ehs/special-equip"
},
{
"key": "cross-dept-sync",
"label": "跨部门双向联动",
"kind": "report",
"path": "/ehs/cross-dept-sync"
}
],
"archive": [
{
"key": "borrow",
"label": "借阅与利用",
"kind": "list",
"path": "/archive/borrow"
},
{
"key": "borrowStats",
"label": "借阅统计分析",
"kind": "report",
"path": "/archive/borrowStats"
}
],
"budget": [
{
"key": "costctrldeep",
"label": "成本控制深化操作台",
"kind": "report",
"path": "/budget/costctrldeep"
}
],
"ops": [
{
"key": "govreport",
"label": "政府监管报表",
"kind": "report",
"path": "/ops/govreport"
}
],
"crm": [
{
"key": "cost-estimates",
"label": "成本测算数据",
"kind": "report",
"path": "/crm/cost-estimates"
},
{
"key": "biz-achiev-link",
"label": "经营业绩申报联动",
"kind": "report",
"path": "/crm/biz-achiev-link"
},
{
"key": "legal-credit-invest",
"label": "法务信用调查",
"kind": "list",
"path": "/crm/legal-credit-invest"
},
{
"key": "mobile-approve",
"label": "移动端一键审批",
"kind": "portal",
"path": "/crm/mobile-approve"
},
{
"key": "pnl-monthly",
"label": "损益表月度拆分",
"kind": "report",
"path": "/crm/pnl-monthly"
},
{
"key": "mobile-crm",
"label": "移动CRM工作台",
"kind": "portal",
"path": "/crm/mobile-crm"
},
{
"key": "branchmonthlypnl",
"label": "分公司月度损益拆分",
"kind": "report",
"path": "/crm/branchmonthlypnl"
},
{
"key": "branchcostentry",
"label": "分公司独立成本归集",
"kind": "list",
"path": "/crm/branchcostentry"
}
],
"payment": [
{
"key": "forex-risk",
"label": "汇率风险台账",
"kind": "list",
"path": "/payment/forex-risk"
},
{
"key": "internal-settle-rule",
"label": "内部结算规则配置",
"kind": "list",
"path": "/payment/internal-settle-rule"
},
{
"key": "payment-refund",
"label": "退款处理",
"kind": "list",
"path": "/payment/payment-refund"
},
{
"key": "fund-plan-workflow",
"label": "资金计划上报工作流",
"kind": "list",
"path": "/payment/fund-plan-workflow"
},
{
"key": "financing-legal-review",
"label": "融资法律审核与成本分摊接口",
"kind": "list",
"path": "/payment/financing-legal-review"
}
],
"finance": [
{
"key": "period-ext",
"label": "期末专项(调汇/结转利润/所得税)",
"kind": "report",
"path": "/finance/period-ext"
},
{
"key": "budget-plan",
"label": "协同预算编制(多部门汇总审批)",
"kind": "list",
"path": "/finance/budget-plan"
},
{
"key": "audit-export",
"label": "审计底稿与字段级变更留痕",
"kind": "report",
"path": "/finance/audit-export"
},
{
"key": "depreciation-alloc",
"label": "折旧主流程与成本中心分摊",
"kind": "list",
"path": "/finance/depreciation-alloc"
},
{
"key": "cost-trigger",
"label": "月末成本计算手工触发",
"kind": "report",
"path": "/finance/cost-trigger"
}
],
"legal": [
{
"key": "contractSearch",
"label": "合同检索与履约预警",
"kind": "list",
"path": "/legal/contractSearch"
},
{
"key": "complianceViolation",
"label": "合规违规事件台账",
"kind": "list",
"path": "/legal/complianceViolation"
},
{
"key": "externalRegulation",
"label": "外规内化库",
"kind": "list",
"path": "/legal/externalRegulation"
},
{
"key": "ipInfringement",
"label": "IP侵权处置工单",
"kind": "list",
"path": "/legal/ipInfringement"
},
{
"key": "litigationDocument",
"label": "法律文书归档",
"kind": "list",
"path": "/legal/litigationDocument"
},
{
"key": "financialGuarantee",
"label": "保函/保证金管理",
"kind": "list",
"path": "/legal/financialGuarantee"
}
],
"audit": [
{
"key": "auditorprofiles",
"label": "审计人员资质专长档案",
"kind": "list",
"path": "/audit/auditorprofiles"
},
{
"key": "settlementagg",
"label": "结算/法务/舞弊跨模块聚合",
"kind": "report",
"path": "/audit/settlementagg"
}
],
"culture": [
{
"key": "publishChannel",
"label": "发布渠道台账",
"kind": "list",
"path": "/culture/publishChannel"
},
{
"key": "publishCalendar",
"label": "发布日历(冲突检测)",
"kind": "calendar",
"path": "/culture/publishCalendar"
}
],
"hr": [
{
"key": "qual-cert-change",
"label": "资质延续换证·变更管理",
"kind": "list",
"path": "/hr/qual-cert-change"
},
{
"key": "qual-safety-accident",
"label": "安全生产事故上报台账",
"kind": "list",
"path": "/hr/qual-safety-accident"
}
],
"itasset": [
{
"key": "inspectionreport",
"label": "系统巡检报告",
"kind": "report",
"path": "/itasset/inspectionreport"
},
{
"key": "ticketattachment",
"label": "工单专属附件",
"kind": "list",
"path": "/itasset/ticketattachment"
},
{
"key": "itdemand",
"label": "IT跨部门接口",
"kind": "list",
"path": "/itasset/itdemand"
}
],
"admin": [
{
"key": "conf-service",
"label": "会务服务物料与设备",
"kind": "list",
"path": "/admin/conf-service"
},
{
"key": "cleaning-supply",
"label": "保洁清洁物资管理",
"kind": "list",
"path": "/admin/cleaning-supply"
},
{
"key": "ai-action",
"label": "行政AI工作闭环",
"kind": "list",
"path": "/admin/ai-action"
},
{
"key": "food-waste-report",
"label": "食材损耗率报表",
"kind": "report",
"path": "/admin/food-waste-report"
}
]
}
}