This commit is contained in:
@ -139,7 +139,14 @@ namespace Epost.DAL.Cache
|
||||
|
||||
|
||||
}
|
||||
|
||||
else if (CommendType.Equals(EcommendType.CompleteAll))
|
||||
{
|
||||
//删除作业任务 已完成
|
||||
foreach (var planitem in PlanJobList.ToArray())
|
||||
{
|
||||
PlanJobList.Remove(planitem);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -186,7 +193,12 @@ namespace Epost.DAL.Cache
|
||||
/// 作业完成
|
||||
/// </summary>
|
||||
[Description("作业完成")]
|
||||
Complete
|
||||
|
||||
Complete,
|
||||
/// <summary>
|
||||
/// 作业完成
|
||||
/// </summary>
|
||||
[Description("作业完成")]
|
||||
CompleteAll
|
||||
|
||||
}
|
||||
}
|
@ -191,10 +191,10 @@ namespace Epost.DAL
|
||||
#endregion
|
||||
|
||||
#region 修改作业全部完成
|
||||
public bool updateOrderQueueState(string usercode, string block)
|
||||
public bool updateOrderQueueState()
|
||||
{
|
||||
string sql = string.Format("update ordersqueue set state =3 where usercode='{0}' and taskblock ='{1}'",
|
||||
usercode, block);
|
||||
string sql = string.Format("update ordersqueue set state =3 where state<>3"
|
||||
);
|
||||
LogHelper.WriteLogInfo("修改作业全部完成" + sql);
|
||||
long x = db.UpdateSql(sql);
|
||||
if (x > 0)
|
||||
|
Reference in New Issue
Block a user