|
|
@@ -177,27 +177,27 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
} |
|
|
|
if (!queryParam["DeptNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("DeptNo", "" + queryParam["DeptNo"].ToString() + "", DbType.String); |
|
|
|
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.DeptNo=@DeptNo "); |
|
|
|
} |
|
|
|
if (!queryParam["MajorNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("MajorNo", "" + queryParam["MajorNo"].ToString() + "", DbType.String); |
|
|
|
dp.Add("MajorNo", queryParam["MajorNo"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.MajorNo=@MajorNo "); |
|
|
|
} |
|
|
|
if (!queryParam["ClassNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("ClassNo", "" + queryParam["ClassNo"].ToString() + "", DbType.String); |
|
|
|
dp.Add("ClassNo", queryParam["ClassNo"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.ClassNo=@ClassNo "); |
|
|
|
} |
|
|
|
if (!queryParam["Grade"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("Grade", "" + queryParam["Grade"].ToString() + "", DbType.String); |
|
|
|
dp.Add("Grade", queryParam["Grade"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.Grade=@Grade "); |
|
|
|
} |
|
|
|
if (!queryParam["GenderNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("GenderNo", "" + queryParam["GenderNo"].ToString() + "", DbType.String); |
|
|
|
dp.Add("GenderNo", queryParam["GenderNo"].ToString() , DbType.String); |
|
|
|
strSql.Append(" AND t.GenderNo=@GenderNo "); |
|
|
|
} |
|
|
|
if (!queryParam["IdentityCardNo"].IsEmpty()) |
|
|
@@ -207,12 +207,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
} |
|
|
|
if (!queryParam["NationalityNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("NationalityNo", "" + queryParam["NationalityNo"].ToString() + "", DbType.String); |
|
|
|
dp.Add("NationalityNo", queryParam["NationalityNo"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.NationalityNo = @NationalityNo "); |
|
|
|
} |
|
|
|
if (!queryParam["FinishSchoolMark"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("FinishSchoolMark", "" + queryParam["FinishSchoolMark"].ToString() + "", DbType.String); |
|
|
|
dp.Add("FinishSchoolMark", queryParam["FinishSchoolMark"].ToString(), DbType.String); |
|
|
|
if (queryParam["FinishSchoolMark"].ToString() == "0") |
|
|
|
{ |
|
|
|
strSql.Append(" AND (t.FinishSchoolMark is null or t.FinishSchoolMark='0') "); |
|
|
@@ -227,7 +227,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
dp.Add("Remark", "%" + queryParam["Remark"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND t.Remark Like @Remark "); |
|
|
|
} |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<StuInfoGraduateEntity>(strSql.ToString(), pagination); |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<StuInfoGraduateEntity>(strSql.ToString(),dp, pagination); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|