diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/ExchangeDatas/ExchangeDataAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/ExchangeDatas/ExchangeDataAppService.cs index 382096e38..2f3f76b7a 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/ExchangeDatas/ExchangeDataAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/ExchangeDatas/ExchangeDataAppService.cs @@ -86,7 +86,7 @@ public class ExchangeDataAppService var entities = await (await _repository.GetDbSetAsync().ConfigureAwait(false)) .Where(p => p.Status == EnumExchangeDataStatus.Unread) - .OrderBy(p => p.WriteTime) + .OrderBy(p => p.TyrpNumber) .Take(batchSize) .ToListAsync().ConfigureAwait(false); @@ -108,7 +108,7 @@ public class ExchangeDataAppService var entities = await (await _repository.GetDbSetAsync().ConfigureAwait(false)) .Where(p => p.Status == EnumExchangeDataStatus.Unread) - .OrderBy(p => p.WriteTime) + .OrderBy(p => p.TyrpNumber) .Take(batchSize) .ToListAsync().ConfigureAwait(false); diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/ExchangeDatas/ExchangeDataManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/ExchangeDatas/ExchangeDataManager.cs index c73d9aefb..d7bf10578 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/ExchangeDatas/ExchangeDataManager.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/ExchangeDatas/ExchangeDataManager.cs @@ -39,7 +39,7 @@ public class ExchangeDataManager : DomainService, IExchangeDataManager var entities = await (await _repository.GetDbSetAsync().ConfigureAwait(false)) .Where(p => p.Status == EnumExchangeDataStatus.Unread) - .OrderBy(p => p.WriteTime) + .OrderBy(p => p.TyrpNumber) .Take(batchSize) .ToListAsync().ConfigureAwait(false);