diff --git a/water_biz_system_architecture.md b/water_biz_system_architecture.md
index 40e300a..a5d3e1e 100644
--- a/water_biz_system_architecture.md
+++ b/water_biz_system_architecture.md
@@ -20,163 +20,126 @@
- 统一对外接口:提供标准的接口和能力
```mermaid
-%%{init: {'theme': 'neutral', 'flowchart': {'useMaxWidth': false, 'htmlLabels': true, 'curve': 'basis'}}}%%
flowchart TD
- %% 定义样式 - 更紧凑的样式设计
- classDef accessLayer fill:#e6f9ff,stroke:#0099cc,stroke-width:1px,color:#333,font-size:12px
- classDef applicationLayer fill:#e6ffec,stroke:#00cc66,stroke-width:1px,color:#333,font-size:12px
- classDef middleLayer fill:#fff2e6,stroke:#ff9933,stroke-width:1px,color:#333,font-size:12px
- classDef dataLayer fill:#f9e6ff,stroke:#9933ff,stroke-width:1px,color:#333,font-size:12px
- classDef externalLayer fill:#ffe6e6,stroke:#ff3366,stroke-width:1px,color:#333,font-size:12px
- classDef securityLayer fill:#ffe6e6,stroke:#cc0000,stroke-width:2px,color:#cc0000,font-size:12px
- classDef userLayer fill:#f2f2f2,stroke:#666666,stroke-width:1px,color:#333,font-size:12px
- classDef tenantLayer fill:#e6f7ff,stroke:#3399ff,stroke-width:1px,color:#333,font-size:12px
- classDef moduleStyle fill:#ffffff,stroke:#999999,stroke-width:1px,color:#333,rx:3,ry:3,font-size:11px
- classDef labelStyle color:#666,font-size:10px
+ %% 定义简化样式
+ classDef accessLayer fill:#e6f9ff,stroke:#0099cc,stroke-width:1px
+ classDef appLayer fill:#e6ffec,stroke:#00cc66,stroke-width:1px
+ classDef middleLayer fill:#fff2e6,stroke:#ff9933,stroke-width:1px
+ classDef dataLayer fill:#f9e6ff,stroke:#9933ff,stroke-width:1px
+ classDef extLayer fill:#ffe6e6,stroke:#ff3366,stroke-width:1px
+ classDef secLayer fill:#ffe6e6,stroke:#cc0000,stroke-width:2px
+ classDef userLayer fill:#f2f2f2,stroke:#666666,stroke-width:1px
+ classDef tenantLayer fill:#e6f7ff,stroke:#3399ff,stroke-width:1px
- %% 用户层 - 缩小高度
- subgraph Users["👥 用户层"]
- User1["
🖥️
Web端用户
"]
- User2["📱
移动端用户
"]
- User3["🏢
营业厅操作人员
"]
+ %% 用户层
+ subgraph Users["👥 用户层"]
+ User1["🖥️ Web用户"]
+ User2["📱 移动用户"]
+ User3["🏢 营业厅人员"]
end
- %% 接入层 - 缩小高度
- subgraph Access["🔐 接入层"]
- LoadBalancer["⚖️
负载均衡
"]
- Firewall["🛡️
防火墙
"]
- SSO["🔑
单点登录
"]
+ %% 接入层
+ subgraph Access["🔐 接入层"]
+ LoadBalancer["⚖️ 负载均衡"]
+ Firewall["🛡️ 防火墙"]
+ SSO["🔑 单点登录"]
end
- %% 应用层 - 分组优化布局
- subgraph AppLayer["📊 应用层"]
+ %% 应用层
+ subgraph AppLayer["📊 应用层"]
%% 平台基础
- subgraph CorePlatform["🧩 平台基础"]
- Platform["统一平台
⚙️系统管理
📬流程提醒
"]
- APIService["接口服务
🛒API市场
🔒权限管理
"]
- end
+ Platform["🧩 统一平台
系统管理/流程提醒"]
+ APIService["🔌 接口服务
API市场/权限管理"]
%% 业务核心
- subgraph CoreBusiness["💼 业务核心"]
- Revenue["营收系统
📝抄表开账
💳收费管理
📒账务处理
🧾发票管理
"]
- MeterMgmt["表务系统
🛠️表务工单
🏪表务仓库
📶物联网对接
"]
- end
+ Revenue["💰 营收系统
抄表/收费/账务/发票"]
+ MeterMgmt["🔧 表务系统
工单/仓库/物联网"]
%% 客户服务
- subgraph CustomerService["👨💼 客户服务"]
- CustService["客户服务
📲微信支付宝
🔍账单查询
🌐微网厅
🤖智能客服
"]
- MeterApp["抄表APP
🏠首页功能
📊抄表功能
📋工单管理
"]
- end
+ CustService["👨💼 客户服务
账单/发票/智能客服"]
+ MeterApp["📱 抄表APP
抄表/工单管理"]
%% 业务管理
- subgraph BusinessMgmt["🏗️ 业务管理"]
- Installation["报装管理
📝报装流程
🏠一户一表
"]
- ProjectMgmt["工程管理
📝工程申请
🚧工程施工
✅工程验收
"]
- StatAnalysis["统计分析
📈报表查询
💸欠费查询
💧用水分析
"]
- end
+ Installation["🏗️ 报装管理
报装流程/一户一表"]
+ ProjectMgmt["🏗️ 工程管理
申请/施工/验收"]
+ StatAnalysis["📊 统计分析
报表/欠费/用水分析"]
end
- %% 中间层 - 更紧凑的布局
- subgraph MiddleLayer["⚙️ 中间层"]
- ESB["🔄
企业服务总线
"]
- ReportPlatform["📊
统一报表
"]
- Cache["⚡
缓存服务
"]
- Workflow["📑
工作流引擎
"]
- MessageQueue["📨
消息队列
"]
+ %% 中间层
+ subgraph MiddleLayer["⚙️ 中间层"]
+ ESB["🔄 企业服务总线"]
+ ReportPlatform["📊 统一报表"]
+ Cache["⚡ 缓存服务"]
+ Workflow["📑 工作流引擎"]
+ MessageQueue["📨 消息队列"]
end
- %% 数据层 - 更紧凑的布局
- subgraph DataLayer["💾 数据层"]
- DBCluster["🗄️
数据库集群
"]
- FileServer["📂
文件服务器
"]
- Backup["🔄
数据备份
"]
- DataIntegration["🔄
数据集成
"]
+ %% 数据层
+ subgraph DataLayer["💾 数据层"]
+ DBCluster["🗄️ 数据库集群"]
+ FileServer["📂 文件服务器"]
+ Backup["🔄 数据备份"]
+ DataIntegration["🔄 数据集成"]
end
- %% 外部接口层 - 分组
- subgraph ExternalAPI["🌐 外部接口层"]
+ %% 外部接口层
+ subgraph ExternalAPI["🌐 外部接口层"]
%% 支付相关
- subgraph PaymentAPI["💳 支付相关"]
- BankAPI["🏦
银行接口
"]
- PayAPI["💳
支付接口
"]
- end
-
- %% 通信相关
- subgraph CommAPI["📡 通信相关"]
- SMSAPI["📱
短信接口
"]
- IoTAPI["📶
物联网接口
"]
- end
-
- %% 系统对接
- subgraph SystemAPI["🔌 系统对接"]
- GovernmentAPI["🏛️
政务接口
"]
- HydrantAPI["🚿
消火栓
"]
- EnvAPI["♻️
环卫系统
"]
- OAAPI["📝
OA系统
"]
- end
+ BankAPI["🏦 银行接口"]
+ PayAPI["💳 支付接口"]
+ SMSAPI["📱 短信接口"]
+ IoTAPI["📶 物联网接口"]
+ GovernmentAPI["🏛️ 政务接口"]
+ EnvAPI["♻️ 环卫系统"]
end
- %% 安全层 - 垂直布局
- subgraph SecurityLayer["🔐 安全层"]
- NetSecurity["🛡️
网络安全
"]
- DataSecurity["🔒
数据安全
"]
- AppSecurity["🛡️
应用安全
"]
+ %% 安全层
+ subgraph SecurityLayer["🔐 安全层"]
+ Security["🛡️ 网络/数据/应用安全"]
end
- %% 多租户 - 紧凑布局
- subgraph Tenants["🏢 多租户架构"]
- Group["🏢
集团
"]
- Branch["🏪
分公司
"]
- Station["🏪
营业站点
"]
+ %% 多租户
+ subgraph Tenants["🏢 多租户架构"]
+ Group["🏢 集团"]
+ Branch["🏪 分公司"]
+ Station["🏪 营业站点"]
end
- %% 技术栈信息 - 增加信息量
- subgraph TechStack["🔧 技术栈"]
- Backend["后端技术
✓ Spring Boot 3.x
✓ MyBatis Plus
✓ Redis
✓ Flowable
"]
- Frontend["前端技术
✓ Vue 3.x
✓ Element Plus
✓ Pinia
✓ ECharts
"]
- Mobile["移动技术
✓ uni-app
✓ uview-ui
✓ 微信/支付宝
✓ 高德地图SDK
"]
+ %% 技术栈信息
+ subgraph TechStack["🔧 技术栈"]
+ Backend["后端: Spring Boot/MyBatis/Redis"]
+ Frontend["前端: Vue 3/Element Plus/Pinia"]
+ Mobile["移动: uni-app/小程序/SDK集成"]
end
- %% 部署架构信息 - 增加信息量
- subgraph Deployment["🖥️ 部署架构"]
- ProdEnv["生产环境
✓ 高可用集群
✓ 主从数据库
✓ Redis集群
"]
- Container["容器技术
✓ Docker
✓ Kubernetes
✓ 自动扩缩容
"]
- end
-
- %% 连接关系 - 使用更紧凑的箭头
+ %% 连接关系
Users --> Access
Access --> AppLayer
AppLayer --> MiddleLayer
MiddleLayer --> DataLayer
MiddleLayer <--> ExternalAPI
- %% 技术栈与部署架构连接
+ %% 技术栈关系
AppLayer -.-> TechStack
- DataLayer -.-> Deployment
- %% 安全层垂直贯穿
- SecurityLayer -.- Users
- SecurityLayer -.- Access
- SecurityLayer -.- AppLayer
- SecurityLayer -.- MiddleLayer
- SecurityLayer -.- DataLayer
- SecurityLayer -.- ExternalAPI
-
- %% 多租户关系
- Tenants -.- AppLayer
+ %% 安全和多租户关系
+ SecurityLayer -.-> Users
+ SecurityLayer -.-> Access
+ SecurityLayer -.-> AppLayer
+ SecurityLayer -.-> MiddleLayer
+ SecurityLayer -.-> DataLayer
+ Tenants -.-> AppLayer
%% 应用样式
class Users userLayer
class Access accessLayer
- class AppLayer,CorePlatform,CoreBusiness,CustomerService,BusinessMgmt applicationLayer
- class Platform,Revenue,CustService,MeterMgmt,Installation,StatAnalysis,ProjectMgmt,MeterApp,APIService moduleStyle
+ class AppLayer,Platform,Revenue,CustService,MeterMgmt,Installation,StatAnalysis,ProjectMgmt,MeterApp,APIService appLayer
class MiddleLayer middleLayer
class DataLayer dataLayer
- class ExternalAPI,PaymentAPI,CommAPI,SystemAPI externalLayer
- class SecurityLayer securityLayer
+ class ExternalAPI,BankAPI,PayAPI,SMSAPI,IoTAPI,GovernmentAPI,EnvAPI extLayer
+ class SecurityLayer secLayer
class Tenants tenantLayer
- class TechStack,Backend,Frontend,Mobile applicationLayer
- class Deployment,ProdEnv,Container dataLayer
+ class TechStack,Backend,Frontend,Mobile appLayer
```
## 2. 技术架构