# matthewwan0827/ruoyi-office architecture

> Architecture diagram of the GitHub repository matthewwan0827/ruoyi-office, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/matthewwan0827/ruoyi-office
- Repository: https://github.com/matthewwan0827/ruoyi-office

## Overview

RuoYi Office is a modular enterprise management platform spanning office workflows, HR, sales, inventory, commerce, AI, IoT and supporting services. A representative user journey is submitting an office request, having it handled by the BPM approval engine, and using the business module to manage the related records. The README documents these capabilities and the OA–BPM integration; sampled source confirms selected service responsibilities, but does not expose the full runtime wiring, so other module-to-module links are omitted.

Main entry points: [`yudao-module-oa`](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-oa) (OA Office), [`yudao-module-hrm`](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-hrm) (HR Management), [`yudao-module-crm/yudao-module-crm-server/src/main/java/cn/iocoder/yudao/module/crm/service/business/CrmBusinessService.java`](https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-crm/yudao-module-crm-server/src/main/java/cn/iocoder/yudao/module/crm/service/business/CrmBusinessService.java) (CRM), [`yudao-module-erp`](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-erp) (ERP Inventory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_business["Business Operations"]
  node_oa["OA Office"]
  node_hrm["HR Management"]
  node_crm["CRM"]
  node_erp["ERP Inventory"]
  node_asset["Asset Lifecycle"]
  node_wms["Warehouse"]
end

subgraph group_commerce["Commerce and Channels"]
  node_mall["Enterprise Mall"]
  node_pay["Payments"]
  node_member["Member Center"]
  node_mp["WeChat Official Account"]
end

subgraph group_workflow["Workflow and Intelligence"]
  node_bpm["BPM Approvals"]
  node_ai["AI Assistant"]
  node_report["Reports"]
end

subgraph group_platform["Platform Services"]
  node_iot["IoT Devices"]
  node_system["System Management"]
  node_infra["Infrastructure"]
end

subgraph group_shared["Shared Framework"]
  node_common["Common Services"]
  node_framework["Shared Framework<br/>[CommonResult.java]"]
end

node_employee(("Employee"))

node_employee -->|"submits request"| node_oa
node_oa -->|"uses approvals"| node_bpm
node_employee -->|"uses HR"| node_hrm
node_employee -->|"manages customers"| node_crm
node_employee -->|"manages stock"| node_erp
node_employee -->|"tracks assets"| node_asset
node_employee -->|"manages warehouse"| node_wms
node_employee -->|"uses assistant"| node_ai
node_employee -->|"views reports"| node_report
node_employee -->|"manages commerce"| node_mall
node_employee -->|"manages payments"| node_pay
node_employee -->|"manages members"| node_member
node_employee -->|"manages account"| node_mp
node_employee -->|"monitors devices"| node_iot
node_employee -->|"administers platform"| node_system

click node_oa "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-oa"
click node_hrm "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-hrm"
click node_crm "https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-crm/yudao-module-crm-server/src/main/java/cn/iocoder/yudao/module/crm/service/business/CrmBusinessService.java"
click node_erp "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-erp"
click node_asset "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-asset"
click node_wms "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-wms"
click node_bpm "https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-bpm/yudao-module-bpm-server/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmTaskService.java"
click node_ai "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-ai"
click node_report "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-report"
click node_mall "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-mall"
click node_pay "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-pay"
click node_member "https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-member/yudao-module-member-server/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthService.java"
click node_mp "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-mp"
click node_iot "https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-iot/yudao-module-iot-server/src/main/java/cn/iocoder/yudao/module/iot/service/device/IotDeviceService.java"
click node_system "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-system"
click node_infra "https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-infra"
click node_common "https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-framework/yudao-common-server/src/main/java/cn/iocoder/yudao/common/server/attachment/service/AttachmentServiceImpl.java"
click node_framework "https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/pojo/CommonResult.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_oa,node_hrm,node_crm,node_erp,node_asset,node_wms toneBlue
class node_mall,node_pay,node_member,node_mp toneAmber
class node_bpm,node_ai,node_report toneMint
class node_iot,node_system,node_infra toneRose
class node_common,node_framework,node_employee toneIndigo
```

## Components

### Business Operations

- [OA Office](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-oa): `yudao-module-oa`
- [HR Management](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-hrm): `yudao-module-hrm`
- [CRM](https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-crm/yudao-module-crm-server/src/main/java/cn/iocoder/yudao/module/crm/service/business/CrmBusinessService.java): `yudao-module-crm/yudao-module-crm-server/src/main/java/cn/iocoder/yudao/module/crm/service/business/CrmBusinessService.java`
- [ERP Inventory](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-erp): `yudao-module-erp`
- [Asset Lifecycle](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-asset): `yudao-module-asset`
- [Warehouse](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-wms): `yudao-module-wms`

### Commerce and Channels

- [Enterprise Mall](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-mall): `yudao-module-mall`
- [Payments](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-pay): `yudao-module-pay`
- [Member Center](https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-member/yudao-module-member-server/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthService.java): `yudao-module-member/yudao-module-member-server/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthService.java`
- [WeChat Official Account](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-mp): `yudao-module-mp`

### Workflow and Intelligence

- [BPM Approvals](https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-bpm/yudao-module-bpm-server/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmTaskService.java): `yudao-module-bpm/yudao-module-bpm-server/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmTaskService.java`
- [AI Assistant](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-ai): `yudao-module-ai`
- [Reports](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-report): `yudao-module-report`

### Platform Services

- [IoT Devices](https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-module-iot/yudao-module-iot-server/src/main/java/cn/iocoder/yudao/module/iot/service/device/IotDeviceService.java): `yudao-module-iot/yudao-module-iot-server/src/main/java/cn/iocoder/yudao/module/iot/service/device/IotDeviceService.java`
- [System Management](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-system): `yudao-module-system`
- [Infrastructure](https://github.com/matthewwan0827/ruoyi-office/tree/main/yudao-module-infra): `yudao-module-infra`

### Shared Framework

- [Common Services](https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-framework/yudao-common-server/src/main/java/cn/iocoder/yudao/common/server/attachment/service/AttachmentServiceImpl.java): `yudao-framework/yudao-common-server/src/main/java/cn/iocoder/yudao/common/server/attachment/service/AttachmentServiceImpl.java`
- [Shared Framework](https://github.com/matthewwan0827/ruoyi-office/blob/main/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/pojo/CommonResult.java): `yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/pojo/CommonResult.java`

### Other components

- **Employee**

## Connections

- Employee → OA Office: submits request
- OA Office → BPM Approvals: uses approvals
- Employee → HR Management: uses HR
- Employee → CRM: manages customers
- Employee → ERP Inventory: manages stock
- Employee → Asset Lifecycle: tracks assets
- Employee → Warehouse: manages warehouse
- Employee → AI Assistant: uses assistant
- Employee → Reports: views reports
- Employee → Enterprise Mall: manages commerce
- Employee → Payments: manages payments
- Employee → Member Center: manages members
- Employee → WeChat Official Account: manages account
- Employee → IoT Devices: monitors devices
- Employee → System Management: administers platform
