BourneCao преди 3 години
родител
ревизия
66d9a34409
променени са 3 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 3 0
      Common/database/MemoryTableDataSocket.cs
  2. 3 0
      Common/log/Log.cs
  3. 0 1
      MeterPlugInLibrary/实时库数据采集/DataCollectionControl.cs

+ 3 - 0
Common/database/MemoryTableDataSocket.cs

@@ -155,7 +155,10 @@ namespace Common
         {
             try
             {
+                Log.GetInstance().WriteLog(36, "开始读取数采实时库    车号:" + PbCache.lockCarNo + ";重量:" + PbCache.lockWgt + ";时间:" + DateTime.Now.ToLongTimeString());
                 List<Track> arr = (List<Track>)cln.CallRpc<Track>("Track.Table:select", new object[] { PointIdKey });//读
+                Log.GetInstance().WriteLog(36, "完成读取数采实时库    车号:" + PbCache.lockCarNo + ";重量:" + PbCache.lockWgt + ";时间:" + DateTime.Now.ToLongTimeString());
+
                 if (arr != null && arr.Count > 0)
                 {
                     List<CarInfo> PlateNoList = arr[0].PlateNoList == null ? new List<CarInfo>() : arr[0].PlateNoList;

+ 3 - 0
Common/log/Log.cs

@@ -152,6 +152,9 @@ namespace Common
                     case 35:
                         strLogName = "硬盘录像机拍照_";
                         break;
+                    case 36:
+                        strLogName = "实时库读取时间分析_";
+                        break;
                     case 99:
                         strLogName = "双扫码";
                         break;

+ 0 - 1
MeterPlugInLibrary/实时库数据采集/DataCollectionControl.cs

@@ -62,7 +62,6 @@ namespace MeterPlugInLibrary
         /// </summary>
         private void WgtThread()
         {
-
             //===========eason 2020 注释================
             int icount = 0, iOldWgt = 0, iWdCount = 0; //iWdCount稳定次数,这里判断为5次稳定即可
             MemoryTableDataSocket MemoClass = new MemoryTableDataSocket(PbCache.collect_no);//内存表