This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user