浏览代码

add main commit bba355
1. 資料庫異動

Robert 1 年之前
父节点
当前提交
a598ae262a
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 二进制
      EVCB_OCPP.WSServer/DLL/EVCB_OCPP.Domain.dll
  2. 5 0
      EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

二进制
EVCB_OCPP.WSServer/DLL/EVCB_OCPP.Domain.dll


+ 5 - 0
EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

@@ -706,6 +706,11 @@ internal partial class ProfileHandler
 
                                 if (_request.transactionData != null && _request.transactionData.Count > 0)
                                 {
+                                    var startSOC = _request.transactionData[0].sampledValue.Where(x => x.context == ReadingContext.Transaction_Begin).Select(x => x.value).FirstOrDefault();
+                                    var stopSOC = _request.transactionData[0].sampledValue.Where(x => x.context == ReadingContext.Transaction_End).Select(x => x.value).FirstOrDefault();
+                                    transaction.StartSOC = string.IsNullOrEmpty(startSOC) ? string.Empty : startSOC;
+                                    transaction.StopSOC = string.IsNullOrEmpty(stopSOC) ? string.Empty : stopSOC;
+
                                     _request.transactionData[0].sampledValue.Add(new SampledValue()
                                     {
                                         context = ReadingContext.Transaction_End,