31 lines
1.1 KiB
C#
31 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.Core.Dto.OutStock;
|
|
using WMS.Web.Domain.Entitys;
|
|
|
|
namespace WMS.Web.Domain.Infrastructure
|
|
{
|
|
public interface IOutStockRepositories
|
|
{
|
|
// 新增
|
|
Task<OutStock> Add(OutStock entity, bool isTransaction = true);
|
|
//编辑
|
|
Task<OutStock> Edit(OutStock entity, bool isTransaction = true);
|
|
//根据任务单Id搜索
|
|
Task<List<OutStock>> GetByTaskId(int taskId);
|
|
// 获取列表
|
|
Task<(List<OutStockQueryInfoResponse> list, int total)> GetListAsync(OutStockQueryRequest dto, int companyId = 0);
|
|
/// 查询实体集合
|
|
Task<List<OutStock>> GetEntityList(List<int> ids);
|
|
/// 修改实体集合
|
|
Task<bool> EditEntityList(List<OutStock> entitys, bool isTransaction = true);
|
|
//获取详情
|
|
Task<OutStockInfoResponse> GetInfo(int id);
|
|
//获取出库单明细
|
|
Task<List<BoxDetailResponse>> GetDetailsByBoxId(int boxId);
|
|
}
|
|
}
|