|
|
@@ -164,8 +164,17 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
} |
|
|
|
if (!queryParam["accountName"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("accountName", "%" + queryParam["accountName"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND t.accountName Like @accountName "); |
|
|
|
var IsPhone = queryParam["IsPhone"].ToString(); |
|
|
|
if (IsPhone == "0") |
|
|
|
{ |
|
|
|
dp.Add("accountName", queryParam["accountName"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.accountName = @accountName "); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
dp.Add("accountName", "%" + queryParam["accountName"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND t.accountName Like @accountName "); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!queryParam["depName"].IsEmpty()) |
|
|
|
{ |
|
|
@@ -182,18 +191,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
dp.Add("identiName", queryParam["identiName"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.identiName = @identiName "); |
|
|
|
} |
|
|
|
if (!queryParam["IsStuOrTeach"].IsEmpty()) |
|
|
|
{ |
|
|
|
var IsStuOrTeach = queryParam["IsStuOrTeach"].ToString(); |
|
|
|
if (IsStuOrTeach == "0") |
|
|
|
{ |
|
|
|
strSql.Append(" AND t.identiName = '教师' "); |
|
|
|
} |
|
|
|
else if (IsStuOrTeach == "1") |
|
|
|
{ |
|
|
|
strSql.Append(" AND t.identiName = '学生' "); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!queryParam["flowtype"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("flowtype", queryParam["flowtype"].ToString(), DbType.String); |
|
|
|