using System.Collections.Generic; using System.Threading.Tasks; using MDL.Models; namespace DAL.Interfaces { public interface IArrivalHandoverFormRepository { Task InsertAsync(ArrivalHandoverFormEntity form); Task GetByIdAsync(int id); Task GetByHandoverNumberAsync(string handoverNumber); Task> GetAllAsync(); Task UpdateAsync(ArrivalHandoverFormEntity form); Task DeleteAsync(int id); Task ExistsByHandoverNumberAsync(string handoverNumber); /// /// 批量获取到货交接单(分页) /// /// 页码 /// 每页数量 /// 排序字段 /// 排序方向 /// 交接单号 /// 创建人 /// 开始日期 /// 结束日期 /// 到货交接单列表和总记录数 Task<(List Forms, int TotalCount)> GetArrivalHandoverFormsBatchAsync( int page, int pageSize, string sortBy, string sortOrder, string handoverNumber, string creator, DateTime? startDate = null, DateTime? endDate = null); } }