This commit is contained in:
jl
2025-06-24 21:27:13 +08:00
parent 7ed7a8cd88
commit cc38437359
10 changed files with 55 additions and 109 deletions

View File

@ -2419,15 +2419,16 @@ namespace Epost.DAL
}
#endregion
#region
public bool Updatestate(string matchid, string readdate)
public bool Updatestate(string matchid, string shopid)
{
try
{
string sql = string.Format(" update orders set state =0 where matchid='{0}' and readtime='{1}' and state=99",
string sql = string.Format(" update orders set state =3 where matchid='{0}' and shopid='{1}' and state = 0 and oprationstate=3",
matchid,
readdate);
shopid);
long x = db.UpdateSql(sql);
LogHelper.WriteLogInfo(x + "换箱"+sql);
if (x > 0)
return true;
return false;

View File

@ -211,11 +211,11 @@ namespace Epost.DAL
#endregion
#region sku是否正在作业
public DataTable GetOrderQueue(string block,string area,string state)
public DataTable GetOrderQueue(string block,string area,string state,string sku)
{
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}' or (state = 1 and sku='{3}') and taskblock='{1}' and taskarea='{2}'",
state,
block,area);
block,area,sku);
LogHelper.WriteLogInfo("获取sku是否正在作业" + sql);
return db.GetsqlForDT(sql);