-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(mis): charge_record 表增加字段 user_id 及 metadata 以存储更多的信息 #1072
Conversation
🦋 Changeset detectedLatest commit: 211897b The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1072 +/- ##
==========================================
- Coverage 68.47% 68.42% -0.06%
==========================================
Files 143 144 +1
Lines 4317 4348 +31
Branches 583 587 +4
==========================================
+ Hits 2956 2975 +19
- Misses 1238 1248 +10
- Partials 123 125 +2 ☔ View full report in Codecov by Sentry. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
再写个changeset说明这个PR还给ChargeRecord的一些字段加上了索引
审核意见已修改,本地及62测试环境已对修改处测试通过,请再次确认 |
一、charge_record 表增加字段 user_id 及 metadata
charge 接口增加可选入参 user_id
charge 接口增加可选入参 metadata
二、在各消费记录页面中增加以下内容
1.查询结果中的用户显示
2.按用户ID检索
3.增加可选导出用户ID功能
三、mis.yaml中增加jobChargeMetadata配置
metadata前端展示效果
1.没有配置jobChargeMetadata中的saveFields,不展示相关信息
2.已配置jobChargeMetadata中的saveFields
(1).displayFormats的类型为i18n对象时
(2).displayFormats的类型为字符串时 (支持使用占位符 {{ 属性名 }})
(3).没有配置displayFormats时
3.特殊情况: 配置的jobChargeMetadata发生改动
之前保存的信息与当前displayFormats占位属性不一致,则之前没有保存过的占位属性显示为"-"
上述字段及接口的修改,测试时需要注意的地方为