Commit 30b63a09 by guanzhenshan

同上

parent bf5a8270
......@@ -28,7 +28,7 @@ namespace Bailun.DC.SyncLogisticInfo
{
var now = DateTime.Now;
if (now.Hour % 3==0 && now.Minute==1) //每3小时同步一次
if (now.Minute%30==0) //每30分钟同步一次
{
Console.WriteLine("开始启动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
Init();
......@@ -63,8 +63,8 @@ namespace Bailun.DC.SyncLogisticInfo
var m = cn.QueryFirstOrDefault<DateTime?>("select end_time from job_point_log where job_name='dc-base-logisticinfo'");
if (m != null && m.HasValue)
{
starttime = m.Value;
endtime = starttime.AddDays(1);
starttime = m.Value.AddMinutes(-3);
endtime = starttime.AddHours(1);
}
}
......@@ -95,7 +95,7 @@ namespace Bailun.DC.SyncLogisticInfo
if (json!=null && json.success && json.result.result.Count > 0)
{
Save(json.result.result);
Console.WriteLine("总记录数:"+ json.result.total + ",当前页记录数:" + json.result.result.Count + "条记录。");
Console.WriteLine("总记录数:"+ json.result.total + ",当前页记录数:" + json.result.result.Count + "条记录。"+DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
total = json.result.total;
page++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment