Files
GX.O3.WMS/APP.O3/WebApi/Controllers/WMS/STKInventoryController.cs
T

39 lines
1.3 KiB
C#
Executable File

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
using Opsoft.NetCore.O3App.Domain;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.BaseData.Model;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IServices;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using Opsoft.NetCore.O3App.WebApi.Models;
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.WebApi.Controllers.WMS
{
/// <summary>
/// 库存查询
/// </summary>
[Authorize]
public class STKInventoryController : BaseApiController<SelBillController>
{
private readonly ISTKInventoryService service;
public STKInventoryController(IMapper mapper, ILogger<SelBillController> logger, ISTKInventoryService Service)
: base(mapper, logger)
{
service = Service;
}
[HttpPost]
public async Task<BaseResponse<Dictionary<string, object>>> QueryInventory([FromBody] JObject request)
{
return await TryProcess(async input =>
{
return await service.QueryInventory(request);
}, request);
}
}
}