|
|
@@ -108,9 +108,12 @@ namespace Learun.Application.TwoDevelopment.LR_LGManager |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
//库名 |
|
|
|
var basename = this.BaseRepository().getDbConnection().Database; |
|
|
|
|
|
|
|
var strSql = new StringBuilder(); |
|
|
|
strSql.Append("SELECT b.F_Id as ProcessId, b.F_EnabledMark as F_EnabledMark1,b.F_IsFinished,t.* "); |
|
|
|
strSql.Append(" FROM LC_hetong t left join adms7ultimate2.dbo.LR_NWF_Process b on t.lc_id=b.f_id where b.F_EnabledMark!=2 and F_IsChild=0 "); |
|
|
|
strSql.Append($" FROM LC_hetong t left join {basename}.dbo.LR_NWF_Process b on t.lc_id=b.f_id where b.F_EnabledMark!=2 and b.F_IsChild=0 "); |
|
|
|
var queryParam = queryJson.ToJObject(); |
|
|
|
// 虚拟参数 |
|
|
|
var dp = new DynamicParameters(new { }); |
|
|
@@ -129,6 +132,11 @@ namespace Learun.Application.TwoDevelopment.LR_LGManager |
|
|
|
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); |
|
|
|
strSql.Append(" AND ( t.F_ModifyDate >= @startTime AND t.F_ModifyDate <= @endTime ) "); |
|
|
|
} |
|
|
|
if (!queryParam["keyword"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("keyword", '%'+queryParam["keyword"].ToString()+'%', DbType.String); |
|
|
|
strSql.Append(" and (t.LC_htmc like @keyword or t.LC_dfdw like @keyword) "); |
|
|
|
} |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<LC_hetongEntity>(strSql.ToString(), dp,pagination); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|