This commit is contained in:
jl
2025-06-28 09:40:33 +08:00
parent 3042ef9370
commit 722f16a77e
6 changed files with 41 additions and 28 deletions

View File

@ -301,7 +301,7 @@ namespace Epost.DAL
{
strwhere += "and shelfid ='" + shelfid + "'";
}
string sql = string.Format("select area,block,way from Addressstorage where type=1 " + strwhere + " group by area,block,way");
string sql = string.Format("select distinct area,block,way from Addressstorage where type=1 " + strwhere + " group by area,block,way");
DataTable dt = db.GetsqlForDT(sql);
return ModelConvertHelper<AddressstorageModel>.ConvertToList(dt);