This commit is contained in:
jl
2025-06-30 10:14:05 +08:00
parent 722f16a77e
commit fb2aa4f239
10 changed files with 146 additions and 138 deletions

View File

@ -44,7 +44,7 @@ namespace Epost.DAL
#endregion
#region
public DataTable getQueuesOrderbyState(string state="0")
{
{
string sql = string.Format("select * from OrdersQueue where state ='{0}'",
state);
// LogHelper.WriteLogInfo("获取正在绑定的信息" + sql);
@ -54,9 +54,14 @@ namespace Epost.DAL
#endregion
#region queue信息
public DataTable getQueuesOrderbyState(string block,string area,string state)
public DataTable getQueuesOrderbyState(string block,string area,string state,string usercode)
{
string sql = string.Format("select * from OrdersQueue where (state ='{0}' or state='0') and taskblock='{1}' and taskarea='{2}' ",
string strwhere = string.Empty;
if (!string.IsNullOrEmpty(usercode))
{
strwhere += " and usercode= '" + usercode + "'";
}
string sql = string.Format("select * from OrdersQueue where (state ='{0}' or state='0') and taskblock='{1}' and taskarea='{2}' "+ strwhere,
state,
block,
area);
@ -311,10 +316,10 @@ namespace Epost.DAL
{
strwhere += "and Taskarea='" + model.Taskarea + "'";
}
string sql = string.Format("update OrdersQueue set state='{0}' where state<>3 and sku = '{1}' and matchid='{2}' "+ strwhere,
string sql = string.Format("update OrdersQueue set state='{0}' where state<>3 and usercode = '{1}' "+ strwhere,
model.State
,model.Sku,
model.Matchid
,model.UserCode
);
LogHelper.WriteLogInfo("修改作业区段"+sql);