调整Mes->Wms生产出库返回值

This commit is contained in:
alex
2023-07-19 17:28:45 +08:00
parent 4cf4551d6f
commit 659464f04a

View File

@@ -321,6 +321,7 @@ namespace Tnb.WarehouseMgr
//[NonUnify] //[NonUnify]
public async Task<dynamic> MESCreateOutstock(MESCreateOutstockInput input) public async Task<dynamic> MESCreateOutstock(MESCreateOutstockInput input)
{ {
var isSuccessful = true;
try try
{ {
await _db.Ado.BeginTranAsync(); await _db.Ado.BeginTranAsync();
@@ -549,11 +550,11 @@ namespace Tnb.WarehouseMgr
} }
catch (Exception ex) catch (Exception ex)
{ {
isSuccessful = false;
JNPF.Logging.Log.Error(ex.Message); JNPF.Logging.Log.Error(ex.Message);
await _db.Ado.RollbackTranAsync(); await _db.Ado.RollbackTranAsync();
return await ToApiResult(JNPF.Common.Enums.HttpStatusCode.InternalServerError, ex.Message);
} }
return await ToApiResult(); return isSuccessful;
} }
public override async Task ModifyAsync(WareHouseUpInput input) public override async Task ModifyAsync(WareHouseUpInput input)