Skip to content
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

fix(mis): 修复平台管理页面账户消费记录搜索账户名时传参错误问题 #1130

Merged
merged 3 commits into from
Feb 21, 2024

Conversation

ZihanChen821
Copy link
Contributor

@ZihanChen821 ZihanChen821 commented Feb 18, 2024

现状

在搜索账户的消费记录和充值记录时,如果是查询某一个账户的记录时,会传参租户和账户名在数据库里搜索,但是租户是取得查询者的租户,此时如果是在平台管理页面,租户A下的平台管理员查询租户B下的账户时,会出现查询不到该账户记录的情况。

改动

在传参前,先根据getAccounts获取到该账户的所属租户,进行正确的传参

Copy link

changeset-bot bot commented Feb 18, 2024

🦋 Changeset detected

Latest commit: 70f2022

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@scow/mis-web Patch
@scow/auth Patch
@scow/gateway Patch
@scow/mis-server Patch
@scow/portal-server Patch
@scow/portal-web Patch
@scow/cli Patch

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

@ZihanChen821 ZihanChen821 force-pushed the fix-accountname-chargerecord-search branch from fe49a3f to 61dede6 Compare February 20, 2024 01:36
@ZihanChen821 ZihanChen821 marked this pull request as ready for review February 20, 2024 01:55
@pkuhpc-review-bot pkuhpc-review-bot bot added the Code-ReviewRequested Code Review Requested label Feb 20, 2024
@pkuhpc-review-bot pkuhpc-review-bot bot requested a review from ddadaal February 20, 2024 01:55
.changeset/brave-lies-decide.md Outdated Show resolved Hide resolved
protos/audit/operation_log.proto Outdated Show resolved Hide resolved
@pkuhpc-review-bot pkuhpc-review-bot bot added Code-ChangeRequested and removed Code-ReviewRequested Code Review Requested labels Feb 21, 2024
@ZihanChen821 ZihanChen821 force-pushed the fix-accountname-chargerecord-search branch from 61dede6 to 421c8ea Compare February 21, 2024 02:39
@ZihanChen821 ZihanChen821 requested a review from ddadaal February 21, 2024 07:50
@pkuhpc-review-bot pkuhpc-review-bot bot added Code-ReviewRequested Code Review Requested and removed Code-ChangeRequested labels Feb 21, 2024
@pkuhpc-review-bot pkuhpc-review-bot bot added Code-Approved Code Review approved ReadyForMerge Ready for merge and removed Code-ReviewRequested Code Review Requested labels Feb 21, 2024
@ddadaal ddadaal merged commit a56ec73 into master Feb 21, 2024
9 checks passed
@ddadaal ddadaal deleted the fix-accountname-chargerecord-search branch February 21, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code-Approved Code Review approved ReadyForMerge Ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants