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.
Files changed (226) hide show
  1. package/.claude/hooks/skill-forced-eval.js +2 -0
  2. package/.claude/settings.json +3 -3
  3. package/.claude/skills/add-skill/SKILL.md +79 -32
  4. package/.claude/skills/api-development/SKILL.md +83 -377
  5. package/.claude/skills/architecture-design/SKILL.md +138 -632
  6. package/.claude/skills/backend-annotations/SKILL.md +134 -506
  7. package/.claude/skills/banana-image/SKILL.md +10 -3
  8. package/.claude/skills/brainstorm/SKILL.md +103 -535
  9. package/.claude/skills/bug-detective/SKILL.md +147 -1097
  10. package/.claude/skills/bug-detective/references/error-patterns.md +242 -0
  11. package/.claude/skills/code-patterns/SKILL.md +116 -426
  12. package/.claude/skills/code-patterns/references/leniu-code-patterns.md +87 -0
  13. package/.claude/skills/crud-development/SKILL.md +64 -304
  14. package/.claude/skills/data-permission/SKILL.md +105 -412
  15. package/.claude/skills/data-permission/references/custom-data-scope.md +90 -0
  16. package/.claude/skills/file-oss-management/SKILL.md +106 -714
  17. package/.claude/skills/file-oss-management/references/entities.md +105 -0
  18. package/.claude/skills/file-oss-management/references/service-impl.md +104 -0
  19. package/.claude/skills/leniu-api-development/SKILL.md +142 -626
  20. package/.claude/skills/leniu-api-development/references/real-examples.md +273 -0
  21. package/.claude/skills/leniu-architecture-design/SKILL.md +176 -391
  22. package/.claude/skills/leniu-backend-annotations/SKILL.md +132 -519
  23. package/.claude/skills/leniu-brainstorm/SKILL.md +132 -541
  24. package/.claude/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
  25. package/.claude/skills/leniu-crud-development/SKILL.md +232 -938
  26. package/.claude/skills/leniu-crud-development/references/templates.md +597 -0
  27. package/.claude/skills/leniu-customization-location/SKILL.md +410 -0
  28. package/.claude/skills/leniu-data-permission/SKILL.md +70 -0
  29. package/.claude/skills/leniu-java-entity/SKILL.md +76 -590
  30. package/.claude/skills/leniu-java-entity/references/templates.md +237 -0
  31. package/.claude/skills/leniu-java-export/SKILL.md +94 -379
  32. package/.claude/skills/leniu-java-logging/SKILL.md +106 -709
  33. package/.claude/skills/leniu-java-logging/references/data-mask.md +46 -0
  34. package/.claude/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
  35. package/.claude/skills/leniu-java-mybatis/SKILL.md +73 -446
  36. package/.claude/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
  37. package/.claude/skills/leniu-report-customization/SKILL.md +111 -365
  38. package/.claude/skills/leniu-report-customization/references/table-fields.md +93 -0
  39. package/.claude/skills/leniu-report-standard-customization/SKILL.md +111 -334
  40. package/.claude/skills/leniu-report-standard-customization/references/analysis-module.md +64 -0
  41. package/.claude/skills/leniu-report-standard-customization/references/table-fields.md +113 -0
  42. package/.claude/skills/leniu-security-guard/SKILL.md +133 -347
  43. package/.claude/skills/mysql-debug/SKILL.md +364 -0
  44. package/.claude/skills/openspec-apply-change/SKILL.md +10 -1
  45. package/.claude/skills/openspec-archive-change/SKILL.md +9 -1
  46. package/.claude/skills/openspec-bulk-archive-change/SKILL.md +9 -1
  47. package/.claude/skills/openspec-continue-change/SKILL.md +9 -1
  48. package/.claude/skills/openspec-explore/SKILL.md +10 -1
  49. package/.claude/skills/openspec-ff-change/SKILL.md +9 -1
  50. package/.claude/skills/openspec-new-change/SKILL.md +9 -1
  51. package/.claude/skills/openspec-onboard/SKILL.md +15 -130
  52. package/.claude/skills/openspec-sync-specs/SKILL.md +9 -1
  53. package/.claude/skills/openspec-verify-change/SKILL.md +9 -1
  54. package/.claude/skills/performance-doctor/SKILL.md +110 -434
  55. package/.claude/skills/redis-cache/SKILL.md +89 -595
  56. package/.claude/skills/redis-cache/references/listeners.md +23 -0
  57. package/.claude/skills/scheduled-jobs/SKILL.md +88 -407
  58. package/.claude/skills/security-guard/SKILL.md +137 -532
  59. package/.claude/skills/security-guard/references/encrypt-config.md +103 -0
  60. package/.claude/skills/security-guard/references/sensitive-strategies.md +42 -0
  61. package/.claude/skills/sms-mail/SKILL.md +116 -574
  62. package/.claude/skills/sms-mail/references/mail-config.md +88 -0
  63. package/.claude/skills/sms-mail/references/sms-config.md +74 -0
  64. package/.claude/skills/social-login/SKILL.md +112 -514
  65. package/.claude/skills/social-login/references/provider-configs.md +118 -0
  66. package/.claude/skills/tenant-management/SKILL.md +129 -444
  67. package/.claude/skills/tenant-management/references/tenant-scenarios.md +91 -0
  68. package/.claude/skills/test-development/SKILL.md +86 -540
  69. package/.claude/skills/test-development/references/parameterized-examples.md +119 -0
  70. package/.claude/skills/utils-toolkit/SKILL.md +52 -305
  71. package/.claude/skills/utils-toolkit/references/redis-utils-api.md +56 -0
  72. package/.claude/skills/websocket-sse/SKILL.md +105 -550
  73. package/.claude/skills/workflow-engine/SKILL.md +147 -502
  74. package/.codex/skills/add-skill/SKILL.md +79 -32
  75. package/.codex/skills/api-development/SKILL.md +172 -599
  76. package/.codex/skills/architecture-design/SKILL.md +138 -504
  77. package/.codex/skills/backend-annotations/SKILL.md +134 -496
  78. package/.codex/skills/banana-image/SKILL.md +10 -3
  79. package/.codex/skills/brainstorm/SKILL.md +103 -535
  80. package/.codex/skills/bug-detective/SKILL.md +147 -1097
  81. package/.codex/skills/bug-detective/references/error-patterns.md +242 -0
  82. package/.codex/skills/code-patterns/SKILL.md +120 -282
  83. package/.codex/skills/code-patterns/references/leniu-code-patterns.md +87 -0
  84. package/.codex/skills/crud-development/SKILL.md +64 -292
  85. package/.codex/skills/data-permission/SKILL.md +108 -407
  86. package/.codex/skills/data-permission/references/custom-data-scope.md +90 -0
  87. package/.codex/skills/database-ops/SKILL.md +8 -154
  88. package/.codex/skills/error-handler/SKILL.md +10 -0
  89. package/.codex/skills/file-oss-management/SKILL.md +106 -714
  90. package/.codex/skills/file-oss-management/references/entities.md +105 -0
  91. package/.codex/skills/file-oss-management/references/service-impl.md +104 -0
  92. package/.codex/skills/git-workflow/SKILL.md +27 -5
  93. package/.codex/skills/leniu-api-development/SKILL.md +142 -626
  94. package/.codex/skills/leniu-api-development/references/real-examples.md +273 -0
  95. package/.codex/skills/leniu-architecture-design/SKILL.md +176 -391
  96. package/.codex/skills/leniu-backend-annotations/SKILL.md +132 -519
  97. package/.codex/skills/leniu-brainstorm/SKILL.md +132 -541
  98. package/.codex/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
  99. package/.codex/skills/leniu-crud-development/SKILL.md +232 -938
  100. package/.codex/skills/leniu-crud-development/references/templates.md +597 -0
  101. package/.codex/skills/leniu-customization-location/SKILL.md +410 -0
  102. package/.codex/skills/leniu-data-permission/SKILL.md +70 -0
  103. package/.codex/skills/leniu-java-code-style/SKILL.md +510 -0
  104. package/.codex/skills/leniu-java-entity/SKILL.md +76 -590
  105. package/.codex/skills/leniu-java-entity/references/templates.md +237 -0
  106. package/.codex/skills/leniu-java-export/SKILL.md +94 -379
  107. package/.codex/skills/leniu-java-logging/SKILL.md +106 -709
  108. package/.codex/skills/leniu-java-logging/references/data-mask.md +46 -0
  109. package/.codex/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
  110. package/.codex/skills/leniu-java-mybatis/SKILL.md +73 -446
  111. package/.codex/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
  112. package/.codex/skills/leniu-report-customization/SKILL.md +111 -365
  113. package/.codex/skills/leniu-report-customization/references/table-fields.md +93 -0
  114. package/.codex/skills/leniu-report-standard-customization/SKILL.md +111 -334
  115. package/.codex/skills/leniu-report-standard-customization/references/analysis-module.md +64 -0
  116. package/.codex/skills/leniu-report-standard-customization/references/table-fields.md +113 -0
  117. package/.codex/skills/leniu-security-guard/SKILL.md +133 -347
  118. package/.codex/skills/mysql-debug/SKILL.md +364 -0
  119. package/.codex/skills/openspec-apply-change/SKILL.md +10 -1
  120. package/.codex/skills/openspec-archive-change/SKILL.md +9 -1
  121. package/.codex/skills/openspec-bulk-archive-change/SKILL.md +9 -1
  122. package/.codex/skills/openspec-continue-change/SKILL.md +9 -1
  123. package/.codex/skills/openspec-explore/SKILL.md +10 -1
  124. package/.codex/skills/openspec-ff-change/SKILL.md +9 -1
  125. package/.codex/skills/openspec-new-change/SKILL.md +9 -1
  126. package/.codex/skills/openspec-onboard/SKILL.md +15 -130
  127. package/.codex/skills/openspec-sync-specs/SKILL.md +9 -1
  128. package/.codex/skills/openspec-verify-change/SKILL.md +9 -1
  129. package/.codex/skills/performance-doctor/SKILL.md +110 -434
  130. package/.codex/skills/project-navigator/SKILL.md +20 -1
  131. package/.codex/skills/redis-cache/SKILL.md +93 -589
  132. package/.codex/skills/redis-cache/references/listeners.md +23 -0
  133. package/.codex/skills/scheduled-jobs/SKILL.md +88 -407
  134. package/.codex/skills/security-guard/SKILL.md +141 -527
  135. package/.codex/skills/security-guard/references/encrypt-config.md +103 -0
  136. package/.codex/skills/security-guard/references/sensitive-strategies.md +42 -0
  137. package/.codex/skills/sms-mail/SKILL.md +116 -574
  138. package/.codex/skills/sms-mail/references/mail-config.md +88 -0
  139. package/.codex/skills/sms-mail/references/sms-config.md +74 -0
  140. package/.codex/skills/social-login/SKILL.md +112 -514
  141. package/.codex/skills/social-login/references/provider-configs.md +118 -0
  142. package/.codex/skills/store-pc/SKILL.md +258 -383
  143. package/.codex/skills/tenant-management/SKILL.md +129 -444
  144. package/.codex/skills/tenant-management/references/tenant-scenarios.md +91 -0
  145. package/.codex/skills/test-development/SKILL.md +86 -540
  146. package/.codex/skills/test-development/references/parameterized-examples.md +119 -0
  147. package/.codex/skills/ui-pc/SKILL.md +350 -387
  148. package/.codex/skills/utils-toolkit/SKILL.md +52 -283
  149. package/.codex/skills/utils-toolkit/references/redis-utils-api.md +56 -0
  150. package/.codex/skills/websocket-sse/SKILL.md +105 -550
  151. package/.codex/skills/workflow-engine/SKILL.md +147 -502
  152. package/.cursor/hooks.json +3 -3
  153. package/.cursor/skills/add-skill/SKILL.md +79 -32
  154. package/.cursor/skills/api-development/SKILL.md +83 -377
  155. package/.cursor/skills/architecture-design/SKILL.md +138 -632
  156. package/.cursor/skills/backend-annotations/SKILL.md +134 -506
  157. package/.cursor/skills/banana-image/SKILL.md +10 -3
  158. package/.cursor/skills/brainstorm/SKILL.md +103 -535
  159. package/.cursor/skills/bug-detective/SKILL.md +147 -1097
  160. package/.cursor/skills/bug-detective/references/error-patterns.md +242 -0
  161. package/.cursor/skills/code-patterns/SKILL.md +116 -426
  162. package/.cursor/skills/code-patterns/references/leniu-code-patterns.md +87 -0
  163. package/.cursor/skills/crud-development/SKILL.md +64 -304
  164. package/.cursor/skills/data-permission/SKILL.md +105 -412
  165. package/.cursor/skills/data-permission/references/custom-data-scope.md +90 -0
  166. package/.cursor/skills/file-oss-management/SKILL.md +106 -714
  167. package/.cursor/skills/file-oss-management/references/entities.md +105 -0
  168. package/.cursor/skills/file-oss-management/references/service-impl.md +104 -0
  169. package/.cursor/skills/git-workflow/SKILL.md +27 -5
  170. package/.cursor/skills/leniu-api-development/SKILL.md +142 -626
  171. package/.cursor/skills/leniu-api-development/references/real-examples.md +273 -0
  172. package/.cursor/skills/leniu-architecture-design/SKILL.md +176 -391
  173. package/.cursor/skills/leniu-backend-annotations/SKILL.md +132 -519
  174. package/.cursor/skills/leniu-brainstorm/SKILL.md +132 -541
  175. package/.cursor/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
  176. package/.cursor/skills/leniu-crud-development/SKILL.md +232 -938
  177. package/.cursor/skills/leniu-crud-development/references/templates.md +597 -0
  178. package/.cursor/skills/leniu-customization-location/SKILL.md +410 -0
  179. package/.cursor/skills/leniu-data-permission/SKILL.md +70 -0
  180. package/.cursor/skills/leniu-java-code-style/SKILL.md +510 -0
  181. package/.cursor/skills/leniu-java-entity/SKILL.md +76 -590
  182. package/.cursor/skills/leniu-java-entity/references/templates.md +237 -0
  183. package/.cursor/skills/leniu-java-export/SKILL.md +94 -379
  184. package/.cursor/skills/leniu-java-logging/SKILL.md +106 -709
  185. package/.cursor/skills/leniu-java-logging/references/data-mask.md +46 -0
  186. package/.cursor/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
  187. package/.cursor/skills/leniu-java-mybatis/SKILL.md +73 -446
  188. package/.cursor/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
  189. package/.cursor/skills/leniu-report-customization/SKILL.md +111 -365
  190. package/.cursor/skills/leniu-report-customization/references/table-fields.md +93 -0
  191. package/.cursor/skills/leniu-report-standard-customization/SKILL.md +111 -334
  192. package/.cursor/skills/leniu-report-standard-customization/references/analysis-module.md +64 -0
  193. package/.cursor/skills/leniu-report-standard-customization/references/table-fields.md +113 -0
  194. package/.cursor/skills/leniu-security-guard/SKILL.md +133 -347
  195. package/.cursor/skills/mysql-debug/SKILL.md +364 -0
  196. package/.cursor/skills/openspec-apply-change/SKILL.md +10 -1
  197. package/.cursor/skills/openspec-archive-change/SKILL.md +9 -1
  198. package/.cursor/skills/openspec-bulk-archive-change/SKILL.md +9 -1
  199. package/.cursor/skills/openspec-continue-change/SKILL.md +9 -1
  200. package/.cursor/skills/openspec-explore/SKILL.md +10 -1
  201. package/.cursor/skills/openspec-ff-change/SKILL.md +9 -1
  202. package/.cursor/skills/openspec-new-change/SKILL.md +9 -1
  203. package/.cursor/skills/openspec-onboard/SKILL.md +15 -130
  204. package/.cursor/skills/openspec-sync-specs/SKILL.md +9 -1
  205. package/.cursor/skills/openspec-verify-change/SKILL.md +9 -1
  206. package/.cursor/skills/performance-doctor/SKILL.md +110 -434
  207. package/.cursor/skills/redis-cache/SKILL.md +89 -595
  208. package/.cursor/skills/redis-cache/references/listeners.md +23 -0
  209. package/.cursor/skills/scheduled-jobs/SKILL.md +88 -407
  210. package/.cursor/skills/security-guard/SKILL.md +137 -532
  211. package/.cursor/skills/security-guard/references/encrypt-config.md +103 -0
  212. package/.cursor/skills/security-guard/references/sensitive-strategies.md +42 -0
  213. package/.cursor/skills/sms-mail/SKILL.md +116 -574
  214. package/.cursor/skills/sms-mail/references/mail-config.md +88 -0
  215. package/.cursor/skills/sms-mail/references/sms-config.md +74 -0
  216. package/.cursor/skills/social-login/SKILL.md +112 -514
  217. package/.cursor/skills/social-login/references/provider-configs.md +118 -0
  218. package/.cursor/skills/tenant-management/SKILL.md +129 -444
  219. package/.cursor/skills/tenant-management/references/tenant-scenarios.md +91 -0
  220. package/.cursor/skills/test-development/SKILL.md +86 -540
  221. package/.cursor/skills/test-development/references/parameterized-examples.md +119 -0
  222. package/.cursor/skills/utils-toolkit/SKILL.md +52 -305
  223. package/.cursor/skills/utils-toolkit/references/redis-utils-api.md +56 -0
  224. package/.cursor/skills/websocket-sse/SKILL.md +105 -550
  225. package/.cursor/skills/workflow-engine/SKILL.md +147 -502
  226. 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固定减免)