From 9df1bebd1d525947e3c08853fe1d0f1abe641e98 Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Thu, 2 Jan 2025 09:37:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IntegrationPackingNoteAppService.cs | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs index aa5146e30..974fd5326 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs @@ -1,7 +1,11 @@ +using System.Collections.Generic; +using System.Linq; using System.Threading.Tasks; +using IdentityServer4.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Volo.Abp.ObjectMapping; +using Win_in.Sfs.Wms.Inventory.Application.Contracts; using Win_in.Sfs.Wms.Store.Application.Contracts; using Win_in.Sfs.Wms.Store.Domain; using Win_in.Sfs.Wms.Store.Domain.Shared; @@ -27,11 +31,49 @@ public class IntegrationPackingNoteAppService : IIntegrationPackingNoteAppService { private readonly IIntegrationPackingNoteManager _integrationPackingNoteManager; + private readonly IBalanceAppService _balanceAppService; public IntegrationPackingNoteAppService( IIntegrationPackingNoteRepository repository, - IIntegrationPackingNoteManager integrationPackingNoteManager) : base(repository) + IIntegrationPackingNoteManager integrationPackingNoteManager, IBalanceAppService balanceAppService) : base(repository) { _integrationPackingNoteManager = integrationPackingNoteManager; + _balanceAppService = balanceAppService; + } + + [HttpPost("")] + public override Task CreateAsync(IntegrationPackingNoteEditInput input) + { + //标签记录 + + //库存移动 + + //创建标签 + return base.CreateAsync(input); + } + + /// + /// 构造 库存转移日志实体 + /// + /// + /// + private List BuildTransferLogs(IntegrationPackingNoteDTO dto) + { + var transferLogCreateInputs = new List(); + + //foreach (var detail in dto.Details.Where(detail => detail.Qty != 0)) + //{ + // var transferLog = ObjectMapper.Map(detail); + + // transferLog.TransType = TransType; + // transferLog.TransSubType = ConvertToTransSubType(deliverNote.DeliverRequestType); + // transferLog.Worker = deliverNote.Worker; + // transferLog.DocNumber = deliverNote.Number; + // transferLog.JobNumber = deliverNote.JobNumber; + + // transferLogCreateInputs.Add(transferLog); + //} + + return transferLogCreateInputs; } }