|
@@ -29,7 +29,7 @@ namespace MySystem
|
|
|
{
|
|
|
WebCMSEntities spdb = new WebCMSEntities();
|
|
|
PxcModels.WebCMSEntities db = new PxcModels.WebCMSEntities();
|
|
|
- DateTime start = DateTime.Now.AddDays(-5);
|
|
|
+ DateTime start = DateTime.Now.AddDays(-1);
|
|
|
int StartId = int.Parse(function.CheckInt(function.ReadInstance("/SycnSp/MerchantRecordId.txt")));
|
|
|
var Mers = spdb.MerchantRecord.Where(m => m.Id >= StartId && m.CreateTime >= start && m.Status == 1 && m.ProductType == "12").OrderByDescending(m => m.Id).Take(10).ToList();
|
|
|
foreach (var Mer in Mers)
|
|
@@ -72,7 +72,7 @@ namespace MySystem
|
|
|
{
|
|
|
function.WriteLog(DateTime.Now.ToString() + "\n" + ex.ToString(), "同步SP商户记录数据到MAIN异常");
|
|
|
}
|
|
|
- Thread.Sleep(1000);
|
|
|
+ Thread.Sleep(10000);
|
|
|
}
|
|
|
}
|
|
|
}
|