This commit is contained in:
jl
2025-01-16 16:23:04 +08:00
parent adab2c3392
commit af5cde8e46
5 changed files with 65 additions and 32 deletions

View File

@ -717,19 +717,12 @@ namespace Epost.DAL
#endregion
#region
public bool UpdateStateByCar(string matchid,string area, string block = "", string sku = "")
public bool UpdateStateByCar(string matchid, string sku = "")
{
try
{
string strwhere = string.Empty;
if (!string.IsNullOrEmpty(block))
{
strwhere += " and block='" + block + "'";
}
if (!string.IsNullOrEmpty(sku))
{
strwhere += " and area='" + area + "'";
}
if (!string.IsNullOrEmpty(sku))
{
strwhere += " and sku='" + sku + "'";
@ -1091,6 +1084,38 @@ namespace Epost.DAL
}
#endregion
#region sku是否为已完成
public bool IsSkuFinishWork( string sku , string matchid )
{
string strwheres = "";
if (!string.IsNullOrEmpty(matchid))
{
strwheres += " and matchid ='" + matchid + "'";
}
if (!string.IsNullOrEmpty(sku))
{
strwheres += " and sku ='" + sku + "'";
}
string sql = "select matchid, sku from V_orders where oprationstate <> 3 and state<>99 " + strwheres;
LogHelper.WriteLogInfo("判断sku是否为已完成" + sql);
DataTable dt = db.GetsqlForDT(sql);
if (dt == null || dt.Rows.Count == 0)
{
LogHelper.WriteLogInfo("判断sku是否为已完成true");
return true;
}
else
{
LogHelper.WriteLogInfo("判断sku是否为已完成false");
return false;
}
}
#endregion
#region
public int getOrderarea(string usercode, string block, string area)
{