|
|
@ -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;
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|