This commit is contained in:
jl
2025-06-26 20:31:02 +08:00
parent de122526a2
commit 3042ef9370
5 changed files with 107 additions and 39 deletions

View File

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