WMSlite/WmsLite.Api/Repositories/Interfaces/IOrderRepositories.cs
zhougf fa1b286463 Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.
Implement API security baseline (sys_user, JWT, audit fields, transactions,
unique constraints) and Web real login with 401 handling. Document setup
and development workflows in root, WmsLite.Api, and WmsLite.Web README files.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-24 14:17:47 +08:00

61 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
using System.Threading.Tasks;
using WmsLite.Api.Common;
using WmsLite.Api.Dtos.Orders;
using WmsLite.Api.Models;
namespace WmsLite.Api.Repositories.Interfaces;
public interface IInboundOrderRepository : IBaseRepository<InboundOrder>
{
Task<InboundOrder?> GetByOrderNoAsync(string tenantId, string ownerCode, string orderNo);
Task<PagedResult<InboundOrder>> GetPagedListAsync(InboundOrderPagedQuery query);
/// <summary>
/// 同一天、同一前缀下,符合「前缀+yyyyMMdd+5位数字」格式的最大流水号(无则返回 0)。用于生成 IN2026022312345。
/// </summary>
Task<int> GetMaxDailySequenceInboundAsync(string tenantId, string ownerCode, string orderPrefix, string dateYyyyMmDd);
}
public interface IInboundOrderLineRepository : IBaseRepository<InboundOrderLine>
{
Task<List<InboundOrderLine>> GetByOrderIdAsync(long orderId);
}
public interface IOutboundOrderRepository : IBaseRepository<OutboundOrder>
{
Task<OutboundOrder?> GetByOrderNoAsync(string tenantId, string ownerCode, string orderNo);
Task<PagedResult<OutboundOrder>> GetPagedListAsync(OutboundOrderPagedQuery query);
}
public interface IOutboundOrderLineRepository : IBaseRepository<OutboundOrderLine>
{
Task<List<OutboundOrderLine>> GetByOrderIdAsync(long orderId);
}
public interface ITransferOrderRepository : IBaseRepository<TransferOrder>
{
Task<TransferOrder?> GetByOrderNoAsync(string tenantId, string ownerCode, string orderNo);
Task<PagedResult<TransferOrder>> GetPagedListAsync(TransferOrderPagedQuery query);
}
public interface ITransferOrderLineRepository : IBaseRepository<TransferOrderLine>
{
Task<List<TransferOrderLine>> GetByOrderIdAsync(long orderId);
}
public interface IStocktakeOrderRepository : IBaseRepository<StocktakeOrder>
{
Task<StocktakeOrder?> GetByOrderNoAsync(string tenantId, string ownerCode, string orderNo);
Task<PagedResult<StocktakeOrder>> GetPagedListAsync(StocktakeOrderPagedQuery query);
}
public interface IStocktakeOrderLineRepository : IBaseRepository<StocktakeOrderLine>
{
Task<List<StocktakeOrderLine>> GetByOrderIdAsync(long orderId);
}