|
|
@@ -44,12 +44,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
var queryParam = queryJson.ToJObject(); |
|
|
|
// 虚拟参数 |
|
|
|
var dp = new DynamicParameters(new { }); |
|
|
|
if (queryParam["StartTime"].ToString() != "1753-01-01" && queryParam["EndTime"].ToString() != "3000-01-01") |
|
|
|
{ |
|
|
|
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); |
|
|
|
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); |
|
|
|
strSql.Append(" AND ( t.SendTime >= @startTime AND t.SendTime <= @endTime ) "); |
|
|
|
} |
|
|
|
if (!queryParam["Title"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("Title", "%" + queryParam["Title"].ToString() + "%", DbType.String); |
|
|
@@ -60,16 +54,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
dp.Add("SenderId", "" + queryParam["SenderId"].ToString() + "", DbType.String); |
|
|
|
strSql.Append(" AND t.SenderId = @SenderId "); |
|
|
|
} |
|
|
|
if (!queryParam["Receiver"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("Receiver", "%" + queryParam["Receiver"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND t.Receiver Like @Receiver "); |
|
|
|
} |
|
|
|
//sql条件 |
|
|
|
if (!queryParam["SqlParameter"].IsEmpty()) |
|
|
|
{ |
|
|
|
strSql.Append(queryParam["SqlParameter"].ToString()); |
|
|
|
} |
|
|
|
//if (!queryParam["Receiver"].IsEmpty()) |
|
|
|
//{ |
|
|
|
// dp.Add("Receiver", "%" + queryParam["Receiver"].ToString() + "%", DbType.String); |
|
|
|
// strSql.Append(" AND t.Receiver Like @Receiver "); |
|
|
|
//} |
|
|
|
////sql条件 |
|
|
|
//if (!queryParam["SqlParameter"].IsEmpty()) |
|
|
|
//{ |
|
|
|
// strSql.Append(queryParam["SqlParameter"].ToString()); |
|
|
|
//} |
|
|
|
return this.BaseRepository().FindList<Sys_SendFileEntity>(strSql.ToString(), dp, pagination); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|