|
|
@@ -101,17 +101,17 @@ a.name as ApartmentName,b.name as UnitName,c.Name as FloorName |
|
|
|
} |
|
|
|
if (!queryParam["Dept"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("Dept", "%" + queryParam["Dept"].ToString() + "%", DbType.String); |
|
|
|
dp.Add("Dept", queryParam["Dept"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.Dept=@Dept "); |
|
|
|
} |
|
|
|
if (!queryParam["Class"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("Class", "%" + queryParam["Class"].ToString() + "%", DbType.String); |
|
|
|
dp.Add("Class", queryParam["Class"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.Class=@Class "); |
|
|
|
} |
|
|
|
if (!queryParam["Major"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("Major", "%" + queryParam["Major"].ToString() + "%", DbType.String); |
|
|
|
dp.Add("Major", queryParam["Major"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.Major=@Major "); |
|
|
|
} |
|
|
|
if (!queryParam["Sex"].IsEmpty()) |
|
|
|