This commit is contained in:
@ -106,7 +106,16 @@ namespace Epost.DAL
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool DeleteQueuebyUser(string strwhere)
|
||||
{
|
||||
string sql = string.Format("delete from OrdersQueue where 1=1 "+ strwhere
|
||||
);
|
||||
long x = db.DeleteSql(sql);
|
||||
if (x > 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool DeleteOrderQueue(string matchid,string CancelTime)
|
||||
{
|
||||
string sql = string.Format("delete from OrdersQueue where matchid='{0}' and Addtime='{1}'",
|
||||
@ -222,6 +231,18 @@ namespace Epost.DAL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取sku是否正在作业
|
||||
public DataTable GetOrderQueueByuser(string state, string usercode)
|
||||
{
|
||||
string sql = string.Format("select * from OrdersQueue where state ='{0}' and usercode = '{1}'",
|
||||
state,
|
||||
usercode);
|
||||
LogHelper.WriteLogInfo("获取工号是否正在作业" + sql);
|
||||
return db.GetsqlForDT(sql);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取当前区的作业状态
|
||||
public bool UpdateQueueOrderState(OrdersQueueModel model)
|
||||
{
|
||||
|
Reference in New Issue
Block a user