From bc2ddd99666c8b12e7cacf258a4c8fe3ae548208 Mon Sep 17 00:00:00 2001 From: tdx Date: Wed, 10 Jun 2026 08:39:56 +0000 Subject: [PATCH] SVN r1207 SVN-Revision: r1207 --- 插件库/Lskj.Core/ApiHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/插件库/Lskj.Core/ApiHelper.cs b/插件库/Lskj.Core/ApiHelper.cs index c1b891f..90acf76 100644 --- a/插件库/Lskj.Core/ApiHelper.cs +++ b/插件库/Lskj.Core/ApiHelper.cs @@ -226,12 +226,12 @@ namespace Lskj.Core string sqlStr = ""; if (!string.IsNullOrEmpty(contextMenuId + "") && !(contextMenuId + "").Equals("0")) { - sqlStr = string.Format("select * from p_systemEventApiTab where actionType=0 and charIndex(','+eType+',',',{0},')>0 and charIndex(',{1},',','+convert(varchar,contextMenuId)+',')>0 order by orderValue", operateEvent, contextMenuId); + sqlStr = string.Format("select * from p_systemEventApiTab where actionType=0 and charIndex(','+eType+',',',{0},')>0 and charIndex(',{1},',','+convert(varchar(8000),contextMenuId)+',')>0 order by orderValue", operateEvent, contextMenuId); } else { - sqlStr = string.Format("select * from p_systemEventApiTab where actionType=0 and charIndex(','+eType+',',',{0},')>0 and charIndex(',{1},',','+convert(varchar,dllcoid)+',')>0 order by orderValue", operateEvent, moduleId); + sqlStr = string.Format("select * from p_systemEventApiTab where actionType=0 and charIndex(','+eType+',',',{0},')>0 and charIndex(',{1},',','+convert(varchar(8000),dllcoid)+',')>0 order by orderValue", operateEvent, moduleId); } DataTable tbVal = SqlHelper.ExecuteDataTable(sqlStr); if (tbVal.Rows.Count > 0)