|
|
@@ -31,12 +31,27 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
{ |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
strSql.Append("SELECT "); |
|
|
|
strSql.Append(@" * "); |
|
|
|
strSql.Append(@" t.* "); |
|
|
|
strSql.Append(" FROM DtHonoraryUser t "); |
|
|
|
strSql.Append(" WHERE 1=1 "); |
|
|
|
var queryParam = queryJson.ToJObject(); |
|
|
|
// 虚拟参数 |
|
|
|
var dp = new DynamicParameters(new { }); |
|
|
|
if (!queryParam["MajorNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
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); |
|
|
|
strSql.Append(" AND t.ClassNo = @ClassNo "); |
|
|
|
} |
|
|
|
if (!queryParam["StuNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.StuNo = @StuNo "); |
|
|
|
} |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<DtHonoraryUserEntity>(strSql.ToString(), dp, pagination); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|