mengshunguo 2 weeks ago
parent
commit
334a06bebb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      SCADA_DAQ/Customer/Machines/RFIDBindingMachine.cs

+ 2 - 2
SCADA_DAQ/Customer/Machines/RFIDBindingMachine.cs

@@ -143,10 +143,10 @@ namespace SCADA_DAQ.Customer.Machines
             #endregion
 
             #region //定时上传未上传的产品数据
-            if (e.ChangeType == DateTimeChangeType.MinuteChanged && e.TimeFlag.Minute % 30 == 0 &&
+            if (e.ChangeType == DateTimeChangeType.MinuteChanged && e.TimeFlag.Minute % 10 == 0 &&
                 CustomerEnv.MESServerConnectStatus && CustomerEnv.MESAPIToken != null && CustomerEnv.CustomerConfig.SetPower.MESUpload)
             {
-                var notSyncedList = Env.DAL.App_Microwave_TestResult.GetData<ProductModel>(t => t.IsSynced == false && t.Barcode != null && t.Barcode != "");
+                var notSyncedList = Env.DAL.App_Microwave_TestResult.GetData<ProductModel>(t => t.IsSynced == false && t.Barcode != null && t.Barcode != "" && t.RunTime > 0);
                 var synecdList = new List<ProductModel>();
                 string str = "";
                 for (int i = 0; i < notSyncedList?.Count; i++)