删除NonUnify

This commit is contained in:
alex
2023-07-13 15:26:27 +08:00
parent b64a4af91e
commit 64cebe8017
5 changed files with 26 additions and 26 deletions

View File

@@ -153,9 +153,9 @@ namespace Tnb.WarehouseMgr
}
}
else
else
{
throw new AppFriendlyException("起始库位不可用或无可用的目标库位",500);
throw new AppFriendlyException("起始库位不可用或无可用的目标库位", 500);
}
await _db.Ado.CommitTranAsync();
@@ -173,9 +173,10 @@ namespace Tnb.WarehouseMgr
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
[NonUnify]
//[NonUnify]
public async Task<dynamic> MesEmptyCarryInStock(MESEmptyCarryInStockInput input)
{
var isSuccessful = false;
if (input.IsNull()) throw new ArgumentNullException("input");
try
{
@@ -207,15 +208,15 @@ namespace Tnb.WarehouseMgr
data = dic
};
await WmsEmptyIn(visualDevModelDataCrInput);
isSuccessful = true;
}
}
catch (Exception ex)
{
await _db.Ado.RollbackTranAsync();
return await ToApiResult(JNPF.Common.Enums.HttpStatusCode.InternalServerError, ex.Message);
//return await ToApiResult(JNPF.Common.Enums.HttpStatusCode.InternalServerError, ex.Message);
}
return ToApiResult();
return isSuccessful;
}
public async override Task ModifyAsync(WareHouseUpInput input)