Files
WMS-Api/src/WMS.Web.Domain/Infrastructure/IBoxRepositories.cs
2023-11-17 14:12:42 +08:00

36 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WMS.Web.Core.Dto;
using WMS.Web.Domain.Entitys;
namespace WMS.Web.Domain.Infrastructure
{
/// <summary>
/// 老ops箱信息
/// </summary>
public interface IBoxRepositories
{
Task<Box> Get(int id);
Task<Box> GetByNo(string billNo);
//根据箱号搜索 用来比对确定是否箱号信息是否存在
Task<List<string>> GetByNos(List<string> billNos);
//根据箱号查询明细信息
Task<List<BoxResponse>> GetBox(List<string> billNos);
//批量修改
Task<bool> EditEntityList(List<Box> entitys, bool isTransaction = true);
/// <summary>
/// 批量添加
/// </summary>
/// <param name="entitys"></param>
/// <param name="isTransaction"></param>
/// <returns></returns>
Task<bool> AddRange(List<Box> entitys, bool isTransaction = true);
/// 查询实体集合
Task<List<Box>> GetEntityList(List<int> ids);
Task<List<Box>> GetEntityListByNos(List<string> billNos);
}
}