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)