using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; 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; namespace Opsoft.NetCore.O3App.WebApi.Controllers.WMS { /// /// 盘点方案 /// [Authorize] public class STKStockSchemeController : BaseApiController { private readonly ISTKStockSchemeService service; public STKStockSchemeController(IMapper mapper, ILogger logger, ISTKStockSchemeService STKStockSchemeService) : base(mapper, logger) { service = STKStockSchemeService; } /// /// 查询盘点方案 /// /// /// [HttpGet] public async Task> QuerySourceInvPrg(STKStockScheme SData) { return await TryProcess(async input => { return await service.QuerySourceInvPrg(SData); }, SData); } /// /// 盘点方案提交 /// /// /// [HttpPost] public async Task> SubmitBill([FromBody] Barcode_Inv SData) { return await TryProcess(async input => { return await service.SubmitBill(SData); }, SData); } } }