Browse Source

提交

Agv分支2024-11-19
赵新宇 5 months ago
parent
commit
06ee55af0e
  1. 32
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/test/TestAppService.cs
  2. 4
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/AssembleIssueJobs/AssembleIssueJobAppService.cs

32
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/test/TestAppService.cs

@ -3,10 +3,12 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Castle.Core.Logging;
using DocumentFormat.OpenXml.Office2010.Drawing;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
@ -31,10 +33,12 @@ public class TestService:ApplicationService
{
private readonly IServiceProvider _serviceProvider;
private readonly IOptions<CycleOptions> _options;
public TestService(IServiceProvider serviceProvider, IOptions<CycleOptions> options)
private readonly ILogger<TestService> _logger;
public TestService(IServiceProvider serviceProvider, IOptions<CycleOptions> options, ILogger<TestService> logger)
{
_serviceProvider = serviceProvider;
_options = options;
_logger = logger;
}
/*
/// <summary>
@ -110,33 +114,13 @@ public class TestService:ApplicationService
[HttpPost("pushOutTask4FW")]
public async Task<AgvResultObject1> pushOutTask4FW(AgvRequest1 request)
{
AgvResultObject1 reusltObject = new AgvResultObject1();
var json=System.Text.Json.JsonSerializer.Serialize(request);
_logger.LogInformation(json);
AgvResultObject1 reusltObject = new AgvResultObject1();
reusltObject.Code = "0";
reusltObject.Message = "OK";
reusltObject.ReqCode = "T6000001970";
return reusltObject;
//List<ResponCargoItem> result = new List<ResponCargoItem>();
//result.Add(new ResponCargoItem() { AreaID = "1", CargoID = "PTXB1", PartCode = "TMDLYA0A071AB", Flag = 0 });
//result.Add(new ResponCargoItem() { AreaID = "1", CargoID = "PTXB2", PartCode = "TMDLYA0A061AB", Flag = 0 });
//result.Add(new ResponCargoItem() { AreaID = "2", CargoID = "ZSXB2", PartCode = "TMDLYD0ABM5A", Flag = 0 });
//result = result.Where(p => p.AreaID == AreaID).ToList();
//var t = new ResponCargos();
//t.Code = 200;
//t.Msg = "Success";
//t.Datalist = result;
//return t;
}

4
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/AssembleIssueJobs/AssembleIssueJobAppService.cs

@ -996,7 +996,7 @@ public class AssembleIssueJobAppService
dto.HandledFromLocationArea = fromlocation.AreaCode;
dto.HandledFromLocationErpCode = fromlocation.ErpLocationCode;
dto.HandledFromQty = detail.MatQty;
dto.HandledFromLot = string.Empty;
dto.HandledFromLot = !string.IsNullOrEmpty(detail.BatchAttr07) ? detail.BatchAttr07 : string.Empty;
dto.HandledFromPackingCode = string.Empty;
details.Add(dto);
@ -1031,7 +1031,7 @@ public class AssembleIssueJobAppService
{
Code = "-1",
ReqCode = job.AssembleRequestNumber,
Message = ex.Message,
Message = ex.Message
};
await unitOfWork.RollbackAsync().ConfigureAwait(false);
return ret;

Loading…
Cancel
Save