ai-engineering-init 1.3.4 → 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 +2 -0
- package/.claude/settings.json +3 -3
- package/.claude/skills/add-skill/SKILL.md +79 -32
- 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 -365
- package/.claude/skills/leniu-report-customization/references/table-fields.md +93 -0
- package/.claude/skills/leniu-report-standard-customization/SKILL.md +111 -334
- 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 +79 -32
- 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 -365
- package/.codex/skills/leniu-report-customization/references/table-fields.md +93 -0
- package/.codex/skills/leniu-report-standard-customization/SKILL.md +111 -334
- 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/skills/add-skill/SKILL.md +79 -32
- 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 -365
- package/.cursor/skills/leniu-report-customization/references/table-fields.md +93 -0
- package/.cursor/skills/leniu-report-standard-customization/SKILL.md +111 -334
- 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/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# 经营分析模块详情
|
|
2
|
+
|
|
3
|
+
## 分析类型总览
|
|
4
|
+
|
|
5
|
+
| 分析类型 | Service | 接口数 | 路由前缀 |
|
|
6
|
+
|---------|---------|-------|---------|
|
|
7
|
+
| 营业额 | ReportAnalysisTurnoverService | 6 | `/summary/analysis/turnover/` |
|
|
8
|
+
| 用户 | ReportAnalysisCustService (ORDER=50) | 8 | `/summary/analysis/cust/` |
|
|
9
|
+
| 菜品 | ReportAnalysisDishesSaleService (ORDER=51) | 10 | `/summary/analysis/dishes/` |
|
|
10
|
+
| 满意度 | ReportAnalysisEvaluateService | 2 | `/summary/analysis/evaluate/` |
|
|
11
|
+
| 充值 | ReportAnalysisTurnoverService | 4 | `/summary/analysis/recharge/` |
|
|
12
|
+
| 设备 | ReportAnalysisTurnoverService | 2 | `/summary/analysis/device/` |
|
|
13
|
+
|
|
14
|
+
## 用户活跃度分析
|
|
15
|
+
|
|
16
|
+
### 分段枚举
|
|
17
|
+
|
|
18
|
+
- `AnalysisConsumeTimesEnum`:消费次数分段(1-10/10-20/20-30/30-40/40-50/>=50)
|
|
19
|
+
- `AnalysisConsumeAmountEnum`:消费金额分段(<200/200-400/400-600/600-800/800-1000/>=1000元)
|
|
20
|
+
- `AnalysisConsumeSlienceEnum`:沉默时长分段
|
|
21
|
+
|
|
22
|
+
### 活跃度 VO
|
|
23
|
+
|
|
24
|
+
```java
|
|
25
|
+
// ReportAnalysisActiveVO
|
|
26
|
+
activeNumber/activePercent // 活跃用户(有消费记录)
|
|
27
|
+
keepNumber/keepPercent // 保留用户(持续消费)
|
|
28
|
+
lossNumber/lossPercent // 流失用户(不再消费)
|
|
29
|
+
newNumber/newPercent // 新增用户(首次消费)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 公共参数类
|
|
33
|
+
|
|
34
|
+
```java
|
|
35
|
+
// ReportBaseParam(所有查询参数基类)
|
|
36
|
+
PageDTO page;
|
|
37
|
+
LocalDate startDate/endDate;
|
|
38
|
+
LocalDate startOrderDate/endOrderDate;
|
|
39
|
+
Integer sumType; // 汇总类型(1按时段/2按日期)
|
|
40
|
+
Integer sumDimension; // 汇总维度
|
|
41
|
+
List<Integer> ageTypes;
|
|
42
|
+
List<Integer> holidayTypeList;
|
|
43
|
+
List<String> exportCols;
|
|
44
|
+
LocalDateTime startPayTime/endPayTime;
|
|
45
|
+
|
|
46
|
+
// ReportNotConsumeDTO(未消费数据)
|
|
47
|
+
String statisticDate; // 统计日期(支付日期)
|
|
48
|
+
String orderDate; // 就餐日期(菜品统计专用)
|
|
49
|
+
Long relationId;
|
|
50
|
+
|
|
51
|
+
// 支付信息编码: "支付方式-支付渠道-支付金额" 如 "1-1-1200;2-4-1200"
|
|
52
|
+
// 优惠信息编码: "变动类型,详情类型,金额" 如 "1,1,100;2,11,200"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## API 路由总览
|
|
56
|
+
|
|
57
|
+
| 模块 | 前缀 | 核心接口 |
|
|
58
|
+
|------|------|---------|
|
|
59
|
+
| 营业收入明细 | `/summary/basic/` | flow/page, cust/page, remote/detail/page, remote/summary/page |
|
|
60
|
+
| 订单汇总 | `/summary/order/` | organization/pay/type/classify/mealtime/dishes |
|
|
61
|
+
| 账户流水 | `/summary/account/` | flow/cust/psn/organization/operator/consume/recharge/wallet/data |
|
|
62
|
+
| 经营分析 | `/summary/analysis/` | turnover(6)/cust(8)/dishes(10)/recharge(4)/device(2)/evaluate(2) |
|
|
63
|
+
| 数据修复 | `/summary/fix/` | order, account (限31天) |
|
|
64
|
+
| 商户 | `/report/merchant/summary/` | consume, recharge |
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# 标准版报表基础表完整字段说明
|
|
2
|
+
|
|
3
|
+
## report_order_info(报表订单主表,仅正向订单)
|
|
4
|
+
|
|
5
|
+
> 标准版中此表**仅存正向订单**,退款数据在独立的 `report_refund` 表中。无 `consumeType` 字段。
|
|
6
|
+
|
|
7
|
+
| 字段 | 类型 | 说明 |
|
|
8
|
+
|------|------|------|
|
|
9
|
+
| `orderId` | Long | 主键(雪花 ID) |
|
|
10
|
+
| `machineSn` | String | 设备 SN |
|
|
11
|
+
| `orgId` | Long | 组织 ID |
|
|
12
|
+
| `custId` | Long | 人员 ID |
|
|
13
|
+
| `nuClearMode` | Integer | 核身方式(1刷卡/2刷脸/3扫码) |
|
|
14
|
+
| `sourceType` | Integer | 来源类型 |
|
|
15
|
+
| `ifOnline` | Integer | 是否在线(1是/2否) |
|
|
16
|
+
| `canteenId/canteenName` | Long/String | 食堂 |
|
|
17
|
+
| `stallId/stallName` | Long/String | 档口 |
|
|
18
|
+
| `mealtimeType` | Integer | 餐次(1早/2午/3下午茶/4晚/5夜宵) |
|
|
19
|
+
| `psnType` | Integer | 人员类别 |
|
|
20
|
+
| `payableAmount` | BigDecimal | 应付金额(分) |
|
|
21
|
+
| `discountsAmount` | BigDecimal | 优惠金额(分,取负数) |
|
|
22
|
+
| `deliveryAmount` | BigDecimal | 配送费(分) |
|
|
23
|
+
| `packingAmount` | BigDecimal | 包装费(分) |
|
|
24
|
+
| `realAmount` | BigDecimal | 实付金额(分) |
|
|
25
|
+
| `accPayAmount` | BigDecimal | 账户支付金额(分) |
|
|
26
|
+
| `outPayAmount` | BigDecimal | 外部支付金额(分) |
|
|
27
|
+
| `refundAmount` | BigDecimal | 累计退款金额(分) |
|
|
28
|
+
| `orderTime` | LocalDateTime | 下单时间 |
|
|
29
|
+
| `orderDate` | LocalDate | 就餐日期 |
|
|
30
|
+
| `orderType` | Integer | 订单类型(1当餐/2预订/3报餐/4扫码/5餐桌/6自助/11商城/12超市/21补扣/22外部) |
|
|
31
|
+
| `orderRefundState` | Integer | 退款状态(1未退/2已退/3部分退) |
|
|
32
|
+
| `payTime` | LocalDateTime | 支付时间 |
|
|
33
|
+
| `payType` | Integer | 支付方式 |
|
|
34
|
+
| `payChannel` | Integer | 支付渠道 |
|
|
35
|
+
| `ageType` | Integer | 年龄段 |
|
|
36
|
+
| `holidayType` | Integer | 节假日类型 |
|
|
37
|
+
| `status` | Integer | 消费状态(0未消费/1已消费) |
|
|
38
|
+
|
|
39
|
+
## report_order_detail(订单菜品明细表)
|
|
40
|
+
|
|
41
|
+
| 字段 | 类型 | 说明 |
|
|
42
|
+
|------|------|------|
|
|
43
|
+
| `detailId` | Long | 明细主键 |
|
|
44
|
+
| `orderId` | Long | 关联订单 ID |
|
|
45
|
+
| `goodsDishesId` | Long | 菜品 ID |
|
|
46
|
+
| `goodsDishesName` | String | 菜品名称 |
|
|
47
|
+
| `salePrice` | BigDecimal | 售卖价格(分) |
|
|
48
|
+
| `prefPrice` | BigDecimal | 优惠价格(分) |
|
|
49
|
+
| `price` | BigDecimal | 最终价格(分) |
|
|
50
|
+
| `weightUnit` | BigDecimal | 每份重量(g) |
|
|
51
|
+
| `quantity` | Integer | 数量/重量 |
|
|
52
|
+
| `salesMode` | Integer | 销售方式(1按份/2称重) |
|
|
53
|
+
| `detailType` | Integer | 类别(1菜品/2套餐/3商品/4按键/5补扣/6报餐) |
|
|
54
|
+
| `totalAmount` | BigDecimal | 总金额(分) |
|
|
55
|
+
| `realAmount` | BigDecimal | 实付金额(分) |
|
|
56
|
+
| `detailState` | Integer | 状态(1正常/2已退菜/3部分退菜) |
|
|
57
|
+
| `goodsRefundNum` | Integer | 已退数量 |
|
|
58
|
+
| `refundAmount` | BigDecimal | 退款金额(分) |
|
|
59
|
+
|
|
60
|
+
## report_refund(退款主表,标准版特有)
|
|
61
|
+
|
|
62
|
+
| 字段 | 类型 | 说明 |
|
|
63
|
+
|------|------|------|
|
|
64
|
+
| `orderRefundId` | Long | 退款单主键 |
|
|
65
|
+
| `orderId` | Long | 原始订单 ID |
|
|
66
|
+
| `realRefundAmount` | BigDecimal | 退款金额(**正数**) |
|
|
67
|
+
| `applyTime` | LocalDateTime | 申请时间 |
|
|
68
|
+
| `applyType` | Integer | 申请类型(1退单/2纠错) |
|
|
69
|
+
| `checkTime` | LocalDateTime | 审核时间 |
|
|
70
|
+
|
|
71
|
+
## report_refund_detail(退款明细表,标准版特有)
|
|
72
|
+
|
|
73
|
+
| 字段 | 类型 | 说明 |
|
|
74
|
+
|------|------|------|
|
|
75
|
+
| `orderRefundId` | Long | 退款单 ID |
|
|
76
|
+
| `detailId` | Long | 菜品详情 ID |
|
|
77
|
+
| `realQuantity` | Integer | 退单数量 |
|
|
78
|
+
| `realRefundAmount` | BigDecimal | 退款金额(**正数**) |
|
|
79
|
+
|
|
80
|
+
## report_account_flow(账户流水主表)
|
|
81
|
+
|
|
82
|
+
核心字段:`flowId`(主键), `custId`, `orgId`, `payTime`, `flowType`(AccTradeTypeEnum), `flowRealAmount`, `flowAmount`, `manageCost`, `accTotalBal`(可用余额), `accAllBal`(含冻结), `rechargeSource`, `payChannel/payType`, `status`(0未消费/1已消费)
|
|
83
|
+
|
|
84
|
+
附加字段:`rechargeOperate`(1单人/2批量/3导入/4赠送), `withdrawSource`(1小程序/2web/3openapi/4注销), `operateSource`(1手动清空/2批量/3定时/4注销)
|
|
85
|
+
|
|
86
|
+
## report_account_flow_detail(流水钱包明细)
|
|
87
|
+
|
|
88
|
+
字段:`flowId`, `walletId`(1个人/2补贴/4红包), `amount`(转出取负值), `walletBal`, `flowType`, `frozenBalance`, `allWalletBal`
|
|
89
|
+
|
|
90
|
+
## report_account_summary(用户账户日结表)
|
|
91
|
+
|
|
92
|
+
联合主键:`statisticDate` + `custId`
|
|
93
|
+
|
|
94
|
+
**期末余额公式**:
|
|
95
|
+
```
|
|
96
|
+
endAmount = beginAmount
|
|
97
|
+
+ rechargeAmount - rechargeRevokeAmount
|
|
98
|
+
+ subsidyAmount - subsidyRevokeAmount
|
|
99
|
+
+ luckAmount + giftAmount
|
|
100
|
+
- consumeAmount - consumeRepairAmount
|
|
101
|
+
+ consumeRefundAmount
|
|
102
|
+
- withdrawAmount - clearAmount - manageCostAmount
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
附加维度:充值渠道详分(微信/支付宝/现金/银行/第三方)、提现渠道详分、各钱包余额及冻结金额
|
|
106
|
+
|
|
107
|
+
## report_order_pay(订单支付表)
|
|
108
|
+
|
|
109
|
+
字段:`orderId`, `payType`, `payChannel`, `outTradeNo`, `payAmount`, `refundAmount`, `payableAmount`
|
|
110
|
+
|
|
111
|
+
## report_order_discount(订单优惠表)
|
|
112
|
+
|
|
113
|
+
字段:`orderId`, `changeAmount`, `changeType`(1上浮/2优惠), `changeDetailType`(1上浮/11菜品优惠/12打折/13累计减免/14固定减免)
|