Commit a74be8f5 by 泽锋 李

fix

parent e73cd2ab
...@@ -32,6 +32,11 @@ namespace AutoTurnOver.DB ...@@ -32,6 +32,11 @@ namespace AutoTurnOver.DB
new_task_synchro_log.start_time = new DateTime(2015, 05, 14); new_task_synchro_log.start_time = new DateTime(2015, 05, 14);
} }
if((new_task_synchro_log.end_time- new_task_synchro_log.start_time).TotalDays > 90)
{
new_task_synchro_log.end_time = new_task_synchro_log.start_time.AddDays(89);
}
new_task_synchro_log.id = conn.Insert(new_task_synchro_log) ?? 0; new_task_synchro_log.id = conn.Insert(new_task_synchro_log) ?? 0;
int count = 0; int count = 0;
......
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