This commit is contained in:
jl
2025-06-24 15:35:29 +08:00
parent 81ef9284b7
commit 7ed7a8cd88
33 changed files with 3955 additions and 98 deletions

View File

@ -288,6 +288,26 @@ namespace Epost.DAL
}
#endregion
#region
public List<AddressstorageModel> GetOrderWayList(string block, string shelfid)
{
string strwhere = string.Empty;
if (!string.IsNullOrEmpty(block))
{
strwhere += "and block ='" + block + "'";
}
if (!string.IsNullOrEmpty(shelfid))
{
strwhere += "and shelfid ='" + shelfid + "'";
}
string sql = string.Format("select area,block,way from Addressstorage where type=1 " + strwhere + " group by area,block,way");
DataTable dt = db.GetsqlForDT(sql);
return ModelConvertHelper<AddressstorageModel>.ConvertToList(dt);
}
#endregion
#region
public List<AddressstorageModel> GetshelfidList(string block)
{

View File

@ -49,7 +49,7 @@ namespace Epost.DAL
{
strwhere += "and info= '" + usercode + "'";
}
string sql = string.Empty;
if (!string.IsNullOrEmpty(area))
{

View File

@ -22,7 +22,7 @@ namespace Epost.DAL
{
strwhere = strwhere + " and block='" + block + "'";
}
string sql = string.Format("select id, orderid, city , fdate , boxcode, shopname, shopid, orderway, boxno,isnull(totalcount,0) as totalcount , warehouseid, state,block,printstate,senddate,loc from print_box where state=0 " + strwhere + " order by id");
string sql = string.Format("select id, orderid, city , fdate , boxcode, shopname, shopid, orderway, boxno,isnull(totalcount,0) as totalcount , warehouseid, state,block,printstate,senddate,loc,matchid from print_box where state=0 " + strwhere + " order by id");
return db.GetsqlForDT(sql);
}
catch (Exception ex)

View File

@ -14,7 +14,7 @@ namespace Epost.DAL
public DataTable GetSkuInfoList(string sku)
{
string sql = string.Format(" SELECT * FROM skuinfo WHERE (CHARINDEX('{0}',location)>0) or sku='{1}'",
string sql = string.Format(" SELECT top 1 * FROM orders WHERE (CHARINDEX('{0}',barcode)>0) or sku='{1}'",
sku, sku);