using Volo.Abp.Domain.Repositories; using Volo.Abp.Specifications; namespace CMS.Plugin.HIAWms.Domain.WmsMaterials; /// /// WmsMaterial仓储 /// public interface IWmsMaterialRepository : IBasicRepository { /// /// Finds the by name asynchronous. /// /// The name. /// The cancellation token. /// Task FindByNameAsync(string name, CancellationToken cancellationToken = default); /// /// 根据型号传物料 /// /// /// /// Task FindByModelAsync(string model, CancellationToken cancellationToken = default); /// /// Names the exist asynchronous. /// /// The name. /// The identifier. /// Task NameExistAsync(string name, Guid? id = null); /// /// Gets the maximum sort asynchronous. /// /// Task GetMaxSortAsync(); /// /// Gets the list asynchronous. /// /// The sorting. /// The maximum result count. /// The skip count. /// The filter. /// The specification. /// if set to true [include details]. /// The cancellation token. /// Task> GetListAsync(WmsMaterial material, string sorting = null, int maxResultCount = int.MaxValue, int skipCount = 0, string filter = null, Specification specification = null, bool includeDetails = false, CancellationToken cancellationToken = default); /// /// 获取物料基础列表 /// /// /// /// Task> GetMaterialListAsync(WmsMaterial? material, CancellationToken cancellationToken = default); /// /// Gets the count asynchronous. /// /// The filter. /// The specification. /// The cancellation token. /// Task GetCountAsync(WmsMaterial material, string filter = null, Specification specification = null, CancellationToken cancellationToken = default); /// /// 获取物料列表 /// /// /// Task> GetListForSelectAsync(CancellationToken cancellationToken = default); }