From e4f89a92209ebca77240edaa3b78f66eb6e4b3d5 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周五, 06 9月 2024 08:58:43 +0800
Subject: [PATCH] 修复为null的问题
---
iWara.SCADA.Code/iWare.Wms.Application/Service/AccessInterfaceLog/AccessInterfaceLogService.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/iWara.SCADA.Code/iWare.Wms.Application/Service/AccessInterfaceLog/AccessInterfaceLogService.cs b/iWara.SCADA.Code/iWare.Wms.Application/Service/AccessInterfaceLog/AccessInterfaceLogService.cs
index 200934f..51b59ee 100644
--- a/iWara.SCADA.Code/iWare.Wms.Application/Service/AccessInterfaceLog/AccessInterfaceLogService.cs
+++ b/iWara.SCADA.Code/iWare.Wms.Application/Service/AccessInterfaceLog/AccessInterfaceLogService.cs
@@ -44,7 +44,11 @@
public async Task AddInterfaceLogAsync(AddAccessInterfaceLogInput input)
{
AccessInterfaceLog log = new();
- log.Id=input.Id;
+
+ log.WorkPieceID = input.WorkPieceID;
+ log.WorkingProcedureCurrent = input.WorkingProcedureCurrent;
+
+ log.Id = input.Id;
log.ParaJSON = input.JsonString;
log.Action = input.Action;
log.IPAddress = input.IpAddress;
@@ -112,7 +116,7 @@
// }
//}
//log.Keys = string.Join(", ", keys);
- if(input.Result.GetType().Name.Equals("String"))
+ if (input.Result.GetType().Name.Equals("String"))
{
log.ResultJson = input.Result.ToString();
--
Gitblit v1.9.3