baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
@@ -0,0 +1,54 @@
|
||||
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
|
||||
{
|
||||
/// <summary>
|
||||
/// 盘点方案
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
public class STKStockSchemeController : BaseApiController<STKStockSchemeController>
|
||||
{
|
||||
private readonly ISTKStockSchemeService service;
|
||||
public STKStockSchemeController(IMapper mapper, ILogger<STKStockSchemeController> logger, ISTKStockSchemeService STKStockSchemeService)
|
||||
: base(mapper, logger)
|
||||
{
|
||||
service = STKStockSchemeService;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询盘点方案
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<QuerySourceInvPrgReturnDto>> QuerySourceInvPrg(STKStockScheme SData)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.QuerySourceInvPrg(SData);
|
||||
}, SData);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 盘点方案提交
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<string>> SubmitBill([FromBody] Barcode_Inv SData)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.SubmitBill(SData);
|
||||
}, SData);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user