53 lines
2.1 KiB
C#
53 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WMS.Web.Core.Dto.OutStockTask;
|
|
using WMS.Web.Domain.Entitys;
|
|
|
|
namespace WMS.Web.Domain.Infrastructure
|
|
{
|
|
public interface IOutStockTaskRepositories
|
|
{
|
|
// 新增
|
|
Task<OutStockTask> Add(OutStockTask entity, bool isTransaction = true);
|
|
/// <summary>
|
|
/// 批量添加
|
|
/// </summary>
|
|
/// <param name="entitys"></param>
|
|
/// <param name="isTransaction"></param>
|
|
/// <returns></returns>
|
|
Task<bool> AddRange(List<OutStockTask> entitys, bool isTransaction = true);
|
|
// 获取列表
|
|
Task<(List<OutStockTaskQueryInfoResponse> list, int total)> GetListAsync(OutStockTaskQueryRequest dto);
|
|
/// 查询实体集合
|
|
Task<List<OutStockTask>> GetEntityList(List<int> ids);
|
|
/// <summary>
|
|
/// 列表-根据明细中的来源单号
|
|
/// </summary>
|
|
/// <param name="sourceBillNos"></param>
|
|
/// <returns></returns>
|
|
Task<List<OutStockTask>> GetListBySourceBillNo(List<string> sourceBillNos);
|
|
/// <summary>
|
|
/// 列表-根据订单号
|
|
/// </summary>
|
|
/// <param name="billNos"></param>
|
|
/// <returns></returns>
|
|
Task<List<OutStockTask>> GetListByBillNo(List<string> billNos);
|
|
/// 修改实体集合
|
|
Task<bool> EditEntityList(List<OutStockTask> entitys, bool isTransaction = true);
|
|
//编辑
|
|
Task<OutStockTask> Edit(OutStockTask entity, bool isTransaction = true);
|
|
/// 删除实体集合
|
|
Task<bool> DeleteEntityList(List<int> ids, bool isTransaction = true);
|
|
//获取实体
|
|
Task<OutStockTask> Get(int id);
|
|
//根据订单号获取订单信息
|
|
Task<List<GetOutStockTaskByNoResponse>> GetOutStockTaskListByNo(string billNo);
|
|
//模糊搜索订单号
|
|
Task<List<string>> GetOutStockTaskNosByNo(string billNo);
|
|
//根据订单号获取订单信息
|
|
Task<GetOutStockTaskByNoResponse> GetOutStockTaskByNo(string billNo);
|
|
}
|
|
}
|