1
This commit is contained in:
parent
dcc7ec5918
commit
10d6f28fc8
@ -5,7 +5,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
<Version>1.0.1</Version>
|
||||
<Version>1.0.2</Version>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@ -87,6 +87,7 @@ public class TrackOrderService : ApplicationService
|
||||
a.TrackTimeZone = "GTM +00:00";
|
||||
}
|
||||
else
|
||||
|
||||
{
|
||||
// 将小数形式的小时转换为时区偏移量
|
||||
int hours = (int)a.TrackTimeZoneValue; // 提取整数部分作为小时
|
||||
|
||||
@ -146,17 +146,6 @@ internal class TrackDetailsRepository : ElasticSearchContextAbstract<TrackDetail
|
||||
return data.Documents.ToList();
|
||||
}
|
||||
|
||||
public async Task<List<TrackDetailsIndex>?> GetListAsync(List<int> orderIds)
|
||||
{
|
||||
var data = await Context.SearchAsync<TrackDetailsIndex>(x => x.Query(q =>
|
||||
q.Terms(t => t.Field(g => g.OrderId).Terms(orderIds))
|
||||
)
|
||||
.Size(10000)
|
||||
.Sort(s => s.Field(c => c.TrackTime, SortOrder.Descending))
|
||||
);
|
||||
return data?.Documents?.ToList();
|
||||
}
|
||||
|
||||
public async Task<TrackDetailsIndex?> GetLatestAsync(int orderId)
|
||||
{
|
||||
var data = await Context.SearchAsync<TrackDetailsIndex>(x => x
|
||||
|
||||
Loading…
Reference in New Issue
Block a user