From a5d71d6e5b6926028cac6b3029fe46fdbb2e8e81 Mon Sep 17 00:00:00 2001 From: tangweijie <877588133@qq.com> Date: Fri, 9 May 2025 15:11:58 +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=E7=AE=80=E5=8C=96=E4=BA=86=E5=90=84=E5=B1=82=E7=BA=A7?= =?UTF-8?q?=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=92=8C=E6=8F=8F=E8=BF=B0=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=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=E5=8F=AF=E8=A7=86=E5=8C=96=E6=95=88=E6=9E=9C=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E4=BA=86=E6=8A=80=E6=9C=AF=E6=A0=88=E5=92=8C?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E6=9E=B6=E6=9E=84=E4=BF=A1=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E6=B8=85=E6=99=B0=E5=BA=A6=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 | 191 +++++++++++++------------------ 1 file changed, 77 insertions(+), 114 deletions(-) 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. 技术架构