同步料架的载具位置,bug处理,日志完善

This commit is contained in:
2024-06-26 14:27:32 +08:00
parent 4ff5b9b9d7
commit 1089bd7f5a
4 changed files with 33 additions and 12 deletions

View File

@@ -245,6 +245,7 @@ namespace Tnb.WarehouseMgr
await _runService.Create(templateEntity, visualDevModelCrInput);
await _db.Ado.CommitTranAsync();
Logger.LogError($"【CarryBind】 {input.membercarry_code}成功绑定到{input.carry_code}");
}
else
{
@@ -256,6 +257,8 @@ namespace Tnb.WarehouseMgr
}
catch (Exception ex)
{
Logger.LogError($"【CarryBind】 {ex.Message}");
Logger.LogError($"【CarryBind】 {ex.StackTrace}");
await _db.Ado.RollbackTranAsync();
return await ToApiResult(JNPF.Common.Enums.HttpStatusCode.InternalServerError, ex.Message);
}