This commit is contained in:
@ -89,7 +89,7 @@ namespace Epost.DAL
|
||||
#region 获取当前区的作业状态
|
||||
public DataTable getQueueOrderState(OrdersQueueModel model)
|
||||
{
|
||||
string sql = string.Format("select * from OrdersQueue where taskblock='{0}' and taskarea='{1}' and state<>2 and state<>3 order by sort",
|
||||
string sql = string.Format("select * from OrdersQueue where taskblock='{0}' and taskarea='{1}' and state=0 order by sort",
|
||||
model.Taskblock,
|
||||
model.Taskarea);
|
||||
return db.GetsqlForDT(sql);
|
||||
@ -213,7 +213,7 @@ namespace Epost.DAL
|
||||
#region 获取sku是否正在作业
|
||||
public DataTable GetOrderQueue(string block,string area,string state)
|
||||
{
|
||||
string sql = string.Format("select * from OrdersQueue where state <>'{0}' and taskblock='{1}' and taskarea='{2}'",
|
||||
string sql = string.Format("select * from OrdersQueue where state ='{0}' and taskblock='{1}' and taskarea='{2}'",
|
||||
state,
|
||||
block,area);
|
||||
LogHelper.WriteLogInfo("获取sku是否正在作业" + sql);
|
||||
@ -408,5 +408,18 @@ namespace Epost.DAL
|
||||
|
||||
}
|
||||
#endregion
|
||||
#region 扫描工号启动任务
|
||||
public bool UpdateQueueByUser(string usercode,string color)
|
||||
{
|
||||
string sql = string.Format("update OrdersQueue set state = 0,usercode ='{0}',lightcolor='{1}' where state=2 ",
|
||||
usercode,color);
|
||||
long x= db.UpdateSql(sql);
|
||||
if (x > 0)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user