增加MES-WMS接口

This commit is contained in:
FanLian
2023-07-07 16:49:39 +08:00
parent 70634df84d
commit 630678ff23
28 changed files with 1042 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ using JNPF.Common.Enums;
using JNPF.Common.Extension;
using JNPF.FriendlyException;
using JNPF.Systems.Interfaces.System;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using Microsoft.CodeAnalysis.Operations;
using SqlSugar;
@@ -25,7 +26,7 @@ namespace Tnb.WarehouseMgr
/// <summary>
/// 出库签收
/// </summary>
public class WmsSignForDeliveryService : BaseWareHouseService
public class WmsSignForDeliveryService : BaseWareHouseService, IWmsSignForDeliveryService
{
private readonly ISqlSugarClient _db;
private readonly IWmsCarryService _wareCarryService;
@@ -112,6 +113,17 @@ namespace Tnb.WarehouseMgr
throw;
}
}
/// <summary>
/// MES调用载具签收接口
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
public async Task MESCarrySign(MESCarrySignInput input)
{
var signInput = input.Adapt<SignForDeliveryInput>();
await SignForDelivery(signInput);
}
}