Browse Source

修改 反射库移

dev_DY_CC
郑勃旭 1 year ago
parent
commit
a97e24fa2b
  1. 7
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/InjectionJobs/InjectionJobAppService.cs
  2. 12
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/TransferLibJobs/TransferLibJobAppService.cs
  3. 7
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/InjectionJobEventHandler.cs

7
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/InjectionJobs/InjectionJobAppService.cs

@ -158,4 +158,11 @@ public class InjectionJobAppService
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
[HttpPost("test")]
public virtual async Task Test()
{
Console.WriteLine("FuAZCZXVZXVXZVZ");
await Task.CompletedTask;
}
} }

12
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/TransferLibJobs/TransferLibJobAppService.cs

@ -3,6 +3,7 @@ using System.Reflection;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp; using Volo.Abp;
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;
@ -18,10 +19,12 @@ public class TransferLibJobAppService
: SfsJobAppServiceBase<TransferLibJob, TransferLibJobDetail, TransferLibJobDTO, SfsJobRequestInputBase, TransferLibJobCheckInput, TransferLibJobEditInput>, : SfsJobAppServiceBase<TransferLibJob, TransferLibJobDetail, TransferLibJobDTO, SfsJobRequestInputBase, TransferLibJobCheckInput, TransferLibJobEditInput>,
ITransferLibJobAppService ITransferLibJobAppService
{ {
private readonly IServiceProvider _serviceProvider;
public TransferLibJobAppService( public TransferLibJobAppService(
ITransferLibJobRepository repository, ITransferLibJobManager TransferLibJobManager ITransferLibJobRepository repository, ITransferLibJobManager TransferLibJobManager, IServiceProvider serviceProvider) : base(repository, TransferLibJobManager)
) : base(repository, TransferLibJobManager)
{ {
_serviceProvider = serviceProvider;
} }
/// <summary> /// <summary>
@ -32,6 +35,11 @@ public class TransferLibJobAppService
/// <returns></returns> /// <returns></returns>
public override async Task<TransferLibJobDTO> CompleteAsync(Guid id, TransferLibJobDTO dto) public override async Task<TransferLibJobDTO> CompleteAsync(Guid id, TransferLibJobDTO dto)
{ {
var str = "Win_in.Sfs.Wms.Store.Application.InjectionJobAppService";
var implementation=_serviceProvider.GetService(Type.GetType("Win_in.Sfs.Wms.Store.Application.InjectionJobAppService"));
MethodInfo methodInfo=implementation.GetType().GetMethod("Test");
methodInfo.Invoke(implementation, null);
string methodPrefix = "TransferLibJobAppService.CompleteAsync - "; string methodPrefix = "TransferLibJobAppService.CompleteAsync - ";
if (dto.CallServerName.IsNullOrEmpty()) if (dto.CallServerName.IsNullOrEmpty())

7
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/InjectionJobEventHandler.cs

@ -167,11 +167,6 @@ public class InjectionJobEventHandler :
detailInput.FromLocationErpCode= detail.RecommendFromLocationErpCode; detailInput.FromLocationErpCode= detail.RecommendFromLocationErpCode;
detailInput.FromWarehouseCode= detail.RecommendFromWarehouseCode; detailInput.FromWarehouseCode= detail.RecommendFromWarehouseCode;
detailInput.ToLocationCode = "YL1";
detailInput.ToLocationErpCode = "YL1";
detailInput.ToLocationGroup = "YL1";
detailInput.ToLocationArea = "YL1";
detailInput.FromLot = detail.RecommendLot; detailInput.FromLot = detail.RecommendLot;
detailInput.ToLot=detail.RecommendLot; detailInput.ToLot=detail.RecommendLot;
detailInput.Qty=detail.RecommendQty; detailInput.Qty=detail.RecommendQty;
@ -179,7 +174,7 @@ public class InjectionJobEventHandler :
detailInput.Uom=detail.Uom; detailInput.Uom=detail.Uom;
detailInput.SupplierBatch = detail.RecommendSupplierBatch; detailInput.SupplierBatch = detail.RecommendSupplierBatch;
await _transferLibRequestAppService.CreateAsync(input); await _transferLibRequestAppService.CreateAsync(input).ConfigureAwait(false);
} }
} }

Loading…
Cancel
Save