using System.Threading.Tasks; using WmsLite.Api.Common; using WmsLite.Api.Dtos.Location; using WmsLite.Api.Models; namespace WmsLite.Api.Repositories.Interfaces; public interface ILocationRepository : IBaseRepository { Task GetByWarehouseAreaZoneAndLocationCodeAsync( string tenantId, string ownerCode, string warehouseCode, string areaCode, string zoneCode, string locationCode); /// 按仓+库区+库位编码解析;若存在多行则取分区编码最小的一条。 Task GetByWarehouseAreaAndLocationCodeAsync( string tenantId, string ownerCode, string warehouseCode, string areaCode, string locationCode); Task> GetPagedListAsync(LocationPagedQuery query); Task> GetExistingCodesAsync( string tenantId, string ownerCode, string warehouseCode, string areaCode, string zoneCode, IReadOnlyCollection codes); Task InsertManyAsync(IReadOnlyList entities); }