Files

34 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 结合 prompt/07、10 的主账 Java 规范(Jeecg + 低代码)
globs: "**/*.java"
alwaysApply: true
---
# 主账 Java = `prompt/07` + `10`
实现前自己打开这两份。详细中文 JavaDoc,无注释不验收。决策见 `docs/2026-09-12-jeecg-lowcode-ledger-decision.md`。
## 方式(2026-09-12)
主账 = **JeecgBoot + Online/cgform/代码生成器**(工程目录 `inquiry-api/`)。复杂六态/TMS/报价可保留手写 `jeecg-module-inquiry`(`/inquiry/...`)。系统登录 `/sys/*`。并存端口 **8180**,库 **`inquiry_robot`**,禁止写现网 `jeecg-boot`。
独立 `ledger/` Spring Boot 3 空壳不作正式主账。
## 模块(07)
Jeecg 系统 + Online;inquiry 手写部分:工单六态时间线、报价版本、TMS 适配与字典、人员、群门禁、附件元数据。禁止 Graph、禁止自然语言抽取、禁止 Python 写 MySQL 工单表。
## 领域与 API(07)
工单六态、报价 quoteVersion、TMS query/detail/health/字典 sync;lock/release 共用现网 TMS 期间默认关闭出站。唤醒智能体走唯一 HTTP + `agentCallbackToken`。人员按已有 `wecom_id`。后台 Jeecg Vue 经 `/jeecgboot` 对接本主账。
## TMS(07/10)
智能体只打新主账。Token client_credentials;查询 Bearer;锁舱 HMAC。审计脱敏。熔断超时最多 3 次。EXACT_ONLY。失败 `source=TMS_DICTIONARY_PROJECTION`。禁止按 userid 伪造 1002。密钥用 `03`,不写进本规则或 Git。
HTTP/TMS/DB 必须超时。禁止全局锁串行所有工单。不要在 Tomcat 线程等 Python 跑完 Graph。
## 数据(07/13)
MySQL 8 UTF8MB4 Asia/Shanghai。库名 JDBC 全环境变量。新系统 `inquiry_robot`(含 Jeecg 系统表 + Online 表),禁止 yml 写死、禁止 ALTER 现网 `jeecg-boot`。缺表缺列直接迁移。后台账号与智能体服务账号分离。