This commit is contained in:
@ -1245,10 +1245,10 @@ namespace Epost.DAL
|
||||
|
||||
|
||||
#region 查询sku对应的所有任务
|
||||
public DataTable getOrderListBysku(string block, string sku)
|
||||
public DataTable getOrderListBysku(string block, string sku,string area)
|
||||
{
|
||||
string sql = string.Format("select * from v_orders where block = '{0}' and sku ='{1}' order by layer,slist ",
|
||||
block,
|
||||
string sql = string.Format("select * from v_orders where block = '{0}' and area='{1}' and sku ='{2}' order by layer,slist ",
|
||||
block,area,
|
||||
sku);
|
||||
LogHelper.WriteLogInfo("查询sku对应的所有任务:" + sql);
|
||||
DataTable dt = db.GetsqlForDT(sql);
|
||||
|
@ -354,10 +354,10 @@ namespace Epost.DAL
|
||||
|
||||
|
||||
#region 删除queue
|
||||
public bool DelQueueOrder(string sku,string block)
|
||||
public bool DelQueueOrder(string sku,string block,string area)
|
||||
{
|
||||
string sql = string.Format("delete from OrdersQueue where sku='{0}' and taskblock='{1}' and state<>3",
|
||||
sku,block);
|
||||
string sql = string.Format("delete from OrdersQueue where sku='{0}' and taskblock='{1}' and taskarea='{2}' and state<>3",
|
||||
sku,block,area);
|
||||
LogHelper.WriteLogInfo("删除queue"+sql);
|
||||
long x = db.DeleteSql(sql);
|
||||
if (x > 0)
|
||||
|
Reference in New Issue
Block a user