From 7e364939aeeb8f2dc2a46c2f3c0c8ef81488e443 Mon Sep 17 00:00:00 2001
From: tangweijie <877588133@qq.com>
Date: Fri, 9 May 2025 15:09:14 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B0=B4=E5=8A=A1=E4=B8=9A?=
=?UTF-8?q?=E5=8A=A1=E7=B3=BB=E7=BB=9F=E6=9E=B6=E6=9E=84=E6=96=87=E6=A1=A3?=
=?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BA=86=E5=90=84=E5=B1=82=E7=BA=A7?=
=?UTF-8?q?=E7=9A=84=E5=8F=AF=E8=A7=86=E5=8C=96=E5=B8=83=E5=B1=80=EF=BC=8C?=
=?UTF-8?q?=E5=A2=9E=E5=BC=BA=E4=BA=86=E7=94=A8=E6=88=B7=E5=B1=82=E3=80=81?=
=?UTF-8?q?=E6=8E=A5=E5=85=A5=E5=B1=82=E3=80=81=E5=BA=94=E7=94=A8=E5=B1=82?=
=?UTF-8?q?=E3=80=81=E4=B8=AD=E9=97=B4=E5=B1=82=E3=80=81=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E5=B1=82=E5=8F=8A=E5=A4=96=E9=83=A8=E6=8E=A5=E5=8F=A3=E5=B1=82?=
=?UTF-8?q?=E7=9A=84=E6=8F=8F=E8=BF=B0=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BA=86?=
=?UTF-8?q?=E6=8A=80=E6=9C=AF=E6=A0=88=E5=92=8C=E9=83=A8=E7=BD=B2=E6=9E=B6?=
=?UTF-8?q?=E6=9E=84=E4=BF=A1=E6=81=AF=EF=BC=8C=E6=8F=90=E5=8D=87=E4=BA=86?=
=?UTF-8?q?=E6=96=87=E6=A1=A3=E7=9A=84=E5=8F=AF=E8=AF=BB=E6=80=A7=E5=92=8C?=
=?UTF-8?q?=E5=AE=9E=E7=94=A8=E6=80=A7=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
water_biz_system_architecture.md | 247 +++++++++++++++++--------------
1 file changed, 134 insertions(+), 113 deletions(-)
diff --git a/water_biz_system_architecture.md b/water_biz_system_architecture.md
index 96a2d08..40e300a 100644
--- a/water_biz_system_architecture.md
+++ b/water_biz_system_architecture.md
@@ -20,142 +20,163 @@
- 统一对外接口:提供标准的接口和能力
```mermaid
-graph TD
- %% 用户访问层
- User1[Web端用户] --- Access
- User2[移动端用户] --- Access
- User3[营业厅操作人员] --- Access
+%%{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
- subgraph Access[接入层]
- LoadBalancer[负载均衡]
- Firewall[防火墙]
- SSO[单点登录]
+ %% 用户层 - 缩小高度
+ subgraph Users["👥 用户层"]
+ User1["
🖥️
Web端用户
"]
+ User2["📱
移动端用户
"]
+ User3["🏢
营业厅操作人员
"]
end
- Access --- AppLayer
+ %% 接入层 - 缩小高度
+ subgraph Access["🔐 接入层"]
+ LoadBalancer["⚖️
负载均衡
"]
+ Firewall["🛡️
防火墙
"]
+ SSO["🔑
单点登录
"]
+ end
- %% 应用层
- subgraph AppLayer[应用层]
- subgraph Platform[统一平台]
- SysManage[系统管理]
- WorkflowAlert[流程节点提醒]
+ %% 应用层 - 分组优化布局
+ subgraph AppLayer["📊 应用层"]
+ %% 平台基础
+ subgraph CorePlatform["🧩 平台基础"]
+ Platform["统一平台
⚙️系统管理
📬流程提醒
"]
+ APIService["接口服务
🛒API市场
🔒权限管理
"]
end
- subgraph Revenue[营收系统]
- Meter[抄表开账]
- Charge[收费管理]
- Account[账务处理]
- Invoice[发票管理]
- Collection[代收业务]
- EnvSanitation[环卫系统]
- BusinessOrders[业务工单]
+ %% 业务核心
+ subgraph CoreBusiness["💼 业务核心"]
+ Revenue["营收系统
📝抄表开账
💳收费管理
📒账务处理
🧾发票管理
"]
+ MeterMgmt["表务系统
🛠️表务工单
🏪表务仓库
📶物联网对接
"]
end
- subgraph CustService[客户服务]
- WeChatPay[微信/支付宝服务]
- BillQuery[账单查询]
- EInvoice[电子发票]
- WebPortal[微网厅]
- AIService[智能客服]
+ %% 客户服务
+ subgraph CustomerService["👨💼 客户服务"]
+ CustService["客户服务
📲微信支付宝
🔍账单查询
🌐微网厅
🤖智能客服
"]
+ MeterApp["抄表APP
🏠首页功能
📊抄表功能
📋工单管理
"]
end
- subgraph MeterMgmt[表务系统]
- MeterWork[表务工单]
- MeterStore[表务仓库]
- MeterParams[水表参数]
- IoTIntegration[物联网对接]
- end
-
- subgraph Installation[报装管理]
- InstallProcess[报装流程]
- OneMeter[一户一表管理]
- end
-
- subgraph StatAnalysis[统计分析]
- ReportQuery[报表查询]
- DebtQuery[欠费查询]
- PaymentRecord[缴费记录]
- WaterAnalysis[用水分析]
- end
-
- subgraph ProjectMgmt[工程管理]
- ProjectApply[工程申请]
- ProjectConstruct[工程施工]
- ProjectAccept[工程验收]
- ProjectQuery[工程查询]
- end
-
- subgraph MeterApp[抄表APP]
- AppHome[首页功能]
- AppMeter[抄表功能]
- AppOrder[工单管理]
- end
-
- subgraph APIService[接口服务]
- APIMarket[API市场]
- APIMgmt[API管理]
- APIAuth[接口权限管理]
- APIExtern[系统对外接口]
+ %% 业务管理
+ subgraph BusinessMgmt["🏗️ 业务管理"]
+ Installation["报装管理
📝报装流程
🏠一户一表
"]
+ ProjectMgmt["工程管理
📝工程申请
🚧工程施工
✅工程验收
"]
+ StatAnalysis["统计分析
📈报表查询
💸欠费查询
💧用水分析
"]
end
end
- AppLayer --- MiddleLayer
-
- %% 中间层
- subgraph MiddleLayer[中间层]
- ESB[企业服务总线]
- ReportPlatform[统一报表平台]
- Cache[缓存服务]
- Workflow[工作流引擎]
- MessageQueue[消息队列]
+ %% 中间层 - 更紧凑的布局
+ subgraph MiddleLayer["⚙️ 中间层"]
+ ESB["🔄
企业服务总线
"]
+ ReportPlatform["📊
统一报表
"]
+ Cache["⚡
缓存服务
"]
+ Workflow["📑
工作流引擎
"]
+ MessageQueue["📨
消息队列
"]
end
- MiddleLayer --- DataLayer
-
- %% 数据层
- subgraph DataLayer[数据层]
- DBCluster[数据库集群]
- FileServer[文件服务器]
- Backup[数据备份恢复]
- DataIntegration[数据集成]
+ %% 数据层 - 更紧凑的布局
+ subgraph DataLayer["💾 数据层"]
+ DBCluster["🗄️
数据库集群
"]
+ FileServer["📂
文件服务器
"]
+ Backup["🔄
数据备份
"]
+ DataIntegration["🔄
数据集成
"]
end
- %% 外部接口层
- subgraph ExternalAPI[外部接口层]
- BankAPI[银行接口]
- PayAPI[支付接口]
- SMSAPI[短信接口]
- IoTAPI[物联网接口]
- GovernmentAPI[政务系统接口]
- HydrantAPI[消火栓系统接口]
- EnvAPI[环卫系统接口]
- OAAPI[OA系统接口]
+ %% 外部接口层 - 分组
+ subgraph ExternalAPI["🌐 外部接口层"]
+ %% 支付相关
+ subgraph PaymentAPI["💳 支付相关"]
+ BankAPI["🏦
银行接口
"]
+ PayAPI["💳
支付接口
"]
+ end
+
+ %% 通信相关
+ subgraph CommAPI["📡 通信相关"]
+ SMSAPI["📱
短信接口
"]
+ IoTAPI["📶
物联网接口
"]
+ end
+
+ %% 系统对接
+ subgraph SystemAPI["🔌 系统对接"]
+ GovernmentAPI["🏛️
政务接口
"]
+ HydrantAPI["🚿
消火栓
"]
+ EnvAPI["♻️
环卫系统
"]
+ OAAPI["📝
OA系统
"]
+ end
end
- MiddleLayer --- ExternalAPI
-
- %% 安全层
- SecurityLayer[安全层\n网络安全 • 数据安全 • 应用安全] --- AppLayer
- SecurityLayer --- MiddleLayer
- SecurityLayer --- DataLayer
-
- %% 多租户
- subgraph Tenants[多租户架构]
- Group[集团]
- Branch[分公司]
- Station[营业站点]
+ %% 安全层 - 垂直布局
+ subgraph SecurityLayer["🔐 安全层"]
+ NetSecurity["🛡️
网络安全
"]
+ DataSecurity["🔒
数据安全
"]
+ AppSecurity["🛡️
应用安全
"]
end
+ %% 多租户 - 紧凑布局
+ 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
"]
+ 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
- classDef layer fill:#f9f9f9,stroke:#333,stroke-width:2px
- class Access,AppLayer,MiddleLayer,DataLayer,ExternalAPI,Tenants layer
-
- classDef security fill:#ffe6e6,stroke:#f66,stroke-width:2px
- class SecurityLayer security
-
- classDef platform fill:#e6f7ff,stroke:#1890ff,stroke-width:1px
- class Platform,Revenue,CustService,MeterMgmt,Installation,StatAnalysis,ProjectMgmt,MeterApp,APIService platform
+ %% 应用样式
+ 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 MiddleLayer middleLayer
+ class DataLayer dataLayer
+ class ExternalAPI,PaymentAPI,CommAPI,SystemAPI externalLayer
+ class SecurityLayer securityLayer
+ class Tenants tenantLayer
+ class TechStack,Backend,Frontend,Mobile applicationLayer
+ class Deployment,ProdEnv,Container dataLayer
```
## 2. 技术架构