静置仓逻辑编写,返回提示修改 bug,包材出库逻辑变更

This commit is contained in:
2024-07-17 11:23:23 +08:00
parent bf39c08837
commit 03775c8a12
18 changed files with 467 additions and 107 deletions

View File

@@ -48,7 +48,7 @@ namespace Tnb.WarehouseMgr
/// </param>
/// <returns></returns>
[HttpPost]
public async Task<Tnb.WarehouseMgr.Entities.Dto.Outputs.Result> Instock(WmsEmptycarryInstockServiceInstockInput input)
public async Task<dynamic> Instock(WmsEmptycarryInstockServiceInstockInput input)
{
try
{
@@ -107,14 +107,15 @@ namespace Tnb.WarehouseMgr
await _db.Insertable(wmsEmptycarryInstockLog).ExecuteCommandAsync();
await _db.Ado.CommitTranAsync();
return await ToApiResult(HttpStatusCode.OK, "成功");
return await Task.FromResult(true);
}
catch (Exception ex)
{
Logger.LogInformation("【WmsEmptycarryInstockService-Instock】" + ex.Message);
Logger.LogInformation("【WmsEmptycarryInstockService-Instock】" + ex.StackTrace);
await _db.Ado.RollbackTranAsync();
return await ToApiResult(HttpStatusCode.InternalServerError, ex.Message);
throw Oops.Bah(ex.Message);
}
}
}