Explorar el Código

【修改】毕业学生管理:多条件查询修复;

临城职教中职
dyy hace 2 años
padre
commit
a17117de66
Se han modificado 1 ficheros con 8 adiciones y 8 borrados
  1. +8
    -8
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateService.cs

+ 8
- 8
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateService.cs Ver fichero

@@ -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)
{


Cargando…
Cancelar
Guardar