68 lines
2.0 KiB
C#
68 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WMS.Web.Core.Dto.Inventory;
|
|
using WMS.Web.Core.Internal.Results;
|
|
using WMS.Web.Domain.Entitys;
|
|
|
|
namespace WMS.Web.Domain.Infrastructure
|
|
{
|
|
/// <summary>
|
|
/// 箱库存-仓储接口
|
|
/// </summary>
|
|
public interface IBoxInventoryRepositories
|
|
{
|
|
/// <summary>
|
|
/// 列表-查询
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
Task<(List<BoxInventoryQueryResponse> list,int total)> GetPagedList(BoxInventoryQueryRequest dto);
|
|
|
|
/// <summary>
|
|
/// 明细集合-根据箱号
|
|
/// </summary>
|
|
/// <param name="boxBillNo"></param>
|
|
/// <returns></returns>
|
|
Task<BoxInventoryResponse> GetInfoBy(string boxBillNo);
|
|
|
|
/// <summary>
|
|
/// 列表-根据箱ids
|
|
/// </summary>
|
|
/// <param name="ids"></param>
|
|
/// <returns></returns>
|
|
Task<List<BoxInventory>> GetList(List<int> ids);
|
|
|
|
/// <summary>
|
|
/// 实体
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
Task<BoxInventory> Get(int id);
|
|
/// <summary>
|
|
/// 批量添加
|
|
/// </summary>
|
|
/// <param name="entitys"></param>
|
|
/// <param name="isTransaction"></param>
|
|
/// <returns></returns>
|
|
Task<bool> AddRange(List<BoxInventory> entitys, bool isTransaction = true);
|
|
|
|
/// <summary>
|
|
/// 批量修改
|
|
/// </summary>
|
|
/// <param name="entitys"></param>
|
|
/// <param name="isTransaction"></param>
|
|
/// <returns></returns>
|
|
Task<bool> UpdateRange(List<BoxInventory> entitys, bool isTransaction = true);
|
|
|
|
/// <summary>
|
|
/// 批量删除
|
|
/// </summary>
|
|
/// <param name="ids"></param>
|
|
/// <param name="isTransaction"></param>
|
|
/// <returns></returns>
|
|
Task<bool> DeleteRange(List<int> ids, bool isTransaction = false);
|
|
}
|
|
}
|