ai-engineering-init 1.3.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/hooks/skill-forced-eval.js +4 -1
- package/.claude/settings.json +3 -3
- package/.claude/skills/add-skill/SKILL.md +252 -116
- package/.claude/skills/api-development/SKILL.md +83 -377
- package/.claude/skills/architecture-design/SKILL.md +138 -632
- package/.claude/skills/backend-annotations/SKILL.md +134 -506
- package/.claude/skills/banana-image/SKILL.md +10 -3
- package/.claude/skills/brainstorm/SKILL.md +103 -535
- package/.claude/skills/bug-detective/SKILL.md +147 -1097
- package/.claude/skills/bug-detective/references/error-patterns.md +242 -0
- package/.claude/skills/code-patterns/SKILL.md +116 -426
- package/.claude/skills/code-patterns/references/leniu-code-patterns.md +87 -0
- package/.claude/skills/crud-development/SKILL.md +64 -304
- package/.claude/skills/data-permission/SKILL.md +105 -412
- package/.claude/skills/data-permission/references/custom-data-scope.md +90 -0
- package/.claude/skills/file-oss-management/SKILL.md +106 -714
- package/.claude/skills/file-oss-management/references/entities.md +105 -0
- package/.claude/skills/file-oss-management/references/service-impl.md +104 -0
- package/.claude/skills/leniu-api-development/SKILL.md +142 -626
- package/.claude/skills/leniu-api-development/references/real-examples.md +273 -0
- package/.claude/skills/leniu-architecture-design/SKILL.md +176 -391
- package/.claude/skills/leniu-backend-annotations/SKILL.md +132 -519
- package/.claude/skills/leniu-brainstorm/SKILL.md +132 -541
- package/.claude/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
- package/.claude/skills/leniu-crud-development/SKILL.md +232 -938
- package/.claude/skills/leniu-crud-development/references/templates.md +597 -0
- package/.claude/skills/leniu-customization-location/SKILL.md +410 -0
- package/.claude/skills/leniu-data-permission/SKILL.md +70 -0
- package/.claude/skills/leniu-java-entity/SKILL.md +76 -590
- package/.claude/skills/leniu-java-entity/references/templates.md +237 -0
- package/.claude/skills/leniu-java-export/SKILL.md +94 -379
- package/.claude/skills/leniu-java-logging/SKILL.md +106 -709
- package/.claude/skills/leniu-java-logging/references/data-mask.md +46 -0
- package/.claude/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
- package/.claude/skills/leniu-java-mybatis/SKILL.md +73 -446
- package/.claude/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
- package/.claude/skills/leniu-report-customization/SKILL.md +111 -325
- package/.claude/skills/leniu-report-customization/references/table-fields.md +93 -0
- package/.claude/skills/leniu-report-standard-customization/SKILL.md +328 -0
- package/.claude/skills/leniu-report-standard-customization/references/analysis-module.md +64 -0
- package/.claude/skills/leniu-report-standard-customization/references/table-fields.md +113 -0
- package/.claude/skills/leniu-security-guard/SKILL.md +133 -347
- package/.claude/skills/mysql-debug/SKILL.md +364 -0
- package/.claude/skills/openspec-apply-change/SKILL.md +10 -1
- package/.claude/skills/openspec-archive-change/SKILL.md +9 -1
- package/.claude/skills/openspec-bulk-archive-change/SKILL.md +9 -1
- package/.claude/skills/openspec-continue-change/SKILL.md +9 -1
- package/.claude/skills/openspec-explore/SKILL.md +10 -1
- package/.claude/skills/openspec-ff-change/SKILL.md +9 -1
- package/.claude/skills/openspec-new-change/SKILL.md +9 -1
- package/.claude/skills/openspec-onboard/SKILL.md +15 -130
- package/.claude/skills/openspec-sync-specs/SKILL.md +9 -1
- package/.claude/skills/openspec-verify-change/SKILL.md +9 -1
- package/.claude/skills/performance-doctor/SKILL.md +110 -434
- package/.claude/skills/redis-cache/SKILL.md +89 -595
- package/.claude/skills/redis-cache/references/listeners.md +23 -0
- package/.claude/skills/scheduled-jobs/SKILL.md +88 -407
- package/.claude/skills/security-guard/SKILL.md +137 -532
- package/.claude/skills/security-guard/references/encrypt-config.md +103 -0
- package/.claude/skills/security-guard/references/sensitive-strategies.md +42 -0
- package/.claude/skills/sms-mail/SKILL.md +116 -574
- package/.claude/skills/sms-mail/references/mail-config.md +88 -0
- package/.claude/skills/sms-mail/references/sms-config.md +74 -0
- package/.claude/skills/social-login/SKILL.md +112 -514
- package/.claude/skills/social-login/references/provider-configs.md +118 -0
- package/.claude/skills/tenant-management/SKILL.md +129 -444
- package/.claude/skills/tenant-management/references/tenant-scenarios.md +91 -0
- package/.claude/skills/test-development/SKILL.md +86 -540
- package/.claude/skills/test-development/references/parameterized-examples.md +119 -0
- package/.claude/skills/utils-toolkit/SKILL.md +52 -305
- package/.claude/skills/utils-toolkit/references/redis-utils-api.md +56 -0
- package/.claude/skills/websocket-sse/SKILL.md +105 -550
- package/.claude/skills/workflow-engine/SKILL.md +147 -502
- package/.codex/skills/add-skill/SKILL.md +252 -116
- package/.codex/skills/api-development/SKILL.md +172 -599
- package/.codex/skills/architecture-design/SKILL.md +138 -504
- package/.codex/skills/backend-annotations/SKILL.md +134 -496
- package/.codex/skills/banana-image/SKILL.md +10 -3
- package/.codex/skills/brainstorm/SKILL.md +103 -535
- package/.codex/skills/bug-detective/SKILL.md +147 -1097
- package/.codex/skills/bug-detective/references/error-patterns.md +242 -0
- package/.codex/skills/code-patterns/SKILL.md +120 -282
- package/.codex/skills/code-patterns/references/leniu-code-patterns.md +87 -0
- package/.codex/skills/crud-development/SKILL.md +64 -292
- package/.codex/skills/data-permission/SKILL.md +108 -407
- package/.codex/skills/data-permission/references/custom-data-scope.md +90 -0
- package/.codex/skills/database-ops/SKILL.md +8 -154
- package/.codex/skills/error-handler/SKILL.md +10 -0
- package/.codex/skills/file-oss-management/SKILL.md +106 -714
- package/.codex/skills/file-oss-management/references/entities.md +105 -0
- package/.codex/skills/file-oss-management/references/service-impl.md +104 -0
- package/.codex/skills/git-workflow/SKILL.md +27 -5
- package/.codex/skills/leniu-api-development/SKILL.md +142 -626
- package/.codex/skills/leniu-api-development/references/real-examples.md +273 -0
- package/.codex/skills/leniu-architecture-design/SKILL.md +176 -391
- package/.codex/skills/leniu-backend-annotations/SKILL.md +132 -519
- package/.codex/skills/leniu-brainstorm/SKILL.md +132 -541
- package/.codex/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
- package/.codex/skills/leniu-crud-development/SKILL.md +232 -938
- package/.codex/skills/leniu-crud-development/references/templates.md +597 -0
- package/.codex/skills/leniu-customization-location/SKILL.md +410 -0
- package/.codex/skills/leniu-data-permission/SKILL.md +70 -0
- package/.codex/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.codex/skills/leniu-java-entity/SKILL.md +76 -590
- package/.codex/skills/leniu-java-entity/references/templates.md +237 -0
- package/.codex/skills/leniu-java-export/SKILL.md +94 -379
- package/.codex/skills/leniu-java-logging/SKILL.md +106 -709
- package/.codex/skills/leniu-java-logging/references/data-mask.md +46 -0
- package/.codex/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
- package/.codex/skills/leniu-java-mybatis/SKILL.md +73 -446
- package/.codex/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
- package/.codex/skills/leniu-report-customization/SKILL.md +111 -325
- package/.codex/skills/leniu-report-customization/references/table-fields.md +93 -0
- package/.codex/skills/leniu-report-standard-customization/SKILL.md +328 -0
- package/.codex/skills/leniu-report-standard-customization/references/analysis-module.md +64 -0
- package/.codex/skills/leniu-report-standard-customization/references/table-fields.md +113 -0
- package/.codex/skills/leniu-security-guard/SKILL.md +133 -347
- package/.codex/skills/mysql-debug/SKILL.md +364 -0
- package/.codex/skills/openspec-apply-change/SKILL.md +10 -1
- package/.codex/skills/openspec-archive-change/SKILL.md +9 -1
- package/.codex/skills/openspec-bulk-archive-change/SKILL.md +9 -1
- package/.codex/skills/openspec-continue-change/SKILL.md +9 -1
- package/.codex/skills/openspec-explore/SKILL.md +10 -1
- package/.codex/skills/openspec-ff-change/SKILL.md +9 -1
- package/.codex/skills/openspec-new-change/SKILL.md +9 -1
- package/.codex/skills/openspec-onboard/SKILL.md +15 -130
- package/.codex/skills/openspec-sync-specs/SKILL.md +9 -1
- package/.codex/skills/openspec-verify-change/SKILL.md +9 -1
- package/.codex/skills/performance-doctor/SKILL.md +110 -434
- package/.codex/skills/project-navigator/SKILL.md +20 -1
- package/.codex/skills/redis-cache/SKILL.md +93 -589
- package/.codex/skills/redis-cache/references/listeners.md +23 -0
- package/.codex/skills/scheduled-jobs/SKILL.md +88 -407
- package/.codex/skills/security-guard/SKILL.md +141 -527
- package/.codex/skills/security-guard/references/encrypt-config.md +103 -0
- package/.codex/skills/security-guard/references/sensitive-strategies.md +42 -0
- package/.codex/skills/sms-mail/SKILL.md +116 -574
- package/.codex/skills/sms-mail/references/mail-config.md +88 -0
- package/.codex/skills/sms-mail/references/sms-config.md +74 -0
- package/.codex/skills/social-login/SKILL.md +112 -514
- package/.codex/skills/social-login/references/provider-configs.md +118 -0
- package/.codex/skills/store-pc/SKILL.md +258 -383
- package/.codex/skills/tenant-management/SKILL.md +129 -444
- package/.codex/skills/tenant-management/references/tenant-scenarios.md +91 -0
- package/.codex/skills/test-development/SKILL.md +86 -540
- package/.codex/skills/test-development/references/parameterized-examples.md +119 -0
- package/.codex/skills/ui-pc/SKILL.md +350 -387
- package/.codex/skills/utils-toolkit/SKILL.md +52 -283
- package/.codex/skills/utils-toolkit/references/redis-utils-api.md +56 -0
- package/.codex/skills/websocket-sse/SKILL.md +105 -550
- package/.codex/skills/workflow-engine/SKILL.md +147 -502
- package/.cursor/hooks.json +3 -3
- package/.cursor/rules/skill-activation.mdc +2 -0
- package/.cursor/skills/add-skill/SKILL.md +252 -116
- package/.cursor/skills/api-development/SKILL.md +83 -377
- package/.cursor/skills/architecture-design/SKILL.md +138 -632
- package/.cursor/skills/backend-annotations/SKILL.md +134 -506
- package/.cursor/skills/banana-image/SKILL.md +10 -3
- package/.cursor/skills/brainstorm/SKILL.md +103 -535
- package/.cursor/skills/bug-detective/SKILL.md +147 -1097
- package/.cursor/skills/bug-detective/references/error-patterns.md +242 -0
- package/.cursor/skills/code-patterns/SKILL.md +116 -426
- package/.cursor/skills/code-patterns/references/leniu-code-patterns.md +87 -0
- package/.cursor/skills/crud-development/SKILL.md +64 -304
- package/.cursor/skills/data-permission/SKILL.md +105 -412
- package/.cursor/skills/data-permission/references/custom-data-scope.md +90 -0
- package/.cursor/skills/file-oss-management/SKILL.md +106 -714
- package/.cursor/skills/file-oss-management/references/entities.md +105 -0
- package/.cursor/skills/file-oss-management/references/service-impl.md +104 -0
- package/.cursor/skills/git-workflow/SKILL.md +27 -5
- package/.cursor/skills/leniu-api-development/SKILL.md +142 -626
- package/.cursor/skills/leniu-api-development/references/real-examples.md +273 -0
- package/.cursor/skills/leniu-architecture-design/SKILL.md +176 -391
- package/.cursor/skills/leniu-backend-annotations/SKILL.md +132 -519
- package/.cursor/skills/leniu-brainstorm/SKILL.md +132 -541
- package/.cursor/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
- package/.cursor/skills/leniu-crud-development/SKILL.md +232 -938
- package/.cursor/skills/leniu-crud-development/references/templates.md +597 -0
- package/.cursor/skills/leniu-customization-location/SKILL.md +410 -0
- package/.cursor/skills/leniu-data-permission/SKILL.md +70 -0
- package/.cursor/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.cursor/skills/leniu-java-entity/SKILL.md +76 -590
- package/.cursor/skills/leniu-java-entity/references/templates.md +237 -0
- package/.cursor/skills/leniu-java-export/SKILL.md +94 -379
- package/.cursor/skills/leniu-java-logging/SKILL.md +106 -709
- package/.cursor/skills/leniu-java-logging/references/data-mask.md +46 -0
- package/.cursor/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
- package/.cursor/skills/leniu-java-mybatis/SKILL.md +73 -446
- package/.cursor/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
- package/.cursor/skills/leniu-report-customization/SKILL.md +111 -325
- package/.cursor/skills/leniu-report-customization/references/table-fields.md +93 -0
- package/.cursor/skills/leniu-report-standard-customization/SKILL.md +328 -0
- package/.cursor/skills/leniu-report-standard-customization/references/analysis-module.md +64 -0
- package/.cursor/skills/leniu-report-standard-customization/references/table-fields.md +113 -0
- package/.cursor/skills/leniu-security-guard/SKILL.md +133 -347
- package/.cursor/skills/mysql-debug/SKILL.md +364 -0
- package/.cursor/skills/openspec-apply-change/SKILL.md +10 -1
- package/.cursor/skills/openspec-archive-change/SKILL.md +9 -1
- package/.cursor/skills/openspec-bulk-archive-change/SKILL.md +9 -1
- package/.cursor/skills/openspec-continue-change/SKILL.md +9 -1
- package/.cursor/skills/openspec-explore/SKILL.md +10 -1
- package/.cursor/skills/openspec-ff-change/SKILL.md +9 -1
- package/.cursor/skills/openspec-new-change/SKILL.md +9 -1
- package/.cursor/skills/openspec-onboard/SKILL.md +15 -130
- package/.cursor/skills/openspec-sync-specs/SKILL.md +9 -1
- package/.cursor/skills/openspec-verify-change/SKILL.md +9 -1
- package/.cursor/skills/performance-doctor/SKILL.md +110 -434
- package/.cursor/skills/redis-cache/SKILL.md +89 -595
- package/.cursor/skills/redis-cache/references/listeners.md +23 -0
- package/.cursor/skills/scheduled-jobs/SKILL.md +88 -407
- package/.cursor/skills/security-guard/SKILL.md +137 -532
- package/.cursor/skills/security-guard/references/encrypt-config.md +103 -0
- package/.cursor/skills/security-guard/references/sensitive-strategies.md +42 -0
- package/.cursor/skills/sms-mail/SKILL.md +116 -574
- package/.cursor/skills/sms-mail/references/mail-config.md +88 -0
- package/.cursor/skills/sms-mail/references/sms-config.md +74 -0
- package/.cursor/skills/social-login/SKILL.md +112 -514
- package/.cursor/skills/social-login/references/provider-configs.md +118 -0
- package/.cursor/skills/tenant-management/SKILL.md +129 -444
- package/.cursor/skills/tenant-management/references/tenant-scenarios.md +91 -0
- package/.cursor/skills/test-development/SKILL.md +86 -540
- package/.cursor/skills/test-development/references/parameterized-examples.md +119 -0
- package/.cursor/skills/utils-toolkit/SKILL.md +52 -305
- package/.cursor/skills/utils-toolkit/references/redis-utils-api.md +56 -0
- package/.cursor/skills/websocket-sse/SKILL.md +105 -550
- package/.cursor/skills/workflow-engine/SKILL.md +147 -502
- package/AGENTS.md +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# leniu 典型业务场景头脑风暴示例
|
|
2
|
+
|
|
3
|
+
## 场景 1:食堂业务扩展(预订餐功能)
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
需求:新增"预订餐"功能
|
|
7
|
+
|
|
8
|
+
├── 模块归属
|
|
9
|
+
│ ├── sys-canteen/order 扩展(与订单强关联)✅ 推荐
|
|
10
|
+
│ ├── sys-canteen 新建 reservation 子模块
|
|
11
|
+
│ └── 独立模块(不推荐,过度设计)
|
|
12
|
+
│
|
|
13
|
+
├── 功能拆解
|
|
14
|
+
│ ├── 预订配置(管理端:餐次、提前时间、名额)
|
|
15
|
+
│ ├── 预订下单(移动端:选餐、提交预订)
|
|
16
|
+
│ ├── 预订取消(自动/手动取消)
|
|
17
|
+
│ └── 预订统计(报表:预订率、取消率)
|
|
18
|
+
│
|
|
19
|
+
├── 数据库归属
|
|
20
|
+
│ ├── 预订配置表 → 商户库(各食堂独立配置)
|
|
21
|
+
│ ├── 预订记录表 → 商户库(租户业务数据)
|
|
22
|
+
│ └── 无需系统库数据
|
|
23
|
+
│
|
|
24
|
+
├── 可复用
|
|
25
|
+
│ ├── order 模块 → 订单状态机、支付流程
|
|
26
|
+
│ ├── menu 模块 → 菜品数据
|
|
27
|
+
│ ├── account 模块 → 余额扣减
|
|
28
|
+
│ ├── MqUtil → 预订到期提醒
|
|
29
|
+
│ └── @XxlJob → 自动取消过期预订
|
|
30
|
+
│
|
|
31
|
+
└── 四层架构
|
|
32
|
+
├── Controller: ReservationWebController / ReservationMobileController
|
|
33
|
+
├── Business: ReservationWebBusiness(编排预订+订单+支付)
|
|
34
|
+
├── Service: ReservationInfoService(单表 CRUD)
|
|
35
|
+
└── Mapper: ReservationInfoMapper + XML
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 场景 2:跨模块数据整合(食堂+后场联动报表)
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
需求:食堂+后场联动报表
|
|
44
|
+
|
|
45
|
+
├── 数据来源
|
|
46
|
+
│ ├── sys-canteen/order → 订单数据
|
|
47
|
+
│ ├── sys-canteen/menu → 菜品数据
|
|
48
|
+
│ ├── sys-kitchen/kitchen → 后厨出餐数据
|
|
49
|
+
│ └── sys-canteen/cost → 成本数据
|
|
50
|
+
│
|
|
51
|
+
├── 方案选择
|
|
52
|
+
│ ├── 方案 A:报表 Service 跨模块查询 ✅
|
|
53
|
+
│ │ └── Business 层编排多个 Service
|
|
54
|
+
│ ├── 方案 B:ETL 预计算汇总表
|
|
55
|
+
│ │ └── @XxlJob 定时聚合
|
|
56
|
+
│ └── 方案 C:视图或存储过程
|
|
57
|
+
│ └── 不推荐(不符合项目规范)
|
|
58
|
+
│
|
|
59
|
+
├── 架构设计
|
|
60
|
+
│ ├── Controller: ReportWebController(/api/v2/web/report/xxx)
|
|
61
|
+
│ ├── Business: ReportCrossModuleBusiness(编排跨模块查询)
|
|
62
|
+
│ ├── Service: 各模块现有 Service
|
|
63
|
+
│ └── Param: ReportBaseParam(分页+时间范围+餐次)
|
|
64
|
+
│
|
|
65
|
+
└── 注意事项
|
|
66
|
+
├── 跨模块查询全部在 Business 层编排
|
|
67
|
+
├── 使用 Executors.doInTenant() 确保租户隔离
|
|
68
|
+
├── 报表入参继承 ReportBaseParam
|
|
69
|
+
└── 合计行使用 ReportBaseTotalVO 模式
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 场景 3:设备端新功能(智能取餐柜)
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
需求:智能取餐柜集成
|
|
78
|
+
|
|
79
|
+
├── 模块归属
|
|
80
|
+
│ ├── sys-canteen/device 扩展 ✅ 推荐
|
|
81
|
+
│ └── 新建 sys-canteen/cabinet 子模块
|
|
82
|
+
│
|
|
83
|
+
├── 多端接口
|
|
84
|
+
│ ├── Web 管理端:柜子配置、状态监控
|
|
85
|
+
│ │ └── /api/v2/web/cabinet/...
|
|
86
|
+
│ ├── 设备端:开柜、存取餐
|
|
87
|
+
│ │ └── /api/v2/android/cabinet/...
|
|
88
|
+
│ └── 移动端:取餐码、取餐通知
|
|
89
|
+
│ └── /api/v2/mobile/cabinet/...
|
|
90
|
+
│
|
|
91
|
+
├── 数据库
|
|
92
|
+
│ ├── cabinet_info(柜子信息)→ 商户库
|
|
93
|
+
│ ├── cabinet_cell(格口信息)→ 商户库
|
|
94
|
+
│ ├── cabinet_record(存取记录)→ 商户库
|
|
95
|
+
│ └── cabinet_config(全局配置)→ 系统库(Executors.doInSystem)
|
|
96
|
+
│
|
|
97
|
+
└── 可复用
|
|
98
|
+
├── device 模块 → 设备注册/心跳模式
|
|
99
|
+
├── order 模块 → 订单关联
|
|
100
|
+
├── MqUtil → 存餐/取餐事件通知
|
|
101
|
+
└── notice 模块 → 取餐提醒推送
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 场景 4:营销活动扩展
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
需求:新增优惠活动类型
|
|
110
|
+
|
|
111
|
+
├── 模块归属
|
|
112
|
+
│ └── sys-canteen/marketing ✅(已有营销模块)
|
|
113
|
+
│
|
|
114
|
+
├── 已有营销能力
|
|
115
|
+
│ ├── 计费规则(price)→ 折扣、满减、限额、补贴
|
|
116
|
+
│ ├── 充值规则(recharge)→ 满赠、按次赠送、限额
|
|
117
|
+
│ └── 规则定制器 → leniu-marketing-price-rule-customizer
|
|
118
|
+
│
|
|
119
|
+
├── 扩展方式
|
|
120
|
+
│ ├── 方案 A:复用规则定制器,新增规则类型 ✅ 推荐
|
|
121
|
+
│ ├── 方案 B:新建活动子类型(marketing 模块下新增 activity 包)
|
|
122
|
+
│ └── 方案 C:独立营销引擎(过度设计,不推荐)
|
|
123
|
+
│
|
|
124
|
+
└── 注意
|
|
125
|
+
└── 营销规则定制参考:
|
|
126
|
+
- leniu-marketing-price-rule-customizer
|
|
127
|
+
- leniu-marketing-recharge-rule-customizer
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## 场景 5:供应链集成
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
需求:供应商对接与采购管理
|
|
136
|
+
|
|
137
|
+
├── 模块归属
|
|
138
|
+
│ └── sys-drp/erp ✅(已有供应链模块)
|
|
139
|
+
│
|
|
140
|
+
├── 功能拆解
|
|
141
|
+
│ ├── 供应商管理(基本信息、资质)
|
|
142
|
+
│ ├── 采购计划(基于菜单自动生成)
|
|
143
|
+
│ ├── 采购订单(下单、收货、退货)
|
|
144
|
+
│ └── 库存管理(入库、出库、盘点)
|
|
145
|
+
│
|
|
146
|
+
├── 跨模块联动
|
|
147
|
+
│ ├── menu 模块 → 菜品原料需求
|
|
148
|
+
│ ├── cost 模块 → 采购成本核算
|
|
149
|
+
│ ├── kitchen 模块 → 后厨领料
|
|
150
|
+
│ └── report 模块 → 采购报表
|
|
151
|
+
│
|
|
152
|
+
├── 数据库
|
|
153
|
+
│ ├── 供应商数据 → 商户库(各食堂独立供应商)
|
|
154
|
+
│ ├── 采购数据 → 商户库
|
|
155
|
+
│ └── 供应商公共目录 → 系统库(可选,平台级共享)
|
|
156
|
+
│
|
|
157
|
+
└── 四层架构
|
|
158
|
+
├── Controller: 按端分 web/mobile
|
|
159
|
+
├── Business: PurchaseBusiness(编排采购+库存+成本)
|
|
160
|
+
├── Service: SupplierService / PurchaseOrderService / InventoryService
|
|
161
|
+
└── Mapper: 各自 Mapper + XML(同目录!)
|
|
162
|
+
```
|