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

实现对材料统计页面中的材料做初步排序。 #1510

Merged
merged 4 commits into from Mar 28, 2024

Conversation

GoddessLuBoYan
Copy link
Contributor

@GoddessLuBoYan GoddessLuBoYan commented Mar 25, 2024

更细致的排序、分类功能,需要集成观测枢功能才能进行。#1427

效果图:
image

image

image

@qhy040404 qhy040404 changed the base branch from main to develop March 26, 2024 05:37
@@ -181,6 +181,10 @@ private async ValueTask UpdateStatisticsItemsAsync()
{
CultivationMetadataContext context = await metadataService.GetContextAsync<CultivationMetadataContext>().ConfigureAwait(false);
statistics = await cultivationService.GetStatisticsCultivateItemCollectionAsync(SelectedProject, context, token).ConfigureAwait(false);
if (statistics is not null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既然在获取statistics后立即进行了排序,为什么没有考虑直接在Service里面排序完了再赋值呢

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不敢动,怕出现隐藏bug;此外,后续个人希望按照观测枢的数据分类再排序,这一次排序做的事就有点多了,考虑一个函数只做一件事,我就没有直接改service本身的实现,保证service的返回值是绝对原始的返回值

不过你说没问题的话,就可以改

@Lightczx Lightczx merged commit ae2ddee into DGP-Studio:develop Mar 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants