|
|
@@ -33,20 +33,20 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
strSql.Append("SELECT t.* "); |
|
|
|
strSql.Append(" FROM StuDisciplineManagement t "); |
|
|
|
strSql.Append(" left join " + basedbname + ".dbo.LR_Base_User u on t.CreateUserId=u.F_UserId "); |
|
|
|
//strSql.Append(" left join " + basedbname + ".dbo.LR_Base_User u on t.CreateUserId=u.F_UserId "); |
|
|
|
strSql.Append(" WHERE 1=1 "); |
|
|
|
var queryParam = queryJson.ToJObject(); |
|
|
|
// 虚拟参数 |
|
|
|
var dp = new DynamicParameters(new { }); |
|
|
|
if (!queryParam["StuNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("StuNo", "%" + queryParam["StuNo"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND u.StuNo =StuNo "); |
|
|
|
dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.StuNo = @StuNo "); |
|
|
|
} |
|
|
|
if (!queryParam["EmpNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("EmpNo", "%" + queryParam["EmpNo"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND u.EmpNo =EmpNo "); |
|
|
|
dp.Add("EmpNo", queryParam["EmpNo"].ToString(), DbType.String); |
|
|
|
strSql.Append(" and t.EmpNo = @EmpNo "); |
|
|
|
} |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<StuDisciplineManagementEntity>(strSql.ToString(), dp, pagination); |
|
|
|
} |
|
|
|