|
@@ -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++)
|