EHR Human Resources
Based on the latest RuoyiPlus backend architecture, 30 DOs / 15 Controllers, menu ID starting from 7000, building an enterprise HR digital management system
1. Enhancement Positioning & Architecture
1.1 Product Positioning
RuoYiPlus EHR provides enterprise-grade enhancements around three core areas: employee full-lifecycle management, compensation & performance management, and recruitment & training management, achieving digital HR management.
1.2 Module Scale
| Metric | Value |
|---|---|
| Data Objects (DO) | 30 |
| Controllers | 15 |
| Menu ID Start | 7000 |
| Maven Module | yudao-module-ehr |
1.3 Core Data Tables
| Table Name | Description |
|---|---|
ehr_employee | Employee Management |
ehr_attendance | Attendance Management |
ehr_insurance | Social Insurance Management |
ehr_performance | Performance Management |
ehr_recruitment | Recruitment Management |
ehr_salary | Salary Management |
ehr_contract | Contract Management |
ehr_education | Training Management |
graph TB
subgraph "RuoYiPlus EHR Enhanced Architecture"
subgraph "Organization & Personnel"
A1[Employee Records]
A2[Org Structure]
A3[Contract Management]
A4[Onboarding/Offboarding]
end
subgraph "Compensation & Benefits"
B1[Salary Calculation]
B2[Social Insurance & Housing Fund]
B3[Income Tax Management]
end
subgraph "Attendance & Performance"
C1[Attendance Clock-in]
C2[Performance Appraisal]
C3[Leave Management]
end
subgraph "Recruitment & Training"
D1[Recruitment Management]
D2[Training Management]
D3[Talent Development]
end
subgraph "Control Layer"
E1[Data Permissions]
E2[Privacy Masking]
E3[Operation Audit]
end
end
A1 --> B1
A2 --> B1
A3 --> B2
A4 --> C1
B1 --> C2
B2 --> C2
C1 --> C3
C3 --> D1
D1 --> D2
D2 --> D3
A1 --> E1
B1 --> E2
C2 --> E3
1.4 Capability Comparison
| Dimension | Traditional HR System | RuoYiPlus EHR Enhancement |
|---|---|---|
| Employee Management | Basic info | Full-lifecycle + digital records |
| Compensation Management | Manual calculation | Auto payroll + tax calculation |
| Attendance Management | Simple clock-in | Multi-dimensional attendance + smart scheduling |
| Performance Management | None | KPI + 360-degree appraisal |
| Recruitment Management | None | Full-process recruitment management |
| Training Management | None | Training plans + effectiveness evaluation |
| Permission Control | Basic permissions | Department-level + position-level data permissions |
| Privacy Compliance | None | Privacy data masking + audit |
2. Employee Full-Lifecycle Management
2.1 Employee Lifecycle
graph LR
A[Recruitment & Onboarding] --> B[Probation Management]
B --> C[Regular Employee]
C --> D[Transfer & Promotion]
D --> E[Offboarding Management]
A --> A1[Resume Screening]
A --> A2[Interview Assessment]
A --> A3[Onboarding Processing]
B --> B1[Probation Assessment]
B --> B2[Mentor Guidance]
B --> B3[Confirmation Review]
C --> C1[Performance Management]
C --> C2[Training & Development]
C --> C3[Compensation & Benefits]
D --> D1[Position Adjustment]
D --> D2[Rank Promotion]
D --> D3[Salary Adjustment]
E --> E1[Resignation Application]
E --> E2[Exit Handover]
E --> E3[Exit Analysis]
2.2 Data Permission Control
The EHR system implements data permission control based on departments and positions to ensure HR data security.
| Permission Level | Scope | Description |
|---|---|---|
| Employee Self | Personal info | Can only view their own basic information |
| Department Manager | Department employees | Can view department employee information |
| HR Specialist | All employees | Can view all employee information |
| Executive | All data | Can view all HR data |
// EHR data permission example
@DataPermission(scope = "department")
public class EmployeeServiceImpl {
// Department managers can only view employees in their department
// Automatically filtered by department
}
3. Compensation Management
3.1 Compensation System
graph TB
subgraph "Compensation Management"
A[Compensation Structure] --> B[Salary Calculation]
B --> C[Social Insurance & Housing Fund]
B --> D[Income Tax Calculation]
C --> E[Salary Disbursement]
D --> E
E --> F[Salary Reports]
A --> A1[Base Salary]
A --> A2[Performance Pay]
A --> A3[Allowances & Subsidies]
A --> A4[Bonuses]
end
| Capability | Description |
|---|---|
| Compensation Structure | Base salary + performance + allowances + bonuses |
| Auto Payroll | Rule-based automatic salary calculation |
| Social Insurance Management | Automatic social insurance & housing fund calculation |
| Income Tax Calculation | Cumulative withholding method tax calculation |
| Salary Disbursement | Bank direct deposit, pay slips |
3.2 Compensation Audit
All compensation operations are recorded with complete audit logs to ensure salary data security.
| Audit Item | Description |
|---|---|
| Salary Adjustment | Records adjustment time, amount, reason |
| Salary Calculation | Records calculation process, calculation formulas |
| Salary Disbursement | Records disbursement time, disbursement amount |
| Data Export | Records export time, exporter |
4. Attendance & Performance Management
4.1 Attendance System
graph TB
subgraph "Attendance Management"
A[Shift Scheduling] --> B[Attendance Clock-in]
B --> C[Attendance Statistics]
C --> D[Exception Handling]
D --> E[Attendance Reports]
A --> A1[Fixed Shifts]
A --> A2[Flexible Shifts]
A --> A3[Rotating Shifts]
B --> B1[GPS Clock-in]
B --> B2[WiFi Clock-in]
B --> B3[Face Recognition]
C --> C1[Attendance Statistics]
C --> C2[Overtime Statistics]
C --> C3[Leave Statistics]
end
4.2 Performance Appraisal
| Appraisal Method | Description |
|---|---|
| KPI Appraisal | Key Performance Indicator appraisal |
| OKR Appraisal | Objectives and Key Results appraisal |
| 360-Degree Appraisal | Multi-dimensional comprehensive evaluation |
| MBO | Management by Objectives appraisal |
5. Technical Architecture
graph TB
subgraph "yudao-module-ehr-plus"
subgraph "ehr-biz"
A1[employee]
A2[salary]
A3[attendance]
A4[performance]
A5[recruitment]
A6[education]
A7[contract]
A8[insurance]
A9[analytics]
end
subgraph "Permissions & Audit"
B1[permission]
B2[audit]
B3[masking]
end
end
A1 --> B1
A2 --> B2
A3 --> B2
A4 --> B2
A5 --> B1
A6 --> B1
A7 --> B3
6. Business Value
| Value Point | Description |
|---|---|
| HR Efficiency | Automated processes, digital records |
| Compensation Accuracy | Auto payroll, compliant tax |
| Talent Development | Performance management, training system |
| Data-driven Decisions | HR analytics, talent review |
| Compliance Control | Data permissions, privacy protection |
| Audit Traceability | Operation audit, change traceability |