29 lines
944 B
C#
29 lines
944 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WMS.Web.Core.Dto.TakeStock;
|
|
using WMS.Web.Domain.Entitys;
|
|
|
|
namespace WMS.Web.Domain.Infrastructure
|
|
{
|
|
public interface ITakeStockRepositories
|
|
{
|
|
// 新增
|
|
Task<TakeStock> Add(TakeStock entity, bool isTransaction = true);
|
|
/// <summary>
|
|
/// 批量添加
|
|
/// </summary>
|
|
/// <param name="entitys"></param>
|
|
/// <param name="isTransaction"></param>
|
|
/// <returns></returns>
|
|
Task<bool> AddRange(List<TakeStock> entitys, bool isTransaction = true);
|
|
//编辑
|
|
Task<TakeStock> Edit(TakeStock entity, bool isTransaction = true);
|
|
// 获取列表
|
|
Task<(List<TakeStockQueryInfoResponse> list, int total)> GetListAsync(TakeStockQueryRequest dto);
|
|
/// 查询实体集合
|
|
Task<List<TakeStock>> GetEntityList(List<int> ids);
|
|
}
|
|
}
|