Bläddra i källkod

【修改】办事大厅-合同管理-合同监控、归档:service方法完善,增加获取基础库名,关键字模糊查询;

undefined
dyy 2 år sedan
förälder
incheckning
1f900c124d
1 ändrade filer med 9 tillägg och 1 borttagningar
  1. +9
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs

+ 9
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs Visa fil

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


Laddar…
Avbryt
Spara