This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user