refactor: 轨迹明细弃用IsVisibility字段,新增IsExternal字段替代 轨迹内容上的是否对外作用:创建轨迹时如果是否对外字段留null,则以轨迹内容上的【是否对外】值做为默认值填充。IsExternal作用:在查询轨迹时判断如果是外部子系统,则过滤掉是否对外为false的轨迹
41 lines
1.5 KiB
C#
41 lines
1.5 KiB
C#
using SJZY.Expand.ElasticSearch.Services;
|
|
using SJZY.Track.Domain.Dtos.TrackContents;
|
|
using SJZY.Track.Domain.Enums;
|
|
|
|
namespace SJZY.Track.Domain.Aggregates.TrackDetailsAggregate;
|
|
|
|
public interface ITrackDetailsEsRepository : IElasticsearchClientService<TrackDetailsIndex>
|
|
{
|
|
Task<List<TrackDetailsIndex>> GetListAsync(int[] orderIds, string trackCode, bool forUpsert = false);
|
|
|
|
Task<List<TrackDetailsIndex>> GetLatestListAsync(int[] eventOrderIds, List<string> trackCodes);
|
|
|
|
Task<List<TrackDetailsIndex>> GetListAsync(int subSystemId, int orderType, List<string> orderNos, List<string>? trackCodes = null);
|
|
|
|
Task<bool> AnyAsync(int orderId, string originTrackDataHash);
|
|
|
|
Task UpdateAsync(TrackDetailsIndex index);
|
|
|
|
Task UpdateManyAsync(List<TrackDetailsIndex> indexes, int maxRetries = 3);
|
|
|
|
Task BulkUpdateAsync(List<TrackDetailsIndex> indexes, int maxRetries = 3);
|
|
|
|
Task AddManyAsync(List<TrackDetailsIndex> index);
|
|
|
|
Task AddAsync(TrackDetailsIndex track);
|
|
|
|
Task<List<TrackDetailsIndex>> GetListAsync(int orderId);
|
|
|
|
Task<List<TrackDetailsIndex>> GetListAsync(int[] orderIds, List<string>? trackCodes = null, TrackSourceEnum? source = null);
|
|
|
|
Task<List<int>> DeleteTrackAsync(int[] orderIds, List<string> trackCodes);
|
|
|
|
Task DeleteTrackByIdAsync(string id, string indexName);
|
|
|
|
Task<List<TrackDetailsIndex>> GetDataByIds(string[] ids);
|
|
|
|
Task<TrackDetailsIndex> GetDetailAsync(string orderNo, string trackCode, int orderType, int subSystemId, DateTime trackTime);
|
|
|
|
Task MigrateAsync();
|
|
}
|