Browse Source

修改

Agv分支2024-11-19
郑勃旭 4 months ago
parent
commit
9df1bebd1d
  1. 44
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs

44
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 System.Threading.Tasks;
using IdentityServer4.Models;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Volo.Abp.ObjectMapping; 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.Application.Contracts;
using Win_in.Sfs.Wms.Store.Domain; using Win_in.Sfs.Wms.Store.Domain;
using Win_in.Sfs.Wms.Store.Domain.Shared; using Win_in.Sfs.Wms.Store.Domain.Shared;
@ -27,11 +31,49 @@ public class IntegrationPackingNoteAppService :
IIntegrationPackingNoteAppService IIntegrationPackingNoteAppService
{ {
private readonly IIntegrationPackingNoteManager _integrationPackingNoteManager; private readonly IIntegrationPackingNoteManager _integrationPackingNoteManager;
private readonly IBalanceAppService _balanceAppService;
public IntegrationPackingNoteAppService( public IntegrationPackingNoteAppService(
IIntegrationPackingNoteRepository repository, IIntegrationPackingNoteRepository repository,
IIntegrationPackingNoteManager integrationPackingNoteManager) : base(repository) IIntegrationPackingNoteManager integrationPackingNoteManager, IBalanceAppService balanceAppService) : base(repository)
{ {
_integrationPackingNoteManager = integrationPackingNoteManager; _integrationPackingNoteManager = integrationPackingNoteManager;
_balanceAppService = balanceAppService;
}
[HttpPost("")]
public override Task<IntegrationPackingNoteDTO> CreateAsync(IntegrationPackingNoteEditInput input)
{
//标签记录
//库存移动
//创建标签
return base.CreateAsync(input);
}
/// <summary>
/// 构造 库存转移日志实体
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
private List<TransferLogEditInput> BuildTransferLogs(IntegrationPackingNoteDTO dto)
{
var transferLogCreateInputs = new List<TransferLogEditInput>();
//foreach (var detail in dto.Details.Where(detail => detail.Qty != 0))
//{
// var transferLog = ObjectMapper.Map<DeliverNoteDetail, TransferLogEditInput>(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;
} }
} }

Loading…
Cancel
Save