This commit is contained in:
jl
2024-11-29 11:19:47 +08:00
parent 0f7cc10d25
commit f4b525c564
7 changed files with 65 additions and 43 deletions

View File

@ -290,10 +290,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}' and usercode='{3}'"+ strwhere,
string sql = string.Format("update OrdersQueue set state='{0}' where state<>3 and sku = '{1}' and matchid='{2}' "+ strwhere,
model.State
,model.Sku,
model.Matchid,model.UserCode
model.Matchid
);
LogHelper.WriteLogInfo("修改作业区段"+sql);

View File

@ -29,8 +29,8 @@ namespace Epost.DAL
// sku);
//string sql = string.Format(" SELECT * FROM skuinfo WHERE (CHARINDEX('{0}',location)>0) or sku='{1}'",
// sku, sku);
string sql = string.Format(" SELECT * FROM skuinfo WHERE sku='{0}'",
sku);
string sql = string.Format(" SELECT * FROM skuinfo WHERE (CHARINDEX('{0}',location)>0) or sku='{1}'",
sku, sku);
return db.GetsqlForDT(sql);
}