admin/src/Oms.Application/Services/Warehouse/WarehouseService.cs
zzh 8a1649ea66
All checks were successful
Build and Deploy / deploy (push) Successful in 1m13s
feat: 入库箱唛/SKU 标签打印与订单改销售产品
支持按 box/sku 模板生成 PDF;待支付前可改产品并自动重排货重算费。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-22 18:39:07 +08:00

33 lines
2.1 KiB
C#

using Fake.Application;
using Microsoft.AspNetCore.Mvc;
using Oms.Application.Labeling;
using Oms.Domain.ChannelsAggregate.Repositories;
using Oms.Domain.CustomersAggregate.Repositories;
using Oms.Domain.SystemAggregate.Repositories;
using Oms.Domain.WarehouseAggregate.Repositories;
namespace Oms.Application.Services.Warehouse;
/// <summary>
/// 仓储模块 API 服务(我的包裹 / 库存 / SKU / 入库预报)。
/// </summary>
[ApiExplorerSettings(GroupName = "OMS-Warehouse")]
public partial class WarehouseService : ApplicationService
{
private ICustomerRepository CustomerRepository => LazyServiceProvider.GetRequiredService<ICustomerRepository>();
private ICSkuRepository SkuRepository => LazyServiceProvider.GetRequiredService<ICSkuRepository>();
private ICBinLocationRepository BinLocationRepository => LazyServiceProvider.GetRequiredService<ICBinLocationRepository>();
private ICInventoryRepository InventoryRepository => LazyServiceProvider.GetRequiredService<ICInventoryRepository>();
private ICInboundNoticeRepository InboundNoticeRepository => LazyServiceProvider.GetRequiredService<ICInboundNoticeRepository>();
private ICInboundBoxRepository InboundBoxRepository => LazyServiceProvider.GetRequiredService<ICInboundBoxRepository>();
private ICInboundBoxLineRepository InboundBoxLineRepository => LazyServiceProvider.GetRequiredService<ICInboundBoxLineRepository>();
private ICParcelRepository ParcelRepository => LazyServiceProvider.GetRequiredService<ICParcelRepository>();
private ICParcelItemRepository ParcelItemRepository => LazyServiceProvider.GetRequiredService<ICParcelItemRepository>();
private ICSkuPlatformMapRepository SkuPlatformMapRepository => LazyServiceProvider.GetRequiredService<ICSkuPlatformMapRepository>();
private IWarehouseAddressRepository WarehouseAddressRepository =>
LazyServiceProvider.GetRequiredService<IWarehouseAddressRepository>();
private ILabelTemplateRepository LabelTemplateRepository =>
LazyServiceProvider.GetRequiredService<ILabelTemplateRepository>();
private ILabelPdfRenderer LabelPdfRenderer => LazyServiceProvider.GetRequiredService<ILabelPdfRenderer>();
}