更改接口灭灯功能
This commit is contained in:
@ -3026,11 +3026,24 @@ namespace Epost.DAL
|
||||
return dt;
|
||||
}
|
||||
|
||||
public DataTable GetOrdersDT(string address, string ControlIP)
|
||||
public bool UpOrdersState(string orderid)
|
||||
{
|
||||
string sql = string.Format("select address,type,area,block,ControlIP,v_orders.id,tolocation,quantity,oprationstate,v_orders.sku,v_orders.orderid from v_orders left join OrdersQueue on v_orders.block=OrdersQueue.Taskblock where address='2001' and ControlIP='192.168.3.118' and oprationstate!=3");
|
||||
DataTable dt = db.GetsqlForDT(sql);
|
||||
return dt;
|
||||
string strwhere = string.Empty;
|
||||
if (!string.IsNullOrEmpty(orderid))
|
||||
{
|
||||
strwhere += " and orderid='" + orderid + "'";
|
||||
}
|
||||
string sql = string.Format("update Orders set oprationstate='3',quantity=truequantity,state='3' where 1=1 " + strwhere + "");
|
||||
long x = db.UpdateSql(sql);
|
||||
LogHelper.WriteLogInfo("接口灭灯-修改状态:" + sql + ",执行条数:" + x + "");
|
||||
if (x > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#region 校验货位
|
||||
|
Reference in New Issue
Block a user