| | |
| | | } |
| | | |
| | | /// <inheritdoc /> |
| | | public virtual async Task<WmsStore> FindByNameAsync(string name, CancellationToken cancellationToken = default) |
| | | public virtual async Task<WmsStore> FindByNameAsync(string storeCode, CancellationToken cancellationToken = default) |
| | | { |
| | | return await (await GetDbSetAsync()) |
| | | .IncludeDetails() |
| | | .Where(x => !x.IsDeleted) |
| | | .OrderBy(t => t.Sort) |
| | | .FirstOrDefaultAsync(t => t.StoreCode == name, GetCancellationToken(cancellationToken)); |
| | | .FirstOrDefaultAsync(t => t.StoreCode == storeCode, GetCancellationToken(cancellationToken)); |
| | | } |
| | | |
| | | /// <inheritdoc /> |