增加小格口绑定

This commit is contained in:
jl
2024-01-15 17:37:47 +08:00
parent 36a20b88ce
commit a3c29b5bf8
6 changed files with 92 additions and 49 deletions

View File

@ -2471,6 +2471,28 @@ namespace Epost.DAL
}
#endregion
#region
public bool UpdateSkuLoc(string sku,string smallloc)
{
try
{
string sql = string.Format(" update orders set partcode = '{0}' where sku='{1}'",
smallloc,
sku);
long x = db.UpdateSql(sql);
LogHelper.WriteLogInfo(x+"修改小格口信息"+sql);
if (x > 0)
return true;
return false;
}
catch (Exception ex)
{
LogHelper.WriteLogInfo("修改小格口号出错1" + ex.Message);
return false;
}
}
#endregion
}
}

View File

@ -408,5 +408,14 @@ namespace Epost.DAL
}
#endregion
#region
public DataTable getQueueList()
{
string sql = string.Format("select top 1 * from OrdersQueue where state=3 order by id desc");
return db.GetsqlForDT(sql);
}
#endregion
}
}