静置仓逻辑编写,返回提示修改 bug,包材出库逻辑变更
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user