This commit is contained in:
jl
2024-12-06 14:13:52 +08:00
parent 102cc71af5
commit 122c2cb3bc
7 changed files with 29 additions and 29 deletions

View File

@ -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);

View File

@ -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)